Re: boot slow down

2012-08-08 Thread bjlockie

How hard would it be to get an official kernel option not to load firmware
OR be able to set the timeout?


--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: boot slow down

2012-08-07 Thread bjlockie
 Hi James,

 On Mon, Aug 06, 2012 at 12:38:51AM -0400, James wrote:
 On 08/05/12 17:20, Sakari Ailus wrote:
  Hi Andy and James,
 
  On Sat, Aug 04, 2012 at 06:28:19PM -0400, James wrote:
  On 08/04/12 13:42, Andy Walls wrote:
  James bjloc...@lockie.ca wrote:
 
  There's a big pause before the 'unable'
 
  [2.243856] usb 4-1: Manufacturer: Logitech
  [   62.739097] cx25840 6-0044: unable to open firmware
  v4l-cx23885-avcore-01.fw
 
 
  I have a cx23885
  cx23885[0]: registered device video0 [v4l2]
 
  Is there any way to stop it from trying to load the firmware?
  What is the firmware for, analog tv? Digital works fine and analog
 is
  useless to me.
  I assume it is timing out there.
  --
  To unsubscribe from this list: send the line unsubscribe
 linux-media
  in
  the body of a message to majord...@vger.kernel.org
  More majordomo info at  http://vger.kernel.org/majordomo-info.html
 
  The firmware is for the analog broadcast audio standard (e.g. BTSC)
 detection microcontroller.
 
  The A/V core of the CX23885/7/8 chips is for analog vidoe and audio
 processing (broadcast, CVBS, SVideo, audio L/R in).
 
  The A/V core of the CX23885 provides the IR unit and the Video PLL
 provides the timing for the IR unit.
 
  The A/V core of the CX23888 provides the Video PLL which is the
 timing for the IR unit in the CX23888.
 
  Just grab the firmware and be done with it.  Don't waste time with
 trying to make the cx23885 working properly but halfway.
 
  Regards,
  Andy
 
  I already have the firmware.
  # ls -l /lib/firmware/v4l-cx23885-avcore-01.fw
  -rw-r--r-- 1 root root 16382 Oct 15  2011
 /lib/firmware/v4l-cx23885-avcore-01.fw
 
  The timeout if for allowing the user space helper enough time to
 provide the
  driver with the firmware, but it seems the helper isn't around as the
  timeout expires. Is udev running around the time of the first line? Is
 the
  driver linked directly into the kernel or is it a module?
 
  Kind regards,
 
 I have this set so the firmware is in the kernel.

 Symbol: FIRMWARE_IN_KERNEL [=y]

 I don't know about that driver, but if the udev would have to provide the
 firmware, and it's not running, the delay is expected. Two seconds after
 kernel startup is so early that the user space, including udev, might not
 yet be running.

 Kind regards,

 --
 Sakari Ailus
 e-mail: sakari.ai...@iki.fi   jabber/XMPP/Gmail: sai...@retiisi.org.uk

Doesn't that kernel option mean the firmware is put into the kernel at
kernel build time?

If I build the module, is there a module option to skip the delay?

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: boot slow down

2012-08-07 Thread bjlockie
 bjloc...@lockie.ca wrote:

 Hi James,

 On Mon, Aug 06, 2012 at 12:38:51AM -0400, James wrote:
 On 08/05/12 17:20, Sakari Ailus wrote:
  Hi Andy and James,
 
  On Sat, Aug 04, 2012 at 06:28:19PM -0400, James wrote:
  On 08/04/12 13:42, Andy Walls wrote:
  James bjloc...@lockie.ca wrote:
 
  There's a big pause before the 'unable'
 
  [2.243856] usb 4-1: Manufacturer: Logitech
  [   62.739097] cx25840 6-0044: unable to open firmware
  v4l-cx23885-avcore-01.fw
 
 
  I have a cx23885
  cx23885[0]: registered device video0 [v4l2]
 
  Is there any way to stop it from trying to load the firmware?
  What is the firmware for, analog tv? Digital works fine and
analog
 is
  useless to me.
  I assume it is timing out there.
  --
  To unsubscribe from this list: send the line unsubscribe
 linux-media
  in
  the body of a message to majord...@vger.kernel.org
  More majordomo info at
