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:
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?
I faced this same issue. This has been fixed in the '3.14-1.1.x-imx' branch (imx in the end, not mx6).
Please follow these steps:
Setup your toolchain environment. I use Yocto 'jethro' generated:
then:
I hope this helps.
--
Marco
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!
-----------------------------------------------------------------------------------------------------------------------
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