* udevstart problem
@ 2004-11-07 14:07 Nico Schottelius
2004-11-07 14:37 ` Marco d'Itri
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: Nico Schottelius @ 2004-11-07 14:07 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 465 bytes --]
Hello!
I am trying to use udev with an empty /dev.
It works more or less good, when mounting /sys and then
runnig udevstart. But udevstart does not produce
/dev/null nor /dev/urandom.
Is that a bug or is it wanted that I create/mknod them myself?
Nico
Please CC me, I am not subscribed.
--
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: udevstart problem
2004-11-07 14:07 udevstart problem Nico Schottelius
@ 2004-11-07 14:37 ` Marco d'Itri
2004-11-08 12:41 ` Nico Schottelius
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Marco d'Itri @ 2004-11-07 14:37 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
On Nov 07, Nico Schottelius <nico-linux-udev@schottelius.org> wrote:
> It works more or less good, when mounting /sys and then
> runnig udevstart. But udevstart does not produce
> /dev/null nor /dev/urandom.
You need a newer kernel.
--
ciao, |
Marco | [9035 mi4bOGc8z79Cs]
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: udevstart problem
2004-11-07 14:07 udevstart problem Nico Schottelius
2004-11-07 14:37 ` Marco d'Itri
@ 2004-11-08 12:41 ` Nico Schottelius
2004-11-08 17:20 ` Marco d'Itri
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Nico Schottelius @ 2004-11-08 12:41 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
Marco d'Itri [Sun, Nov 07, 2004 at 03:37:12PM +0100]:
> On Nov 07, Nico Schottelius <nico-linux-udev@schottelius.org> wrote:
>
> > It works more or less good, when mounting /sys and then
> > runnig udevstart. But udevstart does not produce
> > /dev/null nor /dev/urandom.
> You need a newer kernel.
Why is this kernel dependend?
Newer than 2.6.9? This means I have to wait for 2.6.10?
Nico
--
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: udevstart problem
2004-11-07 14:07 udevstart problem Nico Schottelius
2004-11-07 14:37 ` Marco d'Itri
2004-11-08 12:41 ` Nico Schottelius
@ 2004-11-08 17:20 ` Marco d'Itri
2004-11-08 19:36 ` Kay Sievers
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Marco d'Itri @ 2004-11-08 17:20 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
On Nov 08, Nico Schottelius <nico-linux-udev@schottelius.org> wrote:
> > > It works more or less good, when mounting /sys and then
> > > runnig udevstart. But udevstart does not produce
> > > /dev/null nor /dev/urandom.
> > You need a newer kernel.
> Why is this kernel dependend?
>
> Newer than 2.6.9? This means I have to wait for 2.6.10?
Because older kernels did not have sysfs support for these devices, but
2.6.9 is definitely OK. So I have no clue about your problem, sorry.
--
ciao, |
Marco | [9066 apHpcnMSrj58Y]
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: udevstart problem
2004-11-07 14:07 udevstart problem Nico Schottelius
` (2 preceding siblings ...)
2004-11-08 17:20 ` Marco d'Itri
@ 2004-11-08 19:36 ` Kay Sievers
2004-11-08 21:26 ` Nico Schottelius
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Kay Sievers @ 2004-11-08 19:36 UTC (permalink / raw)
To: linux-hotplug
On Sun, 2004-11-07 at 15:07 +0100, Nico Schottelius wrote:
> Hello!
>
> I am trying to use udev with an empty /dev.
>
> It works more or less good, when mounting /sys and then
> runnig udevstart. But udevstart does not produce
> /dev/null nor /dev/urandom.
>
> Is that a bug or is it wanted that I create/mknod them myself?
It should be created by udevstart. What does:
[kay@pim ~]$ udevtest /class/mem/null
version 043
looking at '/class/mem/null'
parse error /etc/udev/rules.d/50-udev.rules, line 76:31, rule skipped
configured rule in '/etc/udev/rules.d/50-udev.rules' at line 49 applied, added symlink 'XOR'
creating device node '/dev/null', major = '1', minor = '3', mode = '020666', uid = '0', gid = '0'
print for you?
Kay
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: udevstart problem
2004-11-07 14:07 udevstart problem Nico Schottelius
` (3 preceding siblings ...)
2004-11-08 19:36 ` Kay Sievers
@ 2004-11-08 21:26 ` Nico Schottelius
2004-11-09 21:39 ` Nico Schottelius
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Nico Schottelius @ 2004-11-08 21:26 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 1506 bytes --]
Kay Sievers [Mon, Nov 08, 2004 at 08:36:53PM +0100]:
> On Sun, 2004-11-07 at 15:07 +0100, Nico Schottelius wrote:
> > Hello!
> >
> > I am trying to use udev with an empty /dev.
> >
> > It works more or less good, when mounting /sys and then
> > runnig udevstart. But udevstart does not produce
> > /dev/null nor /dev/urandom.
> >
> > Is that a bug or is it wanted that I create/mknod them myself?
>
> It should be created by udevstart. What does:
> [...]
> print for you?
No:
[22:10] scice:/etc/minit# /usr/packages/udev-040/usr/bin/udevtest /sys/class/mem/null/
version 040
looking at '/sys/class/mem/null/'
zsh: segmentation fault /usr/packages/udev-040/usr/bin/udevtest /sys/class/mem/null/
As I see you are using 043, I'll retry that...
[22:23] scice:~/udev-043# /usr/bin/udevtest /sys/class/mem/null/
version 043
looking at '/sys/class/mem/null/'
sysfs_open_class_device_path failed
Oops found my mistake:
[22:23] scice:~/udev-043# /usr/bin/udevtest /class/mem/null/
version 043
looking at '/class/mem/null/'
creating device node '/udev/null', major = '1', minor = '3', mode = '020600', uid = '0', gid = '0'
Is it possible to strip a leading '/sys', if specified? Would make life
for me (user/tester) easier.
I'll try to reboot and look if /dev/null und /dev/urandom than exist.
Nico
--
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: udevstart problem
2004-11-07 14:07 udevstart problem Nico Schottelius
` (4 preceding siblings ...)
2004-11-08 21:26 ` Nico Schottelius
@ 2004-11-09 21:39 ` Nico Schottelius
2004-11-10 0:06 ` Kay Sievers
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Nico Schottelius @ 2004-11-09 21:39 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 702 bytes --]
Nico Schottelius [Mon, Nov 08, 2004 at 10:26:45PM +0100]:
> [...]
> I'll try to reboot and look if /dev/null und /dev/urandom than exist.
Yes, everything's there. Working fine!
But there is another problem:
I want to run udevstart at system startup. I am using
minit[0,1], which starts programs with links:
ln -s /sbin/udevstart run
When calling run, it looks like udevstart (which is a link to udev)
looks at argv[0].
Can we change that and make two programs of it or add
a parameter "-s" for start to udev?
Nico
--
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: udevstart problem
2004-11-07 14:07 udevstart problem Nico Schottelius
` (5 preceding siblings ...)
2004-11-09 21:39 ` Nico Schottelius
@ 2004-11-10 0:06 ` Kay Sievers
2004-11-10 6:41 ` Nico Schottelius
2004-11-10 9:37 ` Marco d'Itri
8 siblings, 0 replies; 10+ messages in thread
From: Kay Sievers @ 2004-11-10 0:06 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2004-11-09 at 22:39 +0100, Nico Schottelius wrote:
> Nico Schottelius [Mon, Nov 08, 2004 at 10:26:45PM +0100]:
> > [...]
> > I'll try to reboot and look if /dev/null und /dev/urandom than exist.
>
> Yes, everything's there. Working fine!
>
> But there is another problem:
>
> I want to run udevstart at system startup. I am using
> minit[0,1], which starts programs with links:
>
> ln -s /sbin/udevstart run
Yes, but minit uses the the link target and passes it as argv[0]. So
this should work. If not, just wrap it in a two line shell script that
does an exec udevstart.
> When calling run, it looks like udevstart (which is a link to udev)
> looks at argv[0].
>
> Can we change that and make two programs of it or add
> a parameter "-s" for start to udev?
I will add a parameter. I miss that too, cause you need to create the
link in the source tree just to test udevstart.
Thanks,
Kay
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: udevstart problem
2004-11-07 14:07 udevstart problem Nico Schottelius
` (6 preceding siblings ...)
2004-11-10 0:06 ` Kay Sievers
@ 2004-11-10 6:41 ` Nico Schottelius
2004-11-10 9:37 ` Marco d'Itri
8 siblings, 0 replies; 10+ messages in thread
From: Nico Schottelius @ 2004-11-10 6:41 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers [Wed, Nov 10, 2004 at 01:06:26AM +0100]:
> On Tue, 2004-11-09 at 22:39 +0100, Nico Schottelius wrote:
> > Nico Schottelius [Mon, Nov 08, 2004 at 10:26:45PM +0100]:
> > [...]
> > I want to run udevstart at system startup. I am using
> > minit[0,1], which starts programs with links:
> >
> > ln -s /sbin/udevstart run
>
> Yes, but minit uses the the link target and passes it as argv[0]. So
> this should work. If not, just wrap it in a two line shell script that
> does an exec udevstart.
Didn't know that minit does that, will have to look into the source
to be able to verify that. The second solution is the one I am
currently using, but which is imho dirty, as it starts an additional
shell (which will effectively slow down the boot process some
mili-seconds).
> > When calling run, it looks like udevstart (which is a link to udev)
> > looks at argv[0].
> >
> > Can we change that and make two programs of it or add
> > a parameter "-s" for start to udev?
>
> I will add a parameter. I miss that too, cause you need to create the
> link in the source tree just to test udevstart.
That sounds very good! As soon as you realesed that,
I'll try it (I see I should subscribe to the ML in the near future).
Just found another interesting thing: The default
permissions file is very small, not covering null, zero,
pty* and so on. Is there a place you maintain
bigger samples or are you interested in having, which can be used
for productive systems?
Nico
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: udevstart problem
2004-11-07 14:07 udevstart problem Nico Schottelius
` (7 preceding siblings ...)
2004-11-10 6:41 ` Nico Schottelius
@ 2004-11-10 9:37 ` Marco d'Itri
8 siblings, 0 replies; 10+ messages in thread
From: Marco d'Itri @ 2004-11-10 9:37 UTC (permalink / raw)
To: linux-hotplug
On Nov 10, Nico Schottelius <nico-linux-udev@schottelius.org> wrote:
> Just found another interesting thing: The default
> permissions file is very small, not covering null, zero,
> pty* and so on. Is there a place you maintain
> bigger samples or are you interested in having, which can be used
> for productive systems?
In the source tarball there are example permissions files provided by
major distributions, so I suggest I look at the udev package for your
distribution of choice.
--
ciao, |
Marco | [9111 scv.xQcF/6tf.]
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-11-10 9:37 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-07 14:07 udevstart problem Nico Schottelius
2004-11-07 14:37 ` Marco d'Itri
2004-11-08 12:41 ` Nico Schottelius
2004-11-08 17:20 ` Marco d'Itri
2004-11-08 19:36 ` Kay Sievers
2004-11-08 21:26 ` Nico Schottelius
2004-11-09 21:39 ` Nico Schottelius
2004-11-10 0:06 ` Kay Sievers
2004-11-10 6:41 ` Nico Schottelius
2004-11-10 9:37 ` Marco d'Itri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).