Freescale kernel building

cancel
Showing results for 
Search instead for 
Did you mean: 

Freescale kernel building

648 Views
robertmiddleton
Contributor I

I'm trying to build the latest 3.14 kernel from Freescale(Freescale/linux-fslc at 3.14-1.1.x-mx6 · GitHub ), but I'm having a problem building it.  I'm trying to build the kernel for an IMX6.  After cloning the repo, I do the following to try and build it:

  1. make imx_v7_defconfig
  2. make

However, the make process fails with the following error:

arch/arm/mm/built-in.o:(___ksymtab+v7_dma_map_area+0x0): multiple definition of `__ksymtab_v7_dma_map_area'

arch/arm/kernel/built-in.o:(___ksymtab+v7_dma_map_area+0x0): first defined here

arch/arm/mm/built-in.o:(___ksymtab+v7_dma_flush_range+0x0): multiple definition of `__ksymtab_v7_dma_flush_range'

arch/arm/kernel/built-in.o:(___ksymtab+v7_dma_flush_range+0x0): first defined here

arch/arm/mm/built-in.o:(___ksymtab+v7_dma_unmap_area+0x0): multiple definition of `__ksymtab_v7_dma_unmap_area'

arch/arm/kernel/built-in.o:(___ksymtab+v7_dma_unmap_area+0x0): first defined here

Makefile:831: recipe for target 'vmlinux' failed

What do I need to change in order for the kernel to link cleanly?

Labels (2)
Tags (1)
0 Kudos
4 Replies

83 Views
fabio_estevam
NXP Employee
NXP Employee

I faced this same issue. This has been fixed in the '3.14-1.1.x-imx' branch (imx in the end, not mx6).

0 Kudos

83 Views
marcocavallini
Contributor IV

Please follow these steps:

Setup your toolchain environment. I use Yocto 'jethro' generated:

  • source /opt/poky/2.0-cortexa8hf/environment-setup-cortexa8hf-vfp-neon-poky-linux-gnueabi

then:

  1. git clone https://github.com/Freescale/linux-fslc.git
  2. cd linux-fslc
  3. git checkout origin/3.14-1.1.x-mx6 -b 3.14-1.1.x-mx6
  4. make imx_v7_defconfig
  5. make uImage LOADADDR=0x10008000 (or make zImage LOADADDR=0x10008000)

I hope this helps.

--

Marco

0 Kudos

83 Views
Yuri
NXP TechSupport
NXP TechSupport

Hello,

You may try the recent BSP L3.14.52.

http://www.nxp.com/webapp/Download?colCode=L3.14.52_1.1.0_LINUX_DOCS

Please follow recommendations of "Freescale_Yocto_Project_User's_Guide.pdf"


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

83 Views
saurabh206
Senior Contributor III

Hi

You need to use

make  ARCH=arm CROSS_COMPILE=/opt/poky/1.5.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -j16 uImage LOADADDR=0x10008000

You can build corss_compile tool chain from "Task #7 - Create the toolchain "

Thanks

Saurabh

0 Kudos