From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/8] package/freescale-imx/firmware-imx: bump version to 8.10
Date: Wed, 13 Jan 2021 09:04:31 +0100 [thread overview]
Message-ID: <66568a2a-8730-9d9a-07b4-168bd8eea60b@gmail.com> (raw)
In-Reply-To: <CAOMZO5CQ8-rHcZyKPmmSGCo+MSSEKRcbMJMDiFHp5VQDahG+Ug@mail.gmail.com>
Hello Fabio,
Le 13/01/2021 ? 01:27, Fabio Estevam a ?crit?:
> Hi Romain,
>
> On Tue, Jan 12, 2021 at 7:50 PM Romain Naour <romain.naour@gmail.com> wrote:
>
>> Not related to this patch, but why those firmware are installed to
>> $(TARGET_DIR)/lib/firmware/imx ?
>>
>> Because without any change I get:
>>
>> coda 2040000.vpu: Direct firmware load for vpu/vpu_fw_imx6q.bin failed with error -2
>> coda 2040000.vpu: Falling back to sysfs fallback for: vpu/vpu_fw_imx6q.bin
>> coda 2040000.vpu: Direct firmware load for v4l-coda960-imx6q.bin failed with
>> error -2
>> coda 2040000.vpu: Falling back to sysfs fallback for: v4l-coda960-imx6q.bin
>> coda 2040000.vpu: firmware request failed
>>
>> It seems that vpu directory is expected to be in "firmware" directory:
>> $(TARGET_DIR)/lib/firmware/vpu
>>
>> see:
>> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8af7779f3cbc1f6720d15f00abc797493710d1ab
>>
>> At least we have to create a simlink:
>> /lib/firmware/imx/vpu -> /lib/firmware/vpu
>>
>> or set fw_path_para in the kernel cmdline:
>> firmware_class.path=/lib/firmware/imx/
>
> I notice the same here on a imx53.
>
> Then I tried to change the VPU path like this:
>
> --- a/package/freescale-imx/firmware-imx/firmware-imx.mk
> +++ b/package/freescale-imx/firmware-imx/firmware-imx.mk
> @@ -116,9 +116,9 @@ endif
> FIRMWARE_IMX_VPU_FW_NAME = $(call
> qstrip,$(BR2_PACKAGE_FIRMWARE_IMX_VPU_FW_NAME))
> ifneq ($(FIRMWARE_IMX_VPU_FW_NAME),)
> define FIRMWARE_IMX_INSTALL_TARGET_VPU_FW
> - mkdir -p $(TARGET_DIR)/lib/firmware/imx/vpu
> + mkdir -p $(TARGET_DIR)/lib/firmware/vpu
> cp $(@D)/firmware/vpu/vpu_fw_$(FIRMWARE_IMX_VPU_FW_NAME)*.bin \
> - $(TARGET_DIR)/lib/firmware/imx/vpu/
> + $(TARGET_DIR)/lib/firmware/vpu/
> endef
> endif
>
> ,but the VPU firmware is still not found:
>
> [ 9.237801] coda 63ff4000.vpu: IRQ bit not found
> [ 9.291801] coda 63ff4000.vpu: Direct firmware load for
> vpu_fw_imx53.bin failed with error -2
> [ 9.300646] coda 63ff4000.vpu: Falling back to sysfs fallback for:
> vpu_fw_imx53.bin
There are several path supported (see the link above):
[CODA_IMX53] = {
.firmware = {
"vpu_fw_imx53.bin",
"vpu/vpu_fw_imx53.bin",
"v4l-coda7541-imx53.bin"
},
So with your change, the first try fail using "/lib/firmware/vpu_fw_imx53.bin".
But "/lib/firmware/vpu/vpu_fw_imx53.bin" succeed.
"firmware request failed" message should never appear in your dmesg log.
I believe there is a confusion between firmware (such vpu firmware) and imx sdma
firmware that require to be installed to "/lib/firmware/imx" directory.
See:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/imx6qdl.dtsi?id=8af7779f3cbc1f6720d15f00abc797493710d1ab#n883
Best regards,
Romain
> done
> Saving random seed: [ 9.997216] random: dd: uninitialized urandom
> read (512 bytes read)
> OK
> Starting network: OK
>
> Welcome to Buildroot
> buildroot login: root
> # ls /lib/firmware/vpu/vpu_fw_imx53.bin
> /lib/firmware/vpu/vpu_fw_imx53.bin
> #
>
> Any ideas?
>
> Thanks,
>
> Fabio Estevam
>
next prev parent reply other threads:[~2021-01-13 8:04 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-05 15:24 [Buildroot] [PATCH v2 0/8] Bump NXP BSP components to 5.4.70_2.3.0 Stephane Viau
2021-01-05 15:24 ` [Buildroot] [PATCH v2 1/8] package/freescale-imx/firmware-imx: bump version to 8.10 Stephane Viau
2021-01-12 22:50 ` Romain Naour
2021-01-13 0:27 ` Fabio Estevam
2021-01-13 0:43 ` Fabio Estevam
2021-01-13 8:10 ` Romain Naour
2021-01-13 11:16 ` Fabio Estevam
2021-01-13 11:31 ` Romain Naour
2021-01-13 11:46 ` Fabio Estevam
2021-01-13 8:04 ` Romain Naour [this message]
2021-01-13 8:27 ` Heiko Thiery
2021-01-13 8:39 ` Romain Naour
2021-01-13 11:56 ` Heiko Thiery
2021-01-13 12:54 ` Romain Naour
2021-01-16 15:40 ` Romain Naour
2021-01-16 21:31 ` Stephane Viau
2021-01-16 22:45 ` Romain Naour
2021-01-17 2:06 ` Fabio Estevam
2021-01-05 15:24 ` [Buildroot] [PATCH v2 2/8] package/freescale-imx/imx-sc-firmware: bump version to 1.7.0 Stephane Viau
2021-01-05 15:24 ` [Buildroot] [PATCH v2 3/8] package/freescale-imx/imx-seco: bump version to 3.7.4 Stephane Viau
2021-01-05 15:24 ` [Buildroot] [PATCH v2 4/8] package/imx-mkimage: bump to version rel_imx_5.4.70_2.3.0 Stephane Viau
2021-01-05 15:24 ` [Buildroot] [PATCH v2 5/8] configs/freescale_imx6*: bump BSP components to 5.4.70_2.3.0 Stephane Viau
2021-01-05 15:24 ` [Buildroot] [PATCH v2 6/8] configs/freescale_imx7dsabresd: " Stephane Viau
2021-01-05 15:24 ` [Buildroot] [PATCH v2 7/8] configs/freescale_imx8m*: " Stephane Viau
2021-01-05 15:24 ` [Buildroot] [PATCH v2 8/8] configs/freescale_imx8*: " Stephane Viau
2021-01-16 22:08 ` [Buildroot] [PATCH v2 0/8] Bump NXP " Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=66568a2a-8730-9d9a-07b4-168bd8eea60b@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox