Rockchip: bootloader: allow ROCKCHIP_LEGACY_BOOT to be passed from command line

Also document that option in README.md and drop the non-required U_BOOT_CONFIG form bootloader/install script
This commit is contained in:
Alex Bee 2023-02-11 09:44:11 +01:00
parent b0d02bc24a
commit d07974f0cc
3 changed files with 8 additions and 4 deletions

View File

@ -29,12 +29,16 @@ This project is for Rockchip SoC devices
* [ROC-RK3399-PC-PLUS](devices/RK3399) * [ROC-RK3399-PC-PLUS](devices/RK3399)
* [Rockchip Sapphire Board](devices/RK3399) * [Rockchip Sapphire Board](devices/RK3399)
**My single-board computer is not listed, will it be added in the future?**<br /> **My single-board computer is not listed, will it be added in the future?**<br>
If your single-board computer uses a current generation SoC listed on http://opensource.rock-chips.com/wiki_Main_Page the odds are in your favor. If your single-board computer uses a current generation SoC listed on http://opensource.rock-chips.com/wiki_Main_Page the odds are in your favor.
**My Android device is not listed, will it be added in the future?**<br /> **My Android device is not listed, will it be added in the future?**<br>
You may have luck if your device vendor is open source friendly, otherwise keep using Android for best support. You may have luck if your device vendor is open source friendly, otherwise keep using Android for best support.
**My device does not boot and I don't understand why.**<br>
If your device has Android or any sort of vendor u-boot preinstalled in EMMC or SPI, make sure to add `ROCKCHIP_LEGACY_BOOT=1` when building an image.
This is done automatically for supported devices, which are known to come with Android preinstalled.
## Links ## Links
* http://opensource.rock-chips.com * http://opensource.rock-chips.com

View File

@ -1,4 +1,5 @@
export ROCKCHIP_LEGACY_BOOT=$("${ROOT}"/"${SCRIPTS}"/uboot_helper "${PROJECT}" "${DEVICE}" "${UBOOT_SYSTEM}" rockchip_legacy_boot) || "${ROCKCHIP_LEGACY_BOOT:-}"
[ -z "${ROCKCHIP_LEGACY_BOOT}" ] && export ROCKCHIP_LEGACY_BOOT=$("${ROOT}/${SCRIPTS}/uboot_helper" "${PROJECT}" "${DEVICE}" "${UBOOT_SYSTEM}" rockchip_legacy_boot)
if [ "${ROCKCHIP_LEGACY_BOOT}" = "1" ]; then if [ "${ROCKCHIP_LEGACY_BOOT}" = "1" ]; then
export UBOOT_TARGET="u-boot-dtb.bin" export UBOOT_TARGET="u-boot-dtb.bin"

View File

@ -3,7 +3,6 @@
PKG_RKBIN="$(get_build_dir rkbin)" PKG_RKBIN="$(get_build_dir rkbin)"
PKG_SOC="${DEVICE/RK/rk}" PKG_SOC="${DEVICE/RK/rk}"
UBOOT_CONFIG=$("${ROOT}"/"${SCRIPTS}"/uboot_helper "${PROJECT}" "${DEVICE}" "${UBOOT_SYSTEM}" config)
if [ "${ROCKCHIP_LEGACY_BOOT}" = "1" ]; then if [ "${ROCKCHIP_LEGACY_BOOT}" = "1" ]; then
echo "install: building Rockchip legacy boot chain ..." echo "install: building Rockchip legacy boot chain ..."