[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Ethernet driver compilationi problem



Hi John,

    My system has the xps_ethernetlite instantiated. I did run petalinux-copy-autoconfig prior building the kernel. And I do have driver entry for the emac in .mss file. I think I figured the problem after I sent my question. I had to enable the "Xilinx 10/100 OPB emaclite" option under the device driver->network device support->Ethernet page in the config menu. In addition the default option "Xilinx 10/100 OPB emac" must be disabled. Otherwise it will be picked up instead of the emaclite. Now I can compile through the kernel. But I still have not tried running on hardware yet. Hopefully this will work.

Thanks,

Simon

----- Original Message ----
From: John Williams <jwilliams@xxxxxxxxxxxxxx>
To: microblaze-uclinux@xxxxxxxxxxxxxx
Sent: Monday, January 7, 2008 7:22:44 PM
Subject: Re: [microblaze-uclinux] Ethernet driver compilationi problem

Hi Simon,

Simon Tam wrote:
> Hi,
>
>    When compiling the kernel (v0.3-rc1), I got the following errors:
>
> drivers/net/xilinx_emac/adapter.c: In function `XEmac_GetConfig':
> drivers/net/xilinx_emac/adapter.c:224: error:
> `CONFIG_XILINX_ETHERNET_NUM_INSTANCES' undeclared (first use in this

[snip]

>    I tried the V5 TEMAC and the soft EMAClite. Both got the same
> errors. Anyone knows what may be wrong?

Some things to check, from most to least obvious

1. Does your system have an opb_emac controller in it?
2. Have you run the "petalinux-copy-autoconfig' script from within your
HW project
3. Does your MSS file have a driver entry for the EMAC( even just
"generic" driver).

Regards,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/