postmarketOS/Alpine edge image for the Pinebook Pro
#51
(05-25-2020, 04:05 AM)pmjohann Wrote:
(05-23-2020, 02:39 PM)digeratus1. Wrote: I've been running postmarketOS exclusively since the end of March without issues. Well, one of issue - sound - but that was my fault. Are you using the default image from March? Also, had you already performed the trackpad firmware update to your PBP?

Forgot to add that NO I did not perform any firmware updates previously

Not sure if you have Manjaro 20.04 around in an SD card. If you do, their keyboard/trackpad update process is quite nice. Check the thread with instructions here:
https://forum.manjaro.org/t/how-to-flash.../112366/21

Once you update the firmware it shouldn't matter what distro you use, it will work across them all.
  Reply
#52
(05-26-2020, 02:07 PM)digeratus1. Wrote:
(05-25-2020, 04:05 AM)pmjohann Wrote:
(05-23-2020, 02:39 PM)digeratus1. Wrote: I've been running postmarketOS exclusively since the end of March without issues. Well, one of issue - sound - but that was my fault. Are you using the default image from March? Also, had you already performed the trackpad firmware update to your PBP?

Forgot to add that NO I did not perform any firmware updates previously

Not sure if you have Manjaro 20.04 around in an SD card. If you do, their keyboard/trackpad update process is quite nice. Check the thread with instructions here:
https://forum.manjaro.org/t/how-to-flash.../112366/21

Once you update the firmware it shouldn't matter what distro you use, it will work across them all.
Thank you, I will try this and report back!
  Reply
#53
Hello everybody,

I have issues with running or booting the current postmarketOS from the eMMC.

I used pmbootstrap to generate a working installation on a SD card. This installation will boot fine as long as the eMMC is switched off by using the internal switch, or if there i a functional Manjaro on the eMMC.

However, dd'ing the SD card with a working postmarketOS installation to the eMMC will break booting on the Pinebook Pro. The only way to get around that was to turn off the eMMC, boot from an SD card with e.g. Manjaro on it, then hot-plugging the eMMC on and writing a functional Manjaro installation image back to the eMMC.

Any ideas how to get PostmarketOS running from the eMMC?
  Reply
#54
(06-11-2020, 09:35 AM)randomuser987987 Wrote: I have issues with running or booting the current postmarketOS from the eMMC.

Sounds like another issue with uboot, and you can see the forum is full of threads about it, too.
  Reply
#55
(06-11-2020, 02:06 PM)slyecho Wrote:
(06-11-2020, 09:35 AM)randomuser987987 Wrote: I have issues with running or booting the current postmarketOS from the eMMC.

Sounds like another issue with uboot, and you can see the forum is full of threads about it, too.

I believe so, too. I would love to understand how uboot actually works and especially how it works for the Pinebook Pro, but I couldn't find any on point tutorial.
  Reply
#56
(06-11-2020, 04:22 PM)randomuser987987 Wrote:
(06-11-2020, 02:06 PM)slyecho Wrote:
(06-11-2020, 09:35 AM)randomuser987987 Wrote: I have issues with running or booting the current postmarketOS from the eMMC.

Sounds like another issue with uboot, and you can see the forum is full of threads about it, too.

I believe so, too. I would love to understand how uboot actually works and especially how it works for the Pinebook Pro, but I couldn't find any on point tutorial.

What's your problem exactly? 1. Are you missing a conceptual overview, 2. knowledge about the boot process or 3. what it does?
  Reply
#57
(06-13-2020, 06:49 AM)matosys Wrote: What's your problem exactly? 1. Are you missing a conceptual overview, 2. knowledge about the boot process or 3. what it does?

Maybe all of them?
Things that are unclear to me:

- Which distro uses which uboot? Where is the code? It seems like pmos uses the original uboot with some patches for the LED.

- How do I actually compile it into a flashable image?

- Where can I configure things like boot order, boot target etc. in uboot?

- What is booting what? Why is there some extlinux appearing in the Manjaro distro? Uboot is booting syslinux which boots Linux? What is happening?
  Reply
#58
yeah, I can see your issue. Let's roll this up from the back:

U-Boot essentially is a firmware and boot loader. One can think of it as Grub+BIOS. It initializes the hardware and loads the kernel into memory.
ARM platforms look for the 64th block and start executing code from there. That's the reason why one has to seek the 64th block, when dd'ing
the firmware onto eMMC or SD.

U-Boot itself consists of 2 parts, a stage1 loader and the actual u-boot image.

