Skip to contentSkip to conversation

Hotplug on PPC4xx

DISCUSSION Sean MacLennan 2 participants 3 messages Apr 6, 2009 – Apr 8, 2009

lore
Share & tools
lore
#0 lore raw

I am trying to run the /sbin/hotplug from the kernel and it doesn't work. Has anybody got it running?

I know I am being a bit vague, but I don't want to write a long email and find out that it is a know problem ;)

Basically, I want to automount SD cards and USB keys. So if anybody knows a better way than hotplug, let me know. I would rather not have to setup udev/hald/dbus.

Cheers,
Sean

#1 lore raw
Quoted 2 lines · On Mon, 6 Apr 2009 18:20:23 -0400 "Sean MacLennan"…

I am trying to run the /sbin/hotplug from the kernel and it doesn't work. Has anybody got it running?

I looked into it some more. It turns out that the env pointers are freed before they are copied.

In kobject_uevent_env() if I change the line that calls the helper from UMH_NO_WAIT to UMH_WAIT_EXEC, then it works... but probably at a loss of performance.

		retval = call_usermodehelper(argv[0], argv,
					     env->envp, UMH_WAIT_EXEC);

Any other ideas?

Cheers,
Sean

#2 lore raw
Quoted 8 lines · Sean MacLennan
Quoted 2 lines · On Mon, 6 Apr 2009 18:20:23 -0400 "Sean MacLennan"…

I am trying to run the /sbin/hotplug from the kernel and it doesn't work. Has anybody got it running?

I looked into it some more. It turns out that the env pointers are freed before they are copied.

That sounds like a bug?

cheers

Signature · 8 lines
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person