[U-Boot-Users] [PATCH] update-ethaddr-handling-on-cmc-pu2-board.patch

Wolfgang Denk wd at denx.de
Wed Nov 16 15:23:07 CET 2005


In message <47F3F98010FF784EBEE6526EAAB078D1C05E9D at tq-mailsrv.tq-net.de> you wrote:
> 
> I'm also not very happy with this. 'ethaddr' is already passed to the
> linux kernel as boot parameter. But I didn' have access to it from
> user space. Our customer (which buys the CMC-PU2 board from us), runs

Of course you can read the MAC address from user space.

Just use the standard tools:

	bash-2.05b# uname -a
	Linux cmcpu2 2.4.27-vrs1 #1 Sat Oct 8 18:00:54 MEST 2005 armv4l armv4l armv4l GNU/Linux
--------------^^^^^^ CMC-OU2 board
	bash-2.05b# ifconfig eth0
	eth0      Link encap:Ethernet  HWaddr F6:70:1D:61:B5:9D  
----------------------------------------------^^^^^^^^^^^^^^^^^ MAC address.
		  inet addr:192.168.20.1  Bcast:192.168.255.255  Mask:255.255.0.0
		  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
		  RX packets:14238 errors:0 dropped:0 overruns:0 frame:0
		  TX packets:8864 errors:0 dropped:0 overruns:0 carrier:0
		  collisions:0 txqueuelen:1000 
		  RX bytes:12536644 (11.9 Mb)  TX bytes:1382448 (1.3 Mb)
		  Interrupt:24 Base address:0xc000 


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
No one wants war.
	-- Kirk, "Errand of Mercy", stardate 3201.7




More information about the U-Boot mailing list