在用迅為的4418開發板Flash空間問題求解

殺月發表於2019-05-13

迅為4418開發板 是4G版本 16G儲存空間的。u-boot和檔案系統、核心都是光碟自帶的,進入linux系統之後 我使用df -h命令看到的儲存空間不對,我用U盤做了測試:u盤裡面放1G的內容往arm開發板上面cp 結果cp到一定時間時候,就提示“裝置空間不足”。

解決方案:

第一步:
啟動qt停止在uboot,然後輸入如下命令設定引數:
setenv fastboot “flash=mmc,2:uboot:2nd:0x200,0x78000;flash=mmc,2:2ndboot:2nd:0x200,0x4000;flash=mmc,2:bootloader:boot:0x8000,0x70000;flash=mmc,2ext4:0x00100000,0x04000000;flash=mmc,2:system:ext4:0x04100000,0x340000000;”
saveenv

第二步修改原始碼:
在原始碼下的build_android.sh中修改一下:

將:
make_ext4fs -s -l 314572800 -a root -L linux ${RESULT_DIR}/system.img ${RESULT_DIR}/system
修改為:
make_ext4fs -s -l 13958643712 -a root -L linux ${RESULT_DIR}/system.img ${RESULT_DIR}/system

第三步:
修改完之後輸入 ./build_android.sh qt

最後把編譯好的system.img燒進去就行

相關文章