samsung (beyond1lte and dreamlte) fails to find boot partition / image
The find_boot_partition
call in the init_functions.sh
doesn't find a boot partition.
The build was built with pmbootstrap edge and flashed the kernel & rootfs & vbmeta with heimdall (the deviceinfo has to be adapted to achieve that, see below).
Here the outputs from commands run by the debug-shell hook on an Samsung Galaxy S10 - beyond1lte.
I tried to manually mount /dev/sda14
, but that does not work too.
/ # mount /dev/sda14 /boot
mount: mounting /dev/sda14 on /boot failed: Invalid argument
Output for the
cat /proc/cmdline
command:
console=ram loglevel=4 androidboot.bore_cnt=105 sec_debug.pcb_offset=7346944 sec_debug.smd_offset=7348992 sec_debug.lpddr4_size=8 sec_debug.dram_info=01,07,00,8G sec_debug.pwrsrc_rs=0x0000C00440010000 sec_debug.reset_reason=9 sec_reset.reset_reason=9 sec_debug.reset_rwc=0 sec_debug.level=0 sec_watchdog.sec_pet=5 androidboot.debug_level=0x4f4c androidboot.force_upload=0x0 softdog.soft_margin=100 softdog.soft_panic=1 sec_debug.dump_sink=0x0 sec_debug.upload_count=0 androidboot.dram_info=01,07,00,8G androidboot.fmm_lock=0 sec_debug.fmm_lock_offset=7340600 sec_debug.sjl=1 androidboot.sn.param.offset=7343024 androidboot.prototype.param.offset=7351040 androidboot.recovery_offset=7355136 printk.devkmsg=on ess_setup=0xfd900000 sec_avc_log=0x40000@0x91202000 sec_tsp_log=0x40000@0x91244000 sec_disp_log=0x100000@0x91286000 sec_debug_next=0x800000@0x91388000 charging_mode=0x3030 s3cfb.bootloaderfb=0xca000000 lcdtype=10551315 androidboot.carrierid.param.offset=7340608 androidboot.carrierid=DBT consoleblank=0 androidboot.mode=charger ehci_hcd.park=3 oops=panic pmic_info=43 ccic_info=1 fg_reset=1 androidboot.emmc_checksum=3 androidboot.sales.param.offset=7340572 sales_code=VD2 androidboot.odin_download=1 androidboot.bootloader=G973FXXUFHVE1 androidboot.selinux=enforcing androidboot.ucs_mode=0 androidboot.revision=26 androidboot.hardware=exynos9820 androidboot.warranty_bit=1 androidboot.wb.hs=0400 androidboot.rp=15 androidboot.wb.snapQB=CUSTOM sec_debug.bin=A androidboot.hmac_mismatch=0 androidboot.sec_atd.tty=/dev/ttySAC0 androidboot.serialno=R38MA086HXT androidboot.ap_serial=0x2B0ECC6FA680 snd_soc_core.pmdown_time=1000 androidboot.cp_reserved_mem=off rootwait ro init=/init root=/dev/sda25 androidboot.dtbo_idx=8 androidboot.fmp_config=0 androidboot.em.did=202b0ecc6fa68011 androidboot.em.model=SM-G973F androidboot.em.status=0x0 androidboot.sb.debug0=0x0 androidboot.verifiedbootstate=orange androidboot.svb.ver=SVB1.0 bcm_setup= reserve-fimc= firmware_class.path=/vendor/firmware ecd_setup=disable region1=EUR region2=OPEN factory_mode=0 androidboot.ulcnt=1 android.nonce=6b95272410613627d7dc6b2588453f5f root=PARTUUID=52444E41-494F-2044-7379-7374656D0000
For the
blkid
command:
/dev/sda26: LABEL="vendor" UUID="76dfe55f-735a-52b0-ab90-5e13b9660693" TYPE="ext4"
/dev/sda28: LABEL="cache" UUID="65dd09e4-4569-40af-bb49-5c7758263e30" TYPE="ext4"
/dev/sdd1: UUID="203163f8-7f74-4fa0-938b-b0b20a26b5af" TYPE="ext4"
/dev/sda20: LABEL="keyrefuge" UUID="76955cd6-1064-475d-ad0e-ea222f3efd4b" TYPE="ext4"
/dev/sda22: LABEL="dqmdbg" UUID="71993dec-0052-56c4-9b30-a646bd294f8a" TYPE="ext4"
/dev/sda3: LABEL="efs" UUID="431de1e5-f589-50cc-bf14-fdc7f27707cf" TYPE="ext4"
/dev/sda27: LABEL="product" UUID="c9cf8fe5-732a-55d6-8caf-9a4bb2ac66f9" TYPE="ext4"
/dev/sda29: LABEL="omr" UUID="cc205bd2-20b6-5ce2-b716-86bce1113e9c" TYPE="ext4"
/dev/sda7: LABEL="sec_efs" UUID="66c7adfc-da49-5d08-8f25-9dfd335eaec7" TYPE="ext4"
/dev/sda31: LABEL="data" UUID="ab62febf-9274-47b9-9c75-860588d556b8" TYPE="ext4"
/dev/sda21: LABEL="keydata" UUID="8cdb7f2b-2075-4291-8c94-54601487db0a" TYPE="ext4"
For the
fdisk -ul
command:
Note: sector size is 4096 (not 512)
Found valid GPT with protective MBR; using GPT
Disk /dev/sda: 249888768 sectors, 1280M
Logical sector size: 4096
Disk identifier (GUID): 52444e41-494f-2044-4d4d-43204449534b
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 31236090
Number Start (sector) End (sector) Size Name
1 1024 2175 4608K bota0
2 2176 4095 7680K bota1
3 4096 9215 20.0M efs
4 9216 11263 8192K param
5 11264 13311 8192K up_param
6 13312 13439 512K keystorage
7 13440 18559 20.0M sec_efs
8 18560 20607 8192K bota2
9 20608 21631 4096K steady
10 21632 22143 2048K uh
11 22144 23167 4096K uhcfg
12 23168 25215 8192K dtb
13 25216 27263 8192K dtbo
14 27264 41343 55.0M boot
15 41344 57855 64.5M recovery
16 57856 70655 50.0M radio
17 70656 70911 1024K nad_refer
18 70912 71039 512K persistent
19 71040 71295 1024K misc
20 71296 75391 16.0M keyrefuge
21 75392 79487 16.0M keydata
22 79488 83583 16.0M dqmdbg
23 83584 83599 65536 vbmeta
24 83600 83967 1472K bota3
25 83968 1543167 5700M system
26 1543168 1824767 1100M vendor
27 1824768 1983487 620M product
28 1983488 2137087 600M cache
29 2137088 2149887 50.0M omr
30 2149888 2151167 5120K cp_debug
31 2151168 31234815 110G userdata
Note: sector size is 4096 (not 512)
Disk /dev/sdb: 4 MB, 4194304 bytes, 8192 sectors
128 cylinders, 1 heads, 8 sectors/track
Units: sectors of 1 * 4096 = 4096 bytes
Disk /dev/sdb doesn't contain a valid partition table
Note: sector size is 4096 (not 512)
Disk /dev/sdc: 4 MB, 4194304 bytes, 8192 sectors
128 cylinders, 1 heads, 8 sectors/track
Units: sectors of 1 * 4096 = 4096 bytes
Disk /dev/sdc doesn't contain a valid partition table
Note: sector size is 4096 (not 512)
Found valid GPT with protective MBR; using GPT
Disk /dev/sdd: 16384 sectors, 64.0M
Logical sector size: 4096
Disk identifier (GUID): 52444e41-494f-2044-4d4d-43204449534b
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 2042
Number Start (sector) End (sector) Size Name
1 6 1541 6144K cpefs
Note: sector size is 4096 (not 512)
Disk /dev/sde: 8 MB, 8388608 bytes, 16384 sectors
128 cylinders, 1 heads, 16 sectors/track
Units: sectors of 1 * 4096 = 4096 bytes
Disk /dev/sde doesn't contain a valid partition table
deviceinfo adaptations (added to the existing)
deviceinfo_flash_method="heimdall-bootimg"
deviceinfo_flash_sparse="true"
deviceinfo_flash_heimdall_partition_vbmeta="VBMETA"
Help would be appreciated, to find and mount the correct boot partition / image.
Further remarks:
The partition is not in the isorec format (see wiki isorec) The STOCK rom is from sammobile.
file ./sharedFolder/boot.img
./sharedFolder/boot.img: Android bootimg, kernel (0x10008000), ramdisk (0x11000000), page size: 2048, cmdline (buildvariant=userdebug)