http://vger.kernel.org/majordomo-info.html
 
  The firmware is for the analog broadcast audio standard (e.g.
BTSC)
 detection microcontroller.
 
  The A/V core of the CX23885/7/8 chips is for analog vidoe and
audio
 processing (broadcast, CVBS, SVideo, audio L/R in).
 
  The A/V core of the CX23885 provides the IR unit and the Video
PLL
 provides the timing for the IR unit.
 
  The A/V core of the CX23888 provides the Video PLL which is the
 timing for the IR unit in the CX23888.
 
  Just grab the firmware and be done with it.  Don't waste time
with
 trying to make the cx23885 working properly but halfway.
 
  Regards,
  Andy
 
  I already have the firmware.
  # ls -l /lib/firmware/v4l-cx23885-avcore-01.fw
  -rw-r--r-- 1 root root 16382 Oct 15  2011
 /lib/firmware/v4l-cx23885-avcore-01.fw
 
  The timeout if for allowing the user space helper enough time to
 provide the
  driver with the firmware, but it seems the helper isn't around as
the
  timeout expires. Is udev running around the time of the first
line? Is
 the
  driver linked directly into the kernel or is it a module?
 
  Kind regards,
 
 I have this set so the firmware is in the kernel.

 Symbol: FIRMWARE_IN_KERNEL [=y]

 I don't know about that driver, but if the udev would have to provide
the
 firmware, and it's not running, the delay is expected. Two seconds
after
 kernel startup is so early that the user space, including udev, might
not
 yet be running.

 Kind regards,

 --
 Sakari Ailus
 e-mail: sakari.ai...@iki.fi jabber/XMPP/Gmail: sai...@retiisi.org.uk

Doesn't that kernel option mean the firmware is put into the kernel at
kernel build time?

If I build the module, is there a module option to skip the delay?


 Hi,

 The CX2388x firmware is _never_ built into the kernel.  I'm not sure what
 that particular kernel config option is for.

 The kernel delay waiting for userspace to load firmware is settable using
 a node under /sys somewhere. The default is 60 seconds.  You will have to
 change it in very early boot, or fix the hardcoded constant in the kernel
 and recompile your kernel.

 Shortening the delay may not get you entirely acceptable results.  If udev
 is not, or is refusing to load firmware for the cx25840 module, then that
 module will not properly initialize the CX23885/7/8 A/V core hardware and
 will likely return with failure.  I'm not sure if the cx23885 driver will
 happily continue on, if that happens.

It works fine even though it times out.


 If you still have a modular kernel build around, you may wish to test with
 it.  Blacklist the cx23885 module in /etc/modprobe.conf and the use
 udevadm to investigate what is going on with udev when you later modprobe
 the cx23885 driver.

 If building the video card driver into the kernel is causing you all the
 problems, then I simply recommend not doing that.

I'll try it as a module.


 Regards,
 Andy
 --
 To unsubscribe from this list: send the line unsubscribe linux-media in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html



--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: 3.5 kernel options for Hauppauge_WinTV-HVR-1250

2012-08-02 Thread bjlockie
 On Thu, Aug 2, 2012 at 5:53 AM, Andy Walls awa...@md.metrocast.net
 wrote:
 You can 'grep MODULE_ drivers/media/video/cx23885/*
 drivers/media/video/cx25840/* ' and other relevant directories under
 drivers/media/{dvb, common} to find all the parameter options for all
 the drivers involved in making a HVR_1250 work.

 Or just build with everything enabled until you know it is working,
 and then optimize the list of modules later.

It should have been easier, select the card and it builds all the drivers
it needs. :-)
Is there a script somewhere that lets me select a card and automatically
modifies the kernel config?


 Also, the 1250 is broken for analog until very recently (patches went
 upstream for 3.5/3.6 a few days ago).

North American OTA is all digital so I have no way to test it.


 Devin

 --
 Devin J. Heitmueller - Kernel Labs
 http://www.kernellabs.com
 --
 To unsubscribe from this list: send the line unsubscribe linux-media in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html



--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: 3.5 kernel options for Hauppauge_WinTV-HVR-1250

2012-08-02 Thread bjlockie

 Heck, even for the 1250 there are eight or ten different versions, so
 most users wouldn't even know the right one to choose.

Do you mean boards that use different chips?
I hate it when manufacturers do that (ie. with routers).


--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html