PartI:build out image
1、framework
make -j8 systemimage #Location:out\target\product\<chipset>\system.img
或者make -j8 <target lib(32bit and 64bit)>,然后用 make snod 将上一步的目标库文件打包到 system.img
2、kernel
make -j8 bootimage #Location:out\target\product\<chipset>\boot.img
PartII:flash mode
adb reboot bootloader
fastboot erase sbl1
fastboot reboot
adb reboot bootloader
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash system_a system.img
fastboot flash system_b system.img
fastboot reboot
PS:生成的目标文件可执行单独push
adb root
adb remount
adb shell setenforce 0
adb puch <target lib(32bit and 64bit)> /system/lib/ and /system/lib64/
adb reboot
博客介绍了系统镜像构建和刷机模式的操作。构建部分包括使用 make 命令构建系统镜像和内核镜像;刷机模式部分介绍了通过 adb 和 fastboot 命令进行刷机的步骤,如重启到引导加载器、擦除分区、刷入镜像等,还提及可单独 push 目标文件。
362

被折叠的 条评论
为什么被折叠?



