- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I got a 2C35 development board and try to run u-boot on it. following this instruction http://forum.niosforum.com/forum/index.php?showtopic=4081&hl=u-boot ://http://forum.niosforum.com/forum/in...4081&hl=u-boot ://http://forum.niosforum.com/forum/in...4081&hl=u-boot (http://forum.niosforum.com/forum/index.php?showtopic=4081&hl=u-boot), I was able to build and download u-boot. then I configured the network and tried to ping any host, the node crashed and complained about memory allocation failed, like this: Warning: MAC addresses don't match: HW MAC address: 01:00:EF:FD:EF:FF "ethaddr" value: 08:00:3E:26:0A:5B Using MAC Address 08:00:3E:26:0A:5B SMC91111: smc_hardware_send_packet SMC91111: memory allocation, try 1 succeeded ... SMC91111: Memory allocation failed. SMC91111: smc_rcv RCV: STATUS e000 LENGTH 0 I searched around the forum and found this problem was reported before http://forum.niosforum.com/forum/index.php...=4674&hl=u-boot (http://forum.niosforum.com/forum/index.php?showtopic=4674&hl=u-boot), but did not see an answer. I am using the u-boot 1.1.3, which was download from http://www.psyent.com/download (http://www.psyent.com/download), while I checked the latest version 1.1.5) has no change in the ethernet driver file (smc91111.c). Anybody knows the fix please advise, your help is highly appreciated. ps. the ethernet chip itself should be fine, since it was working fine for me with eCos and uClinux, so I think the ethernet driver needs to be fixed. Thanks, BinLink Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bin,
> I got a 2C35 development board and try to run u-boot on it. Me too ... fun board. See notes below. > I checked the latest version 1.1.5) has no change in the ethernet driver file Correct. > Anybody knows the fix please advise, your help is highly appreciated. Check your base address ... it should be: 8221_0300 not 8211_0300 NOTES: -- The u-boot development process is undergoing some big changes right now -- due to its popularity and the large number of contributions from the u-boot community. -- I'll be taking responsibility for the u-boot Nios-32/Nios II trees. I'll setup a git repository for Nios soon. This will make it much easier for the Nios community to contribute. Until this time, there won't be any new patches applied to the main tree. -- I added for EPCS16 and EPCS64, as well as the 2C35 board but have not committed the changes yet. See below for excerpts from EP2C35.h. Regards, --Scott /*------------------------------------------------------------------------ * ETHERNET -- The header file for the SMC91111 driver hurts my eyes ... * and really doesn't need any additional clutter. So I choose the lazy * way out to avoid changes there -- define the base address to ensure * cache bypass so there's no need to monkey with inx/outx macros. *----------------------------------------------------------------------*/# define CONFIG_SMC91111_BASE 0x82210300 /* Base addr (bypass) */# define CONFIG_DRIVER_SMC91111 /* Using SMC91c111 */# undef CONFIG_SMC91111_EXT_PHY /* Internal PHY */# define CONFIG_SMC_USE_32_BIT /* 32-bit interface */ # define CONFIG_ETHADDR 08:00:3e:26:0a:5b# define CONFIG_NETMASK 255.255.255.0# define CONFIG_IPADDR 192.168.2.21# define CONFIG_SERVERIP 192.168.2.16- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Amazing, it works, at lease I can now ping other hosts from the altera board. (although my first try to ping the board from outside failed, will work on this later).
The base address was 8221_0000 and I also observed 8221_0300 in uclinux and was thinking 0x300 was just the offset and did not give it a try. I found people in this forum are really nice and helpful:-) Thanks a lot, Scott. Bin- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bin,
> although my first try to ping the board from outside failed u-boot will not respond to a PING. Some people call this a limitation, others call it a security feature ;-) The best way to play with the networking features is to try the following: 1. Setup a tftp server and try the tftpboot command. 2. Setup an NFS drive and download from the drive. You might also want to try to get net console working -- I've never actually tried this. > I found people in this forum are really nice and helpful: This is a _very_ friendly forum -- and people always seem willing to share. I'll make a post once the Nios II git repository is setup. I may be several weeks though. Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Scott,
Got it, I will try out the tftpboot, then I can go ahead to my application development. Thanks again. Bin
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page