lantiq: vgv7519: fix board_config on dts, read mac address and set
Signed-off-by: Eddi De Pieri <eddi@depieri.net> SVN-Revision: 43109
This commit is contained in:
parent
152d692a1f
commit
36e862da17
3 changed files with 16 additions and 14 deletions
|
@ -168,6 +168,12 @@ BTHOMEHUBV2B)
|
||||||
lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
|
lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
|
||||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
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
|
esac
|
||||||
|
|
||||||
[ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] || set_atm_wan "$vpi" "$vci" "$encaps" "$payload"
|
[ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] || set_atm_wan "$vpi" "$vci" "$encaps" "$payload"
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
partition@40000 {
|
||||||
|
label = "board_config";
|
||||||
|
reg = <0x40000 0x10000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
partition@80000 {
|
partition@80000 {
|
||||||
label = "firmware";
|
label = "firmware";
|
||||||
reg = <0x80000 0x780000>;
|
reg = <0x80000 0x780000>;
|
||||||
|
@ -22,12 +27,6 @@
|
||||||
label = "rootfs_data";
|
label = "rootfs_data";
|
||||||
reg = <0x880000 0x780000>;
|
reg = <0x880000 0x780000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@1f80000 {
|
|
||||||
label = "board_config";
|
|
||||||
reg = <0x40000 0x10000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,12 +17,15 @@
|
||||||
label = "uboot";
|
label = "uboot";
|
||||||
reg = <0x00000 0x40000>;
|
reg = <0x00000 0x40000>;
|
||||||
};
|
};
|
||||||
|
partition@40000 {
|
||||||
|
label = "board_config";
|
||||||
|
reg = <0x40000 0x10000>;
|
||||||
|
read-only;
|
||||||
|
};
|
||||||
partition@60000 {
|
partition@60000 {
|
||||||
label = "uboot_env";
|
label = "uboot_env";
|
||||||
reg = <0x60000 0x10000>;
|
reg = <0x60000 0x10000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@80000 {
|
partition@80000 {
|
||||||
label = "firmware";
|
label = "firmware";
|
||||||
reg = <0x80000 0xf80000>;
|
reg = <0x80000 0xf80000>;
|
||||||
|
@ -30,12 +33,6 @@
|
||||||
// 0x1b0000 - 0x1000000 : rootfs (squashfs)
|
// 0x1b0000 - 0x1000000 : rootfs (squashfs)
|
||||||
// 0x390000 - 0x1000000 : rootfs_data
|
// 0x390000 - 0x1000000 : rootfs_data
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@1f80000 {
|
|
||||||
label = "board_config";
|
|
||||||
reg = <0x40000 0x10000>;
|
|
||||||
read-only;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue