Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

DE2 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    check your kernel include/nios2_system.h

    it is na_DM9000A ,

    edit drivers/net/dm9000x.c na_dm9000 => na_DM9000A
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Jun 5 2006, 01:10 PM

    check your kernel include/nios2_system.h

    it 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I&#39;m getting the exact same errors, except drivers/net/dm9000x.c doesn&#39;t exist. I&#39;m pretty sure I&#39;ve followed the config steps in the nioswiki to the letter. Copying the file from the nios kit directory doesn&#39;t work. What can I do?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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&#39;m sorry for the delay in mine - I&#39;ve had to put this project aside for a few days.

    Anyway, I&#39;m using the microtronix 1.4 distro (2.6.11) so my kernel config calls it "Davicom DM9000 10_100 chip support" and it&#39;s checked. Is that going to be a problem?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sorry, I won&#39;t support the Microtronix&#39;s release 1.4 or Windows.

    I will support uClinux-dist only.