<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openwrt/target/linux/rockchip/image/default.bootscript, branch HEAD</title>
<subtitle>OpenWrt Source Repository</subtitle>
<id>http://x-nagi.com/cgit/openwrt/atom?h=HEAD</id>
<link rel='self' href='http://x-nagi.com/cgit/openwrt/atom?h=HEAD'/>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/openwrt/'/>
<updated>2024-01-19T20:31:39Z</updated>
<entry>
<title>rockchip: fix boot from non-MMC devices</title>
<updated>2024-01-19T20:31:39Z</updated>
<author>
<name>Justin Klaassen</name>
<email>justin@tidylabs.app</email>
</author>
<published>2024-01-13T20:28:57Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/openwrt/commit/?id=4d49ce1bde84fdd83f0e9df5ec9c43f4ff2a0a9a'/>
<id>urn:sha1:4d49ce1bde84fdd83f0e9df5ec9c43f4ff2a0a9a</id>
<content type='text'>
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 &lt;cnsztl@immortalwrt.org&gt;
Signed-off-by: Justin Klaassen &lt;justin@tidylabs.app&gt;
</content>
</entry>
</feed>
