boot.img解包和打包
来源:互联网 发布:网络爱情歌曲大全 编辑:程序博客网 时间:2024/05/22 12:49
转载自 http://blog.csdn.net/tody_guo/article/details/7515151
其实解压、打包boot.img没什么难度一看就会咯!!
1.先下附件:工具。 点击打开链接 6.0 KB, 下载次数: 60) 解压到bin文件夹里,方便以后使用。2.解压boot.img文件
去到boot.img所在的文件夹,输入下面的命令:
Kernel size: 2240184 (0x00222eb8)
Ramdisk size: 221504 (0x00036140)
Second size: 0 (0x00000000)
Board name:
Command line:androidboot.hardware=blade console=null g_android.product_id=0x1354 g_android.serial_number=Blade-CM7
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
完了之后,你就会发现多了boot.img-kernel 和 boot.img-ramdisk.gz文件,这就是解压出来的boot.img,其中boot.img-kernel 就是内核,boot.img-ramdisk.gz就是ramdisk。
3.打包boot.img文件
在替换和内核后,就要对boot.img打包了!!下是代码:
命令中-cmdline‘xxx’,xxx就是解压boot.img是Command line:xxx
new.img文件就是你修改后的boot.img文件了。改个名字替换到ROM里面就可以了。!!
new.img文件就是你修改后的boot.img文件了。改个名字替换到ROM里面就可以了。!!
# ./split_bootimg.pl boot.img
Page size: 2048 (0x00000800)
Kernel size: 1388548 (0x00153004)
Ramdisk size: 141518 (0x000228ce)
Second size: 0 (0x00000000)
Board name:
Command line: no_console_suspend=1
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
Extract the ramdisk.
# mkdir ramdisk
# cd ramdisk
# gzip -dc ../*-ramdisk.gz | cpio -i
# cd ..
Make any changes necessary (e.g., set ro.secure=0 in default.prop).
Recreate the cpio archive using the mkbootfs binary produced from building the Android source code (The cpio utility in OS X does not recognize the newc format, therefore mkbootfs is the best option for OS X users).
# mkbootfs ./ramdisk | gzip > ramdisk-new.gz
Recreate the image file using the mkbootimg binary produced from building the Android source code.
# mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel boot.img-kernel --ramdisk ramdisk-new.gz -o boot-new.img --base 0x20000000
=======================================================================
Make any changes necessary (e.g., set ro.secure=0 in default.prop).
Recreate the cpio archive using the mkbootfs binary produced from building the Android source code (The cpio utility in OS X does not recognize the newc format, therefore mkbootfs is the best option for OS X users).
# mkbootfs ./ramdisk | gzip > ramdisk-new.gz
Recreate the image file using the mkbootimg binary produced from building the Android source code.
# mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel boot.img-kernel --ramdisk ramdisk-new.gz -o boot-new.img --base 0x20000000
- boot.img解包和打包
- boot.img解包和打包过程
- boot.img解包和打包工具for_linux
- Android ramdisk,boot,system.img 解包和打包
- 解包、编辑、打包boot.img文件
- 解包、编辑、打包boot.img文件
- boot.img的解包与打包
- mtk boot.img打包解包
- boot.img的解包与打包
- boot.img的解包与打包
- boot.img 解包与打包
- boot.img的解包与打包
- boot.img的解包、root、打包
- boot.img的解包与打包
- boot.img的解包与打包
- 解包、编辑、打包boot.img文件
- boot.img的解包与打包
- boot.img的解包与打包
- UVa #1608 Non-boring sequences (例题8-16)
- Xutils使用方法,感觉这个框架挺好用的
- RedHat Linux 6安装RDAC
- 回顾 Java多态性实现机制
- android源码修改问题解答之二(多媒体)
- boot.img解包和打包
- VS2010 C++/CLR FFMpeg常见问题及解决方案汇总(将于2016.9进行完善)
- Android通过网页启动APP
- 解决Google/Firefox等浏览器兼容IE
- 小怪物重制计划第三天
- 高性能计算--hpcc的编译出解决
- spring mvc连续七天的预约时间
- 推荐12个非常不错而且免费的后台管理HTML模板
- effective java-generic