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?
  Reply
#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.
  Reply
#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?
  Reply
#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.
  Reply
#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
  Reply
#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.
  Reply
#7
Next stupid question:

I see that extlinux.conf defines a boot menu. Is the menu only available via serial console?
  Reply
#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
  Reply
#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...
  Reply
#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.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Official Debian images for the Pinebook Pro! tortwigginum 6 685 05-30-2020, 03:56 PM
Last Post: xmixahlx
  Slow WiFi on Manjaro Default Image 20.04 for PBP SuperUJ 8 258 05-28-2020, 08:16 PM
Last Post: nekojet
  postmarketOS/Alpine edge image for the Pinebook Pro MartijnBraam 51 5,097 05-28-2020, 07:07 AM
Last Post: pmjohann
  Pinebook Pro Temps? 65C while playing music via youtube w nothing but a static image jazzmans 4 210 05-26-2020, 10:54 AM
Last Post: xmixahlx
  An unofficial Debian Installer for Pinebook Pro danielt 343 34,064 05-25-2020, 01:30 AM
Last Post: e-minguez
  Better (than default Debian/MATE) Linux distro? mspohr 33 3,205 05-24-2020, 01:07 PM
Last Post: digeratus1.
  Using grub-image ? ScarFez 4 180 05-21-2020, 08:51 AM
Last Post: pgwipeout
  Link to the Official (from factory) manjaro image? gandlers 4 161 05-19-2020, 03:36 PM
Last Post: erchache2000
  Bricked PBP after writing image to eMMC? wvdschel 20 1,706 04-28-2020, 06:44 PM
Last Post: binholz
  Recalbox Image is available Luke 5 701 04-12-2020, 07:29 AM
Last Post: mschoolbus

Forum Jump:


Users browsing this thread: 1 Guest(s)