Launching OS in the SD card from p-boot in MMC
#1
Hi,

I'm using p-boot as the boot loader and it's awesome. Much more convenient and easy than UBoot.

I thought I could have an SD card inserted with an OS but without a boot sector and install p-boot to the MMC card and have two boot entries, one to boot the MMC OS and the other for the SD one, so I can easily switch between both OSs without having to remove and insert the SD card.

I almost got it working. So although the SD card is inserted, since it doesn't have a boot sector, the boot sequence fails back to MMC and loads p-boot with the boot entries for MMC and SD. The MMC one works and boots the MMC OS, but the SD one just leads to a black screen.

This is my boot.conf file:

Code:
no          = 0
  name      = MMC card
  atf       = ../../usr/share/p-boot/fw.bin
  dtb       = ../../boot/dtbs/5.12.19-MANJARO-ARM/allwinner/sun50i-a64-pinephone-1.2.dtb
  linux     = ../../boot/vmlinux-5.12.19-MANJARO-ARM
  bootargs  = loglevel=4 console=tty0 console=ttyS0,115200 earlycon=uart,mmio32,0x01c28000 consoleblank=0 root=PARTUUID=dffd8215-02 rw rootwait quiet bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
  splash    = ../../usr/share/p-boot/pboot2.argb

no          = 1
  name      = SD card
  atf       = ../../usr/share/p-boot/fw.bin
  dtb       = ../../boot/dtbs/5.12.19-MANJARO-ARM/allwinner/sun50i-a64-pinephone-1.2.dtb
  linux     = ../../boot/vmlinux-5.12.19-MANJARO-ARM
  bootargs  = loglevel=4 console=tty0 console=ttyS0,115200 earlycon=uart,mmio32,0x01c28000 consoleblank=0 root=PARTUUID=42516a04-02 rw rootwait quiet bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
  splash    = ../../usr/share/p-boot/pboot2.argb

I tried using either the PARTUUID as the root parameter as shown above or also /dev/mmcblk0p2, but none of them worked.

What am I doing wrong? Or am I trying something impossible?
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't boot on SD anymore LeNouveau 1 812 02-12-2024, 01:05 PM
Last Post: LeNouveau
  Does Ubuntu modify a Pinephone SD boot card? Peter Gamma 0 1,234 10-05-2023, 09:18 AM
Last Post: Peter Gamma
  External SD card not listed by Pcmanfm? Peter Gamma 1 2,011 08-22-2023, 12:22 PM
Last Post: Peter Gamma
  Tow-boot headaches. antiwesley 3 2,088 04-30-2023, 05:03 PM
Last Post: Kevin Kofler
  problem with boot evaldas 2 2,698 03-17-2023, 06:21 AM
Last Post: gulshan212
  Article: NuttX RTOS for PinePhone: Boot to LVGL lupyuen 2 2,357 01-23-2023, 10:41 PM
Last Post: lupyuen
  tow-boot shulamy 2 2,127 09-08-2022, 12:33 AM
Last Post: shulamy
  Device memory full on multi-boot SD card Peter Gamma 4 3,483 08-27-2022, 10:03 AM
Last Post: Eugo
  wiping u-boot off sd card shulamy 6 3,884 08-17-2022, 03:38 AM
Last Post: shulamy
  Change tow-boot boot order or otherwise make Mobian on uSD the default? allworlds 3 3,033 05-04-2022, 06:27 PM
Last Post: allworlds

Forum Jump:


Users browsing this thread: 1 Guest(s)