12-16-2022, 07:50 PM
Well - it almost worked.
The first gotcha was that I created the new ext4 filesystem using the old UUID but did not do that for the LUKS encrypted partition. (With full disk encryption it's the UUID of the LUKS encrypted partition that is looked for at boot time.) Once that was fixed using cryptsetup the phone booted up and everything seemed to be there. The boot partition is now 512MB, which should be plenty.
BUT - now the phone "thinks" the battery is at 0% charge so the modem and wifi will not come online. The last kind of problem I expected. I have two batteries and that's the case with both. Also the phone does boot up and otherwise run on the battery.
Spot-checking applications they seem to launch OK, except megapixels which bombs out saying it "could not find a /dev/media* node matching sun6i-csi". Checking. there are no /dev/media* files at all. Maybe a similar problem for the battery (device node missing)? Additionally when using the volume control it says the output device is "dummy output". So it does look like there is a device node problem going on here. Not sure why this would be since /dev entries have been created dynamically at boot time on Linux systems for a long time now. Expected entries for the eMMC and many other devices are there.
I had copied the backed-up Mobian system to the new filesystem using "cp -a" (the archive flag) to copy everything from the root of the drive while preserving permissions, so there should not be anything missing. Everything was done from a desktop Linux system with the phone connected via USB to access the eMMC.
Not sure what's going on here. If I can't figure it out will have to restore my image backup. In the meantime it's back to my emergency SD card.
The first gotcha was that I created the new ext4 filesystem using the old UUID but did not do that for the LUKS encrypted partition. (With full disk encryption it's the UUID of the LUKS encrypted partition that is looked for at boot time.) Once that was fixed using cryptsetup the phone booted up and everything seemed to be there. The boot partition is now 512MB, which should be plenty.
BUT - now the phone "thinks" the battery is at 0% charge so the modem and wifi will not come online. The last kind of problem I expected. I have two batteries and that's the case with both. Also the phone does boot up and otherwise run on the battery.
Spot-checking applications they seem to launch OK, except megapixels which bombs out saying it "could not find a /dev/media* node matching sun6i-csi". Checking. there are no /dev/media* files at all. Maybe a similar problem for the battery (device node missing)? Additionally when using the volume control it says the output device is "dummy output". So it does look like there is a device node problem going on here. Not sure why this would be since /dev entries have been created dynamically at boot time on Linux systems for a long time now. Expected entries for the eMMC and many other devices are there.
I had copied the backed-up Mobian system to the new filesystem using "cp -a" (the archive flag) to copy everything from the root of the drive while preserving permissions, so there should not be anything missing. Everything was done from a desktop Linux system with the phone connected via USB to access the eMMC.
Not sure what's going on here. If I can't figure it out will have to restore my image backup. In the meantime it's back to my emergency SD card.