Skip to contentSkip to conversation

why eth0 not in /dev

DISCUSSION zzs 2 participants 2 messages Nov 15, 2012

lore
Share & tools
lore

zzs

author
#0 lore raw

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?

Signature · 9 lines
Best Regards,
zzs



_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 8 lines · zzs

When barebox starts, devinfo can show eth0's info
like this

9200-EK:/dev devinfo eth0
resources:
driver: none
bus: platform

Quoted 8 lines

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

Signature · 9 lines
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 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox