[Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present
#1
I'm running ManjaroARM on my PBP. The OS is installed on the eMMC storage. I also have an SD card permanently installed for extra space. Both the eMMC and the SD card have DOS-format partition tables. The SD card is not bootable; the space reserved for a bootloader (in between the MBR and the partition) is zeroed. The SPI flash is blank.

This arrangement used to work fine, but ever since the most recent update to u-boot from Manjaro's official repositories, the laptop won't boot with the SD card present.  This is a complete console log:

Code:
U-Boot 2021.10-2 (Dec 25 2021 - 16:31:17 +0000) Manjaro Linux ARM SoC: Rockchip rk3399 Reset cause: POR Model: Pine64 Pinebook Pro DRAM: 3.9 GiB PMIC: RK808 MMC: mmc@fe31000: 3, mmc@fe320000: 1, mmc@fe330000: 0 Loading Environment from SPIFlash... SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB *** Warning - bad CRC, using default environment In: serial Out: vidconsole Err: vidconsole Model: Pine64 Pinebook Pro Net: No ethernet found starting USB... Bus usb@fe3a0000: USB OHCI 1.0 Bus usb@fe3e0000: USB OHCI 1.0 scanning bus usb@fe3a0000 for devices... 2 USB Device(s) found scanning bus usb@fe3e0000 for devices... 3 USB Device(s) found scanning usb for storage devices: 0 Hit any key to stop autoboot: 0 Device 0: unknown device switch to partition #0, OK mmc1 is current device Scanning mmc 1:1 libfdt fdt_check_header: FDT_ERR_BADMAGIC Card did not respond to voltage select! : -110 Scanning disk mmc@fe310000.blk Disk mmc@fe310000.blk not ready Scanning disk mmc@fe320000.blk Scanning disk mmc@fe330000.blk Found 6 disks No EFI system partition BootOrder not defined EFI boot manager: unknown image

followed by a whole bunch of spew about also being unable to boot off the network (as expected) and a => prompt.

If the SD card is not present, everything is the same up till the "Hit any key to stop autoboot" prompt, after which I get

Code:
Device 0: unknown device Card did not respond to voltage select! : -110 switch to partition #0, OK mmc0(part 0) is current device Scanning mmc 0:1 Found /extlinux/extlinux.conf Retrieving file: /extlinux/extlinux.conf 204 bytes read in 14 ms (13.7 KiB/s) 1: Manjaro ARM Retrieving file: /initramfs-linux.img 7005870 bytes read in 320 ms (20.9 MiB/s) Retrieving file: /Image ... etc, etc ...

and the machine boots normally.

So what this looks like to me is that u-boot is no longer falling back to booting from the internal eMMC if the SD card is unbootable. How can I persuade it to start doing that again? It's really annoying to have to pop the SD card out every time I start up the laptop and then put it back after it's booted.
  Reply
#2
Hello,
To resolve this, you can try the following steps:

1. Access U-Boot environment: Interrupt the boot process by pressing any key when you see the "Hit any key to stop autoboot" prompt. This should drop you into the U-Boot command prompt.

2. Check boot targets: Run the following command to display the current boot targets and their order:


Code:
excel => printenv boot_targets

Ensure that the eMMC is listed as one of the boot targets and that it has the appropriate priority. If it's not present or has a lower priority than the SD card, you'll need to modify the boot order.

3. Modify boot order: Use the setenv command to modify the boot order and prioritize the eMMC. For example, if the eMMC is assigned to mmc0 and the SD card is assigned to mmc1, you can set the boot order with the following command:


Code:
excel => setenv boot_targets "mmc0 mmc1"

This sets the boot order to prioritize the eMMC (mmc0) over the SD card (mmc1).

4. Save changes: Save the modified boot order to the U-Boot environment by running the following command:


Code:
excel => saveenv

This will save the changes and update the U-Boot environment variables.

5. Reboot: Exit the U-Boot command prompt and reboot the system to test the changes. You should now observe whether the system boots from the eMMC when the SD card is present but unbootable.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Boot Order in Pinebook Pro food 12 18,839 05-25-2026, 08:28 AM
Last Post: finmark
  PulseAudio dropouts after Manjaro Testing 2025.07.26 update Dendrocalamus64 2 4,606 08-08-2025, 02:39 PM
Last Post: Dendrocalamus64
  pbp with manjaro arm seems to not find any hardware[no wifi, blutooth or battery] frank_philip 4 6,284 03-15-2025, 01:47 AM
Last Post: frank_philip
  PBP does not start from postmarket OS image burnt to sd card zkajdan 21 17,946 03-10-2025, 01:55 PM
Last Post: wdt
  new manjaro install: wlan0 stuck in setting network address zkajdan 5 7,391 02-19-2025, 12:49 PM
Last Post: zkajdan
  Pinebook pro won't boot after bootloader installation jwensouls 4 8,562 08-21-2024, 04:17 AM
Last Post: KC9UDX
  Manjaro Sway Theme Broken Eighty8 1 4,134 03-08-2024, 08:41 AM
Last Post: tophneal
Question Manjaro with Full Disk Encryption and GRUB dumetrulo 1 6,671 02-02-2024, 02:45 AM
Last Post: frankkinney
  Manjaro network problem late 2023 acruhl 1 4,021 01-19-2024, 11:32 PM
Last Post: Kevin Kofler
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 10,288 12-13-2023, 07:22 PM
Last Post: trillobite

Forum Jump:


Users browsing this thread: 1 Guest(s)