Catweasel driver

2010-02-06 Thread Frank Wille
Hi, yesterday I started to write an MI driver for the Catweasel MK3 and MK4 PCI boards (http://www.icomp.de/indexe.htm). The card is recognized, the io space is mapped and the hardware is initialized (firmware uploaded into the card's FPGA). ATM I have two questions: 1. The firmware is large, w

Re: Catweasel driver

2010-02-06 Thread Joerg Sonnenberger
On Sat, Feb 06, 2010 at 01:33:33PM +0100, Frank Wille wrote: > 1. The firmware is large, with about 60k. Does anybody have experience > with using a compressed firmware image in the driver, which is uncompressed > on the fly, while uploading it to the chip? How would I do that? > (This would probab

Re: Catweasel driver

2010-02-06 Thread Masao Uebayashi
I think it's called firmload(9). Masao

Re: Catweasel driver

2010-02-06 Thread Frank Wille
Joerg Sonnenberger wrote: > Can't you use the approach e.g. of the wpi(4) driver and load the > firmware image from the filesystem? No, firmload(9) would not really be an option, because I want to detect connected devices, like a keyboard and floppy disk drives during boot. Without the firmware t

Re: Catweasel driver

2010-02-06 Thread Masao Uebayashi
Probably we can think of a nice way to apply modules(9) to load a firmware image, upload it to the device, then unload. When firmload(9) was invented, we didn't have a nice kernel module support yet. (I'm not sure what the dependency of them will look like, tho. :) Masao

Re: Catweasel driver

2010-02-06 Thread Frank Wille
Masao Uebayashi wrote: > Probably we can think of a nice way to apply modules(9) to load a > firmware image, upload it to the device, then unload. When firmload(9) > was invented, we didn't have a nice kernel module support yet. As I understand this would also need a filesystem to load from? B

Re: Catweasel driver

2010-02-06 Thread David Brownlee
On 6 February 2010 13:33, Frank Wille wrote: > Joerg Sonnenberger wrote: > >> Can't you use the approach e.g. of the wpi(4) driver and load the >> firmware image from the filesystem? > > No, firmload(9) would not really be an option, because I want to detect > connected devices, like a keyboard an

Re: Catweasel driver

2010-02-06 Thread Frank Wille
On Sat, 6 Feb 2010 18:46:56 + David Brownlee wrote: > firmload can currently load from a set of directories. Has anyone > considered extending firmload to optionally load from memory as well - > possibly an included ramdisk image? That would allow the choice of > building in firmware images w

re: Catweasel driver

2010-02-06 Thread matthew green
1. The firmware is large, with about 60k. Does anybody have experience with using a compressed firmware image in the driver, which is uncompressed on the fly, while uploading it to the chip? How would I do that? (This would probably make sense for most firmware, so a common interfac

Re: Catweasel driver

2010-02-07 Thread Masao Uebayashi
> > Probably we can think of a nice way to apply modules(9) to load a > > firmware image, upload it to the device, then unload. When firmload(9) > > was invented, we didn't have a nice kernel module support yet. > > As I understand this would also need a filesystem to load from? Can be loaded by