From e6c442ffc1570db2f414e39d45a549c42c62d864 Mon Sep 17 00:00:00 2001 From: LEAN-ESX Date: Sun, 20 Oct 2019 03:53:38 -0700 Subject: [PATCH] brcm2708: bcm2711: add custom config aarch64 file --- target/linux/brcm2708/image/Makefile | 4 +++- .../brcm2708/image/config-bcm2711-arm64.txt | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 target/linux/brcm2708/image/config-bcm2711-arm64.txt diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index db2b3b556..7f9619100 100644 --- a/target/linux/brcm2708/image/Makefile +++ b/target/linux/brcm2708/image/Makefile @@ -27,7 +27,7 @@ define Build/boot-common mcopy -i $@.boot $(KDIR)/COPYING.linux :: mcopy -i $@.boot $(KDIR)/LICENCE.broadcom :: mcopy -i $@.boot cmdline.txt :: - mcopy -i $@.boot config.txt :: + mcopy -i $@.boot $(BOOT_CONFIG) ::config.txt mcopy -i $@.boot distroconfig.txt :: mcopy -i $@.boot $(IMAGE_KERNEL) ::$(KERNEL_IMG) $(foreach dts,$(shell echo $(DEVICE_DTS)),mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb ::;) @@ -68,6 +68,7 @@ define Device/Default IMAGES := factory.img.gz sysupgrade.img.gz IMAGE/sysupgrade.img.gz := boot-common | boot-2708 | sdcard-img | gzip | append-metadata IMAGE/factory.img.gz := boot-common | boot-2708 | sdcard-img | gzip + BOOT_CONFIG := config.txt endef define Device/rpi @@ -151,6 +152,7 @@ define Device/rpi-4 kmod-brcmfmac wpad-basic IMAGE/sysupgrade.img.gz := boot-common | boot-2711 | sdcard-img | gzip | append-metadata IMAGE/factory.img.gz := boot-common | boot-2711 | sdcard-img | gzip + BOOT_CONFIG := config-bcm2711-arm64.txt endef ifeq ($(SUBTARGET),bcm2711) TARGET_DEVICES += rpi-4 diff --git a/target/linux/brcm2708/image/config-bcm2711-arm64.txt b/target/linux/brcm2708/image/config-bcm2711-arm64.txt new file mode 100644 index 000000000..984aab585 --- /dev/null +++ b/target/linux/brcm2708/image/config-bcm2711-arm64.txt @@ -0,0 +1,17 @@ +################################################################################ +# Bootloader configuration - config.txt +################################################################################ + +################################################################################ +# For overclocking and various other settings, see: +# https://www.raspberrypi.org/documentation/configuration/config-txt/README.md +################################################################################ + +# Force aarch64 +arm_64bit=1 + +# OpenWrt config +include distroconfig.txt + +[all] +# Place your custom settings here.