All gists

swee
Last active 7 months ago
0 0 1
1 $ pmbootstrap bootimg_analyze boot.img #lOS
2 [16:05:14] NOTE: You will be prompted for your sudo/doas password, so we can set up a chroot to extract and analyze your boot.img file
3 [16:05:49] (native) install file unpackbootimg
4 doas (swee@candycorn) password:
5 [16:06:03] Put these variables in the deviceinfo file of your device:
6
7 deviceinfo_kernel_cmdline="loop.max_part=7 androidboot.boot_devices=13520000.ufs"
8 deviceinfo_generate_bootimg="true"
9 deviceinfo_flash_pagesize="2048"
10 deviceinfo_dtb_second="true"
swee
Last active 7 months ago
0 0 1
1 swee @ candycorn
2 ~/Downloads OwO 1 $ extract-dtb dtbo.img
3 Dumped 00_kernel, start=0 end=96
4 Dumped 01_dtbdump_samsung,exynos9610.dtb, start=96 end=104301
5 Dumped 02_dtbdump_samsung,exynos9610.dtb, start=104301 end=1048576
6 Extracted 2 appended dtbs + kernel to dtb
7 swee @ candycorn
8 ~/Downloads UwU $ extract-dtb boot.img
9 Dumped 00_kernel, start=0 end=48459776
10 Dumped 01_dtbdump_samsung,armv8.dtb, start=48459776 end=67108864