[U-Boot] [PATCH 1/4] net: extend the netdev to have a common way to set the hw mac address

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue May 12 02:04:46 CEST 2009


> > > >
> > > > this exactly what is done only write mac hw register
> > > > without init the eth stack
> > > >
> > > > before we do need to init the mac and detect the phy if we want to
> > > > store now we have to call the set_hw_enetaddr
> > >
> > > then we agree you're doing it wrong and this patch is not needed/wanted
> > >
> > > there is this FAQ, but i think we can add more info to it:
> > > http://www.denx.de/wiki/view/DULG/EthernetDoesNotWorkInLinux
> >
> > It does not work ether
> 
> your solution blatantly ignores the issues raised in the FAQ.  you cant push a 
> change without clearing addressing those.
> 
> > how do you deal with multiple nic?
> 
> the ATAG/FDT tree handles most arches.
both not possible
> 
> for the rest you have two major issues to address:
>  - how do i pass it to the next OS ?
>     * have the OS read the u-boot environment
>     * have the OS read the command line
>  - how does the OS set it ?
>     * add a board hook to set it
>     * set it via user space and normal methods (`ifconfig hw`)
> 
> > how do set a mac for NFS Rootfs?
> 
> use initramfs
don't you think it's overkill to use a initramfs just for set a mac address??
> 
> > how do you boot a *mainline* kernel?
> 
> i dont know why you're emphasizing mainline.  if it's your board and if you 
> implement the change correctly, submit it to mainline.
because I already known RMK answer
NACK

Best Regards,
J.


More information about the U-Boot mailing list