* Adaptec VideOh! DVD Media Center @ 2009-12-18 14:05 Paulo Assis 2009-12-18 14:27 ` Simon Farnsworth 2009-12-18 14:44 ` Devin Heitmueller 0 siblings, 2 replies; 5+ messages in thread From: Paulo Assis @ 2009-12-18 14:05 UTC (permalink / raw) To: Linux Media Mailing List Hi, I'm currently porting the GPL linux-avc2210k driver ( http://www.freelists.org/archive/linux-avc2210k/ ) to V4L2. The current version has it's own API that makes it incompatible with any software except for specific user space apps (avcctrl, avctune) bundled with the driver. Since development seems to have halted for some time now, I had no other choice than get my hands dirty :( For the most part this task seems quite straight forward it's mostly a matter of changing ioctls to V4L2 and add some missing support, there are however a few points that I need some advice on: For the box to function it needs a firmware upload. Currently this is managed by a udev script that in turn calls an application (multiload) that provides for the upload. What I would like to know is, if this the best way to handle it? The problem with this process is that it will always require installing and configuring additional software (multiload and udev script), besides the firmware. Is there any simpler/standard way of handling these firmware uploads ? Regards, Paulo ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Adaptec VideOh! DVD Media Center 2009-12-18 14:05 Adaptec VideOh! DVD Media Center Paulo Assis @ 2009-12-18 14:27 ` Simon Farnsworth 2009-12-18 14:44 ` Devin Heitmueller 1 sibling, 0 replies; 5+ messages in thread From: Simon Farnsworth @ 2009-12-18 14:27 UTC (permalink / raw) To: Paulo Assis; +Cc: Linux Media Mailing List Paulo Assis wrote: > For the box to function it needs a firmware upload. Currently this is > managed by a udev script that in turn calls an application (multiload) > that provides for the upload. > What I would like to know is, if this the best way to handle it? > The problem with this process is that it will always require > installing and configuring additional software (multiload and udev > script), besides the firmware. > Is there any simpler/standard way of handling these firmware uploads ? > Look at Documentation/firmware_class/README. There's a mechanism called request_firmware() that does what you want; it's used in several V4L drivers if you need an example usage. -- Simon Farnsworth ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Adaptec VideOh! DVD Media Center 2009-12-18 14:05 Adaptec VideOh! DVD Media Center Paulo Assis 2009-12-18 14:27 ` Simon Farnsworth @ 2009-12-18 14:44 ` Devin Heitmueller 2009-12-18 14:57 ` Mauro Carvalho Chehab 1 sibling, 1 reply; 5+ messages in thread From: Devin Heitmueller @ 2009-12-18 14:44 UTC (permalink / raw) To: Paulo Assis; +Cc: Linux Media Mailing List On Fri, Dec 18, 2009 at 9:05 AM, Paulo Assis <pj.assis@gmail.com> wrote: > Hi, > I'm currently porting the GPL linux-avc2210k driver ( > http://www.freelists.org/archive/linux-avc2210k/ ) to V4L2. > The current version has it's own API that makes it incompatible with > any software except for specific user space apps (avcctrl, avctune) > bundled with the driver. > Since development seems to have halted for some time now, I had no > other choice than get my hands dirty :( > For the most part this task seems quite straight forward it's mostly a > matter of changing ioctls to V4L2 and add some missing support, there > are however a few points that I need some advice on: > For the box to function it needs a firmware upload. Currently this is > managed by a udev script that in turn calls an application (multiload) > that provides for the upload. > What I would like to know is, if this the best way to handle it? > The problem with this process is that it will always require > installing and configuring additional software (multiload and udev > script), besides the firmware. > Is there any simpler/standard way of handling these firmware uploads ? > > Regards, > Paulo Hi Paulo, I would start by looking at the request_firmware() function, which is used by a variety of other v4l cards. Cheers, Devin -- Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Adaptec VideOh! DVD Media Center 2009-12-18 14:44 ` Devin Heitmueller @ 2009-12-18 14:57 ` Mauro Carvalho Chehab 2009-12-22 22:47 ` Paulo Assis 0 siblings, 1 reply; 5+ messages in thread From: Mauro Carvalho Chehab @ 2009-12-18 14:57 UTC (permalink / raw) To: Devin Heitmueller; +Cc: Paulo Assis, Linux Media Mailing List Devin Heitmueller wrote: > On Fri, Dec 18, 2009 at 9:05 AM, Paulo Assis <pj.assis@gmail.com> wrote: >> Hi, >> Is there any simpler/standard way of handling these firmware uploads ? >> >> Regards, >> Paulo > > Hi Paulo, > > I would start by looking at the request_firmware() function, which is > used by a variety of other v4l cards. Yes. Basically, you store all firmwares you need on /lib/firmware and request_firmware loads them when the driver is loaded. You don't need to add any extra udev magic for it to work, since there are already some userspace programs that handle firmware requests when using request_firmware(). Cheers, Mauro. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Adaptec VideOh! DVD Media Center 2009-12-18 14:57 ` Mauro Carvalho Chehab @ 2009-12-22 22:47 ` Paulo Assis 0 siblings, 0 replies; 5+ messages in thread From: Paulo Assis @ 2009-12-22 22:47 UTC (permalink / raw) To: Mauro Carvalho Chehab; +Cc: Devin Heitmueller, Linux Media Mailing List Hi, I'm having a real bad time with this, I've just noticed the strangest thing: The product id on the box changes when loading the firmware: from the initial vid:pid of 03f3:008b to 03f3:008c I guess the same also happens for 03f3:0087 to 03f3:0088 This is way the original firmware loader uses the inital pid in the configuration and the driver module sets the later in the device tab: udev loads the firmware, the pid changes and the driver module gets loaded. So if If I want the driver to request the firmware I have to set both pids and end up with two device entries, the first of which will never get removed since the inital pid is no more :D Is there any solution/ideas on how to handle this behaviour? Also I exctrated the firmware into a ihex file, I see that existing modules use several diferent types of firmware binary files (fw, bin) obtained from the ihex file, some even use ihex directly (request_ihex_firmware), is there a optimal format for this? Regards, Paulo 2009/12/18 Mauro Carvalho Chehab <maurochehab@gmail.com>: > Devin Heitmueller wrote: >> On Fri, Dec 18, 2009 at 9:05 AM, Paulo Assis <pj.assis@gmail.com> wrote: >>> Hi, > >>> Is there any simpler/standard way of handling these firmware uploads ? >>> >>> Regards, >>> Paulo >> >> Hi Paulo, >> >> I would start by looking at the request_firmware() function, which is >> used by a variety of other v4l cards. > > Yes. Basically, you store all firmwares you need on /lib/firmware and > request_firmware loads them when the driver is loaded. > > You don't need to add any extra udev magic for it to work, since there are > already some userspace programs that handle firmware requests when using > request_firmware(). > > Cheers, > Mauro. > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-22 22:47 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-12-18 14:05 Adaptec VideOh! DVD Media Center Paulo Assis 2009-12-18 14:27 ` Simon Farnsworth 2009-12-18 14:44 ` Devin Heitmueller 2009-12-18 14:57 ` Mauro Carvalho Chehab 2009-12-22 22:47 ` Paulo Assis
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox