From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 06 Oct 2005 16:55:42 +0000 Subject: Re: loading firmware via hotplug Message-Id: <20051006165542.GB13211@kroah.com> List-Id: References: <57004.217.150.108.178.1128506550.squirrel@newgolddream.dyndns.info> In-Reply-To: <57004.217.150.108.178.1128506550.squirrel@newgolddream.dyndns.info> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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