Fixes for Rockchip rk3399 autoboot
This commit is contained in:
parent
7f2aed2f98
commit
59b16b4988
|
@ -0,0 +1,166 @@
|
||||||
|
From 367b3afc360e6fc92bd4cdca643ed2e4d928472d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Robinson <pbrobinson@gmail.com>
|
||||||
|
Date: Wed, 13 Mar 2024 19:14:50 +0000
|
||||||
|
Subject: [PATCH] rockchip: Enable preboot start for pci/usb
|
||||||
|
|
||||||
|
Enable the preboot so nvme works OOTB
|
||||||
|
|
||||||
|
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
|
||||||
|
---
|
||||||
|
configs/firefly-rk3399_defconfig | 2 ++
|
||||||
|
configs/nanopc-t4-rk3399_defconfig | 2 ++
|
||||||
|
configs/pinebook-pro-rk3399_defconfig | 1 +
|
||||||
|
configs/roc-pc-mezzanine-rk3399_defconfig | 2 ++
|
||||||
|
configs/rock-4c-plus-rk3399_defconfig | 2 ++
|
||||||
|
configs/rock-4se-rk3399_defconfig | 2 ++
|
||||||
|
configs/rock-pi-4-rk3399_defconfig | 2 ++
|
||||||
|
configs/rock-pi-4c-rk3399_defconfig | 2 ++
|
||||||
|
configs/rock-pi-n10-rk3399pro_defconfig | 2 ++
|
||||||
|
configs/rock960-rk3399_defconfig | 1 +
|
||||||
|
configs/rockpro64-rk3399_defconfig | 2 ++
|
||||||
|
11 files changed, 20 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/configs/firefly-rk3399_defconfig b/configs/firefly-rk3399_defconfig
|
||||||
|
index b7c8e95b7b8..1e33083c138 100644
|
||||||
|
--- a/configs/firefly-rk3399_defconfig
|
||||||
|
+++ b/configs/firefly-rk3399_defconfig
|
||||||
|
@@ -18,6 +18,8 @@ CONFIG_DEBUG_UART_CLOCK=24000000
|
||||||
|
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
+CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-firefly.dtb"
|
||||||
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||||
|
CONFIG_MISC_INIT_R=y
|
||||||
|
diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig
|
||||||
|
index c18e7b1bd16..e9a18eb3e9f 100644
|
||||||
|
--- a/configs/nanopc-t4-rk3399_defconfig
|
||||||
|
+++ b/configs/nanopc-t4-rk3399_defconfig
|
||||||
|
@@ -17,6 +17,8 @@ CONFIG_DEBUG_UART_CLOCK=24000000
|
||||||
|
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
+CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-nanopc-t4.dtb"
|
||||||
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||||
|
CONFIG_SPL_MAX_SIZE=0x2e000
|
||||||
|
diff --git a/configs/pinebook-pro-rk3399_defconfig b/configs/pinebook-pro-rk3399_defconfig
|
||||||
|
index de357415fbe..4168adb1935 100644
|
||||||
|
--- a/configs/pinebook-pro-rk3399_defconfig
|
||||||
|
+++ b/configs/pinebook-pro-rk3399_defconfig
|
||||||
|
@@ -24,6 +24,7 @@ CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
CONFIG_BOOTDELAY=3
|
||||||
|
CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-pinebook-pro.dtb"
|
||||||
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||||
|
CONFIG_MISC_INIT_R=y
|
||||||
|
diff --git a/configs/roc-pc-mezzanine-rk3399_defconfig b/configs/roc-pc-mezzanine-rk3399_defconfig
|
||||||
|
index de6539bedf4..61c6182d27e 100644
|
||||||
|
--- a/configs/roc-pc-mezzanine-rk3399_defconfig
|
||||||
|
+++ b/configs/roc-pc-mezzanine-rk3399_defconfig
|
||||||
|
@@ -23,6 +23,8 @@ CONFIG_SPL_SPI=y
|
||||||
|
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
+CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
# CONFIG_ANDROID_BOOT_IMAGE is not set
|
||||||
|
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-roc-pc-mezzanine.dtb"
|
||||||
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||||
|
diff --git a/configs/rock-4c-plus-rk3399_defconfig b/configs/rock-4c-plus-rk3399_defconfig
|
||||||
|
index 18525c8bf50..89e9f69eb63 100644
|
||||||
|
--- a/configs/rock-4c-plus-rk3399_defconfig
|
||||||
|
+++ b/configs/rock-4c-plus-rk3399_defconfig
|
||||||
|
@@ -18,6 +18,8 @@ CONFIG_DEBUG_UART_CLOCK=24000000
|
||||||
|
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
+CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
# CONFIG_ANDROID_BOOT_IMAGE is not set
|
||||||
|
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rock-4c-plus.dtb"
|
||||||
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||||
|
diff --git a/configs/rock-4se-rk3399_defconfig b/configs/rock-4se-rk3399_defconfig
|
||||||
|
index 171de23ec8f..d2769a2f516 100644
|
||||||
|
--- a/configs/rock-4se-rk3399_defconfig
|
||||||
|
+++ b/configs/rock-4se-rk3399_defconfig
|
||||||
|
@@ -18,6 +18,8 @@ CONFIG_DEBUG_UART_CLOCK=24000000
|
||||||
|
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
+CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
# CONFIG_ANDROID_BOOT_IMAGE is not set
|
||||||
|
CONFIG_SPL_FIT_SIGNATURE=y
|
||||||
|
CONFIG_LEGACY_IMAGE_FORMAT=y
|
||||||
|
diff --git a/configs/rock-pi-4-rk3399_defconfig b/configs/rock-pi-4-rk3399_defconfig
|
||||||
|
index 83fc4ad7dab..24ca614fe5a 100644
|
||||||
|
--- a/configs/rock-pi-4-rk3399_defconfig
|
||||||
|
+++ b/configs/rock-pi-4-rk3399_defconfig
|
||||||
|
@@ -18,6 +18,8 @@ CONFIG_DEBUG_UART_CLOCK=24000000
|
||||||
|
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
+CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
# CONFIG_ANDROID_BOOT_IMAGE is not set
|
||||||
|
CONFIG_SPL_FIT_SIGNATURE=y
|
||||||
|
CONFIG_LEGACY_IMAGE_FORMAT=y
|
||||||
|
diff --git a/configs/rock-pi-4c-rk3399_defconfig b/configs/rock-pi-4c-rk3399_defconfig
|
||||||
|
index 089344097e0..83c2cfba157 100644
|
||||||
|
--- a/configs/rock-pi-4c-rk3399_defconfig
|
||||||
|
+++ b/configs/rock-pi-4c-rk3399_defconfig
|
||||||
|
@@ -18,6 +18,8 @@ CONFIG_DEBUG_UART_CLOCK=24000000
|
||||||
|
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
+CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
# CONFIG_ANDROID_BOOT_IMAGE is not set
|
||||||
|
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rock-pi-4c.dtb"
|
||||||
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||||
|
diff --git a/configs/rock-pi-n10-rk3399pro_defconfig b/configs/rock-pi-n10-rk3399pro_defconfig
|
||||||
|
index dc4b3b40380..db34bc70a22 100644
|
||||||
|
--- a/configs/rock-pi-n10-rk3399pro_defconfig
|
||||||
|
+++ b/configs/rock-pi-n10-rk3399pro_defconfig
|
||||||
|
@@ -18,6 +18,8 @@ CONFIG_DEBUG_UART_CLOCK=24000000
|
||||||
|
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
+CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
# CONFIG_ANDROID_BOOT_IMAGE is not set
|
||||||
|
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399pro-rock-pi-n10.dtb"
|
||||||
|
# CONFIG_CONSOLE_MUX is not set
|
||||||
|
diff --git a/configs/rock960-rk3399_defconfig b/configs/rock960-rk3399_defconfig
|
||||||
|
index b93dda56593..6d1b352a855 100644
|
||||||
|
--- a/configs/rock960-rk3399_defconfig
|
||||||
|
+++ b/configs/rock960-rk3399_defconfig
|
||||||
|
@@ -17,6 +17,7 @@ CONFIG_SYS_LOAD_ADDR=0x800800
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rock960.dtb"
|
||||||
|
CONFIG_SYS_PBSIZE=1052
|
||||||
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||||
|
diff --git a/configs/rockpro64-rk3399_defconfig b/configs/rockpro64-rk3399_defconfig
|
||||||
|
index 711541f8462..8c1ea1a0b63 100644
|
||||||
|
--- a/configs/rockpro64-rk3399_defconfig
|
||||||
|
+++ b/configs/rockpro64-rk3399_defconfig
|
||||||
|
@@ -21,6 +21,8 @@ CONFIG_SPL_SPI=y
|
||||||
|
CONFIG_SYS_LOAD_ADDR=0x800800
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DEBUG_UART=y
|
||||||
|
+CONFIG_USE_PREBOOT=y
|
||||||
|
+CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
|
||||||
|
CONFIG_SPL_FIT_SIGNATURE=y
|
||||||
|
CONFIG_LEGACY_IMAGE_FORMAT=y
|
||||||
|
CONFIG_BOOTSTAGE=y
|
||||||
|
--
|
||||||
|
2.44.0
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
Name: uboot-tools
|
Name: uboot-tools
|
||||||
Version: 2024.04
|
Version: 2024.04
|
||||||
Release: 0.4%{?candidate:.%{candidate}}%{?dist}
|
Release: 0.5%{?candidate:.%{candidate}}%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: U-Boot utilities
|
Summary: U-Boot utilities
|
||||||
License: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+
|
License: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+
|
||||||
|
@ -34,6 +34,7 @@ Patch6: Add-video-damage-tracking.patch
|
||||||
Patch10: rpi-Switch-to-OF_HAS_PRIOR_STAGE-by-default.patch
|
Patch10: rpi-Switch-to-OF_HAS_PRIOR_STAGE-by-default.patch
|
||||||
# Rockchips improvements
|
# Rockchips improvements
|
||||||
Patch11: rockchip-Add-initial-support-for-the-PinePhone-Pro.patch
|
Patch11: rockchip-Add-initial-support-for-the-PinePhone-Pro.patch
|
||||||
|
Patch12: rockchip-Enable-preboot-start-for-pci-usb.patch
|
||||||
|
|
||||||
BuildRequires: bc
|
BuildRequires: bc
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
|
@ -138,7 +139,7 @@ mkdir -p %{buildroot}%{_datadir}/uboot/
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
for board in $(ls builds)
|
for board in $(ls builds)
|
||||||
do
|
do
|
||||||
for file in u-boot.bin u-boot.img u-boot-dtb.img u-boot.itb u-boot-sunxi-with-spl.bin u-boot-rockchip.bin idbloader.img idbloader-spi.img spl/boot.bin
|
for file in u-boot.bin u-boot.img u-boot-dtb.img u-boot.itb u-boot-sunxi-with-spl.bin u-boot-rockchip-spi.bin u-boot-rockchip.bin idbloader.img idbloader-spi.img spl/boot.bin
|
||||||
do
|
do
|
||||||
if [ -f builds/$(echo $board)/$(echo $file) ]; then
|
if [ -f builds/$(echo $board)/$(echo $file) ]; then
|
||||||
install -pD -m 0644 builds/$(echo $board)/$(echo $file) %{buildroot}%{_datadir}/uboot/$(echo $board)/$(echo $file)
|
install -pD -m 0644 builds/$(echo $board)/$(echo $file) %{buildroot}%{_datadir}/uboot/$(echo $board)/$(echo $file)
|
||||||
|
@ -189,6 +190,9 @@ install -p -m 0755 builds/tools/env/fw_printenv %{buildroot}%{_bindir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 13 2024 Peter Robinson <pbrobinson@fedoraproject.org> - 1:2024.04-0.5.rc4
|
||||||
|
- Fixes for Rockchip rk3399 autoboot
|
||||||
|
|
||||||
* Tue Mar 12 2024 Peter Robinson <pbrobinson@fedoraproject.org> - 1:2024.04-0.4.rc4
|
* Tue Mar 12 2024 Peter Robinson <pbrobinson@fedoraproject.org> - 1:2024.04-0.4.rc4
|
||||||
- Update to 2024.04 RC4
|
- Update to 2024.04 RC4
|
||||||
- Initial fix for loading DT off /boot (rhbz 2247873)
|
- Initial fix for loading DT off /boot (rhbz 2247873)
|
||||||
|
|
Loading…
Reference in New Issue