* loading firmware via hotplug
@ 2005-10-05 10:02 Adrian McMenamin
2005-10-06 16:55 ` Greg KH
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Adrian McMenamin @ 2005-10-05 10:02 UTC (permalink / raw)
To: linux-hotplug
Apologies for asking what is probably a pretty basic question...
I am writing a driver for ALSA sound on the Sega Dreamcast in the 2.6
series of kernels. Previously I wrote one for OSS/Free for the 2.4 series
and while the Dreamcast's main CPU is an SH4 chip, the sound is driven by
an ARM7 processor.
To get the ARM7 to work it is necessary to load in some ARM code to a
specific memory location and reset the processor - effectively loading in
some firmware. In 2.4 I did this by the then common way of a header with a
long string of hex but now I want to use kmod/udev/hotplug etc to do it.
I could not get buildroot's diethotplug to build so I just copied the
hotplug scripts off my Fedora Core 4 box into the Dreamcast's NFS root.
So I have the following code in my driver (you can see the whole thing at
http://newgolddream.dyndns.info/repos):
/* Load the firmware */
const struct firmware *fw_entry;
err = request_firmware(&fw_entry, "aica_firmware.bin", &pd->dev);
if (err) goto freepcm;
This appears to summon firmware.agent, but after 10 seconds the whole
thing times out... (I have put in a lot of the log, but about 1/3rd of the
way down you'll find the firmware stuff - I added the **** myself).
Any clues as to what might be going wrong?
Oct 4 16:55:48 uclibc user.debug kernel: kobject snd_card_aica:
registering. parent: <NULL>, set: module
Oct 4 16:55:48 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:55:48 uclibc user.debug kernel: fill_kobj_path: path '/module/snd_card_aica'
Oct 4 16:55:48 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
module seqb5 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTIONd
DEVPATH=/module/snd_card_aica SUBSYSTEM=module
Oct 4 16:55:48 uclibc user.notice [749]: arguments (module) env
(SUBSYSTEM=module OLDPWD=/ DEVPATH=/module/snd_card_aica
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTIONd PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes SEQNUMb5 _=/usr/bin/env)
Oct 4 16:55:48 uclibc user.warn kernel: Probing for AICA device
Oct 4 16:55:48 uclibc user.debug kernel: Registering platform device
'snd_card_aica'. Parent at platform
Oct 4 16:55:48 uclibc user.debug kernel: DEV: registering device: ID 'snd_card_aica'
Oct 4 16:55:48 uclibc user.notice [749]: no
runnable /etc/hotplug/module.agent is installed
Oct 4 16:55:48 uclibc user.debug kernel: kobject snd_card_aica:
registering. parent: platform, set: devices
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:55:49 uclibc user.notice [760]: arguments (platform) env
(SUBSYSTEM=platform OLDPWD=/ DEVPATH=/devices/platform/snd_card_aica
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTIONd PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes PHYSDEVBUS=platform SEQNUMb6 _=/usr/bin/env)
Oct 4 16:55:49 uclibc user.debug kernel: fill_kobj_path: path '/devices/platform/snd_card_aica'
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
platform seqb6 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTIONd
DEVPATH=/devices/platform/snd_card_aica SUBSYSTEM=platform
Oct 4 16:55:49 uclibc user.debug kernel: bus platform: add device
snd_card_aica
Oct 4 16:55:49 uclibc user.debug kernel: bus platform: add driver AICA
Oct 4 16:55:49 uclibc user.debug kernel: kobject AICA: registering.
parent: <NULL>, set: drivers
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:55:49 uclibc user.debug kernel: fill_kobj_path: path '/bus/platform/drivers/AICA'
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
drivers seqb7 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTIONd
DEVPATH=/bus/platform/drivers/AICA SUBSYSTEM=drivers
Oct 4 16:55:49 uclibc user.notice [760]: no
runnable /etc/hotplug/platform.agent is installed
Oct 4 16:55:49 uclibc user.notice [762]: arguments (drivers) env
(SUBSYSTEM=drivers OLDPWD=/ DEVPATH=/bus/platform/drivers/AICA
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTIONd PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes SEQNUMb7 _=/usr/bin/env)
Oct 4 16:55:49 uclibc user.notice [762]: no
runnable /etc/hotplug/drivers.agent is installed
Oct 4 16:55:49 uclibc user.debug kernel: bound device 'snd_card_aica'
to driver 'AICA'
Oct 4 16:55:49 uclibc user.debug kernel: CLASS: registering class
device: ID = 'pcmC0D0p'
Oct 4 16:55:49 uclibc user.debug kernel: kobject pcmC0D0p: registering.
parent: sound, set: class_obj
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:55:49 uclibc user.debug kernel: fill_kobj_path: path '/class/sound/pcmC0D0p'
Oct 4 16:55:49 uclibc user.debug kernel: class_hotplug - name pcmC0D0p
Oct 4 16:55:49 uclibc user.debug kernel: fill_kobj_path: path '/devices/platform/snd_card_aica'
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
sound seqb8 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTIONd
DEVPATH=/class/sound/pcmC0D0p SUBSYSTEM=sound
Oct 4 16:55:49 uclibc user.debug kernel: CLASS: registering class
device: ID = 'controlC0'
Oct 4 16:55:49 uclibc user.debug kernel: kobject controlC0:
registering. parent: sound, set: class_obj
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:55:49 uclibc user.debug kernel: fill_kobj_path: path '/class/sound/controlC0'
Oct 4 16:55:49 uclibc user.debug kernel: class_hotplug - name controlC0
Oct 4 16:55:49 uclibc user.debug kernel: fill_kobj_path: path '/devices/platform/snd_card_aica'
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
sound seqb9 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTIONd
DEVPATH=/class/sound/controlC0 SUBSYSTEM=sound
Oct 4 16:55:49 uclibc user.debug kernel: CLASS: registering class
device: ID = 'snd_card_aica'
Oct 4 16:55:49 uclibc user.debug kernel: kobject snd_card_aica:
registering. parent: firmware, set: class_obj
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:55:49 uclibc user.debug kernel: fill_kobj_path: path '/class/firmware/snd_card_aica'
Oct 4 16:55:49 uclibc user.debug kernel: class_hotplug - name snd_card_aica
Oct 4 16:55:49 uclibc user.debug kernel: fill_kobj_path: path '/devices/platform/snd_card_aica'
Oct 4 16:55:49 uclibc user.debug kernel: class_hotplug - hotplug()
returned -19
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug - hotplug()
returned -19
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:55:49 uclibc user.debug kernel: fill_kobj_path: path '/class/firmware/snd_card_aica'
Oct 4 16:55:49 uclibc user.debug kernel: class_hotplug - name snd_card_aica
Oct 4 16:55:49 uclibc user.debug kernel: fill_kobj_path: path '/devices/platform/snd_card_aica'
******
Oct 4 16:55:49 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
firmware seqc0 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTIONd
DEVPATH=/class/firmware/snd_card_aica SUBSYSTEM=firmware
Oct 4 16:55:50 uclibc user.notice [785]: arguments (firmware) env
(PHYSDEVPATH=/devices/platform/snd_card_aica SUBSYSTEM=firmware OLDPWD=/
DEVPATH=/class/firmware/snd_card_aica FIRMWARE=aica_firmware.bin
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTIONd TIMEOUT\x10
PWD=/etc/hotplug HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes
PHYSDEVBUS=platform SEQNUMc0 _=/usr/bin/env)
******
Oct 4 16:55:50 uclibc user.notice [785]:
invoke /etc/hotplug/firmware.agent ()
Oct 4 16:55:50 uclibc user.notice [783]: arguments (sound) env
(PHYSDEVPATH=/devices/platform/snd_card_aica SUBSYSTEM=sound OLDPWD=/
DEVPATH=/class/sound/controlC0 MINOR=0
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTIONd PWD=/etc/hotplug MAJOR\x116
HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes PHYSDEVBUS=platform
SEQNUMb9 _=/usr/bin/env)
Oct 4 16:55:50 uclibc user.notice [783]: no
runnable /etc/hotplug/sound.agent is installed
Oct 4 16:55:50 uclibc user.notice [775]: arguments (sound) env
(PHYSDEVPATH=/devices/platform/snd_card_aica SUBSYSTEM=sound OLDPWD=/
DEVPATH=/class/sound/pcmC0D0p MINOR\x16
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTIONd PWD=/etc/hotplug MAJOR\x116
HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes PHYSDEVBUS=platform
SEQNUMb8 _=/usr/bin/env)
Oct 4 16:55:50 uclibc user.notice [775]: no
runnable /etc/hotplug/sound.agent is installed
Oct 4 16:55:59 uclibc user.debug kernel: CLASS: Unregistering class
device. ID = 'snd_card_aica'
Oct 4 16:55:59 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:55:59 uclibc user.debug kernel: fill_kobj_path: path '/class/firmware/snd_card_aica'
Oct 4 16:55:59 uclibc user.debug kernel: class_hotplug - name snd_card_aica
Oct 4 16:55:59 uclibc user.debug kernel: fill_kobj_path: path '/devices/platform/snd_card_aica'
Oct 4 16:55:59 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
firmware seqc1 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove
DEVPATH=/class/firmware/snd_card_aica SUBSYSTEM=firmware
Oct 4 16:55:59 uclibc user.debug kernel: kobject snd_card_aica:
cleaning up
Oct 4 16:55:59 uclibc user.debug kernel: device class 'snd_card_aica':
release.
Oct 4 16:55:59 uclibc user.debug kernel: CLASS: Unregistering class
device. ID = 'controlC0'
Oct 4 16:55:59 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:55:59 uclibc user.debug kernel: fill_kobj_path: path '/class/sound/controlC0'
Oct 4 16:55:59 uclibc user.debug kernel: class_hotplug - name controlC0
Oct 4 16:55:59 uclibc user.debug kernel: fill_kobj_path: path '/devices/platform/snd_card_aica'
Oct 4 16:55:59 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
sound seqc2 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove
DEVPATH=/class/sound/controlC0 SUBSYSTEM=sound
Oct 4 16:55:59 uclibc user.debug kernel: kobject controlC0: cleaning up
Oct 4 16:55:59 uclibc user.debug kernel: device class 'controlC0':
release.
Oct 4 16:55:59 uclibc user.debug kernel: CLASS: Unregistering class
device. ID = 'pcmC0D0p'
Oct 4 16:55:59 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:55:59 uclibc user.notice [810]: arguments (sound) env
(PHYSDEVPATH=/devices/platform/snd_card_aica SUBSYSTEM=sound OLDPWD=/
DEVPATH=/class/sound/controlC0 MINOR=0
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug
MAJOR\x116 HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes
PHYSDEVBUS=platform SEQNUMc2 _=/usr/bin/env)
Oct 4 16:56:00 uclibc user.debug kernel: fill_kobj_path: path '/class/sound/pcmC0D0p'
Oct 4 16:55:59 uclibc user.debug kernel: class_hotplug - name pcmC0D0p
Oct 4 16:55:59 uclibc user.debug kernel: fill_kobj_path: path '/devices/platform/snd_card_aica'
Oct 4 16:55:59 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
sound seqc3 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove
DEVPATH=/class/sound/pcmC0D0p SUBSYSTEM=sound
Oct 4 16:56:00 uclibc user.debug kernel: kobject pcmC0D0p: cleaning up
Oct 4 16:56:00 uclibc user.debug kernel: device class 'pcmC0D0p':
release.
Oct 4 16:56:00 uclibc user.debug kernel: bus platform: remove driver
AICA
Oct 4 16:56:00 uclibc user.debug kernel: kobject AICA: unregistering
Oct 4 16:56:00 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:56:00 uclibc user.debug kernel: fill_kobj_path: path '/bus/platform/drivers/AICA'
Oct 4 16:56:00 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
drivers seqc4 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove
DEVPATH=/bus/platform/drivers/AICA SUBSYSTEM=drivers
Oct 4 16:56:00 uclibc user.debug kernel: kobject AICA: cleaning up
Oct 4 16:56:00 uclibc user.debug kernel: DEV: Unregistering device. ID
= 'snd_card_aica'
Oct 4 16:56:00 uclibc user.debug kernel: bus platform: remove device
snd_card_aica
Oct 4 16:56:00 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:56:00 uclibc user.debug kernel: fill_kobj_path: path '/devices/platform/snd_card_aica'
Oct 4 16:56:00 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
platform seqc5 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove
DEVPATH=/devices/platform/snd_card_aica SUBSYSTEM=platform
Oct 4 16:56:00 uclibc user.debug kernel: kobject snd_card_aica:
cleaning up
Oct 4 16:56:00 uclibc user.notice [824]: arguments (drivers) env
(SUBSYSTEM=drivers OLDPWD=/ DEVPATH=/bus/platform/drivers/AICA
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes SEQNUMc4 _=/usr/bin/env)
Oct 4 16:56:00 uclibc user.notice [818]: arguments (sound) env
(PHYSDEVPATH=/devices/platform/snd_card_aica SUBSYSTEM=sound OLDPWD=/
DEVPATH=/class/sound/pcmC0D0p MINOR\x16
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug
MAJOR\x116 HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes
PHYSDEVBUS=platform SEQNUMc3 _=/usr/bin/env)
Oct 4 16:56:00 uclibc user.notice [824]: no
runnable /etc/hotplug/drivers.agent is installed
Oct 4 16:56:00 uclibc user.notice [818]: no
runnable /etc/hotplug/sound.agent is installed
Oct 4 16:56:00 uclibc user.notice [830]: arguments (platform) env
(SUBSYSTEM=platform OLDPWD=/ DEVPATH=/devices/platform/snd_card_aica
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes PHYSDEVBUS=platform SEQNUMc5 _=/usr/bin/env)
Oct 4 16:56:00 uclibc user.debug kernel: kobject snd_card_aica:
unregistering
Oct 4 16:56:00 uclibc user.debug kernel: kobject_hotplug
Oct 4 16:56:00 uclibc user.debug kernel: fill_kobj_path: path '/module/snd_card_aica'
Oct 4 16:56:00 uclibc user.debug kernel: kobject_hotplug: /sbin/hotplug
module seqc6 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=remove
DEVPATH=/module/snd_card_aica SUBSYSTEM=module
Oct 4 16:56:00 uclibc user.debug kernel: kobject snd_card_aica:
cleaning up
Oct 4 16:56:00 uclibc user.notice [830]: no
runnable /etc/hotplug/platform.agent is installed
Oct 4 16:56:01 uclibc user.notice [806]: arguments (firmware) env
(PHYSDEVPATH=/devices/platform/snd_card_aica SUBSYSTEM=firmware OLDPWD=/
DEVPATH=/class/firmware/snd_card_aica FIRMWARE=aica_firmware.bin
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove TIMEOUT\x10
PWD=/etc/hotplug HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes
PHYSDEVBUS=platform SEQNUMc1 _=/usr/bin/env)
Oct 4 16:56:01 uclibc user.notice [810]: no
runnable /etc/hotplug/sound.agent is installed
Oct 4 16:56:01 uclibc user.notice [806]:
invoke /etc/hotplug/firmware.agent ()
Oct 4 16:56:01 uclibc user.notice [842]: arguments (module) env
(SUBSYSTEM=module OLDPWD=/ DEVPATH=/module/snd_card_aica
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes SEQNUMc6 _=/usr/bin/env)
Oct 4 16:56:01 uclibc user.notice [842]: no
runnable /etc/hotplug/module.agent is installed
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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: loading firmware via hotplug
2005-10-05 10:02 loading firmware via hotplug Adrian McMenamin
@ 2005-10-06 16:55 ` Greg KH
2005-10-06 18:22 ` Adrian McMenamin
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2005-10-06 16:55 UTC (permalink / raw)
To: linux-hotplug
On Wed, Oct 05, 2005 at 11:02:30AM +0100, Adrian McMenamin wrote:
> Apologies for asking what is probably a pretty basic question...
>
> I am writing a driver for ALSA sound on the Sega Dreamcast in the 2.6
> series of kernels. Previously I wrote one for OSS/Free for the 2.4 series
> and while the Dreamcast's main CPU is an SH4 chip, the sound is driven by
> an ARM7 processor.
>
> To get the ARM7 to work it is necessary to load in some ARM code to a
> specific memory location and reset the processor - effectively loading in
> some firmware. In 2.4 I did this by the then common way of a header with a
> long string of hex but now I want to use kmod/udev/hotplug etc to do it.
>
> I could not get buildroot's diethotplug to build so I just copied the
> hotplug scripts off my Fedora Core 4 box into the Dreamcast's NFS root.
Heh, and why would you think this would "just work"? :)
> So I have the following code in my driver (you can see the whole thing at
> http://newgolddream.dyndns.info/repos):
>
>
> /* Load the firmware */
> const struct firmware *fw_entry;
> err = request_firmware(&fw_entry, "aica_firmware.bin", &pd->dev);
> if (err) goto freepcm;
>
>
> This appears to summon firmware.agent, but after 10 seconds the whole
> thing times out... (I have put in a lot of the log, but about 1/3rd of the
> way down you'll find the firmware stuff - I added the **** myself).
Your firmware.agent file isn't finding the firmware to load? Don't
really know, it looks like the kernel is working properly, so you
proably just need to debug your script...
good luck,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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: loading firmware via hotplug
2005-10-05 10:02 loading firmware via hotplug Adrian McMenamin
2005-10-06 16:55 ` Greg KH
@ 2005-10-06 18:22 ` Adrian McMenamin
2005-10-06 18:45 ` Greg KH
2005-10-06 19:45 ` Adrian McMenamin
3 siblings, 0 replies; 5+ messages in thread
From: Adrian McMenamin @ 2005-10-06 18:22 UTC (permalink / raw)
To: linux-hotplug
On Thu, 2005-10-06 at 09:55 -0700, Greg KH wrote:
> Your firmware.agent file isn't finding the firmware to load? Don't
> really know, it looks like the kernel is working properly, so you
> proably just need to debug your script...
>
Actually I don't think my firmware.agent file is being executed at all
Just to ask a few questions about the log entries:
Oct 6 13:19:29 uclibc user.notice [788]: arguments (firmware) env
(PHYSDEVPATH=/devices/platform/snd_card_aica SUBSYSTEM=firmware OLDPWD=/
DEVPATH=/class/firmware/snd_card_aica FIRMWARE=aica_firmware.bin
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTIONd TIMEOUT\x10
PWD=/etc/hotplug HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes
PHYSDEVBUS=platform SEQNUMc0 _=/usr/bin/env)
What does PATH mean here? Surely not where either the firmware.agent or
firmware itself are?
Oct 6 13:19:30 uclibc user.notice [788]:
invoke /etc/hotplug/firmware.agent ()
Does this mean this is being invoked with no parameters?
Thanks for all and any help
Adrian
> good luck,
>
> greg k-h
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> 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
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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: loading firmware via hotplug
2005-10-05 10:02 loading firmware via hotplug Adrian McMenamin
2005-10-06 16:55 ` Greg KH
2005-10-06 18:22 ` Adrian McMenamin
@ 2005-10-06 18:45 ` Greg KH
2005-10-06 19:45 ` Adrian McMenamin
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2005-10-06 18:45 UTC (permalink / raw)
To: linux-hotplug
On Thu, Oct 06, 2005 at 07:22:09PM +0100, Adrian McMenamin wrote:
> On Thu, 2005-10-06 at 09:55 -0700, Greg KH wrote:
>
> > Your firmware.agent file isn't finding the firmware to load? Don't
> > really know, it looks like the kernel is working properly, so you
> > proably just need to debug your script...
> >
>
> Actually I don't think my firmware.agent file is being executed at all
>
>
> Just to ask a few questions about the log entries:
>
> Oct 6 13:19:29 uclibc user.notice [788]: arguments (firmware) env
> (PHYSDEVPATH=/devices/platform/snd_card_aica SUBSYSTEM=firmware OLDPWD=/
> DEVPATH=/class/firmware/snd_card_aica FIRMWARE=aica_firmware.bin
> PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTIONd TIMEOUT\x10
> PWD=/etc/hotplug HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes
> PHYSDEVBUS=platform SEQNUMc0 _=/usr/bin/env)
>
>
> What does PATH mean here? Surely not where either the firmware.agent or
> firmware itself are?
No, the executable PATH for the environment.
> Oct 6 13:19:30 uclibc user.notice [788]:
> invoke /etc/hotplug/firmware.agent ()
>
>
> Does this mean this is being invoked with no parameters?
No idea, try looking at the code you copied.
Good luck,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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: loading firmware via hotplug
2005-10-05 10:02 loading firmware via hotplug Adrian McMenamin
` (2 preceding siblings ...)
2005-10-06 18:45 ` Greg KH
@ 2005-10-06 19:45 ` Adrian McMenamin
3 siblings, 0 replies; 5+ messages in thread
From: Adrian McMenamin @ 2005-10-06 19:45 UTC (permalink / raw)
To: linux-hotplug
On Thu, 2005-10-06 at 11:45 -0700, Greg KH wrote:
>
> No idea, try looking at the code you copied.
>
Thanks for all the help.
Turned out to be that the script relied on awk to discover where sysfs
was mounted and I have no awk on this system. Simply specifying /sys
works fine, though
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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
end of thread, other threads:[~2005-10-06 19:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-05 10:02 loading firmware via hotplug Adrian McMenamin
2005-10-06 16:55 ` Greg KH
2005-10-06 18:22 ` Adrian McMenamin
2005-10-06 18:45 ` Greg KH
2005-10-06 19:45 ` Adrian McMenamin
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).