How boot Alpine Linux
#1
I have tow-boot installed and Alpine with linux-lts package that has pinephone files:


Code:
/boot/dtbs-lts/allwinner/sun50i-a64-pinephone-1.0.dtb
/boot/dtbs-lts/allwinner/sun50i-a64-pinephone-1.1.dtb
/boot/dtbs-lts/allwinner/sun50i-a64-pinephone-1.2.dtb




When booting I have aqua led and no vibration and it is stuck there.



I think that pmOS uses grub + tow-boot for the PPP.


Can I use do that too in order to boot? Alpine (default) script installed grub.




Can I use p-boot? I have GPT partition table.
  Reply
#2
1. If you're going to be doing this kind of experimentation you should be monitoring the boot logs via the serial console. (Serial is outputted to the headphone jack. You can either purchase the official serial adapter from the pine store or make your own from any 3.3V UART adapter and a pair of old/broken wired headphones based on this pinout.)

2. You need the right kernel. On pmOS the package was linux-megi and later linux-postmarketos, i.e. kernels built specifically for the PinePhone. I don't think you can just grab the ARM version of linux-lts and have it work.
  Reply
#3
Why would you want to use Alpine directly instead of postmarketOS, which is Alpine ported to the device? (If your issue is systemd: the postmarketOS sxmo edition does not use systemd, and you can also roll your own edition through pmbootstrap and opt out of systemd that way.)
  Reply
#4
1. I see can I maybe write the log in a file so that I can check it later?

2. I thought about using pmOS kernel as in Artix I use Danctnix (Arch) kernel. Then I will need to use also some config.

pmOS uses different initram and they are going systemd.
Also they cannot use btrfs + FDE, right?
Admittedly Alpine initram does have an option to customize boot yet, e.g. adding unl0kr for FDE.

By switching to system they betrayed Alpine users https://www.alpinelinux.org/:
Quote:Small. Simple. Secure.
  Reply
#5
(09-20-2024, 05:26 AM)realroot Wrote: pmOS uses different initram and they are going systemd.

Maybe read the announcement[url=https://postmarketos.org/blog/2024/03/05/adding-systemd/][/url] again, it's already in the title: They are adding systemd, not switching to it. And:

Quote:Don't worry, as long as OpenRC is in Alpine Linux (on which postmarketOS is based), you will still be able to select it in pmbootstrap when building your own images.


Now, granted, that's from March. But nothing changed since, and, even at this point in time, you really need to jump through some hoops if want to use systemd with Alpine. All standard images are still "systemd free" if you will.

In regard to
Quote:Also they cannot use btrfs + FDE, right?

I know that pmbootstrap install has a --filesystem option. I've never tried it, but I don't see why combining --fde and --filesystem btrfs should be impossible; so maybe just try

Code:
pmbootstrap install --fde --filesystem btrfs

Hope this helps!
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tow boot MTXP 5 1,839 08-22-2024, 03:11 AM
Last Post: Pavlos1
  Pinephone won't boot. spha 13 6,324 05-15-2024, 10:31 PM
Last Post: Richy_T
  Pinephone boot. Richy_T 5 1,785 05-15-2024, 03:35 PM
Last Post: Richy_T
  PinePhone - boot from microSD laserpyramid 9 3,260 05-03-2024, 10:09 AM
Last Post: laserpyramid
  PinePhone Doesn't Boot LED Doesn't Show Any Signs When Charging dorkydev 1 1,174 04-02-2024, 11:50 AM
Last Post: Kevin Kofler
  Linux Kernel development Uturn 10 3,800 11-09-2023, 08:46 AM
Last Post: Kevin Kofler
  Boot screen stuck at 'K' because of firmware deleted. poundantisec 9 7,030 08-28-2023, 11:38 AM
Last Post: fxc
  New Pinephone is dead. eMMC, boot, hardware issues. Shane 4 2,425 05-10-2023, 03:31 AM
Last Post: fxc
  UPDATED (June 2021): 17-distro multi-boot image for Pinephone (incl. 3GiB variant) megous 182 282,013 03-05-2023, 11:04 AM
Last Post: Eugo
Sad New PinePhone won't boot 9/10 times - Screen is on but stays black :( dante404 8 6,866 02-03-2023, 01:27 AM
Last Post: dante404

Forum Jump:


Users browsing this thread: 1 Guest(s)