lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 5 Jun 2008 10:47:00 +0100
To:	Jens Gehrlein <>
Subject: Re: [Uclinux-dist-devel] [PATCH 01/01] smsc911x: fix MAC addresssetting
 after reset

Hi Jens,

> Sorry. Newbie question:
> How can I pass the MAC address via kernel command line for this driver? 
> Is there a predefined parameter?
> My problem is:
> U-Boot resets the chip after each completed transfer. Wolfgang Denk 
> suggested to pass the MAC address via kernel command line. I need the 
> ethernet device at kernel startup to mount a root filesystem via NFS, so 

> I added the platform device in my board specific code as shown below (it 

> still relates to the old driver).
> Should I patch the driver directly to get the MAC address via __setup()
> or can I pass the MAC address via the device structures.
> What do you suggest?

The smsc911x driver accepts mac addresses set "by configuration", so if 
brought up after boot you could assign the mac address like this:

ifconfig eth0 hw ether 00:11:22:33:44:55 up

But as you're using an NFS root, you need to assign the mac address during 
boot.  I'm not sure of the best way to do this, there isn't currently a 
dev_addr field in smsc911x_platform_config, but you could add one.

Alternatively, if the bootloader already sets the mac address you could 
modify the driver to read it off the device (into dev->dev_addr) before 
resetting it?

Steve Glendinning
m: +44 777 933 9124

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists