plasma-phone-packaging / pm-flashtool

Tool for Flashing PM as LXC Container on top of CM
44 stars 27 forks source link

Mounting /cache and /data fails #25

Open lezsakdomi opened 6 years ago

lezsakdomi commented 6 years ago

Device: Nexus 5X (no RPMB) Previous ecosystem (so vendor image): Android 8.1.0

I've unlocked bootloader, formatted data and cache, then ran ./pm-flash. The result:

((https://pastebin.com/pftSheqd)[blah blah])
++ readlink -f cache/pm-rootfs-latest.tar.gz
+ ./rootstock-touch-install /home/led/Downloads/pm-flashtool/cache/rootfs/pm-rootfs-20180306-104507.tar.gz cache/bullhead/latest/system.img cache/bullhead/latest/boot.img
mount: mounting /dev/block/mmcblk0p40 on /cache failed: Device or resource busy
mount: mounting /dev/block/mmcblk0p45 on /data failed: Device or resource busy
transfering rootfs tarball ... error: device '(null)' not found

and the script fails here.

When I mount these partitions manually from TWRP and then start rootstock-touch-install, I can still see the mount errors, but the script continues successfully. (https://pastebin.com/VgGSqWxA)

Note that it looks like, that when rootstock-touch-install started working, it looked like, my phone is just booting

Most probably the reboots into bootloader are causing the bug, because since i have no RBMP, the unlocked state gets lost after every reboot.

simonschmeisser commented 6 years ago

For me the mounting also failed but it worked anyway?

Could you explain what RBMP means in your case and why you don't have it?

jbruechert commented 6 years ago

You currently need to flash an android 7 vendor image before flashing Plasma Mobile, because the blobs are not compatible between android version and libhybris also only supports android 7 for now.

If you need USB debugging, you can use this script to set everything up for a ssh connection. (./connect.py -p ssh -u phablet while the device is booted). SSH also works if the Halium adaption doesn't start.

simonschmeisser commented 6 years ago

If you need USB debugging, you can use this script to set everything up for a ssh connection. (./connect.py -p ssh -u phablet while the device is booted). SSH also works if the Halium adaption doesn't start.

https://www.plasma-mobile.org/tips/ states that we can use $ ssh phablet@10.15.19.82

to connect to the device which to me sounds like it should be running a dhcp server, is that no longer true?

Update:

dhclient usb0 works, don't know why that doesn't happen per default (opensuse)

jbruechert commented 6 years ago

If dhcp works fine, that's even better :)

lezsakdomi commented 6 years ago

I could make it work manually. The problem is, that the script doesn't wait for the phone to became really up. Most probably because it sensed, that the phone is activebefore it went down for reboot

lezsakdomi commented 6 years ago

For more information about what the matter with RBMP is, please see this thread for example: https://www.reddit.com/r/nexus5x/com...rd_bootloader/

In short: The unlocked state does not persist across reboots. It's still possible to flash using TWRP or flash everything at once.