Pmbootstrap: Flashing zip to Samsung SGH-i927

Created on 13 Jun 2018  路  8Comments  路  Source: postmarketOS/pmbootstrap

Action taken: Attempted to flash recovery zip using TWRP
Error(s):

  • parted -s /dev/block/mmcblk0p2 'mktable msdos'
    Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/block/mmcblk0p2 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
  • mkfs.ext4 -O ^metadata_csum -L pmOS_root /dev/mapper/mmcblk0p2p2
    mke2fs 1.44.2 (14-May-2018)
    The file /dev/mapper/mmcblk0p2p2 does not exist and no size was specified.

I rebooted and attempted flashing again, with no change.
pmos.log: https://pastebin.com/r9eux0pS

Edit: I forgot to mention, the zip I am flashing was created when @Moocow9m closed issue #1551 using PR #1556, in case that adds any helpful information

android-recovery-zip bug

All 8 comments

Thanks for reporting! As a workaround: does it work after rebooting the device and running the installation again?

CC: @ata2001: I haven't looked into this yet, maybe we can work around this by calling partprobe manually like we do in the Python install code?

Rebooting has no effect, log output stays the same

@arccot: After the installation fails there, can you give us the output of mount?

You could do that with piping it into a file and then copying that via adb:

$ mount > /mount_output

If mount is not available:

$ cat /proc/mounts > /mount_output

mount > /external_sd/mount_output
https://pastebin.com/DEQvhsdC

Thanks for uploading the log!
I can't find a clue in there unfortunately, but here are more questions:

  • What does ls -la /dev/mapper give you?
  • Can you dump the kernel config of your recovery OS? (copy the /proc/config.gz file via adb in case it exists)

ls -la /dev/mapper:

__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
drwxr-xr-x    2 root     root            60 Jun 18 16:13 .
drwxr-xr-x   12 root     root          4080 Jun 18 16:13 ..
crw-------    1 root     root       10, 236 Jun 18 16:13 control

config.gz

Thanks again. Okay, I couldn't find anything suspicious in the kernel config. Could you provide the output of ls -la /dev/block as well?

Regarding partprobe, I have found out, that the non-busybox partprobe does things differently than partprobe (see this comment). That means if the regular partprobe is broken with your particular kernel, it _might_ be worth using busybox partprobe /dev/block/mmcblk0 (@ata2001: how would we call that from the TWRP terminal? and do you have an idea?)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ollieparanoid picture ollieparanoid  路  3Comments

MartijnBraam picture MartijnBraam  路  6Comments

fynngodau picture fynngodau  路  3Comments

ata2001 picture ata2001  路  3Comments

zhuowei picture zhuowei  路  4Comments