All of lore.kernel.org
 help / color / mirror / Atom feed
* call_usermodehelper returns a negative value during boot up
@ 2007-02-15 13:53 Babu, Narendra (GE Healthcare)
  2007-02-15 19:39 ` Greg KH
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Babu, Narendra (GE Healthcare) @ 2007-02-15 13:53 UTC (permalink / raw)
  To: linux-hotplug

Hi List,


I am trying to use the hotplug on my system running kernel version 2.4
Hotplug works fine once the system boot up.

But if we attach a USB device and boot the system , the
call_usermodehelper() returns a negative value.

Please let me know the possible reasons and if there are any solutions
for the same.


Thanks,
Narendra Babu H.C. 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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] 8+ messages in thread

* Re: call_usermodehelper returns a negative value during boot up
  2007-02-15 13:53 call_usermodehelper returns a negative value during boot up Babu, Narendra (GE Healthcare)
@ 2007-02-15 19:39 ` Greg KH
  2007-02-16  6:24 ` Babu, Narendra (GE Healthcare)
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2007-02-15 19:39 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Feb 15, 2007 at 07:21:06PM +0530, Babu, Narendra (GE Healthcare) wrote:
> Hi List,
> 
> 
> I am trying to use the hotplug on my system running kernel version 2.4
> Hotplug works fine once the system boot up.
> 
> But if we attach a USB device and boot the system , the
> call_usermodehelper() returns a negative value.

When does this happen?  Before userspace starts up?

And what is the value returned?

And what exact kernel version are you using?

thanks,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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] 8+ messages in thread

* RE: call_usermodehelper returns a negative value during boot up
  2007-02-15 13:53 call_usermodehelper returns a negative value during boot up Babu, Narendra (GE Healthcare)
  2007-02-15 19:39 ` Greg KH
@ 2007-02-16  6:24 ` Babu, Narendra (GE Healthcare)
  2007-02-16  7:03 ` Greg KH
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Babu, Narendra (GE Healthcare) @ 2007-02-16  6:24 UTC (permalink / raw)
  To: linux-hotplug


When does this happen?  Before userspace starts up?

>>> This happens before the userspace starts up means prior to INIT:
Entering runlevel....
>>> So I feel it is not getting the hotplug script.
>>> Is there any way to detect USB devices only after user space starts
(during boot process)

And what is the value returned?

>>> The value it returns is 0xfffffffe

And what exact kernel version are you using?

>>> The kernel version is 2.4.20.


Thanks,
Narendra


-----Original Message-----
From: Greg KH [mailto:greg@kroah.com] 
Sent: Friday, February 16, 2007 1:09 AM
To: Babu, Narendra (GE Healthcare)
Cc: linux-hotplug-devel@lists.sourceforge.net
Subject: Re: call_usermodehelper returns a negative value during boot up

On Thu, Feb 15, 2007 at 07:21:06PM +0530, Babu, Narendra (GE Healthcare)
wrote:
> Hi List,
> 
> 
> I am trying to use the hotplug on my system running kernel version 2.4

> Hotplug works fine once the system boot up.
> 
> But if we attach a USB device and boot the system , the
> call_usermodehelper() returns a negative value.

When does this happen?  Before userspace starts up?

And what is the value returned?

And what exact kernel version are you using?

thanks,

greg k-h



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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] 8+ messages in thread

* Re: call_usermodehelper returns a negative value during boot up
  2007-02-15 13:53 call_usermodehelper returns a negative value during boot up Babu, Narendra (GE Healthcare)
  2007-02-15 19:39 ` Greg KH
  2007-02-16  6:24 ` Babu, Narendra (GE Healthcare)
@ 2007-02-16  7:03 ` Greg KH
  2007-02-16  7:46 ` Babu, Narendra (GE Healthcare)
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2007-02-16  7:03 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Feb 16, 2007 at 11:42:49AM +0530, Babu, Narendra (GE Healthcare) wrote:
> 
> When does this happen?  Before userspace starts up?
> 
> >>> This happens before the userspace starts up means prior to INIT:
> Entering runlevel....
> >>> So I feel it is not getting the hotplug script.

That's because there is no userspace program to run at that time :)

> >>> Is there any way to detect USB devices only after user space starts
> (during boot process)
> 
> And what is the value returned?
> 
> >>> The value it returns is 0xfffffffe

Which is -2, or -ENOENT which means there is no file found to run.

> And what exact kernel version are you using?
> 
> >>> The kernel version is 2.4.20.

What happens if you use the latest 2.6 kernel version?  No one except a
few companies supports 2.4.20 anymore.  You are on your own if you use
that kernel version.

good luck,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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] 8+ messages in thread

* RE: call_usermodehelper returns a negative value during boot up
  2007-02-15 13:53 call_usermodehelper returns a negative value during boot up Babu, Narendra (GE Healthcare)
                   ` (2 preceding siblings ...)
  2007-02-16  7:03 ` Greg KH
@ 2007-02-16  7:46 ` Babu, Narendra (GE Healthcare)
  2007-02-17  2:06 ` Greg KH
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Babu, Narendra (GE Healthcare) @ 2007-02-16  7:46 UTC (permalink / raw)
  To: linux-hotplug

Hi Greg,

Thanks for the reply.
We are not in a position to move immediately for Kernel version 2.6.

Is there any difference in boot process of version 2.6 and 2.4 ?
Can you provide us some inputs on how it is handled in kernel version
2.6

Thanks,
Narendra 
 

