All of lore.kernel.org
 help / color / mirror / Atom feed
* Udev problem
@ 2004-08-30  7:12 Sander Knopper
  2004-09-08 23:13 ` Greg KH
  2004-09-09  8:33 ` Kay Sievers
  0 siblings, 2 replies; 5+ messages in thread
From: Sander Knopper @ 2004-08-30  7:12 UTC (permalink / raw)
  To: linux-hotplug

Hi all,

I've just compiled udev with uclibc and busybox but when I start 'udevstart' 
during boot it basically does nothing. When I use the supplied init script 
all it does is create those links to other files which isn't done by udev but 
besides that nothing is done.

Hotplugging works fine, when I plug in my ipod I get a kernel message but udev 
doesn't create some block devices for me.

Is this a problem of udev, or shouldn't I be trying to use udev in a 
uclibc/busybox environment?

Ow, I'm using the latest version (030) by the way.....


Thanks in advance,

Sander Knopper


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&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] 5+ messages in thread

* Re: Udev problem
  2004-08-30  7:12 Sander Knopper
@ 2004-09-08 23:13 ` Greg KH
  2004-09-09  8:33 ` Kay Sievers
  1 sibling, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-09-08 23:13 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Aug 30, 2004 at 09:12:01AM +0200, Sander Knopper wrote:
> Hi all,
> 
> I've just compiled udev with uclibc and busybox but when I start 'udevstart' 
> during boot it basically does nothing. When I use the supplied init script 
> all it does is create those links to other files which isn't done by udev but 
> besides that nothing is done.

Hm, try asking this on the busybox mailing lists, as I know some people
successfully do this, but I think that udev needs some tweaks to work
properly with uclibc.

If you do find that some changes are necessary, could you please tell us
so that udev will work "out of the box" properly with uclibc and
busybox?

thanks,

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&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] 5+ messages in thread

* Re: Udev problem
  2004-08-30  7:12 Sander Knopper
  2004-09-08 23:13 ` Greg KH
@ 2004-09-09  8:33 ` Kay Sievers
  1 sibling, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2004-09-09  8:33 UTC (permalink / raw)
  To: linux-hotplug

On Wed, 2004-09-08 at 16:13 -0700, Greg KH wrote:
> On Mon, Aug 30, 2004 at 09:12:01AM +0200, Sander Knopper wrote:
> > Hi all,
> > 
> > I've just compiled udev with uclibc and busybox but when I start 'udevstart' 
> > during boot it basically does nothing. When I use the supplied init script 
> > all it does is create those links to other files which isn't done by udev but 
> > besides that nothing is done.
> 
> Hm, try asking this on the busybox mailing lists, as I know some people
> successfully do this, but I think that udev needs some tweaks to work
> properly with uclibc.
> 
> If you do find that some changes are necessary, could you please tell us
> so that udev will work "out of the box" properly with uclibc and
> busybox?

Oops, I missed the original mail.
Feels like the mknod() is not working. Sander, could try a "strace" for
any device present on your box, but with no device node currently in
your udev-root? It may narrow down the problem.

  ACTION­d DEVPATH=/block/hda strace -s 1000 /sbin/udev block

You will get a lot of output. Close to the end, it looks like this on my box.
You will find the return values of the system calls at the end of every line:

  ...
  stat64("/udev/hda", 0xfeee2230)         = -1 ENOENT (No such file or directory)
  mknod("/udev/hda", S_IFBLK|0660, makedev(3, 0)) = 0
  chmod("/udev/hda", 060660)              = 0
  chown32("/udev/hda", 0, 6)              = 0
  ...

Thanks,
Kay



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&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] 5+ messages in thread

* Udev problem
@ 2007-12-27 22:34 shacky
  2007-12-28  2:29 ` Gabriel C
  0 siblings, 1 reply; 5+ messages in thread
From: shacky @ 2007-12-27 22:34 UTC (permalink / raw)
  To: linux-kernel

Hi.

I'm writing here because I didn't found a mailing list specific for udev.
I'm sorry if I am out of topic. In this case please tell me.

I'm trying to get an Huawei e220 UMTS/HSDPA USB modem working on my Ubuntu 7.10.
The problem of that peripheral is that when you plug the modem in the
USB port, it is recognise as an USB CD-ROM.
I have the 2.6.22 kernel, which shouldn't recognise this modem as a
CD-ROM (I read this on http://oozie.fm.interia.pl/pro/huawei-e220/),
but this doesn't happen.

To make this modem works you have to execute a program named
"huaweiAktBbo", whose source can be found at
http://www.kanoistika.sk/bobovsky/archiv/umts/huaweiAktBbo.c
I compiled it and I saved the compiled program in /sbin.
Please note that the program works perfectly if executed from the shell as root.

So I wrote a new udev rule (/etc/udev/rules.d/50-huwaei-e220.rules)
with this rule:

SUBSYSTEM=="usb", SYSFS{idProduct}="1003", SYSFS{idVendor}=="12d1",
RUN+="/sbin/huaweiAktBbo"

But when I plug the modem in the USB port I get this errors in /var/log/syslog:

Dec 23 23:06:39 studio2 udevd-event[5644]: run_program: '/sbin/huaweiAktBbo'
Dec 23 23:06:39 studio2 udevd-event[5644]: run_program:
'/sbin/huaweiAktBbo' (stderr) 'huaweiAktBbo: huaweiAktBbo.c:113: main:
Assertion `dev' failed.'
Dec 23 23:06:39 studio2 udevd-event[5644]: run_program:
'/sbin/huaweiAktBbo' (stdout) 'Hladam HUAWEI E220 a prepnem na modem -
bbo 06'
Dec 23 23:06:40 studio2 udevd-event[5644]: run_program:
'/sbin/huaweiAktBbo' abnormal exit

