Skip to content

Commit f6e456c

Browse files
committed
refresh uboot from openwrt master
1 parent 303ad2e commit f6e456c

21 files changed

Lines changed: 101 additions & 1484 deletions

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Those are my customized builds of OpenWrt for FriendlyARM NanoPi R2S / R4S
1919

2020
## Changelog
2121

22+
### 2021-10-11
23+
- Refresh uboot
2224
#### 2021-07-07
2325
- Fix issue #3 with strangri_repo : thanks TheLinuxGuy for reporting
2426
- Fix issue #4 with dnsmasq misconfigured : thanks semicuda for reporting

local-scripts/data/uboot/Makefile

Lines changed: 0 additions & 106 deletions
This file was deleted.

local-scripts/refresh_uboot.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@ fi
99
BUILDDIR="$ROOTDIR/build"
1010
SCRIPTDIR=$(dirname $(readlink -f $0))
1111

12-
if [ ! -e "$BUILDDIR/immortal-fresh-master" ]; then
13-
echo "Please run from root / no immortal-fresh-master ! please clone first"
12+
if [ ! -e "$BUILDDIR/openwrt-fresh-master" ]; then
13+
echo "Please run from root / no openwrt-fresh-master ! please clone first"
1414
exit 1
1515
fi
1616

1717
rm -rf $ROOTDIR/package/uboot-rockchip
18-
cp -R $BUILDDIR/immortal-fresh-master/package/boot/uboot-rockchip $ROOTDIR/package/uboot-rockchip
19-
20-
# use custom makefile, so there is no need of arm-trusted-firmware-rk3288
21-
# and use generic version arm-trusted-firmware-rockchip
22-
cp $SCRIPTDIR/data/uboot/Makefile $ROOTDIR/package/uboot-rockchip/Makefile
18+
cp -R $BUILDDIR/openwrt-fresh-master/package/boot/uboot-rockchip $ROOTDIR/package/uboot-rockchip

package/uboot-rockchip/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
include $(TOPDIR)/rules.mk
66
include $(INCLUDE_DIR)/kernel.mk
77

8-
PKG_VERSION:=2021.04
9-
PKG_RELEASE:=1
8+
PKG_VERSION:=2021.07
9+
PKG_RELEASE:=$(AUTORELEASE)
1010

11-
PKG_HASH:=0d438b1bb5cceb57a18ea2de4a0d51f7be5b05b98717df05938636e0aadfe11a
11+
PKG_HASH:=312b7eeae44581d1362c3a3f02c28d806647756c82ba8c72241c7cdbe68ba77e
1212

1313
PKG_MAINTAINER:=Tobias Maedel <openwrt@tbspace.de>
1414

@@ -52,7 +52,7 @@ define U-Boot/rock-pi-4-rk3399
5252
BUILD_SUBTARGET:=armv8
5353
NAME:=Rock Pi 4
5454
BUILD_DEVICES:= \
55-
radxa_rock-pi-4
55+
radxa_rock-pi-4a
5656
DEPENDS:=+PACKAGE_u-boot-rock-pi-4-rk3399:arm-trusted-firmware-rockchip
5757
PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip
5858
ATF:=rk3399_bl31.elf
@@ -88,6 +88,7 @@ ifneq ($(OF_PLATDATA),)
8888

8989
$(CP) $(PKG_BUILD_DIR)/of-platdata/$(OF_PLATDATA)/dt-plat.c $(PKG_BUILD_DIR)/tpl/dts/dt-plat.c
9090
$(CP) $(PKG_BUILD_DIR)/of-platdata/$(OF_PLATDATA)/dt-structs-gen.h $(PKG_BUILD_DIR)/include/generated/dt-structs-gen.h
91+
$(CP) $(PKG_BUILD_DIR)/of-platdata/$(OF_PLATDATA)/dt-decl.h $(PKG_BUILD_DIR)/include/generated/dt-decl.h
9192
endif
9293

9394
$(SED) 's#CONFIG_MKIMAGE_DTC_PATH=.*#CONFIG_MKIMAGE_DTC_PATH="$(PKG_BUILD_DIR)/scripts/dtc/dtc"#g' $(PKG_BUILD_DIR)/.config

package/uboot-rockchip/patches/002-spl-remove-dtoc-of-pdata-generation.patch

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ Signed-off-by: David Bauer <mail@david-bauer.net>
1717

1818
--- a/scripts/Makefile.spl
1919
+++ b/scripts/Makefile.spl
20-
@@ -329,10 +329,6 @@ PHONY += dts_dir
21-
dts_dir:
22-
$(shell [ -d $(obj)/dts ] || mkdir -p $(obj)/dts)
23-
24-
-include/generated/dt-structs-gen.h $(u-boot-spl-platdata_c) &: \
25-
- $(obj)/$(SPL_BIN).dtb dts_dir FORCE
20+
@@ -354,8 +354,6 @@ $(platdata-hdr) $(u-boot-spl-platdata_c)
21+
@# of OF_PLATDATA_INST and this might change between builds. Leaving old
22+
@# ones around is confusing and it is possible that switching the
23+
@# setting again will use the old one instead of regenerating it.
24+
- @rm -f $(u-boot-spl-all-platdata_c) $(u-boot-spl-all-platdata)
2625
- $(call if_changed,dtoc)
27-
-
26+
2827
ifdef CONFIG_SAMSUNG
2928
ifdef CONFIG_VAR_SIZE_SPL
30-
VAR_SIZE_PARAM = --vs

0 commit comments

Comments
 (0)