Skip to contentSkip to conversation

Hotplug firmware problems

DISCUSSION Adrian McMenamin 4 participants 8 messages Oct 4, 2005 – Oct 6, 2005

lore
Share & tools
lore
#0 lore raw

I am attempting to load the firmware my device (AICA sound on Dreamcast) needs via hotplug...

	/* Load the firmware */
	const struct firmware *fw_entry;
	err = request_firmware(&fw_entry, "aica_firmware.bin", &pd->dev);
	if (err) goto freepcm;

(all the code can be seen at http://newgolddream.dyndns.info/repos)

But the firmware load fails... you can see the log at
http://newgolddream.dyndns.info/hotplug_fail.txt -- but I have to confess I don't know much about what the messages mean. Anybody able to help me out?

Adrian

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl

#1 lore raw
Quoted 2 lines · Adrian McMenamin

I am attempting to load the firmware my device (AICA sound on Dreamcast) needs via hotplug...

Messed about with the hotplug scripts and now get this ... but I don't know why firmware.agent doesn't load the firmware... and I assume there is no sound.agent available...

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 seq=625 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add
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 ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes SEQNUM=625 _=/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 ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes PHYSDEVBUS=platform SEQNUM=626 _=/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 seq=626 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add
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 seq=627 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add
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 ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 DEBUG=yes SEQNUM=627 _=/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 seq=628 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add
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 seq=629 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add
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 seq=630 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTION=add
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 ACTION=add TIMEOUT=10 PWD=/etc/hotplug HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes PHYSDEVBUS=platform SEQNUM=630 _=/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 ACTION=add PWD=/etc/hotplug MAJOR=116 HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes PHYSDEVBUS=platform SEQNUM=629 _=/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=16 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug MAJOR=116 HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes PHYSDEVBUS=platform SEQNUM=628 _=/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 seq=631 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 seq=632 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=116 HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes PHYSDEVBUS=platform SEQNUM=632 _=/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 seq=633 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 seq=634 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 seq=635 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 SEQNUM=634 _=/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=16 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=remove PWD=/etc/hotplug MAJOR=116 HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes PHYSDEVBUS=platform SEQNUM=633 _=/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 SEQNUM=635 _=/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 seq=636 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=10 PWD=/etc/hotplug HOME=/ SHLVL=2 PHYSDEVDRIVER=AICA DEBUG=yes PHYSDEVBUS=platform SEQNUM=631 _=/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 SEQNUM=636 _=/usr/bin/env)
Oct  4 16:56:01 uclibc user.notice [842]: no

runnable /etc/hotplug/module.agent is installed

Quoted 4 lines

Adrian

Quoted 8 lines

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
linuxsh-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxsh-dev

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl

#2 lore raw

At Tue, 04 Oct 2005 22:59:30 +0100,

Quoted 9 lines · Adrian McMenamin
Quoted 2 lines · Adrian McMenamin

I am attempting to load the firmware my device (AICA sound on Dreamcast) needs via hotplug...

Messed about with the hotplug scripts and now get this ... but I don't know why firmware.agent doesn't load the firmware... and I assume there is no sound.agent available...

Does /etc/hotplug/firmware.agent work correctly?

sound.agent isn't always necessary. udev can set up devices by itself, and even call "alsactl restore" and other set-up scripts.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl

#3 lore raw
Quoted 8 lines · Takashi Iwai

At Tue, 04 Oct 2005 22:59:30 +0100,

Quoted 6 lines · Adrian McMenamin
Quoted 2 lines · Adrian McMenamin

I am attempting to load the firmware my device (AICA sound on Dreamcast) needs via hotplug...

Quoted 6 lines
Quoted 3 lines

Messed about with the hotplug scripts and now get this ... but I don't know why firmware.agent doesn't load the firmware... and I assume there is no sound.agent available...

Does /etc/hotplug/firmware.agent work correctly?

