Booting with default debian image
#1
Is there a guide/ explanation of the boot sequence for dummies?

I can see "Image" and "Image.bak" in /boot/. I want to build a custom kernel based on mrfixit2001's code (with changed configuration), but I haven't found out yet to recover as painless as possible when things go south.

Is there a boot menu in u-boot or something?
#2
(11-06-2019, 04:36 AM)mfritsche Wrote: Is there a guide/ explanation of the boot sequence for dummies?

I can see "Image" and "Image.bak" in /boot/. I want to build a custom kernel based on mrfixit2001's code (with changed configuration), but I haven't found out yet to recover as painless as possible when things go south.

Is there a boot menu in u-boot or something?

The answer is slightly complicated because you have the system on chip with one setting and the uboot on emmc has another.

In the SoC, the order is emmc, sdcard

However the code on the emmc will switch to sdcard if it is bootable.
#3
(11-06-2019, 05:17 AM)evilbunny Wrote: In the SoC, the order is emmc, sdcard

However the code on the emmc will switch to sdcard if it is bootable.

Okay, that means the smart thing to do is try booting a sd card first?
#4
(11-06-2019, 12:15 PM)mfritsche Wrote:
(11-06-2019, 05:17 AM)evilbunny Wrote: In the SoC, the order is emmc, sdcard

However the code on the emmc will switch to sdcard if it is bootable.

Okay, that means the smart thing to do is try booting a sd card first?

Yes. Installing any other OS to eMMC, currently, will require either removing or activating the internal eMMC switch to boot from an SD.
#5
(11-06-2019, 12:35 PM)tophneal Wrote: Yes. Installing any other OS to eMMC, currently, will require either removing or activating the internal eMMC switch to boot from an SD.

There is a fix for that for the Ubuntu images here:

https://forum.pine64.org/showthread.php?...3#pid50903
#6
(11-06-2019, 02:02 PM)zaius Wrote:
(11-06-2019, 12:35 PM)tophneal Wrote: Yes. Installing any other OS to eMMC, currently, will require either removing or activating the internal eMMC switch to boot from an SD.

There is a fix for that for the Ubuntu images here:

https://forum.pine64.org/showthread.php?...3#pid50903

Thanks for pointing that out! I saw some posts alluding to a change in ayufan's uboot, but most were a few years old. I know what I'm installing once my USB adapter arrives!

EDIT: Anyone know if the uboot fix script only works on Debian/Ubuntu builds? I'm curious if I'd be able to use this script with Crouton on ChromiumOS.
#7
Next stupid question:

I see that extlinux.conf defines a boot menu. Is the menu only available via serial console?
#8
(11-07-2019, 02:51 AM)mfritsche Wrote: Next stupid question:

I see that extlinux.conf defines a boot menu. Is the menu only available via serial console?

Yes.

Hopefully this can change as the platform matures (u-boot can draw to framebuffers and listen to USB keyboards but it requires drivers and these don't exist just yet) but at present you need a serial port to interact with the boot menu.

A simple approach is to put your boot partition on an SD card since if you need to change kernel you can eject the card, boot from a eMMC and edit extlinux.conf .
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#9
(11-07-2019, 04:10 AM)danielt Wrote:
(11-07-2019, 02:51 AM)mfritsche Wrote: Next stupid question:

I see that extlinux.conf defines a boot menu. Is the menu only available via serial console?

Yes.

Hopefully this can change as the platform matures (u-boot can draw to framebuffers and listen to USB keyboards but it requires drivers and these don't exist just yet) but at present you need a serial port to interact with the boot menu.

A simple approach is to put your boot partition on an SD card since if you need to change kernel you can eject the card, boot from a eMMC and edit extlinux.conf .

Is this menu enabled by default in the debian image?

I'm in an unfortunate place where my emmc is stuck in a boot loop and preventing a boot from the sdcard. 

I can boot from the sd if i switch off the emmc, but then i can't write a fix back to it...
#10
If you have a USB c cable you can use rkflashtool to flash to your emmc. Refer to the wiki for the internal button that puts the PBP in mask tomorrow mode.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Official Debian support moonwalkers 64 64,176 07-08-2024, 01:40 PM
Last Post: Humid Stylus
  Debian on Pinebook Pro u974615 7 2,861 03-31-2024, 10:11 AM
Last Post: u974615
  Pinebook Pro upgrading from the factory image yamsoup 12 4,106 02-22-2024, 04:02 PM
Last Post: tllim
  Nethunter default password failed lamlarryyyy 0 709 11-23-2023, 02:48 AM
Last Post: lamlarryyyy
  install debian on pbp jsch 7 5,391 11-22-2023, 04:22 PM
Last Post: TRS-80
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 9,817 09-07-2023, 09:38 PM
Last Post: Der Geist der Maschine
  Issue with booting Manjaro from encrypted NVMe drive on pbp Cs137 1 1,364 08-18-2023, 01:58 AM
Last Post: juliamenendez
  Unable to install Debian Bullseye because of missing wifi firmware Pino64 7 5,362 07-15-2023, 02:58 PM
Last Post: u974615
  Fix for Armbian not booting on PBP from eMMC agreenbhm 7 5,255 04-01-2023, 02:58 PM
Last Post: TRS-80
Question Debian (Vanilla) no output on display after Kernel update (6.0.8-1) as365n4 1 1,649 12-09-2022, 12:43 PM
Last Post: as365n4

Forum Jump:


Users browsing this thread: 1 Guest(s)