AFAIK there is only 1 model of GR7000 and the 2 units with me both have a file called RT30xxEEPROM.bin which is 512 bytes in /tmp/. No other partitions except mtd0 (uboot) and mtd1 (rootfs lzma). For users who want to use openwrt this is a problem because they need to extract the EEPROM by mounting a FAT formatted drive and copying out the file. Probably need to note this in the wiki. I am still having problems with the switch ar8316, ipv6 is detected but ipv4 cannot get through should be a config issue although I can't figure out the problem.
I notice that support for lantiq mips34kc is also rather flaky, router somethings hangs and reboots abruptly... Is it possible to port the 34kc patches from TP-Link TD-W8970 SDK to OpenWRT? Is there a licensing issue. They have neatly place all their custom patches in a folder, porting should be doable. On Sat, Jun 28, 2014 at 4:03 PM, John Crispin <j...@phrozen.org> wrote: > 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@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@20000 { - label = "uboot_env"; - >> reg = <0x20000 0x10000>; + label = "firmware"; + >> reg = <0x20000 0x7b0000>; + }; + + >> partition@7e0000 { + label = "board_config"; + >> reg = <0x7e0000 0x10000>; read-only; }; >> >> - partition@30000 { - label = >> "firmware"; - reg = <0x30000 0x7d0000>; + >> partition@7f0000 { + label = "uboot_env"; + >> reg = <0x7f0000 0x10000>; + read-only; }; + }; >> + }; >> >> gpio: pinmux@E100B10 { @@ -70,12 +78,25 @@ }; }; >> >> + etop@E180000 { + phy-mode = "rgmii"; + >> }; + ifxhcd@E101000 { status = "okay"; + gpios = <&gpio >> 5 0 + &gpio 14 0>; + lantiq,portmask = >> <0x3>; }; >> >> pci@E105400 { status = "okay"; + + ralink_eep { + >> compatible = "ralink,eeprom"; + ralink,eeprom = >> "RT2860.eeprom"; + }; + }; >> >> stp: stp@E100BB0 { _______________________________________________ >> openwrt-devel mailing list openwrt-devel@lists.openwrt.org >> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel >> > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel