diff --git a/u-boot.changes b/u-boot.changes index 11145f3..3443b01 100644 --- a/u-boot.changes +++ b/u-boot.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 25 14:10:58 UTC 2019 - Matthias Brugger + +- RPi3 revert ubootconfig.txt changes to fix tumbleweed update path + ------------------------------------------------------------------- Wed Nov 20 14:16:24 UTC 2019 - Matthias Brugger diff --git a/u-boot.spec b/u-boot.spec index be93ddc..00f9f42 100644 --- a/u-boot.spec +++ b/u-boot.spec @@ -406,6 +406,10 @@ confname=$(ls configs | perl -ne '$l=lc; $l=~ s,_,,g; $l eq "%{target}defconfig\ make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" $confname echo "Attempting to enable fdt apply command (.dtbo) support." echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config +%if "%target" == "rpi3" +echo "Tweaking text base for TF-A." +echo "CONFIG_SYS_TEXT_BASE=0x11000000" >> .config +%endif make %{?_smp_mflags} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" \ %if ("%{name}" == "u-boot-rock64-rk3328" || "%{name}" == "u-boot-evb-rk3399" || "%{name}" == "u-boot-firefly-rk3399" || "%{name}" == "u-boot-rock-pi-4-rk3399") && %{with uboot_atf} all u-boot.itb @@ -504,6 +508,10 @@ install -D -m 0644 u-boot-with-spl.sfp %{buildroot}%{uboot_dir}/u-boot-with-spl. %if "%{name}" == "u-boot-zynqzturn" 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 "\nkernel_address=0x11000000" >> %{buildroot}%{uboot_dir}/ubootconfig.txt +%endif %if 0%{?is_rpi} %post