The Boot ROM is pretty much a set of instructions that is often stored inside the CPU and gets loaded directly into the cpu at powerup to
initialize the absolute bare minimum hardware required, to enable the possibility to run any externally stored code.

This includes looking into the 64th block (exactly that one) of your boot drive after it's job is done. That's where the first stage of U-Boot
can be found, the stage1 loader. This loader is responsible for actually loading the U-Boot Binary into RAM. Essentially, this is the reason why
we need to 'seek=64' when we want to flash the first part of U-Boot onto SD or eMMC.

Since the Boot ROM does not initialize anything except the bare minimum, stage1's data needs to be stored in a FAT scheme, so we are very limited
in available storage space for stage1, which we have to use economically to set up everything required to load the U-Boot binary into RAM and
start running it. U-Boot is quite a bit larger than stage1 and that's the primary reason we have stage1. It's a small piece of executable
binary responsible for getting the system ready to run and load a larger piece of executable binary. That's why the boot process is often
described as pulling oneself out of a swamp at one's hairs. Again, we basically place the U-Boot binary in a specific location (2nd dd seek)
as a convention, so that stage1 loads the appropriate data into RAM. Keep in mind, that Stage1 is basically a dump fuck, it loads, whatever is
at that location and doesn't care, if it makes sense or not.

Inside the U-Boot binary is, where the magic is actually happening. This is, where device drivers are initially loaded and you can extend it in
any way you want. PXE Boot? Implement it here. USB boot? Initialize your USB controller, loading USB Drivers, initializing your NVMe ...here is
where it's done. Once you initialized your Hardware, U-Boot loads the kernel image into RAM and hands of controll to the kernel and your
specific init system (systemd, initd, whatever you're using). This is, why there are so many different versions of U-Boot. We got tailormade
versions of U-Boot per device since drivers and initialization varies according to the specific controllers and hardware in your system.

To summarize, the boot process looks like this:

Boot ROM ==> Stage1 ==> Stage2(actual u-boot) ==> kernel => init


For your standard PC, this would look like this:
Boot ROM ==> Firmware (BIOS/UEFI/libreboot/...) ==> bootloader ==> kernel ==> init

in comparison, UEFI or BIOS would do comparably more than Stage1 while the bootloader does less.


I hope that clears up a few of your questions.

(06-13-2020, 07:37 AM)randomuser987987 Wrote:
(06-13-2020, 06:49 AM)matosys Wrote: What's your problem exactly? 1. Are you missing a conceptual overview, 2. knowledge about the boot process or 3. what it does?

Maybe all of them?
Things that are unclear to me:

- Which distro uses which uboot? Where is the code? It seems like pmos uses the original uboot with some patches for the LED.

- How do I actually compile it into a flashable image?

- Where can I configure things like boot order, boot target etc. in uboot?

- What is booting what? Why is there some extlinux appearing in the Manjaro distro? Uboot is booting syslinux which boots Linux? What is happening?

Oh and about the configuration thing: yes, you *can* with enough expertise. Just like people forked a u-boot version to add NVMe as a boot option.

If you expect something like a BIOS, I have to disappoint you
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pinebook pro tools xmixahlx 23 1,919 4 hours ago
Last Post: Odel
  Kali Linux for Pinebook Pro Luke 71 9,051 Yesterday, 08:48 AM
Last Post: Alstroplane
  Arch ARM iso for Pinebook Pro hanmorten 0 53 07-02-2020, 02:10 PM
Last Post: hanmorten
  Pinebook Pro bricked? wofam 10 353 07-02-2020, 06:59 AM
Last Post: cefre00
  An unofficial Debian Installer for Pinebook Pro danielt 363 42,308 06-29-2020, 08:22 PM
Last Post: xmixahlx
  slarm64 (unofficial slackware) Pinebook Pro RK3399 (aarch64) mara 0 101 06-29-2020, 12:34 PM
Last Post: mara
  Pinebook Pro not Booting at All eMMC or MicroSD AstroCEO 18 726 06-26-2020, 01:04 PM
Last Post: tophneal
  Linux 5.7 on Pinebook Pro decisivedove 12 1,130 06-25-2020, 04:02 PM
Last Post: decisivedove
  Can't boot up Manjaro 20.04 eMMc image from SD card... rick1959 25 705 06-23-2020, 07:27 PM
Last Post: nathanielwheeler
  ayufan Ubuntu Mate 0.9.14 black screen boot on new Pinebook Pro EricL 3 346 06-22-2020, 09:45 PM
Last Post: trinapicot

Forum Jump:


Users browsing this thread: 1 Guest(s)