[OpenWrt-Devel] Resend patch to fix Support For Aztech GR7000
John Crispin
john at phrozen.org
Sat Jun 28 04:03:10 EDT 2014
Hi,
i will postpone this patch till after BB. we will at that point fix up
the eep handling properly and merge/share the patches between ralink
and lantiq.
do you know if all the boards have the same eep in the filesystem or do
they differ between units ?
John
On 27/06/2014 19:05, Alpha Sparc wrote:
> Move the Ralink EEPROM node into the PCI node to remove "wmac
> failed to load eeprom property" message
>
>
>
> ---
> a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
>
>
+++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
> @@ -41,6 +41,9 @@ case "$FIRMWARE" in ARV7525PW)
> rt2x00_eeprom_extract "board_config" 1040 512 0 ;; + GR7000) +
> rt2x00_eeprom_extract "board_config" 0 512 0 + ;; *)
> rt2x00_eeprom_die "board $board is not supported yet" ;;
>
> --- a/target/linux/lantiq/base-files/etc/uci-defaults/02_network
> +++ b/target/linux/lantiq/base-files/etc/uci-defaults/02_network @@
> -128,8 +128,12 @@ DGN3500*) ;;
>
> GR7000) - ucidef_set_interface_wan "eth0" - uci set
> network.lan.ifname='' + lan_mac=$(mtd_get_mac_ascii uboot_env
> ethaddr) + wan_mac=$(macaddr_add "$lan_mac" 3) +
> ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" +
> ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan
> "switch0" "1" "0t 1 2 3 4" + ucidef_add_switch_vlan "switch0"
> "2" "0t 5" ;;
>
> H201L) @@ -167,13 +171,23 @@ BTHOMEHUBV2B) ;; esac
>
> -[ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] || set_atm_wan
> "$vpi" "$vci" "$encaps" "$payload" +board=$(lantiq_board_id) +
> +case "$board" in
>
> -if [ -n "$(grep "system type.*: VR9" /proc/cpuinfo)" ]; then -
> set_vdsl_modem "$annex" "/lib/firmware/vdsl.bin" "av" "ptm" -else -
> set_adsl_modem "$annex" "/lib/firmware/adsl.bin" -fi +GR7000) +
> ;; + +*) + [ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] ||
> set_atm_wan "$vpi" "$vci" "$encaps" "$payload" + + if [ -n
> "$(grep "system type.*: VR9" /proc/cpuinfo)" ]; then +
> set_vdsl_modem "$annex" "/lib/firmware/vdsl.bin" "av" "ptm" +
> else + set_adsl_modem "$annex" "/lib/firmware/adsl.bin" +
> fi + ;; +esac
>
> [ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan $lan_mac [ -n
> "$wan_mac" ] && ucidef_set_interface_macaddr wan $wan_mac
>
> ---
> a/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps
> +++
> b/target/linux/lantiq/base-files/etc/uci-defaults/03_wireless-wps
> @@ -8,7 +8,7 @@ set_wps() {
>
> board=$(lantiq_board_id) case $board in -WBMR) +WBMR|GR7000)
> config_load wireless config_foreach set_wps wifi-iface uci commit
> wireless
>
> --- a/target/linux/lantiq/xway/profiles/aztech.mk +++
> b/target/linux/lantiq/xway/profiles/aztech.mk @@ -2,6 +2,7 @@
> define Profile/GR7000 NAME:=Aztech GR7000 PACKAGES:= \
> kmod-ltq-deu-ar9 kmod-ltq-hcd-ar9 \ + kmod-rt2800-pci wpad \
> swconfig endef $(eval $(call Profile,GR7000))
>
> --- a/target/linux/lantiq/dts/GR7000.dts +++
> b/target/linux/lantiq/dts/GR7000.dts @@ -3,7 +3,7 @@ /include/
> "ar9.dtsi"
>
> / { - model = "GR7000 - Aztech GR7000"; + model = "Aztech
> GR7000";
>
> chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; @@
> -18,7 +18,7 @@ nor-boot at 0 { compatible = "lantiq,nor"; bank-width =
> <2>; - reg = <0 0x0 0x2000000>; + reg
> = <0 0x0 0x800000>; #address-cells = <1>; #size-cells = <1>;
>
> @@ -29,16 +29,24 @@ };
>
> partition at 20000 { - label = "uboot_env"; -
> reg = <0x20000 0x10000>; + label = "firmware"; +
> reg = <0x20000 0x7b0000>; + }; + +
> partition at 7e0000 { + label = "board_config"; +
> reg = <0x7e0000 0x10000>; read-only; };
>
> - partition at 30000 { - label =
> "firmware"; - reg = <0x30000 0x7d0000>; +
> partition at 7f0000 { + label = "uboot_env"; +
> reg = <0x7f0000 0x10000>; + read-only; }; + };
> + };
>
> gpio: pinmux at E100B10 { @@ -70,12 +78,25 @@ }; };
>
> + etop at E180000 { + phy-mode = "rgmii"; +
> }; + ifxhcd at E101000 { status = "okay"; + gpios = <&gpio
> 5 0 + &gpio 14 0>; + lantiq,portmask =
> <0x3>; };
>
> pci at E105400 { status = "okay"; + + ralink_eep { +
> compatible = "ralink,eeprom"; + ralink,eeprom =
> "RT2860.eeprom"; + }; + };
>
> stp: stp at E100BB0 { _______________________________________________
> openwrt-devel mailing list openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list