Well, no, in the sense that no firmware is loaded :(

The logs report its invocation though I've added some echo lines into the firware.agent I'm using and they don't appear in any log, suggesting it isn't being found...

This is what it contains...

[adrian@mayday ~]$
cat /tftpboot/192.168.61.55/etc/hotplug/firmware.agent #!/bin/sh
#
# Firmware-specific hotplug policy agent.
#
# Kernel firmware hotplug params include:
#

#       ACTION=%s [add or remove]
#       DEVPATH=%s [in 2.5 kernels, /sys/$DEVPATH]
#       FIRMWARE=%s

#
# HISTORY:
#
# 24-Jul-2003 Initial version of "new" hotplug agent.
#
# $Id: firmware.agent,v 1.4 2004/09/20 21:23:51 kroah Exp $ #
echo "Trying to load firmware... "
cd /etc/hotplug
. ./hotplug.functions
# DEBUG=yes export DEBUG

# directory of the firmware files
FIRMWARE_DIR=/lib/firmware
# mountpoint of sysfs
SYSFS=$(awk '$3 == "sysfs" { print $2 ; nextfile }' /proc/mounts)
# use /proc for 2.4 kernels
if [ "$SYSFS" = "" ]; then
    SYSFS=/proc
fi

#
# What to do with this firmware hotplug event?
#
echo "Trying... $ACTION"
case "$ACTION" in

add)
if [ ! -e $SYSFS/$DEVPATH/loading ]; then
sleep 1
fi

if [ -f "$FIRMWARE_DIR/$FIRMWARE" ]; then
echo 1 > $SYSFS/$DEVPATH/loading
cp "$FIRMWARE_DIR/$FIRMWARE" $SYSFS/$DEVPATH/data echo 0 > $SYSFS/$DEVPATH/loading
else
echo -1 > $SYSFS/$DEVPATH/loading
fi

;;

remove)

    ;;

*)
mesg "Firmware '$ACTION' event not supported"
exit 1
;;

esac
[adrian@mayday ~]$

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl

#4 lore raw
Quoted 7 lines · Adrian McMenamin

if [ -f "$FIRMWARE_DIR/$FIRMWARE" ]; then
echo 1 > $SYSFS/$DEVPATH/loading
cp "$FIRMWARE_DIR/$FIRMWARE" $SYSFS/$DEVPATH/data echo 0 > $SYSFS/$DEVPATH/loading
else
echo -1 > $SYSFS/$DEVPATH/loading
fi

Try to add an echo to the else part; I guess $FIRMWARE_DIR/$FIRMWARE may not exist.

HTH
Clemens

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl

#5 lore raw
Quoted 11 lines · Clemens Ladisch
Quoted 7 lines · Adrian McMenamin

if [ -f "$FIRMWARE_DIR/$FIRMWARE" ]; then
echo 1 > $SYSFS/$DEVPATH/loading
cp "$FIRMWARE_DIR/$FIRMWARE" $SYSFS/$DEVPATH/data echo 0 > $SYSFS/$DEVPATH/loading
else
echo -1 > $SYSFS/$DEVPATH/loading
fi

Try to add an echo to the else part; I guess $FIRMWARE_DIR/$FIRMWARE may not exist.

I tried this and no out put - but then I don't think (despite the message in the log) that firmware.agent is being invoked but never executed.

Reading up about all this I wonder if it is a deeper problem - do I need to worry about the hotplug methods in the kset? This is a bespoke device (on the platform bus etc) so I am not sure what the kset being used is.

Quoted 7 lines

HTH
Clemens

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl

#7 lore raw
In reply to Adrian McMenamin
Quoted 12 lines · Adrian McMenamin
Quoted 11 lines · Takashi Iwai

At Tue, 04 Oct 2005 22:59:30 +0100,

Quoted 7 lines · Adrian McMenamin
Quoted 2 lines · Adrian McMenamin

I am attempting to load the firmware my device (AICA sound on Dreamcast) needs via hotplug...

Messed about with the hotplug scripts and now get this ... but I don't know why firmware.agent doesn't load the firmware... and I assume there is no sound.agent available...

Quoted 7 lines
Quoted 1 line

Does /etc/hotplug/firmware.agent work correctly?

Well, no, in the sense that no firmware is loaded :(

The logs report its invocation though I've added some echo lines into the firware.agent I'm using and they don't appear in any log, suggesting it isn't being found...

try redirecting the debug echos into a file instead ? echo blah >> /tmp/firmware-log
-mike

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl