Skip to content
Snippets Groups Projects
Select Git revision
  • 531520032cdc9ab8b22b9c56d506fc9e9dd5c012
  • v2018.2.x default
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
42 results

0034-mpc85xx-replace-WDR4900-uci-defaults-ethernet-MAC-address-hack-with-DTS-entry.patch

Blame
  • Forked from firmware / FFS Gluon
    4292 commits behind the upstream repository.
    user avatar
    Matthias Schiffer authored
    53152003
    History
    0034-mpc85xx-replace-WDR4900-uci-defaults-ethernet-MAC-address-hack-with-DTS-entry.patch 1.63 KiB
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Thu, 30 Apr 2015 02:12:18 +0200
    Subject: mpc85xx: replace WDR4900 uci-defaults ethernet MAC address hack with DTS entry
    
    This also changes the MAC address to one of the adresses actually used by the
    stock firmware on one of the ethernet interfaces.
    
    diff --git a/target/linux/mpc85xx/base-files/etc/uci-defaults/02_network b/target/linux/mpc85xx/base-files/etc/uci-defaults/02_network
    index e4e3566..525a552 100755
    --- a/target/linux/mpc85xx/base-files/etc/uci-defaults/02_network
    +++ b/target/linux/mpc85xx/base-files/etc/uci-defaults/02_network
    @@ -20,8 +20,6 @@ tl-wdr4900-v1)
     	ucidef_add_switch "switch0" "1" "1"
     	ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5"
     	ucidef_add_switch_vlan "switch0" "2" "0t 1"
    -	ucidef_set_interface_macaddr lan "$(mtd_get_mac_binary config 338)"
    -	ucidef_set_interface_macaddr wan "$(mtd_get_mac_binary config 344)"
     	;;
     *)
     	ucidef_set_interfaces_lan_wan "eth0" "eth1"
    diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
    index 49e516c..7e48e23 100644
    --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
    +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts
    @@ -63,7 +63,7 @@
     					label = "rootfs";
     				};
     
    -				config@fe0000 {
    +				config: config@fe0000 {
     					reg = <0x00fe0000 0x00010000>;
     					label = "config";
     					read-only;
    @@ -118,6 +118,7 @@
     		enet0: ethernet@b0000 {
     			phy-handle = <&phy0>;
     			phy-connection-type = "rgmii-id";
    +			mtd-mac-address = <&config 0x14c>;
     		};
     
     		enet1: ethernet@b1000 {