
I have this u-boot code from vizio router I can successfully compile this for AP94 target However in u-boot, network doesn't work at all Network has static IP by default and ping host in console : Using eth0 device ping failed: host 192.168.1.1 is not alive Check mii dump below, I don't see anything wrong Please help me Below link to download source http://www.mediafire.com/download/m53wqcov9v9pxhk/u-boot-1.1.4.zip
0. (1000) -- PHY control register -- (8000:0000) 0.15 = 0 reset (4000:0000) 0.14 = 0 loopback (2040:0000) 0. 6,13 = b00 speed selection = 10 Mbps (1000:1000) 0.12 = 1 A/N enable (0800:0000) 0.11 = 0 power-down (0400:0000) 0.10 = 0 isolate (0200:0000) 0. 9 = 0 restart A/N (0100:0000) 0. 8 = 0 duplex = half (0080:0000) 0. 7 = 0 collision test enable (003f:0000) 0. 5- 0 = 0 (reserved)
1. (7949) -- PHY status register -- (8000:0000) 1.15 = 0 100BASE-T4 able (4000:4000) 1.14 = 1 100BASE-X full duplex able (2000:2000) 1.13 = 1 100BASE-X half duplex able (1000:1000) 1.12 = 1 10 Mbps full duplex able (0800:0800) 1.11 = 1 10 Mbps half duplex able (0400:0000) 1.10 = 0 100BASE-T2 full duplex able (0200:0000) 1. 9 = 0 100BASE-T2 half duplex able (0100:0100) 1. 8 = 1 extended status (0080:0000) 1. 7 = 0 (reserved) (0040:0040) 1. 6 = 1 MF preamble suppression (0020:0000) 1. 5 = 0 A/N complete (0010:0000) 1. 4 = 0 remote fault (0008:0008) 1. 3 = 1 A/N able (0004:0000) 1. 2 = 0 link status (0002:0000) 1. 1 = 0 jabber detect (0001:0001) 1. 0 = 1 extended capabilities
2. (004d) -- PHY ID 1 register -- (ffff:004d) 2.15- 0 = 77 OUI portion
3. (d043) -- PHY ID 2 register -- (fc00:d000) 3.15-10 = 52 OUI portion (03f0:0040) 3. 9- 4 = 4 manufacturer part number (000f:0003) 3. 3- 0 = 3 manufacturer rev. number
4. (01e1) -- Autonegotiation advertisement register -- (8000:0000) 4.15 = 0 next page able (4000:0000) 4.14 = 0 reserved (2000:0000) 4.13 = 0 remote fault (1000:0000) 4.12 = 0 reserved (0800:0000) 4.11 = 0 asymmetric pause (0400:0000) 4.10 = 0 pause enable (0200:0000) 4. 9 = 0 100BASE-T4 able (0100:0100) 4. 8 = 1 100BASE-TX full duplex able (0080:0080) 4. 7 = 1 100BASE-TX able (0040:0040) 4. 6 = 1 10BASE-T full duplex able (0020:0020) 4. 5 = 1 10BASE-T able (001f:0001) 4. 4- 0 = 1 selector = IEEE 802.3
5. (0000) -- Autonegotiation partner abilities register -- (8000:0000) 5.15 = 0 next page able (4000:0000) 5.14 = 0 acknowledge (2000:0000) 5.13 = 0 remote fault (1000:0000) 5.12 = 0 (reserved) (0800:0000) 5.11 = 0 asymmetric pause able (0400:0000) 5.10 = 0 pause able (0200:0000) 5. 9 = 0 100BASE-T4 able (0100:0000) 5. 8 = 0 100BASE-X full duplex able (0080:0000) 5. 7 = 0 100BASE-TX able (0040:0000) 5. 6 = 0 10BASE-T full duplex able (0020:0000) 5. 5 = 0 10BASE-T able (001f:0000) 5. 4- 0 = 0 selector = ???

