imx27 CODA kernel 3.9.4

cancel
Showing results for 
Search instead for 
Did you mean: 

imx27 CODA kernel 3.9.4

945 Views
chrisruehl
Contributor III

Hi Guys,

I finally manage to get my new board running imx27 using Linux 3.9.4 with all devices ready to run.

I2C and ov2460 + mx_camera load and detect properly.

Now I want to test the VPU and the new features for V4Lv2 and find out that I must have the firmware

firmware for the VPU (former: vpu_fw_imx27_TO2.bin)  but with the new kernel its comes with a new version

called v4l-codadx6-imx27.bin.

Did freescale support developers and make this firmware available?

Thanks

and kind regards

Chris

Labels (2)
13 Replies

204 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Chris,

Please find attached the mx27 vpu firmware.

Regards,

Fabio Estevam

204 Views
JulienBoibessot
Contributor I

Hello Fabio,

is there an official Freescale repository where we can get these i.MX27/5/6 VPU firmwares for vanilla kernels ? (with automated wget scripts for example)

What is the license of these binaries ? Are we allowed to redistribute them ?

Regards,

Julien

0 Kudos

204 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Julien,

Currently only the firmwares for FSL kernels are available from FSL BSPs.

Regards,

Fabio Estevam

0 Kudos

204 Views
chrisruehl
Contributor III

Fabio,

I'll tried the firmware load today ;-) using Linux 3.9.6

INIT: version 2.88 booting

[info] Using makefile-style concurrent boot in runlevel S.

[....] Starting the hotplug events dispatcher: udevd[    6.779818] udevd[722]: starting version 175

. ok

[....] Synthesizing the initial hotplug events...[    7.979742] coda coda-imx27.0: Initialized CodaDx6.

[    7.984672] coda coda-imx27.0: Firmware version: 2.2.5

[    8.082520] coda coda-imx27.0: codec registered as /dev/video0

[    8.753523] usbcore: registered new interface driver btusb

done.

successfully loaded!

Thanks

Message was edited by: Chris Ruehl

Hi,  now I'm a step further after fix the I2C bus and have my OV2640 running.

To capture I used a modified version of

gcc -O2 -g -Wall mxc_v4l2_capture.c -o bin.x

and its seams that the v4l not yet stable ..

root@gtsir-nand:~# ./bin.x -w 640 -h 480 -c 100 /var/www/a.yuv

g_width = 640, g_height = 480

[ 8770.853104] mx2-camera imx27-camera.0: Camera driver attached to camera 0

--------------------------------------------------------------------------------------------

         Width = 640     Height = 480    Image size = 460800

         pixelformat = 842093913         colorspace = 7

--------------------------------------------------------------------------------------------

buf.index 0

buf.index 1

[ 8786.382831] mx2-camera imx27-camera.0: Camera driver detached from camera 0


but this is something I have to communicate with the guys take care of the codaDX6.

Cheers Chris

0 Kudos

204 Views
chrisruehl
Contributor III

Fabio,

Thank you very much, I wait a long time to get it. I will let you know how that works for me.

It is possible to get the firmware for the imx53 too, I have an other project in the queue working with this SOC for Video on Demand?

Regards,

Chris Ruehl

0 Kudos

204 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Chris,

Unfortunately I only saw your post today.

About mx53, I think you will find this patch series very useful:

http://www.mail-archive.com/linux-media@vger.kernel.org/msg63391.html

It was posted today and allows 1080p playback on mx53.

I will check which is the appropriate firmware that can be used on mx53 as well.

Regards,

Fabio Estevam

0 Kudos

204 Views
ronaldomoura
Contributor I

Hi Fabio,

   The current coda driver in linux kernel 3.16 requests a firmware named "v4l-coda7541-imx53.bin" for IMX53.  

   I couldn't find it anywhere. I tried to rename the firmware in IMX53 BSP  from /lib/firmware/vpu/vpu_fw_imx53.bin to v4l-coda7541-imx53.bin, but i guess it is wrong format. The following message is displayed by dmesg

coda 63ff4000.vpu: firmware get command error

coda 63ff4000.vpu: HW initialization failed

   Can you provide a link for the correct IMX53 coda firmware ?

Best Regards,

Ronaldo Moura

0 Kudos

204 Views
chrisruehl
Contributor III

Fabio,

Thanks again for your quick reply ;-)

Yes indeed, this patch serious looking very interesting to me too. Good hint!

Regards

Chris

0 Kudos

204 Views
RobertSchwebel
Contributor IV

Hi Chris,

we made the patches Fabio pointed to in this thread; there is more ongoing work which is not ready for mainline yet but of course already available for project work. So if we can help, please drop me a note at sales@pengutronix.de.

Regards,

Robert

0 Kudos

204 Views
chrisruehl
Contributor III

Hi Robert,

sure I'm happy to help testing the patches. My problem , I run a production this Jun/July. If shipment is done I have my head free for this.

Chris

0 Kudos

204 Views
chrisruehl
Contributor III

Freescale Team! No answers for me?

Chris

0 Kudos

204 Views
ianj
Contributor I

Hi Chris,

I read this with interest since I'm at a similar point. I looked at the byte/half order between the coda driver and the original FSL VPU driver and wrote a little program to dump the bit_code2 array to file. Looking at vpu_fw_imx7_TO2.bin it seems it has a version/size header and the 16-bit words are swapped. I think the file should begin with these bytes in hex...

22 00 0e e4 90 e1 ...

Having said this, I still haven't got the FW to load correctly, but I think this is a problem with my udev setup and userspace FW loader.

May I ask, how are you going to drive the coda device? Have you found a GStreamer plugin for it?

IanJ.

0 Kudos

204 Views
chrisruehl
Contributor III

Hi Ian,

tried the file you mentioned already renamed to v4l-codadx6-imx27.bin, and the firmware got loaded but spit out an other error message. I opened a service request and have a 1st response, the sales team wants to contact me on this.

For the Gstreamer its works on the V4L interface. Once the video/firmware is loaded you are able to talk to the VPU by IOCTRL commands for example to rotate the image ...

I let you know when I have a progress here.

Chris

0 Kudos