From: Arno Steffen Date: Tue, 19 Jan 2010 14:54:51 +0100 Subject: [U-Boot] Linux Kernel without Ethernet (missed MAC) In-Reply-To: <73173D32E9439E4ABB5151606C3E19E2030A365124@SC-VEXCH1.marvell.com> References: <804f0d21001190144o7c57c836s981dab507a1d5754@mail.gmail.com> <73173D32E9439E4ABB5151606C3E19E2030A365124@SC-VEXCH1.marvell.com> Message-ID: <804f0d21001190554r13f582abl3dbbc80b50df3c06@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de I think this is a uboot bug. If this is a kernel bug - where does the kernel gets the mac address from? Is it reading a device register? So it must be set by u-boot. But obviously it isn't there (kernel boot log): "eth0: LAN9115 (rev 2) at 0x2c000000 IRQ 336 eth0: Invalid ethernet MAC address. Please set using ifconfig" The problem occures in any boot sequence (nand, network) - so although the uboot initializes the ethernet chip, linux kernel doesn't find the mac-address. So your advice doesn't help. I am not expert enough to know how it should be. In an older uboot (2008.10) I could solve the problem with any ethernet access in uboot (as you suggested) - then I get ethernet in kernel boot as well. In 2009.11 it is different - no way to get it working - same kernel. Looks like uboot either doesn't set mac or deletes mac. Best regards Arno 2010/1/19 Prafulla Wadaskar : > > >> -----Original Message----- >> From: u-boot-bounces at lists.denx.de >> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Arno Steffen >> Sent: Tuesday, January 19, 2010 3:14 PM >> To: u-boot at lists.denx.de >> Subject: [U-Boot] Linux Kernel without Ethernet (missed MAC) >> >> Changing my OMAP EVM board to newest uboot 2009-11 I do have a problem >> with ethernet. >> Although the kernel could be loaded via tftp perfectly, the upcoming >> kernel complains about invalid MAC. >> >> Kernel command line: mem=128M console=ttyS0,115200n8 >> root=/dev/mtdblock8 rw rootfstype=jffs2 ip=dhcp > > Hi Arno > > I hope, when you are booting the kernel from media (i.e. NAND/Flash/Sata and not Ethernet) you are getting this problem. > u-boot does not perform peripheral h/w initialization by default, u-boot as well as kernel assumes h/w is doing this. > > May be in your case, smc91x h/w does not do it on Power on by default. > When you do any network activity prior to kernel boot, device_init is invoked and the MAC address is set and your system works. > > Possible Solution: add dummy network command like (ping x.x.x.x) in your auto boot sequence. > > Regards.. > Prafulla . . > >> ... >