Android 编译 error: do_inode_allocate_extents的问题
来源:互联网 发布:贵州省体育大数据公司 编辑:程序博客网 时间:2024/06/02 03:50
今天将内核从1.3转到2.0,在编译的时候出现如下错误:
+ make_ext4fs -s -l 536870912 -a system out/target/product/wing-chiphd/system.img out/target/product/wing-chiphd/systemCreating filesystem with parameters: Size: 536870912 Block size: 4096 Blocks per group: 32768 Inodes per group: 8192 Inode size: 256 Journal blocks: 2048 Label: Blocks: 131072 Block groups: 4 Reserved block group size: 31error: do_inode_allocate_extents: Failed to allocate 3284 blocks+ '[' 1 -ne 0 ']'+ exit 4error: failed to build out/target/product/wing-chiphd/system.img from out/target/product/wing-chiphd/systemmake: *** [systemimage-nodeps] 错误 1
而Size: 536870912 为512M,而我在preinstall中引入的apk的大小为138M,并且在1.3中是没有此问题的。对比BoardConfig,也没什么举起出入。所以i感觉不是这个大小的问题。
又试着修改sys_partional中相关的分区大小,还是一样,
在晚上查找---http://blog.csdn.net/suwenqiang_2011/article/details/7770130 说是启动的问题,如果是NAND启动就不会存在大小问题,有可能是TF启动,但是我这是NAND启动的,并试着clean了一下,将preinstall去掉,他又是OK的,后面不知动了什么,又出现此问题........
偶然一次将mk中的某些ko文件注释掉,重新编译了几次,有OK啦......成功的时候如下:
+ make_ext4fs -s -l 536870912 -a system out/target/product/wing-chiphd/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/wing-chiphd/systemCreating filesystem with parameters: Size: 536870912 Block size: 4096 Blocks per group: 32768 Inodes per group: 8192 Inode size: 256 Journal blocks: 2048 Label: Blocks: 131072 Block groups: 4 Reserved block group size: 31Created filesystem with 1515/32768 inodes and 127562/131072 blocks+ '[' 0 -ne 0 ']'Running: simg2img out/target/product/wing-chiphd/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/wing-chiphd/obj/PACKAGING/systemimage_intermediates/unsparse_system.img
具体不知什么问题............
最终版本:
应该还是BoardConfig.mk中BOARD_SYSTEMIMAGE_PARTITION_SIZE :大小的问题,以及在sys_partition.fex文件中nandd下size的大小。
我在 将他们都设为1G的时候,然后在编译,完全是OK的,出来的固件有648M之多。
- Android 编译 error: do_inode_allocate_extents的问题
- android 编译错误do_inode_allocate_extents: Failed to allocate 157
- ERROR:do_inode_allocate_extents: Failed to allocate 71 blocks
- error: do_inode_allocate_extents: Failed to allocate 1162 blocks
- error: do_inode_allocate_extents: Failed to allocate 4133 blocks
- android编译error问题总结
- Android源码编译时,遇到的问题:error: "_FORTIFY_SOURCE" redefined [-Werror]
- Android源码编译时遇到的问题:error:reference 'counts' cannot be declared 'mutable'
- Centos 7编译Android工程出现 error while loading shared libraries: libz.so.1 的问题
- Android Sdudio gradle编译问题Error:(20, 1)
- 编译android 的一些问题
- Android编译遇到的问题
- Android编译遇到的问题
- 编译android出现的问题
- DirectShow Filter 编译时遇到的问题 ---- error MIDL2025 : syntax error : expecting ]... || error C2504: 'IReferenceClockTimerControl' :
- cocos2d-x 移植到android中编译的一些问题:fatal error: Box2D/Box2D.h: No such file or directory"
- 更新AndroidStudio到3.0后遇到的一个编译问题Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2
- Xvid编译的error C2520问题及解决
- 360°全景影像建库流程
- RVDS 3.1 下载地址及破解方法
- 马云:今天的互联网创业还靠免费就是找死 .
- .net自带wsdl.exe的用法与参数说明
- sizeof
- Android 编译 error: do_inode_allocate_extents的问题
- Extjs 问题汇总
- PHP接收到的$_POST数据里的邮箱符号@变成了%40
- annotation与httpclient(2)-- RestTemplate与HttpClient
- 使用Qt创建OpenCV项目
- openjpa框架入门_项目框架搭建(二)
- 深入浅出Spring(四) Spring实例分析
- ajax,servlet实现无刷新验证用户名是否存在
- experiment : convert function as shellCode on our C project