immortalwrt/target/linux/rockchip
Justin Klaassen f4da20840e
rockchip: fix boot from non-MMC devices
Booting from non-MMC devices on Rockchip targets without this
change results in a boot failure:

Model: FriendlyElec NanoPi R5S
Net:   eth0: ethernet@fe2a0000
Hit any key to stop autoboot:  0
** Booting bootflow 'nvme#0.blk#1.bootdev.part_1' with script
** No partition table - mmc 0 **
** No partition table - mmc 0 **
Couldn't find partition mmc 0:1
Can't set block device
Wrong Image Type for bootm command
ERROR -91: Protocol wrong type for socket: can't get kernel image!
Boot failed (err=1)

This change fixes the default boot script for Rockchip targets to
support booting from non-MMC devices such as NVMe or USB drives.

Some targets with only a boot rom (e.g. NanoPi R5S) may require u-boot
to be installed on the eMMC or a MicroSD card in order to boot from
non-MMC devices.

Fixes: #14420
Reviewed-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Justin Klaassen <justin@tidylabs.app>
(cherry picked from commit 4d49ce1bde)
2024-01-26 13:02:36 +08:00
..
armv8 rockchip: make SMP affinity of RTL8152 on XHCI more robust 2023-12-17 12:55:24 +08:00
files rockchip: remove Hinlink support 2023-09-20 11:10:58 +08:00
files-5.15 rockchip: fix rk356x pcie msg interrupt name 2023-12-10 16:58:38 +08:00
image rockchip: fix boot from non-MMC devices 2024-01-26 13:02:36 +08:00
patches-5.15 rockchip: backport upstreamed fixes for orangepi r1 plus lts 2023-12-27 12:51:35 +08:00
Makefile target: build with luci by default 2023-05-21 21:58:42 +08:00
modules.mk rockchip: modules: fix typo error 2022-08-27 10:40:01 +08:00