This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MAC (ESA) address with Redboot's fconfig-tool


On Wed, 2004-01-07 at 11:55, Philip Soeberg wrote:
> Hi,
> 
> Ive now spent almost the entire day trying to figure out where Redboot get
> its default MAC address for eth0 from.
> 
> Having a completely wiped flash rom, Redboot - just after installment -
> finds its default MAC address as 00:68:FF:FF:FF:FF. Searching for any
> combination of this MAC in the source-tree yielded nothing...
> 
> Im using a PowerPC 823 based board, with the ethernet-part located in the
> devs/eth/powerpc/quicc package.
> 
> It turns out that the MAC address Redboot finds is caused by a bug in the
> fconfig design.
> 
> Below is an explanation of the cause; and a possible solution at the bottom.
> 
> ---
> 
> The bug originates from the way the RedBoot_config_option is used in
> fconfig:
> 
> In devs/etc/powerpc/quicc/current/src/if_quicc.c line 102 we find:
> RedBoot_config_option("Network hardware address [MAC]",
>                       quicc_esa,
>                       ALWAYS_ENABLED, true,
>                       CONFIG_ESA, 0
>     );

Note: this was recently changed and should work correctly now.  Try
changing the "0" above to point to the default ESA.  Look at a newer
platform for examples, e.g. the A&M Rattler.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]