From 9c42d23c5f7aa2b7f80af96921b2d5476626b8c6 Mon Sep 17 00:00:00 2001 From: Rani Hod Date: Sun, 1 Oct 2023 02:05:19 +0300 Subject: [PATCH] bcm53xx: Linksys EA9200 nvram and 02_network fixes 1) clear nvram partialboots upon successful boot This behavior is already defined for EA9500; enabled for EA9200 too. 2) fix MAC address in board.d/02_network Use the correct nvram variable to derive lan/wan MAC address. Signed-off-by: Rani Hod --- package/utils/nvram/files/nvram-bcm53xx.init | 1 + target/linux/bcm53xx/base-files/etc/board.d/02_network | 1 + 2 files changed, 2 insertions(+) diff --git a/package/utils/nvram/files/nvram-bcm53xx.init b/package/utils/nvram/files/nvram-bcm53xx.init index 2e9c9f3fce..f47c944897 100755 --- a/package/utils/nvram/files/nvram-bcm53xx.init +++ b/package/utils/nvram/files/nvram-bcm53xx.init @@ -9,6 +9,7 @@ clear_partialboots() { # clear partialboots case $(board_name) in + linksys,ea9200|\ linksys,panamera) COMMIT=1 nvram set partialboots=0 diff --git a/target/linux/bcm53xx/base-files/etc/board.d/02_network b/target/linux/bcm53xx/base-files/etc/board.d/02_network index 13e7311e79..6d84442da4 100644 --- a/target/linux/bcm53xx/base-files/etc/board.d/02_network +++ b/target/linux/bcm53xx/base-files/etc/board.d/02_network @@ -50,6 +50,7 @@ bcm53xx_setup_macs() offset=1 ;; dlink,dir-885l | \ + linksys,ea9200 | \ linksys,panamera | \ netgear,r7900 | \ netgear,r8000 | \ -- 2.30.2