Forum Discussion
Altera_Forum
Honored Contributor
20 years agoDE2 with dm9000 compiled error!! help
HI :hippo
I add TPC/IP protocol in the kernel my board is DE2,the network card is dm9000.when compile the kernel,the error messares were found: drivers/net/dm9000x.c:305: error: `na_dm9000_irq' undeclared here (not in a function) drivers/net/dm9000x.c: In function `dmfe_probe': drivers/net/dm9000x.c:362: error: `na_dm9000' undeclared (first use in this function) drivers/net/dm9000x.c:362: error: (Each undeclared identifier is reported only once drivers/net/dm9000x.c:362: error: for each function it appears in.) drivers/net/dm9000x.c: At top level: drivers/net/dm9000x.c:291: warning: 'dmfe_debug' defined but not used drivers/net/dm9000x.c:295: warning: 'debug' defined but not used drivers/net/dm9000x.c:296: warning: 'mode' defined but not used drivers/net/dm9000x.c:785: warning: 'dmfe_reset_dm9000' defined but not used make[2]: *** [drivers/net/dm9000x.o] error 1 make[1]: *** [drivers/net] error 2 make: *** [drivers] error 2 how can I do now????9 Replies
- Altera_Forum
Honored Contributor
check your kernel include/nios2_system.h
it is na_DM9000A , edit drivers/net/dm9000x.c na_dm9000 => na_DM9000A - Altera_Forum
Honored Contributor
I use nios_0.ptf which comes from DE2_NET project.
thanks!!!! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Jun 5 2006, 01:10 PM check your kernel include/nios2_system.hit is na_dm9000a ,
edit drivers/net/dm9000x.c na_dm9000 => na_dm9000a
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15897)
--- quote end ---
--- Quote End ---
- Altera_Forum
Honored Contributor
there is no error now thanks hippo http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif
- Altera_Forum
Honored Contributor
I'm getting the exact same errors, except drivers/net/dm9000x.c doesn't exist. I'm pretty sure I've followed the config steps in the nioswiki to the letter. Copying the file from the nios kit directory doesn't work. What can I do?
- Altera_Forum
Honored Contributor
Are you using uClinux-dist?
The ptf for vendor_hwselect must match your board and the sof. If you use DE2, look in DE2_System/DE2_demonstrations/DE2_NET/ nios_0.ptf and DE2_NET.sof . If you use DE2 board, you should enable "DM9000A with checksum offloading" . linux-2.6.x/drivers/net/dm9ks.c . - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Feb 8 2007, 09:59 PM are you using uclinux-dist?the ptf for vendor_hwselect must match your board and the sof.
if you use de2, look in de2_system/de2_demonstrations/de2_net/ nios_0.ptf and de2_net.sof .
if you use de2 board, you should enable "dm9000a with checksum offloading" . linux-2.6.x/drivers/net/dm9ks.c .
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21385)
--- quote end ---
--- Quote End --- Thanks for the reply. I'm sorry for the delay in mine - I've had to put this project aside for a few days. Anyway, I'm using the microtronix 1.4 distro (2.6.11) so my kernel config calls it "Davicom DM9000 10_100 chip support" and it's checked. Is that going to be a problem?
- Altera_Forum
Honored Contributor
Sorry, I won't support the Microtronix's release 1.4 or Windows.
I will support uClinux-dist only. - Altera_Forum
Honored Contributor
edit: never mind, it's fixed http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/dry.gif