swee revised this gist 5 months ago. Go to revision
1 file changed, 38 insertions
gistfile1.txt(file created)
| @@ -0,0 +1,38 @@ | |||
| 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" | |
| 11 | + | deviceinfo_header_version="1" | |
| 12 | + | deviceinfo_flash_offset_base="0x10000000" | |
| 13 | + | deviceinfo_flash_offset_kernel="0x00008000" | |
| 14 | + | deviceinfo_flash_offset_ramdisk="0x00000000" | |
| 15 | + | deviceinfo_flash_offset_second="0x00000000" | |
| 16 | + | deviceinfo_flash_offset_tags="0x00000000" | |
| 17 | + | ||
| 18 | + | [16:06:03] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary) | |
| 19 | + | [16:06:03] DONE! | |
| 20 | + | ||
| 21 | + | $ pmbootstrap bootimg_analyze boot2.img #pmOS | |
| 22 | + | [16:04:06] 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 | |
| 23 | + | [16:04:40] (native) install file unpackbootimg | |
| 24 | + | doas (swee@candycorn) password: | |
| 25 | + | [16:04:52] Put these variables in the deviceinfo file of your device: | |
| 26 | + | ||
| 27 | + | deviceinfo_kernel_cmdline="loop.max_part=7 androidboot.boot_devices=13520000.ufs pmos_boot_uuid=71193664-1a10-4e0c-b844-8fb6f2702c59 pmos_root_uuid=76f2fa46-1760-4cfc-9cc9-3abd05b6e6c5 pmos_rootfsopts=defaults" | |
| 28 | + | deviceinfo_generate_bootimg="true" | |
| 29 | + | deviceinfo_flash_pagesize="2048" | |
| 30 | + | deviceinfo_header_version="0" | |
| 31 | + | deviceinfo_flash_offset_base="0x10000000" | |
| 32 | + | deviceinfo_flash_offset_kernel="0x00008000" | |
| 33 | + | deviceinfo_flash_offset_ramdisk="0x00000000" | |
| 34 | + | deviceinfo_flash_offset_second="0x00000000" | |
| 35 | + | deviceinfo_flash_offset_tags="0x00000000" | |
| 36 | + | ||
| 37 | + | [16:04:52] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary) | |
| 38 | + | [16:04:52] DONE! | |
Newer
Older