mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* coda 2040000.vpu: firmware request failed
@ 2017-07-07 12:45 Jagan Teki
  2017-07-07 13:38 ` Fabio Estevam
  2017-07-07 13:39 ` Philipp Zabel
  0 siblings, 2 replies; 4+ messages in thread
From: Jagan Teki @ 2017-07-07 12:45 UTC (permalink / raw)
  To: Philipp Zabel, Fabio Estevam, Shawn Guo, Michael Trimarchi, linux-kernel
  Cc: linux-media

Hi,

I'm observing firmware request failure with i.MX6Q board, This is with
latest linux-next (4.12) with firmware from, [1] and converted
v4l-coda960-imx6q.bin using [2].

Log:
------
coda 2040000.vpu: Direct firmware load for vpu_fw_imx6q.bin failed with error -2
coda 2040000.vpu: Direct firmware load for vpu/vpu_fw_imx6q.bin failed
with error -2
coda 2040000.vpu: Direct firmware load for v4l-coda960-imx6q.bin
failed with error -2
coda 2040000.vpu: firmware request failed

I've verified md4sum and VDDPU as well, hope these look OK.

# md5sum /lib/firmware/v4l-coda960-imx6q.bin
af4971a37c7a3a50c99f7dfd36104c63  /lib/firmware/v4l-coda960-imx6q.bin
# dmesg | grep regu | grep -i vddpu
[    0.061552] vddpu: supplied by regulator-dummy

Did I missed any, request for help?

[1] http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-3.0.35-4.0.0.bin
[2] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-July/181101.html

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: coda 2040000.vpu: firmware request failed
  2017-07-07 12:45 coda 2040000.vpu: firmware request failed Jagan Teki
@ 2017-07-07 13:38 ` Fabio Estevam
  2017-07-07 13:39 ` Philipp Zabel
  1 sibling, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2017-07-07 13:38 UTC (permalink / raw)
  To: Jagan Teki
  Cc: Philipp Zabel, Shawn Guo, Michael Trimarchi, linux-kernel, linux-media

Hi Jagan,

On Fri, Jul 7, 2017 at 9:45 AM, Jagan Teki <jagannadh.teki@gmail.com> wrote:
> Hi,
>
> I'm observing firmware request failure with i.MX6Q board, This is with
> latest linux-next (4.12) with firmware from, [1] and converted
> v4l-coda960-imx6q.bin using [2].

There is no need to do the conversion with current code.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: coda 2040000.vpu: firmware request failed
  2017-07-07 12:45 coda 2040000.vpu: firmware request failed Jagan Teki
  2017-07-07 13:38 ` Fabio Estevam
@ 2017-07-07 13:39 ` Philipp Zabel
  2017-07-07 14:23   ` Jagan Teki
  1 sibling, 1 reply; 4+ messages in thread
From: Philipp Zabel @ 2017-07-07 13:39 UTC (permalink / raw)
  To: Jagan Teki
  Cc: Fabio Estevam, Shawn Guo, Michael Trimarchi, linux-kernel, linux-media

Hi Jagan,

On Fri, 2017-07-07 at 18:15 +0530, Jagan Teki wrote:
> Hi,
> 
> I'm observing firmware request failure with i.MX6Q board, This is with
> latest linux-next (4.12) with firmware from, [1] and converted
> v4l-coda960-imx6q.bin using [2].
> 
> Log:
> ------
> coda 2040000.vpu: Direct firmware load for vpu_fw_imx6q.bin failed with error -2
> coda 2040000.vpu: Direct firmware load for vpu/vpu_fw_imx6q.bin failed
> with error -2
> coda 2040000.vpu: Direct firmware load for v4l-coda960-imx6q.bin
> failed with error -2

The error code is -ENOENT, so the firmware binary is not found where the
firmware loader code is looking. That could be caused by the coda driver
being probed before the file system containing the firmware binary is
mounted. Have you tried compiling the coda driver as a module
(CONFIG_VIDEO_CODA=m)?

> coda 2040000.vpu: firmware request failed
> 
> I've verified md4sum and VDDPU as well, hope these look OK.
> 
> # md5sum /lib/firmware/v4l-coda960-imx6q.bin
> af4971a37c7a3a50c99f7dfd36104c63  /lib/firmware/v4l-coda960-imx6q.bin
> # dmesg | grep regu | grep -i vddpu
> [    0.061552] vddpu: supplied by regulator-dummy
> 
> Did I missed any, request for help?
> 
> [1] http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-3.0.35-4.0.0.bin
> [2] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-July/181101.html
> 
> thanks!

Note that converting the NXP provided firmware is not necessary anymore
since commits a1a87fa3a0cf ("[media] coda: add support for native order
firmware files with Freescale header") and 2ac7f08e3075 ("[media] coda:
add support for firmware files named as distributed by NXP").

Also there are newer firmware binaries available, see
https://patchwork.linuxtv.org/patch/42332/

regards
Philipp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: coda 2040000.vpu: firmware request failed
  2017-07-07 13:39 ` Philipp Zabel
@ 2017-07-07 14:23   ` Jagan Teki
  0 siblings, 0 replies; 4+ messages in thread
From: Jagan Teki @ 2017-07-07 14:23 UTC (permalink / raw)
  To: Philipp Zabel
  Cc: Fabio Estevam, Shawn Guo, Michael Trimarchi, linux-kernel, linux-media

On Fri, Jul 7, 2017 at 7:09 PM, Philipp Zabel <p.zabel@pengutronix.de> wrote:
> Hi Jagan,
>
> On Fri, 2017-07-07 at 18:15 +0530, Jagan Teki wrote:
>> Hi,
>>
>> I'm observing firmware request failure with i.MX6Q board, This is with
>> latest linux-next (4.12) with firmware from, [1] and converted
>> v4l-coda960-imx6q.bin using [2].
>>
>> Log:
>> ------
>> coda 2040000.vpu: Direct firmware load for vpu_fw_imx6q.bin failed with error -2
>> coda 2040000.vpu: Direct firmware load for vpu/vpu_fw_imx6q.bin failed
>> with error -2
>> coda 2040000.vpu: Direct firmware load for v4l-coda960-imx6q.bin
>> failed with error -2
>
> The error code is -ENOENT, so the firmware binary is not found where the
> firmware loader code is looking. That could be caused by the coda driver
> being probed before the file system containing the firmware binary is
> mounted. Have you tried compiling the coda driver as a module
> (CONFIG_VIDEO_CODA=m)?

Yes, true unless it is module firmware files can't get by coda

# modprobe -a coda
[   24.474662] coda 2040000.vpu: Firmware code revision: 36350
[   24.480556] coda 2040000.vpu: Initialized CODA960.
[   24.485415] coda 2040000.vpu: Unsupported firmware version: 2.1.9
[   24.493494] coda 2040000.vpu: codec registered as /dev/video[0-1]

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-07 14:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07 12:45 coda 2040000.vpu: firmware request failed Jagan Teki
2017-07-07 13:38 ` Fabio Estevam
2017-07-07 13:39 ` Philipp Zabel
2017-07-07 14:23   ` Jagan Teki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®