lantiq: vgv7519: fix board_config on dts, read mac address and set it
authorJohn Crispin <john@openwrt.org>
Wed, 29 Oct 2014 20:51:43 +0000 (20:51 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 29 Oct 2014 20:51:43 +0000 (20:51 +0000)
Signed-off-by: Eddi De Pieri <eddi@depieri.net>
SVN-Revision: 43110

target/linux/lantiq/base-files/etc/uci-defaults/02_network
target/linux/lantiq/dts/VGV7519BRN.dts
target/linux/lantiq/dts/VGV7519NOR.dts

index 8d9ae4f57f4e26bcbe60ef3686a62ae963a51710..777e38dcbd848263f1cc679e25830f498b59575b 100644 (file)
@@ -168,6 +168,12 @@ BTHOMEHUBV2B)
        lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
        wan_mac=$(macaddr_add "$lan_mac" 1)
        ;;
+
+VGV7519)
+       lan_mac=$(mtd_get_mac_binary board_config 22)
+       wan_mac=$(macaddr_add "$lan_mac" 1)
+       ;;
+
 esac
 
 [ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] || set_atm_wan "$vpi" "$vci" "$encaps" "$payload"
index b885952b05681c08dd2259e3194fd404a45040ed..c90b680490395b86a42b9ceaa7d0abbdd3e71c09 100644 (file)
                                #address-cells = <1>;
                                #size-cells = <1>;
 
+                               partition@40000 {
+                                       label = "board_config";
+                                       reg = <0x40000 0x10000>;
+                                       read-only;
+                               };
                                partition@80000 {
                                        label = "firmware";
                                        reg = <0x80000 0x780000>;
                                        label = "rootfs_data";
                                        reg = <0x880000 0x780000>;
                                };
-
-                               partition@1f80000 {
-                                       label = "board_config";
-                                       reg = <0x40000 0x10000>;
-                                       read-only;
-                               };
                        };
                };
        };
index 744efe6e348d4e1fdc8233d50c83d3a5527bba9c..355a90c94cc14e4963c55e6678fe31cd1f872e93 100644 (file)
                                        label = "uboot";
                                        reg = <0x00000 0x40000>;
                                };
-
+                               partition@40000 {
+                                       label = "board_config";
+                                       reg = <0x40000 0x10000>;
+                                       read-only;
+                               };
                                partition@60000 {
                                        label = "uboot_env";
                                        reg = <0x60000 0x10000>;
                                };
-
                                partition@80000 {
                                        label = "firmware";
                                        reg = <0x80000 0xf80000>;
                                        // 0x1b0000 - 0x1000000 : rootfs (squashfs)
                                        // 0x390000 - 0x1000000 : rootfs_data
                                };
-
-                               partition@1f80000 {
-                                       label = "board_config";
-                                       reg = <0x40000 0x10000>;
-                                       read-only;
-                               };
                        };
                };
        };