-----Original Message-----
From: Greg KH [mailto:greg@kroah.com] 
Sent: Friday, February 16, 2007 12:34 PM
To: Babu, Narendra (GE Healthcare)
Cc: linux-hotplug-devel@lists.sourceforge.net
Subject: Re: call_usermodehelper returns a negative value during boot up

On Fri, Feb 16, 2007 at 11:42:49AM +0530, Babu, Narendra (GE Healthcare)
wrote:
> 
> When does this happen?  Before userspace starts up?
> 
> >>> This happens before the userspace starts up means prior to INIT:
> Entering runlevel....
> >>> So I feel it is not getting the hotplug script.

That's because there is no userspace program to run at that time :)

> >>> Is there any way to detect USB devices only after user space 
> >>> starts
> (during boot process)
> 
> And what is the value returned?
> 
> >>> The value it returns is 0xfffffffe

Which is -2, or -ENOENT which means there is no file found to run.

> And what exact kernel version are you using?
> 
> >>> The kernel version is 2.4.20.

What happens if you use the latest 2.6 kernel version?  No one except a
few companies supports 2.4.20 anymore.  You are on your own if you use
that kernel version.

good luck,

greg k-h



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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] 8+ messages in thread

* Re: call_usermodehelper returns a negative value during boot up
  2007-02-15 13:53 call_usermodehelper returns a negative value during boot up Babu, Narendra (GE Healthcare)
                   ` (3 preceding siblings ...)
  2007-02-16  7:46 ` Babu, Narendra (GE Healthcare)
@ 2007-02-17  2:06 ` Greg KH
  2007-02-23 19:37 ` Babu, Narendra (GE Healthcare)
  2007-02-23 23:25 ` Greg KH
  6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2007-02-17  2:06 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Feb 16, 2007 at 01:04:17PM +0530, Babu, Narendra (GE Healthcare) wrote:
> Hi Greg,
> 
> Thanks for the reply.
> We are not in a position to move immediately for Kernel version 2.6.
> 
> Is there any difference in boot process of version 2.6 and 2.4 ?

Oh yes, quite a bit.

> Can you provide us some inputs on how it is handled in kernel version
> 2.6

Taking a look at the code would be the best way to learn the
differences.

thanks,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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] 8+ messages in thread

* RE: call_usermodehelper returns a negative value during boot up
  2007-02-15 13:53 call_usermodehelper returns a negative value during boot up Babu, Narendra (GE Healthcare)
                   ` (4 preceding siblings ...)
  2007-02-17  2:06 ` Greg KH
@ 2007-02-23 19:37 ` Babu, Narendra (GE Healthcare)
  2007-02-23 23:25 ` Greg KH
  6 siblings, 0 replies; 8+ messages in thread
From: Babu, Narendra (GE Healthcare) @ 2007-02-23 19:37 UTC (permalink / raw)
  To: linux-hotplug

Hi

Now I have seen a situation where call_usermodehelper returns a negative
value after the user space comes up.
Any Idea why it fails here......


Thanks,
Narendra

-----Original Message-----
From: Greg KH [mailto:greg@kroah.com] 
Sent: Friday, February 16, 2007 12:34 PM
To: Babu, Narendra (GE Healthcare)
Cc: linux-hotplug-devel@lists.sourceforge.net
Subject: Re: call_usermodehelper returns a negative value during boot up

On Fri, Feb 16, 2007 at 11:42:49AM +0530, Babu, Narendra (GE Healthcare)
wrote:
> 
> When does this happen?  Before userspace starts up?
> 
> >>> This happens before the userspace starts up means prior to INIT:
> Entering runlevel....
> >>> So I feel it is not getting the hotplug script.

That's because there is no userspace program to run at that time :)

> >>> Is there any way to detect USB devices only after user space 
> >>> starts
> (during boot process)
> 
> And what is the value returned?
> 
> >>> The value it returns is 0xfffffffe

Which is -2, or -ENOENT which means there is no file found to run.

> And what exact kernel version are you using?
> 
> >>> The kernel version is 2.4.20.

What happens if you use the latest 2.6 kernel version?  No one except a
few companies supports 2.4.20 anymore.  You are on your own if you use
that kernel version.

good luck,

greg k-h



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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] 8+ messages in thread

* Re: call_usermodehelper returns a negative value during boot up
  2007-02-15 13:53 call_usermodehelper returns a negative value during boot up Babu, Narendra (GE Healthcare)
                   ` (5 preceding siblings ...)
  2007-02-23 19:37 ` Babu, Narendra (GE Healthcare)
@ 2007-02-23 23:25 ` Greg KH
  6 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2007-02-23 23:25 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Feb 24, 2007 at 12:55:33AM +0530, Babu, Narendra (GE Healthcare) wrote:
> Hi
> 
> Now I have seen a situation where call_usermodehelper returns a negative
> value after the user space comes up.
> Any Idea why it fails here......

You are going to have to provide a lot more information here.

Also remember, 2.4 really isn't supported anymore by the community.  Try
asking the vendor who provided it to you.

good luck,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2007-02-23 23:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15 13:53 call_usermodehelper returns a negative value during boot up Babu, Narendra (GE Healthcare)
2007-02-15 19:39 ` Greg KH
2007-02-16  6:24 ` Babu, Narendra (GE Healthcare)
2007-02-16  7:03 ` Greg KH
2007-02-16  7:46 ` Babu, Narendra (GE Healthcare)
2007-02-17  2:06 ` Greg KH
2007-02-23 19:37 ` Babu, Narendra (GE Healthcare)
2007-02-23 23:25 ` Greg KH

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.