mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* why eth0 not in /dev
@ 2012-11-15  2:40 zzs
  2012-11-15  7:39 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: zzs @ 2012-11-15  2:40 UTC (permalink / raw)
  To: barebox

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?

-- 
Best Regards,
zzs



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: why eth0 not in /dev
  2012-11-15  2:40 why eth0 not in /dev zzs
@ 2012-11-15  7:39 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-11-15  7:39 UTC (permalink / raw)
  To: barebox

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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-15  7:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-15  2:40 why eth0 not in /dev zzs
2012-11-15  7:39 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox