cannot boot SD card : "unable to select a mode"
#1
Hi!

I have U-Boot installed on SPI and Gentoo Linux running on eMMC.
I would like to be able to boot from SD card for maintenance purposes.

The boot order is this by default :
Code:
altbootcmd=setenv boot_syslinux_conf extlinux/extlinux-rollback.conf;run distro_bootcmd
boot_scripts=boot.scr.uimg boot.scrboot_syslinux_conf=extlinux/extlinux.conf
boot_targets=mmc1 mmc0 nvme0 usb0 pxe dhcp sf0
bootcmd=run distro_bootcmd
distro_bootcmd=setenv nvme_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done


So it should be: sd card, eMMC, nvme, usb, pxe, ...

but when I boot, U-Boot try to initilize the SD card and fails "unable to select a mode", then continues to eMMC:
Code:
The system is going down for reboot NOW!
pbp ~ #
U-Boot TPL 2020.07-pcm720-00007-g132da38490 (Jul 20 2020 - 20:40:04)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...

U-Boot SPL 2020.07-pcm720-00007-g132da38490 (Jul 20 2020 - 20:40:04 +0300)
Trying to boot from SPI
NOTICE:  BL31: v2.3(release):v2.3-353-gae72c4d5e
NOTICE:  BL31: Built : 20:39:57, Jul 20 2020


U-Boot 2020.07-pcm720-00007-g132da38490 (Jul 20 2020 - 20:40:04 +0300)

SoC: Rockchip rk3399
Reset cause: RST
Model: Pine64 Pinebook Pro
DRAM:  3.9 GiB
PMIC:  RK808
MMC:  mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
In:    serial
Out:  serial
Err:  serial
Model: Pine64 Pinebook Pro
Net:  No ethernet found.
Hit any key to stop autoboot:  0
unable to select a mode
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
651 bytes read in 18 ms (35.2 KiB/s)
## Executing script at 00500000
===========================
=== GENTOO LINUX (eMMC) ===
===========================
Boot script loaded from mmc 0
25088512 bytes read in 1104 ms (21.7 MiB/s)
61463 bytes read in 22 ms (2.7 MiB/s)
## Flattened Device Tree blob at 01f00000
  Booting using the fdt blob at 0x1f00000
  Loading Device Tree to 00000000f4e8c000, end 00000000f4f03fff ... OK

Starting kernel ...

pbp login:


I've tried many different OS : manjaro, dietpi, and same result:
Code:
=> mmc dev 1
unable to select a mode

==== unplug SD card ; replug it


=> mmc dev 1                 
switch to partitions #0, OK
mmc1 is current device
=> mmc part

Partition Map for MMC device 1  --  Partition Type: DOS

Part Start Sector Num Sectors UUID Type
** Can't read partition table on 1:0 **

but Linux can read the SD card and the contents. The partition table is MBR, boot partition 1 is in FAT or EXT2 and marked as active.

I will try an other SD card...

SOLVED: I change the SD card and now it boots first on it, then the eMMC.
Kind regards,
Xavier Miller.
  Reply


Messages In This Thread
cannot boot SD card : "unable to select a mode" - by alchemist - 06-18-2021, 02:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cant boot into an OS trashtendenz 3 672 10-23-2024, 03:49 AM
Last Post: chaylengordon
  Unable to use umlaut key combos ili 2 373 10-01-2024, 01:36 PM
Last Post: ili
  3 days in, slow/stuck or no boot. lgmpbp2 30 3,728 09-05-2024, 08:49 AM
Last Post: lgmpbp2
  Unable to boot? YossiS 4 389 09-04-2024, 10:35 AM
Last Post: wdt
  upgrading u-boot--what version? where to get it? bsammon 11 2,614 05-22-2024, 09:33 AM
Last Post: wdt
  uboot wont boot to SD card after upgrade jbradley419 7 2,283 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 630 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 3,724 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 1,470 12-13-2023, 08:17 PM
Last Post: trillobite
  Various freezes during boot & while running several Linux distros - hardware error? donuts 1 1,046 11-22-2023, 11:47 AM
Last Post: fxc

Forum Jump:


Users browsing this thread: 1 Guest(s)