From 9b16e3d2fc5ac8795eaccbcd4c8907ba20eb44cba312959375adf0f21b9e2e65 Mon Sep 17 00:00:00 2001 From: Guillaume GARDET Date: Wed, 27 Nov 2019 09:24:59 +0000 Subject: [PATCH] Accepting request 751223 from hardware:boot:staging set boot option to arm64 in ubootconfig.txt. This allows us to theoretically build U-Boot for RPi3/4 with 32 bit OBS-URL: https://build.opensuse.org/request/show/751223 OBS-URL: https://build.opensuse.org/package/show/hardware:boot/u-boot?expand=0&rev=66 --- u-boot.changes | 6 ++++++ u-boot.spec | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/u-boot.changes b/u-boot.changes index 3443b01..778ffb2 100644 --- a/u-boot.changes +++ b/u-boot.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 25 16:47:54 UTC 2019 - Matthias Brugger + +- set boot option to arm64 in ubootconfig.txt. This allows us to + theoretically build U-Boot for RPi3/4 with 32 bit. + ------------------------------------------------------------------- Mon Nov 25 14:10:58 UTC 2019 - Matthias Brugger diff --git a/u-boot.spec b/u-boot.spec index 00f9f42..9b076fe 100644 --- a/u-boot.spec +++ b/u-boot.spec @@ -509,9 +509,12 @@ install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl. install -D -m 0644 spl/boot.bin %{buildroot}%{uboot_dir}/boot.bin %endif %if "%{name}" == "u-boot-rpi3" -echo -e "# Boot in AArch64 mode\narm_control=0x200" > %{buildroot}%{uboot_dir}/ubootconfig.txt +echo -e "# Boot in AArch64 mode\narm_64bit=1" > %{buildroot}%{uboot_dir}/ubootconfig.txt echo -e "\nkernel_address=0x11000000" >> %{buildroot}%{uboot_dir}/ubootconfig.txt %endif +%if "%{name}" == "u-boot-rpi4" || "%{name}" == "u-boot-rpiarm64" +echo -e "# Boot in AArch64 mode\narm_64bit=1" > %{buildroot}%{uboot_dir}/ubootconfig.txt +%endif %if 0%{?is_rpi} %post