From afb39c520fc6f48bd11ebb7c4d5352b7403ce6f6 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Sun, 14 Nov 2021 20:34:35 +0200 Subject: [PATCH] octeon: add uboot-envtools to snic10e device packages And include a uci-defaults file to configure /etc/fw_env.config. Signed-off-by: Stijn Tintel --- .../octeon/base-files/etc/board.d/30_uboot-envtools | 11 +++++++++++ target/linux/octeon/image/Makefile | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 target/linux/octeon/base-files/etc/board.d/30_uboot-envtools diff --git a/target/linux/octeon/base-files/etc/board.d/30_uboot-envtools b/target/linux/octeon/base-files/etc/board.d/30_uboot-envtools new file mode 100644 index 0000000000..b3ee1fecbd --- /dev/null +++ b/target/linux/octeon/base-files/etc/board.d/30_uboot-envtools @@ -0,0 +1,11 @@ +. /lib/functions.sh + +board=$(board_name) + +case "$board" in +snic10e) + printf "/dev/mtd2\t0x0\t0x2000\t0x2000\n" > /etc/fw_env.config + ;; +esac + +exit 0 diff --git a/target/linux/octeon/image/Makefile b/target/linux/octeon/image/Makefile index 1ca2d5eb16..74e31b859d 100644 --- a/target/linux/octeon/image/Makefile +++ b/target/linux/octeon/image/Makefile @@ -78,7 +78,7 @@ define Device/snic10e DEVICE_VENDOR := Cavium DEVICE_MODEL := snic10e DEVICE_DTS := snic10e - DEVICE_PACKAGES += kmod-gpio-button-hotplug kmod-hwmon-tmp421 kmod-leds-gpio kmod-of-mdio kmod-sfp + DEVICE_PACKAGES += kmod-gpio-button-hotplug kmod-hwmon-tmp421 kmod-leds-gpio kmod-of-mdio kmod-sfp uboot-envtools KERNEL := kernel-bin | append-dtb-to-elf KERNEL_DEPENDS := $$(wildcard $(DTS_DIR)/$(DEVICE_DTS).dts) endef -- 2.30.2