marshmallow,无法往/system下push文件

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

marshmallow,无法往/system下push文件

跳至解决方案
3,616 次查看
jiangshao
Contributor V

最近下载了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上均未遇到类似问题)

标签 (3)
0 项奖励
回复
1 解答
2,992 次查看
jiangshao
Contributor V

虽然还没有找到具体原因,但是我在使用M6.0.1_2.1.0之后,这个问题消失了,希望能给有相同问题的人一个参考。

在原帖中查看解决方案

6 回复数
2,993 次查看
jiangshao
Contributor V

虽然还没有找到具体原因,但是我在使用M6.0.1_2.1.0之后,这个问题消失了,希望能给有相同问题的人一个参考。

2,992 次查看
jiangshao
Contributor V

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.

0 项奖励
回复
2,992 次查看
jiangshao
Contributor V

请参考。这是执行 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

0 项奖励
回复
2,992 次查看
BiyongSUN
NXP Employee
NXP Employee

Have you  add "androidboot.selinux=disabled" and "androidboot.dm_verity=disabled" then try again as the google said to you and filed in BSP document Android_User's_Guide.pdf

Untitledq.png

0 项奖励
回复
2,991 次查看
jiangshao
Contributor V

你好,感谢回答!

我在cmdline中追加了androidboot.selinux=disabled和androidboot.selinux=disabled。

然后用mkbootimg重新生成boot.img。

烧写后现象没有改善,仍旧会说 No space left on device

0 项奖励
回复
2,991 次查看
BiyongSUN
NXP Employee
NXP Employee

could you please type "mount' command to show if the system is read only or not.

0 项奖励
回复