最近下载了NXP官网的marshmallow源码并且已经编译成功。
因工作需要,需用linux-x86/bin/mkuserimg.sh生成system.img,并用img2simg转换文件类型,
烧写,启动均没有问题。
但是,试图使用adb push往/system下推送文件时,会报如下错误:
E:\>adb remount
remount succeeded
E:\>adb push Vendor_1ff7_Product_0013.idc /system/usr/idc
failed to copy 'Vendor_1ff7_Product_0013.idc' to '/system/usr/idc/Vendor_1ff7_Product_0013.idc': No space left on device
0 KB/s (102 bytes in 0.170s)
df查看,结果如下:
root@sabresd_6dq:/ # df /system
Filesystem Size Used Free Blksize
/system 356.9M 354.4M 2.5M 4096
要push的idc文件size只有102字节,理论上空间应该够用。
哪位知道为什么吗?有没有解决办法?
(另外,以前在Android4.2.2,5.1上均未遇到类似问题)
已解决! 转到解答。
I need to make system.img with mkuserimg.sh like this:
mkuserimg.sh system/ system.img ext4 system 386339992
And I got the messages like these:
Creating filesystem with parameters:
Size: 386338816
Block size: 4096
Blocks per group: 32768
Inodes per group: 7872
Inode size: 256
Journal blocks: 1473
Label:
Blocks: 94321
Block groups: 3
Reserved block group size: 23
Created filesystem with 1614/23616 inodes and 93694/94321 blocks
I want to know whether it is related with "can not push file to /system"?
How to calculate the size(such as 386339992)?
I have been specified 409600000, but failed when use MfgTool2.
请参考。这是执行 adb remount之后用mount查看读写状态
C:\Users\shao>adb remount
remount succeeded
C:\Users\shao>adb shell
root@sabresd_6dq:/ # cd system
root@sabresd_6dq:/system # mount | grep system
/dev/block/mmcblk3p5 /system ext4 rw,relatime,data=ordered 0 0