From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 12 May 2009 02:04:46 +0200 Subject: [U-Boot] [PATCH 1/4] net: extend the netdev to have a common way to set the hw mac address In-Reply-To: <200905111257.00648.vapier@gentoo.org> References: <1242023969-13542-1-git-send-email-plagnioj@jcrosoft.com> <200905111224.32766.vapier@gentoo.org> <20090511163728.GB32661@game.jcrosoft.org> <200905111257.00648.vapier@gentoo.org> Message-ID: <20090512000446.GD18336@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > > > > > > > > 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.