mii is working, maybe some configuration missing i'm not familiar with the code, so really needs some help from somebody any hint?
-- View this message in context: http://u-boot.10912.n7.nabble.com/AP94-u-boot-network-failure-tp177671p17785... Sent from the U-Boot mailing list archive at Nabble.com.

Compilation has some warning below
In file included from /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/common.h:102, from bzlib.c:2: /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/image.h:129:1: warning: "CONFIG_LZMA" redefined <command line>:5:1: warning: this is the location of the previous definition In file included from /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/common.h:102, from bzlib_decompress.c:2: /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/image.h:129:1: warning: "CONFIG_LZMA" redefined <command line>:5:1: warning: this is the location of the previous definition In file included from /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/common.h:102, from crc32.c:12: /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/image.h:129:1: warning: "CONFIG_LZMA" redefined <command line>:5:1: warning: this is the location of the previous definition In file included from /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/common.h:102, from display_options.c:24: /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/image.h:129:1: warning: "CONFIG_LZMA" redefined <command line>:5:1: warning: this is the location of the previous definition In file included from /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/common.h:102, from vsprintf.c:17: /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/image.h:129:1: warning: "CONFIG_LZMA" redefined <command line>:5:1: warning: this is the location of the previous definition LzmaDecode.c: In function `LzmaDecodeProperties': LzmaDecode.c:127: warning: implicit declaration of function `printf' In file included from /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/common.h:102, from LzmaWrapper.c:32: /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/image.h:129:1: warning: "CONFIG_LZMA" redefined <command line>:5:1: warning: this is the location of the previous definition LzmaWrapper.c: In function `lzma_inflate': LzmaWrapper.c:149: warning: comparison between pointer and integer LzmaWrapper.c: At top level: LzmaWrapper.c:46: warning: 'dpos' defined but not used LzmaTools.c: In function `lzma_inflate': LzmaTools.c:149: warning: comparison between pointer and integer LzmaTools.c: At top level: LzmaTools.c:46: warning: 'dpos' defined but not used mips-linux-ar: creating lib_lzma.a cmd_boot.c: In function `do_go': cmd_boot.c:63: warning: passing arg 1 of pointer to function makes integer from pointer without a cast cmd_bootm.c:157:1: warning: "CONFIG_LZMA" redefined In file included from /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/common.h:102, from cmd_bootm.c:27: /home/dony71/Project/VIZIO_1.01.02/boot/u-boot-1.1.4/include/image.h:129:1: warning: this is the location of the previous definition cmd_bootm.c: In function `do_bootm': cmd_bootm.c:327: warning: implicit declaration of function `mips_cache_flush' xyzModem.c: In function `zm_flush': xyzModem.c:266: warning: unused variable `p' xyzModem.c: In function `xyzModem_stream_open': xyzModem.c:455: warning: unused variable `console_chan' ap94.c: In function `ar7100_mem_config': ap94.c:46: warning: implicit declaration of function `ar7100_ddr_find_size' ../common/ar7100_flash.c:28:1: warning: "display" redefined In file included from ../common/ar7100_flash.c:21: ../common/ar7100_flash.h:41:1: warning: this is the location of the previous definition ../common/ar7100_flash.c:39: warning: function declaration isn't a prototype ../common/ar7100_flash.c:43: warning: function declaration isn't a prototype ../common/ar7100_flash.c:53: warning: function declaration isn't a prototype ../common/ar7100_flash.c: In function `flash_init': ../common/ar7100_flash.c:86: warning: passing arg 1 of `flash_get_geom' from incompatible pointer type ../common/ar7100_flash.c:70: warning: unused variable `i' ../common/ar7100_flash.c:71: warning: unused variable `rd' ap94_pci.c: In function `plat_dev_init': ap94_pci.c:92: warning: implicit declaration of function `ar7100_pci_write_config' ap94_pci.c: At top level: ap94_pci.c:310: warning: static declaration of 'ar7100_pci_write_config' follows non-static declaration ap94_pci.c:92: warning: previous implicit declaration of 'ar7100_pci_write_config' was here ap94_pci.c: In function `pci_init_board': ap94_pci.c:429: warning: `return' with a value, in function returning void ap94_pci.c:362: warning: unused variable `val' cpu.c: In function `flush_cache': cpu.c:74: warning: implicit declaration of function `dcache_flush_range' cpu.c:68: warning: unused variable `i' ag7100.c:54: warning: return type defaults to `int' ag7100.c: In function `ag7100_check_link': ag7100.c:289: warning: unused variable `fdx' ag7100.c:289: warning: unused variable `i' ag7100.c: In function `ag7100_mac_addr_loc': ag7100.c:513: warning: unused variable `flash_info' ag7100.c: In function `pkt_push': ag7100.c:60: warning: control reaches end of non-void function ag7100.c: At top level: ag7100.c:249: warning: 'is_setup_done' defined but not used meminit.c: In function `ar7100_ddr_tap_config': meminit.c:93: warning: initialization makes pointer from integer without a cast meminit.c:93: warning: initialization makes pointer from integer without a cast meminit.c:117: warning: passing arg 1 of `flush_cache' makes integer from pointer without a cast meminit.c:137: warning: passing arg 1 of `flush_cache' makes integer from pointer without a cast meminit.c:91: warning: unused variable `prev' meminit.c: In function `ar7100_ddr_get_width': meminit.c:161: warning: initialization makes pointer from integer without a cast meminit.c:161: warning: initialization makes pointer from integer without a cast meminit.c: In function `sanity_mem_check': meminit.c:197: warning: initialization makes pointer from integer without a cast meminit.c: In function `ar7100_ddr_find_size': meminit.c:220: warning: initialization makes pointer from integer without a cast meminit.c:221: warning: unused variable `incr' meminit.c: In function `ar7100_ddr_tap_config': meminit.c:92: warning: 'floor' might be used uninitialized in this function meminit.c:92: warning: 'ceiling' might be used uninitialized in this function net.c: In function `NetLoop': net.c:514: warning: label `skip_netloop' defined but not used net.c: In function `NetStartAgain': net.c:643: warning: integer overflow in expression net.c: In function `PingStart': net.c:819: warning: integer overflow in expression eth.c: In function `eth_initialize': eth.c:235: warning: implicit declaration of function `ag7100_enet_initialize' nfs.c: In function `NfsHandler': nfs.c:673: warning: integer overflow in expression nfs.c: In function `NfsStart': nfs.c:762: warning: integer overflow in expression pci_indirect.c: In function `indirect_read_config_byte': pci_indirect.c:110: warning: implicit declaration of function `out_le32' pci_indirect.c:110: warning: implicit declaration of function `in_8' pci_indirect.c: In function `indirect_read_config_word': pci_indirect.c:111: warning: implicit declaration of function `in_le16' pci_indirect.c: In function `indirect_read_config_dword': pci_indirect.c:112: warning: implicit declaration of function `in_le32' pci_indirect.c: In function `indirect_write_config_byte': pci_indirect.c:118: warning: implicit declaration of function `out_8' pci_indirect.c: In function `indirect_write_config_word': pci_indirect.c:119: warning: implicit declaration of function `out_le16'
-- View this message in context: http://u-boot.10912.n7.nabble.com/AP94-u-boot-network-failure-tp177671p17787... Sent from the U-Boot mailing list archive at Nabble.com.

AP94 has several sources and I check u-boot.bin original from package, all of them don't work even recompile also, network still failure I'm really confused .... where is the problem???
Vizio GPL http://store.vizio.com/xwr100-routercodes
WRT400N GPL http://sourceforge.net/projects/officiallinksysfirmware/files/wrt400n/v1/
WR703N GPL https://code.google.com/p/wr703n-uboot-with-web-failsafe/source/checkout
-- View this message in context: http://u-boot.10912.n7.nabble.com/AP94-u-boot-network-failure-tp177671p17787... Sent from the U-Boot mailing list archive at Nabble.com.
participants (2)
-
donce donce
-
dontz