Skip to contentSkip to conversation

kernel 2.6.15, udev 084

DISCUSSION Andrey Borzenkov 2 participants 3 messages Feb 5, 2006

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Mark Carey

All,

In a quest to get pptp working for adsl (I hear kernel 2.6.15 has some notable inclusions in this regard, ex pptpclient.sf.net) I have compiled kernel 2.6.15.2 rebooted and note that udev version 057 no longer works with this kernel. On reboot had no /dev/eth0 and /dev/eth1.

What are those devices and what do you need them for? Interfaces never had any device entry in /dev. I guess they have been created by accident before.

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD5c5BR6LMutpd94wRAjlJAJ9JeaiRuAF2Y+AlUnYoAeGi38is8wCgv/Kk qWKi9/UKKTaeUvhOGE6fQYs=0pUb
-----END PGP SIGNATURE-----

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 13 lines · Andrey Borzenkov

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Mark Carey

All,

In a quest to get pptp working for adsl (I hear kernel 2.6.15 has some notable inclusions in this regard, ex pptpclient.sf.net) I have compiled kernel 2.6.15.2 rebooted and note that udev version 057 no longer works with this kernel. On reboot had no /dev/eth0 and /dev/eth1.

Quoted 2 lines

What are those devices and what do you need them for? Interfaces never had any device entry in /dev. I guess they have been created by accident before.

As you rightly indicate these are interfaces and they have not been created even on the working system,

[root@angus:/dev]# ls eth*
ls: eth*: No such file or directory

I have booted an Ubuntu Live CD and checked that the only entries in /dev prior to mounting the tmpfs are console and null - IIRC these are required at a minimum to get a shell running?

Given that the devices {eth0, eth1} have never existed, in recent history, why then does

[root@angus:/dev]# ip link set eth0 up
SIOCGIFFLAGS: No such device

fail with the new kernel/udev combination claiming SIOCGIFFLAGS and work with the old?

Also note that the ppp device has problems,

/usr/sbin/pppd: pppd is unable to open the /dev/ppp device. You need to create the /dev/ppp device node by executing the following command as root:

	mknod /dev/ppp c 108 0

Do I need to reenable hotplug,

echo "/sbin/udevsend" > /proc/sys/kernel/hotplug

after processing queued events? Or should I no longer be using
hotplug with the new udev?

Thanks,

Mark Carey

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Andrey Borzenkov

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 27 lines · Mark Carey
Quoted 12 lines · Andrey Borzenkov

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines · Mark Carey

All,

In a quest to get pptp working for adsl (I hear kernel 2.6.15 has some notable inclusions in this regard, ex pptpclient.sf.net) I have compiled kernel 2.6.15.2 rebooted and note that udev version 057 no longer works with this kernel. On reboot had no /dev/eth0 and /dev/eth1.

Quoted 3 lines

What are those devices and what do you need them for? Interfaces never had any device entry in /dev. I guess they have been created by accident before.

As you rightly indicate these are interfaces and they have not been created even on the working system,

[root@angus:/dev]# ls eth*
ls: eth*: No such file or directory

I have booted an Ubuntu Live CD and checked that the only entries in /dev prior to mounting the tmpfs are console and null - IIRC these are required at a minimum to get a shell running?

Quoted 9 lines

Given that the devices {eth0, eth1} have never existed, in recent history, why then does

[root@angus:/dev]# ip link set eth0 up
SIOCGIFFLAGS: No such device

fail with the new kernel/udev combination claiming SIOCGIFFLAGS and work with the old?

is driver loaded in new kernel? Do interfaces still have the same names?

Quoted 7 lines

Also note that the ppp device has problems,

/usr/sbin/pppd: pppd is unable to open the /dev/ppp device. You need to create the /dev/ppp device node by executing the following command as root:

	mknod /dev/ppp c 108 0

It is chicken and egg problem. /dev/ppp is created by loading ppp_generic (at least in 2.6.15.2) but someone has to load it ... having /dev/ppp in advance triggers module loading. Alternatively compile ppp_generic in kernel and not as module.

Quoted 4 lines

Do I need to reenable hotplug,

echo "/sbin/udevsend" > /proc/sys/kernel/hotplug

If kernel is properly setup, it should not be necessary. Do you have CONFIG_KOBJECT_UEVENT=y?

Quoted 3 lines

after processing queued events? Or should I no longer be using
hotplug with the new udev?

It should be possible to do everything with udev that hotplug did before.

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD5eWTR6LMutpd94wRAmYXAKCN+ci/6Opd1Np5ORRIsScll03PgwCfZHgC k6HpkkeQ549vRuUHrNDBSVw½K7
-----END PGP SIGNATURE-----

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel