Sabrelite - kernel source with vivante support

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sabrelite - kernel source with vivante support

2,816 Views
EinarMar
Contributor IV

Hi there

I'm trying to orientate myself in Freescale's kernel source and support to Sabrelite (imx6q) with the Vivante support.

What I would like to be able to do is to download the newest kernel supported with imx6q/sabrelite/vivante support and build it myself.

Where is the correct location for acquiring those things ?

I have looked through Freescale · GitHub where there are listed several projects like:

- meta-fsl-arm

- meta-fsl-arm-extra

- fsl-community-bsb-base

.

.

and several more, but I am having a hard time to see what needs to be downloaded in order to have the required material (code) in my hand so I can build it myself.

I have before downloaded some older source from Linaro (3.0) but I would like to have some more recent kernel to build with the Sabrelite support.

Can anyone give my some basic insight into how Freescale is operating this now ?

Kind regards

Einar

Labels (2)
9 Replies

974 Views
EinarMar
Contributor IV

Hi Yixing

I have managed to complete this task by using the kernel from: boundarydevices/linux-imx6 · GitHub and the vivante  binaries are from the gpu SDK here: Index of /buildsources/g/gpu-viv-bin-mx6q

With this I have everything I need for now. I must admit that I am keen on taking the Yocto path but that will be my next step after we have managed to bring our iMX6q based board up. That will happen within the next two months.

Thanks for you help.

Regards

Einar

0 Kudos

974 Views
EinarMar
Contributor IV

Hi

I basically need to have the correct kernel source and build it myself because we maintain our own debian/ubuntu distro where everything is compiled with Linaro's toolchain.

Could you maybe recommend me on how to work out those patches in order to produce a complete kernel source for me  ?  where I don't have to build it with bitbake or do any other compilation. I just need to source to be proper.

Thanks for the support

Einar

0 Kudos

974 Views
YixingKong
Senior Contributor IV

Einar

Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help please feel free

to contact Freescale.

Thanks,
Yixing

0 Kudos

974 Views
LeonardoSandova
Specialist I

FabioEstevam Fabio, could you help me answering Einar's below question?

0 Kudos

975 Views
fabio_estevam
NXP Employee
NXP Employee

For mx6qsabrelite, the following kernel source is recommended:

  boundarydevices/linux-imx6 at boundary-imx_3.0.35_1.1.1 · GitHub

0 Kudos

975 Views
EinarMar
Contributor IV

So, in order to understand the concept here, then Freescale are providing some board recipes that are patched into some version of the mainline Linux ?

0 Kudos

975 Views
LeonardoSandova
Specialist I

Hi Einar,

You may have figured out what you mentioned is correct.Take a look at this folder: sources/meta-fsl-arm/recipes-kernel/linux and check files linux-imx_3.0.35.bb and linux-imx.inc. There you see the git repo where the fetching is done and the SRCREV hash string (where the git HEAD will be pointing to).  This upstream repo has all necessary commits which were created under a mainline (linus) repo.

Leo

0 Kudos

975 Views
LeonardoSandova
Specialist I

have you created an image with bitbake?

Follow the instructions on the README's but you should do something like this

$ source setup-environment imx6qsabrelite

$ bitbake core-image-minimal

The recipe which builds the sabre lite kernel is on ../sources/meta-fsl-arm/recipes-kernel/linux/ and once the (bit)baking ends, the source code is somewhere on tmp/work and the resulted images are on tmp/deploy.

Leo

975 Views
varsmolta
Contributor V

If you want to go the openembedded way, then I'd recommend Yocto. I've used it for building a whole distribution (Poky), including kernel and running it on my sabrelite board. Follow directions here:

i.MX Yocto: how can I build the Freescale Yocto Images?

There is an active community here:https://lists.yoctoproject.org/listinfo/meta-freescale

If you have any questions or patches to submit, please submit them to the meta-freescale list.

From my understanding, Vivante drivers are closed source. There is an attempt to reverse-engineer them here:

laanwj/etna_viv · GitHub