Forum Discussion
Altera_Forum
Honored Contributor
19 years agoDE2 dev board ->ETH problem
Hi,
I tried to put uClinux on a DE2 dev board for one of my school project, and i don't succeed to enable the ETH. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif I use the DE2_NET from the DE2_System_v1.3 zip file, cause i don't found any good ptf in the DE2_System_v1.5 zip file. Then the exemple of nioswiki ethernet (http://nioswiki.jot.com/wikihome/operatingsystems/ethernet) description is not ... easy to understand (for me) http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif . Is there someone who can explain me how to enable the ETH ??? Or is there someone who can send me his files with ETH enabled ??? Thanks XR12 Replies
- Altera_Forum
Honored Contributor
Please try out the DE2_NET.sof and zImage_de2_net files attached in
http://nioswiki.jot.com/wikihome/operating...s/tryoutuclinux (http://nioswiki.jot.com/wikihome/operatingsystems/tryoutuclinux) It has the dm9ks driver enabled so you play without any compilation. The later sof files in DE2 packages (1.3-1.5) might have some problems in SDRAM. The above sof is from v1.1. You may look at the boot message of DE2 in the page, http://nioswiki.jot.com/wikihome/operating...ems/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/uclinuxdist) and watch for the probe of the chip, <DM9KS> I/O: 80900090, VID: 90000a46 And you should try out the ifconfig and net services. When you want to config the kernel, select only the dm9ks net driver. [*] DM9000A with checksum offloading - Altera_Forum
Honored Contributor
Thank you hyppo, it works. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
At the boot message of DE2 i can see : <DM9KS> I/O: 80900090, VID: 90000a46, but if i do an ifconfig i just have the localhost, no eth0 or something like that. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif Why ??? You told me : <div class='quotetop'>QUOTE </div> --- Quote Start --- When you want to config the kernel, select only the dm9ks net driver. [*] DM9000A with checksum offloading[/b] --- Quote End --- But i don't see when it is in the kernel configuration. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif What i have to do, to configure the eth as you show it on ethernet (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/ethernet), ??? (cause i never config it before, and i don't know what to do http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif ) Thanks Good Bye XR - Altera_Forum
Honored Contributor
did you run ifattach?
/bin/ifattach --addr 10.1.1.99 --mask 255.255.255.0 --net 10.1.1.0 --gw 10.1.1.11 --if eth0 of course you need to fill in the settings of your network. - Altera_Forum
Honored Contributor
Thank for your help nacide, but iI'm sorry, the result of your command is
/bin/ifattach: Bad command or file name Any ohter idea ??? please http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif --- Quote Start --- originally posted by nacide@Mar 14 2007, 01:25 PM did you run ifattach?/bin/ifattach --addr 10.1.1.99 --mask 255.255.255.0 --net 10.1.1.0 --gw 10.1.1.11 --if eth0
of course you need to fill in the settings of your network.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22272)
--- quote end ---
--- Quote End ---
- Altera_Forum
Honored Contributor
of course you need the ifattach exexutable in the /bin directory of your rootfs
You can copy ifattach from the examples of the microtronix port among with many other utilities. Make sure that you have set the permissions to executable. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by xrevo@Mar 14 2007, 06:22 PM at the boot message of de2 i can see :<dm9ks> i/o: 80900090, vid: 90000a46,
but if i do an ifconfig i just have the localhost,
no eth0 or something like that. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif
why ??? --- Quote End --- You need to bring up eth0 first, before you can use ifconfig to list eth devs. Either, ifconfig eth0 192.168.1.10 # static ip route add default gw 192.168.1.254 # gateway Or, use dhcp client ifconfig eth0 up dhcpcd & About the kernel config problem, which version of uClinux-dist and nios2 patches do you use? You should disable SMC91 chip and select DM9000A with checksum offloading. Check if you have this file, linux-2.6.x/drivers/net/dm9ks.c .
- Altera_Forum
Honored Contributor
Hello,
Yes, your command works, i have the eth0 with a good configuration. I use uClinux-dist-20070130 and the patch uClinux-dist-20070130-nios2-02.diff which is present here (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist/uclinux-dist-20070130-nios2-02.diff.gz?cachetime=1170915312300). I haven't got the file dm9ks.c. Maybe it's the reason of my failure http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/mad.gif . Can you send it to me ??? (and if you have the time, can you send me your ptf, or all the thing that i need to correctly compile uClinux ??? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif ) Thanks for your help http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif XREvo - Altera_Forum
Honored Contributor
Or you may not have the patches applied, you need a path to the patch file,
gunzip -c <path>/uClinux-dist-20070130-nios2-02.diff.gz | patch -p0 - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Mar 20 2007, 03:39 AM or you may not have the patches applied, you need a path to the patch file,gunzip -c <path>/uclinux-dist-20070130-nios2-02.diff.gz | patch -p0
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22350)
--- quote end ---
--- Quote End --- Hi, I have applied the patch uClinux-dist-20070130-nios2-02.diff.gz, and now, i have the dm9ks.c in the in linux-2.6.x/drivers/net/, but it never ask me the things which are present at nioswiki.forum.com (http://nioswiki.jot.com/wikihome/operatingsystems/ethernet). http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif I never see this text ... so ... on the uClinux that i create, at the boot, i haven't "<DM9KS> I/O: 80900090, VID: 90000a46", and i must finish my project in 4 days http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif All the other things are done, but this point is the final. Please, Can you help me ??? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif I really need to build a µClunix image with my programs, and boot it on my DE2 board with an enabled ethernet. Thanks. XREvo
- Altera_Forum
Honored Contributor
TO_BE_DONE