From d6e47bc8c2b52b59257e5627c4ffecb212614d1b Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Fri, 18 Jan 2019 14:21:28 +0800 Subject: [PATCH] ar71xx: sbr-ac1750 modified the MAC address of eth0 and the size of rootfs1 --- .../ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx | 2 +- target/linux/ar71xx/image/nand.mk | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx index 3cd9f2d45..de45a817e 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx +++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx @@ -61,7 +61,7 @@ preinit_set_mac_address() { sbr-ac1750) mac_lan=$(mtd_get_mac_binary ft 0) [ -n "$mac_lan" ] && ifconfig eth1 hw ether "$mac_lan" - mac_wan=$(mtd_get_mac_binary ft 4) + mac_wan=$(mtd_get_mac_binary ft 18) [ -n "$mac_wan" ] && ifconfig eth0 hw ether "$mac_wan" ;; esac diff --git a/target/linux/ar71xx/image/nand.mk b/target/linux/ar71xx/image/nand.mk index 12b16ab6d..34878ab6e 100644 --- a/target/linux/ar71xx/image/nand.mk +++ b/target/linux/ar71xx/image/nand.mk @@ -45,7 +45,6 @@ define Device/sbr-ac1750 BOARDNAME := SBR-AC1750 IMAGE_SIZE := 95m KERNEL_SIZE := 4096k - ROOTFS1_SIZE := 8192k BLOCKSIZE := 128k PAGESIZE := 2048 UBINIZE_OPTS := -E 5 @@ -53,8 +52,8 @@ define Device/sbr-ac1750 MTDPARTS := ar934x-nfc:1m(u-boot)ro,1m(u-boot-env)ro,4m(kernel),95m(ubi),1m(scfgmgr),4m(openwrt),1m(ft),2m(PKI),1m@0x6d00000(art)ro IMAGES := sysupgrade.tar kernel1.bin rootfs1.bin KERNEL := kernel-bin | patch-cmdline | lzma | uImage lzma - IMAGE/kernel1.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | check-size $$$$(KERNEL_SIZE) - IMAGE/rootfs1.bin := append-ubi | pad-to $$$$(ROOTFS1_SIZE) | check-size $$$$(IMAGE_SIZE) + IMAGE/kernel1.bin := append-kernel | check-size $$$$(KERNEL_SIZE) + IMAGE/rootfs1.bin := append-ubi | check-size $$$$(IMAGE_SIZE) IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata endef TARGET_DEVICES += sbr-ac1750