If I run that program as root from the console, it works, and I can
use the modem well:

Hladam HUAWEI E220 a prepnem na modem - bbo 06
4 set feature request returned 0
Prepnute-OK, Mas ttyUSB0 ttyUSB1 (cez usbserial vendor=0x12d1 product=0x1003)
pozri /proc/bus/usb/devices

I contacted the creator of the program, and he told me that the
program doesn't work because it doesn't found the device in the bus.
But udev recognise the device, because it executes the script as you
can see in the logs.
he told me that the problem can be if udev execute the rule before it
adds the device in the kernel, is it possible?

Is it possible to delay the execution of the rule after the device is
recognised in the kernel and added to the device list in the bus
(lsusb)?

Could you help me, please?
Thank you very much in advance for your help!
Bye.

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

* Re: Udev problem
  2007-12-27 22:34 Udev problem shacky
@ 2007-12-28  2:29 ` Gabriel C
  0 siblings, 0 replies; 5+ messages in thread
From: Gabriel C @ 2007-12-28  2:29 UTC (permalink / raw)
  To: shacky; +Cc: linux-kernel, linux-hotplug

shacky wrote:

[ Added linux-hotplug  to CC ]

> Hi.

Hi,

> 
> I'm writing here because I didn't found a mailing list specific for udev.

There it is :

http://vger.kernel.org/vger-lists.html#linux-hotplug

> I'm sorry if I am out of topic. In this case please tell me.
> 
> I'm trying to get an Huawei e220 UMTS/HSDPA USB modem working on my Ubuntu 7.10.
> The problem of that peripheral is that when you plug the modem in the
> USB port, it is recognise as an USB CD-ROM.
> I have the 2.6.22 kernel, which shouldn't recognise this modem as a
> CD-ROM (I read this on http://oozie.fm.interia.pl/pro/huawei-e220/),
> but this doesn't happen.
> 
> To make this modem works you have to execute a program named
> "huaweiAktBbo", whose source can be found at
> http://www.kanoistika.sk/bobovsky/archiv/umts/huaweiAktBbo.c
> I compiled it and I saved the compiled program in /sbin.
> Please note that the program works perfectly if executed from the shell as root.
> 
> So I wrote a new udev rule (/etc/udev/rules.d/50-huwaei-e220.rules)
> with this rule:
> 
> SUBSYSTEM=="usb", SYSFS{idProduct}="1003", SYSFS{idVendor}=="12d1",
> RUN+="/sbin/huaweiAktBbo"
> 
> But when I plug the modem in the USB port I get this errors in /var/log/syslog:
> 
> Dec 23 23:06:39 studio2 udevd-event[5644]: run_program: '/sbin/huaweiAktBbo'
> Dec 23 23:06:39 studio2 udevd-event[5644]: run_program:
> '/sbin/huaweiAktBbo' (stderr) 'huaweiAktBbo: huaweiAktBbo.c:113: main:
> Assertion `dev' failed.'
> Dec 23 23:06:39 studio2 udevd-event[5644]: run_program:
> '/sbin/huaweiAktBbo' (stdout) 'Hladam HUAWEI E220 a prepnem na modem -
> bbo 06'
> Dec 23 23:06:40 studio2 udevd-event[5644]: run_program:
> '/sbin/huaweiAktBbo' abnormal exit
> 
> If I run that program as root from the console, it works, and I can
> use the modem well:
> 
> Hladam HUAWEI E220 a prepnem na modem - bbo 06
> 4 set feature request returned 0
> Prepnute-OK, Mas ttyUSB0 ttyUSB1 (cez usbserial vendor=0x12d1 product=0x1003)
> pozri /proc/bus/usb/devices
> 
> I contacted the creator of the program, and he told me that the
> program doesn't work because it doesn't found the device in the bus.
> But udev recognise the device, because it executes the script as you
> can see in the logs.
> he told me that the problem can be if udev execute the rule before it
> adds the device in the kernel, is it possible?
> 
> Is it possible to delay the execution of the rule after the device is
> recognised in the kernel and added to the device list in the bus
> (lsusb)?
> 
> Could you help me, please?
> Thank you very much in advance for your help!
> Bye.


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

end of thread, other threads:[~2007-12-28  2:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-27 22:34 Udev problem shacky
2007-12-28  2:29 ` Gabriel C
  -- strict thread matches above, loose matches on Subject: below --
2004-08-30  7:12 Sander Knopper
2004-09-08 23:13 ` Greg KH
2004-09-09  8:33 ` Kay Sievers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.