Hello All,
I have downloaded the rel kernel 4.9.x from the freescale git http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/
http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/tag/?id=rel_imx_4.9.x_1.0.0_ga
I am looking to use the 4.9.x kernel which is used by freescale for the releases.
I have downloaded the rel_imx_4.9.x_1.0.0_ga.tar.gz and started for thecompile using the buildroot and indivisual kernel component but hetting the following compilation errors,
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
arch/arm/mach-imx/built-in.o: In function `init_mmdc_lpddr2_settings':
platform-imx-dma.c:(.text+0x6954): undefined reference to `imx6sll_lpddr2_freq_change'
arch/arm/mach-imx/built-in.o: In function `imx6ul_cpuidle_init':
platform-imx-dma.c:(.init.text+0xc7c): undefined reference to `imx6ull_low_power_idle'
platform-imx-dma.c:(.init.text+0xc80): undefined reference to `mx6ull_lpm_wfi_start'
platform-imx-dma.c:(.init.text+0xc84): undefined reference to `mx6ull_lpm_wfi_end'
arch/arm/mach-imx/built-in.o: In function `imx6sl_init_late':
platform-imx-dma.c:(.init.text+0x2098): undefined reference to `imx6sll_cpuidle_init'
make: *** [vmlinux] Error 1
Done
imx6@imx6-virtual-machine:~/projects/src/rel_imx_4.9.x_1.0.0_ga$
Is anyone already faced same problem? How to resolve the errors?
Regards,
Surendra
Solved! Go to Solution.
Hi Surendra,
Try using the imx_v7_defconfig:
make imx_v7_defconfig
make
It should build a zImage without error.
Regards,
Fabio Estevam
Hello,
You may try using the i.MX Yocto Project BSP.
https://www.nxp.com/webapp/Download?colCode=L4.9.11_1.0.0_LINUX_DOCS
i.MX 6 / i.MX 7 Series Software and Development Tool|NXP
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Yuri,
Thanks for your help. I had gone through the links, but I am looking to use buildroot enviornment for my imx6ul based project.
So I am looking indivisual package of the kernel 4.9.11 which is used in the yocto project.
So which kernel i need to download from the freescale repo? I was trying to download http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/tag/?id=rel_imx_4.9.x_1.0.0_ga
So getting the problems . Fabio provide the one solution , let me try same.
Please confirm, is this official release of the kernel of freescale? so that i can use it.
Hello,
NXP official BSP is based on the same kernel as the freescale git provides.
Regards,
Yuri.
Hi Surendra,
Try using the imx_v7_defconfig:
make imx_v7_defconfig
make
It should build a zImage without error.
Regards,
Fabio Estevam
Hi, Fabio,
I was faced with the same problem and I've tried to use imx_v7_defconfig, built of zImage was succesful.
But when I loaded zImage and modules into my i.MX6 Sabre Lite board, I saw only "Starting kernel ..." and that's all.
I've tried also to specify in make LOADADDR = 0x10008000 (https://community.nxp.com/docs/DOC-100847#jive_content_id_2__Choose_which_branch_will_you_use) and to rebuild everything but this didn't solve the problem.
How to solve this problem?
Regards,
Ivan
Hello Fabio,
Thanks. Your comments are always helpful to me. I have used the imx_v7_defconfig and able to compile the kernel.
But when i saw the defconfig it doesnot have IMX6UL support . It has imx6ull CONFIG_SOC_IMX6ULL=y cofiguration.
Is this defconfig support for the imx6ul based controllers? or i need to use different defconfig?
Thanks
Surendra
Hi Surendra,
If you do:
make imx_v7_defconfig
The open the generated .config file you will see:
CONFIG_SOC_IMX6UL=y
CONFIG_SOC_IMX6ULL=y
So i.MX6UL is supported by default.
Regards,
Fabio Estevam