-
- Downloads
parse.bootimg: Separate kernel and ramdisk MediaTek headers
Currently, pmbootstrap checks if either the kernel or the ramdisk in a boot.img contains the MediaTek header, and if one does, it assumes both do. It hardcodes the label KERNEL for the kernel and ROOTFS for the ramdisk. My Amazon Echo Dot (gen 2) has a boot.img where only the kernel has the header, but not the ramdisk. These changes (as well as those in my new boot-deploy MR) account for that situation (and any possible label an image has) by splitting bootimg_mtk_mkimage into two variables for the kernel and the ramdisk labels. Reviewed-by:Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/patches/46351
Showing
- pmb/aportgen/device.py 12 additions, 3 deletionspmb/aportgen/device.py
- pmb/config/__init__.py 3 additions, 1 deletionpmb/config/__init__.py
- pmb/parse/bootimg.py 24 additions, 51 deletionspmb/parse/bootimg.py
- test/test_bootimg.py 24 additions, 11 deletionstest/test_bootimg.py
- test/test_questions.py 0 additions, 1 deletiontest/test_questions.py
- test/testdata/bootimg/mtk-boot-kernel-only.img 0 additions, 0 deletionstest/testdata/bootimg/mtk-boot-kernel-only.img
- test/testdata/bootimg/mtk-boot-recovery.img 0 additions, 0 deletionstest/testdata/bootimg/mtk-boot-recovery.img
- test/testdata/bootimg/mtk-boot.img 0 additions, 0 deletionstest/testdata/bootimg/mtk-boot.img
Loading
Please register or sign in to comment