why eth0 not in /dev

Sascha Hauer s.hauer at pengutronix.de
Thu Nov 15 02:39:29 EST 2012


On Thu, Nov 15, 2012 at 10:40:18AM +0800, zzs wrote:
> When barebox starts, devinfo can show eth0's info
> like this
> 
> 9200-EK:/dev devinfo eth0
> resources:
> driver: none
> bus: platform
> 
> Parameters:
>           ipaddr = 192.168.0.109
>          ethaddr =
>          gateway =
>          netmask =
>         serverip =
> 
> But I can't see it in /dev, Why?

Files are registered manually under /dev/ by device drivers when they
want to provide a file there. A network device does not have anything
useful to register as a file, so there is none. Files under /dev/ often
have the same name as the devices, but this does not have to be the
case, they are two different things.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list