[U-Boot-Users] scb9328 breakage (CONFIG_NET_MULTI and eth_get_dev)
Ben Warren
bwarren at qstreams.com
Sat Feb 24 23:24:23 CET 2007
Andrew,
--- Andrew Dyer <amdyer at gmail.com> wrote:
> I have a board similar to the scb9328 that I'm
> working on a port to.
> I tried compiling a recent version of u-boot for the
> scb9328 target
> and it fails with a linker error (see below). The
> source was pulled
> from git on Feb. 10, 2007. compiler is from arm
> ELDK-4.0
>
> Adding a define for CONFIG_NET_MULTI in the board
> config file makes
> the compile succeed. I don't actually have an
> scb9328 (or my new
> board yet) so I can't test it.
>
> Is CONFIG_NET_MULTI pretty much mandatory? If so,
> why even have it as
> an option?
>
>
Yeah, for most recent ethernet devices it's
more-or-less mandatory. If you look in 'net/eth.c'
you'll see that many of the newer drivers only have
their code within the confines of #ifdef
CONFIG_NET_MULTI. This code needs an overhaul, and
for other reasons too, but as with much of U-boot it
has to be done very carefully to ensure
backwards-compatibility.
regards,
Ben
More information about the U-Boot
mailing list