On 29/11/2010 16:34, Frans van Berckel wrote:
On Mon, 2010-11-29 at 14:43 +0000, Richard Mortimer wrote:Sun systems generally get their ethernet addresses from the Openboot PROM and don't use the device ROM settings. It maybe that the cassini driver doesn't pick the right values up or maybe OBP isn't putting them there. Can you get a prtconf -pv listing for you box. That will help to determine where the problem lies.Sure I can, attaching a prtconf-pv.txt tar ball.
Both devices have local-mac-address properties in the device tree. That suggests that there is something wrong with the logic in driver itself.
version: 'Gigaswift FCode 2.10 02/03/05'
address-bits: 00000030
max-frame-size: 00004000
phy-type: 'mif'
model: 'SUNW,pci-ce'
device_type: 'network'
name: 'network'
local-mac-address: 0003ba62.8d61
version: 'Gigaswift FCode 2.10 02/03/05'
address-bits: 00000030
max-frame-size: 00004000
phy-type: 'mif'
model: 'SUNW,pci-ce'
device_type: 'network'
name: 'network'
local-mac-address: 0003ba62.8d62
I had a quick look at the 2.3.36 driver on kernel.org
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.36.y.git;a=history;f=drivers/net/cassini.c;h=28c88eeec757361fb2fa3db11a63b57c97b892fb;hb=HEAD
and a cursory look at that shows code for parsing local-mac-address
(circa line 3290). I haven't looked very deeply but it seems like the
driver is failing to read the VPD rom and falling back onto a random
address.
There doesn't seem to be anything obvious in the recent history that suggests where this might have been fixed.
Next step would likely be to try a 2.6.36 kernel to see whether it already has a fix etc.
Regards Richard
Thanks, Frans van Berckel