1/1
U-boot issue: ethernet doesn't work
by jiayu on May 1, 2013 |
jiayu
Posts: 4 Joined: Mar 25, 2013 Last seen: Aug 6, 2014 |
||
Hello, everyone!
For these days, I'm trying to install Linux on my atlys board by using the tftp of u-boot. The board has already implemented with ORPSOC successfully. However, it seems like the ethernet connection is not working.The u-boot gives the information when I ping the host: ********************************************* ==> ping 192.168.2.2 ethoc Using ETHOC-0 device ping failed; host 192.168.2.2 is not alive ********************************************* The network is just a simple LAN that connects the host computer (Windows operatiing system) and the board together with a single cable. ***************************************** The network settings of host(Windows) is: IP address: 192.168.2.2 Netmask: 255.255.255.0 Gateway IP: 192.168.2.1 ***************************************** The network settings of the board(Atlys) is: ethaddr=00:12:34:56:78:9a gatewayip=192.168.2.1 ipaddr=192.168.2.8 netmask=255.255.255.0 serverip=192.168.2.2 ********************************************* The u-boot is generated by the followings: Open a terminal, set CROSS_COMPILE=or32-elf- and export it. Come into the directory of u-boot, then make distclean make atlys Then I made a SPI bootable file(.mcs) includes the FPGA configuration and the u-boot and I dowloaded it to the SPI flash. UART shows the following when I reset the board: =================================================== U-Boot 2012.10-rc1-gfd9a672 (Apr 26 2013 - 16:16:35) CPU: OpenRISC-1200 (rev 8) @ 50 MHz D-Cache: 32768 bytes, 32 bytes/line, 1 way(s) I-Cache: 32768 bytes, 32 bytes/line, 1 way(s) DMMU: 64 sets, 1 way(s) IMMU: 64 sets, 1 way(s) MAC unit: yes Debug unit: yes Performance counters: no Power management: no Interrupt controller: yes Timer: yes Custom unit(s): no Supported instructions: ORBIS32: yes ORBIS64: no ORFPX32: yes ORFPX64: no Hardware multiplier: yes Hardware divider: yes BOARD: atlys SF: Detected N25Q128 with page size 64 KiB, total 16 MiB NET: ETHOC-0 ========================================================== I think the u-boot works fine, except the network. Some investigations: 1. I heard about the OpenRISC designs only support the 10/100Mbps network. When I plug in the network cable, the LEDs of the board show the current network is running at 1Gbps!(The current ethernet mode of the host computer is set to Autonegotiation) After that I set the ehternet mode of my host computer to 100M Duplex, and the LED on Atlys board indicates the network is 100Mbps Duplex now. And then ping the host agian. The result is still made me upset, ping failed. =_=|| 2. After I execute the ping command, I saw the LED stands for transmission flickers. But my home computer got no packets shows on the monitoring window for ehternet connections. I'm a beginner of this. Can anyone help me to solve this problem? |
RE: U-boot issue: ethernet doesn't work
by stekern on May 1, 2013 |
stekern
Posts: 84 Joined: Apr 28, 2009 Last seen: Nov 10, 2016 |
||
I just pushed a crude workaround related to a problem with ethernet in u-boot,
it's not a solution, but should make networking work at least: http://git.openrisc.net/cgit.cgi/stefan/u-boot/commit/?id=c7845df64f7df75dc3d46e2f6385c0d901f9d416 |
RE: U-boot issue: ethernet doesn't work
by jiayu on May 1, 2013 |
jiayu
Posts: 4 Joined: Mar 25, 2013 Last seen: Aug 6, 2014 |
||
Hello, stekern!
Thanks a lot! The problem is disappeared now. Terminal shows: ******************************* ==> ping 192.168.2.2 ethoc Using ETHOC-0 device host 192.168.2.2 is alive ******************************* |
1/1