From: Arno Steffen Date: Tue, 19 Jan 2010 17:33:32 +0100 Subject: [U-Boot] Linux Kernel without Ethernet (missed MAC) In-Reply-To: <4B55C699.5040401@esd.eu> References: <804f0d21001190144o7c57c836s981dab507a1d5754@mail.gmail.com> <4B55C699.5040401@esd.eu> Message-ID: <804f0d21001190833r2b30c288q5efa7930603cb224@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 2010/1/19 Daniel Gorsulowski : > On ARM, I solved that problem as follows: > > 1. Add "ethaddr=$(ethaddr)" to your kernel command line. e.g.: > ? mem=128M console=ttyS0,115200n8 ethaddr=$(ethaddr) > > 2. Apply this patch on linux kernel (approved on v2.6.31): > Thanks for this idea. I checked the kernel and set in file smsc911x.c in function smc911x_reset() dev->dev_addr[0] = 0 to get valid (but not my mac address). Nevertheless I would prefer to patch the uboot instead of kernel. What I don't understand is: MAC (that is set in uboot - at least if I do a tftp) will disapear. Is it cleaned up by uboot? Somehow it has worked before ... Or the other way around: What is the current valid and recommended way to pass mac from uboot to kernel? It should work without patches.