Moving to Tow-Boot: Towards Device-Independant Images
#1
https://blog.mobian.org/posts/2022/03/30...al-images/

So those are great news! I have just one question that was not there, can I flash tow-boot to my pine phone that has mobian installed? Or do I need to install mobian again on top of tow-boot?
  Reply
#2
Yes, you can install tow-boot in place of uboot on an existing mobian emmc install. I've just done it on mine which was installed via the installer image with encrypted rootfs. I just made sure mobian had a full upgrade and autoremove, which removed the old u-boot-sunxi package. I checked to see /boot/extlinux/extlinux.conf was present since that's what tow-boot will read to see what to boot, then followed the tow-boot installation instructions:

https://tow-boot.org/devices/pine64-pinephoneA64.html

It now boots emmc mobian as before by default, and volume up boots onto the usb disk mode that's similar to JumpDrive as the instructions say it should. I haven't tried booting uSD cards yet, and I don't think tow-boot can do anything about the A64 using a bootloader on the uSD first if one is present.
  Reply
#3
(04-13-2022, 06:02 AM)wibble Wrote: Yes, you can install tow-boot in place of uboot on an existing mobian emmc install. I've just done it on mine which was installed via the installer image with encrypted rootfs. I just made sure mobian had a full upgrade and autoremove, which removed the old u-boot-sunxi package. I checked to see /boot/extlinux/extlinux.conf was present since that's what tow-boot will read to see what to boot, then followed the tow-boot installation instructions:

https://tow-boot.org/devices/pine64-pinephoneA64.html

It now boots emmc mobian as before by default, and volume up boots onto the usb disk mode that's similar to JumpDrive as the instructions say it should. I haven't tried booting uSD cards yet, and I don't think tow-boot can do anything about the A64 using a bootloader on the uSD first if one is present.

I have the mobian with fde too installed with the installer, I tried running full upgrade and autoremove, but there was not the u-boot-sunxi package to be purged. Howeven I proceed with the tow-boot instructions and everythings works fine. It looks like u-boot will be removed in the next days/weeks, I don't understand why it was already available to be removed with autoremove on your device.
  Reply
#4
There was a query about it appearing for autoremove a while back - search seems to be returning nothing at the moment or I would have linked to it. I hadn't done a full-update / autoremove in a while so had some catching up to do, but if you've been running it frequently u-boot-sunxi may have been removed already. It won't actually make any difference to tow-boot though, as you've found. If you've still got it and want to know what's still pulling it in you could install apt-rdepends to list reverse dependencies.
  Reply
#5
(04-14-2022, 06:49 AM)wibble Wrote: There was a query about it appearing for autoremove a while back - search seems to be returning nothing at the moment or I would have linked to it. I hadn't done a full-update / autoremove in a while so had some catching up to do, but if you've been running it frequently u-boot-sunxi may have been removed already. It won't actually make any difference to tow-boot though, as you've found. If you've still got it and want to know what's still pulling it in you could install apt-rdepends to list reverse dependencies.

Just checked, it's not installed anymore...probably was removed lately. Howver reading again the post of mobian blog, they said it's possible to remove u-boot-*, but trying to do so also asks to remove a lot of mobian system packages, so I believe we just have to wait, and those u-boot packages not necessary anymore will arrive at autoremove, right?
  Reply
#6
u-boot-menu is still required according to the FAQ in the blog post, so if you tried removing u-boot-* that might explain why it wanted to remove others. Use apt-rdepends if you really want to find out what's keeping each one from being autoremoved.
  Reply
#7
(04-15-2022, 05:41 AM)wibble Wrote: u-boot-menu is still required according to the FAQ in the blog post, so if you tried removing u-boot-* that might explain why it wanted to remove others. Use apt-rdepends if you really want to find out what's keeping each one from being autoremoved.

Thanks, I will try that!
  Reply
#8
I think I'm going to give Tow-Boot a try and will do a full image backup of the eMMC first just in case something goes horribly wrong. It would also be nice to have a backup of just uboot using dd - what is uboot's offset and size on the eMMC?
  Reply
#9
Just to followup, I installed Tow-Boot this morning and it worked out fine. The USB mass storage mode works well and that will make it a lot more convenient for image backups and to copy files back and forth between a PC and the Pinephone. (However, it only exposes the eMMC, not the SD card if you're using that for additional storage.)

A minor point is that the power-on LED is now red instead of green which is a little disconcerting since red makes my hindbrain automatically see "error condition" (Red Alert!). Not a big deal, just something to get used to.
  Reply
#10
(04-18-2022, 08:44 AM)Zebulon Walton Wrote: A minor point is that the power-on LED is now red instead of green which is a little disconcerting since red makes my hindbrain automatically see "error condition" (Red Alert!). Not a big deal, just something to get used to.

Thanks for the report, you no doubt saved me some moments of anxiety. Big Grin
Cheers,
TRS-80

What is Free Software and why is it so important for society?

Protocols, not Platforms

For the most Linux-y experience on your Linux phone, try SXMO!

I am (nominally) the Armbian Maintainer for PineBook Pro (although severely lacking in time these days).
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 1,712 11-22-2023, 11:46 AM
Last Post: aLoop100o
  How to check if tow-boot is installed? jojuma 3 805 09-29-2023, 11:29 PM
Last Post: tllim
  Mobian boot failed with zstd message after upgrade. Mahgue 0 581 09-01-2023, 11:29 AM
Last Post: Mahgue
  Moving to trixie user641 7 1,807 07-09-2023, 06:05 AM
Last Post: user641
  4G data on default startup / boot dcinoz 1 771 04-29-2023, 11:24 PM
Last Post: dcinoz
  PinePhone won't boot after software update jb2000 2 1,249 03-17-2023, 07:26 AM
Last Post: Zebulon Walton
  Boot log analyses -> GPU no regulator (mali) found freelectro 0 902 03-06-2023, 12:06 PM
Last Post: freelectro
  boot gets stuck shortly after disk decryption vortex 8 3,767 02-13-2023, 02:11 AM
Last Post: sharase
  [solved] Black screen at boot time mdk 0 960 01-13-2023, 03:33 AM
Last Post: mdk
  No boot after upgrade: vibration, red LED, then 2 vibrations and yellow LED 3x5co 1 922 01-04-2023, 06:46 PM
Last Post: 3x5co

Forum Jump:


Users browsing this thread: 1 Guest(s)