Singlely compile the kernel from the SDK2.0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Singlely compile the kernel from the SDK2.0

1,675 次查看
刘刘波
Contributor I

When I get the kernel from the address QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/linux-qoriq/4.1-r0/git, Icompile it singlely by  make ARCH=arm64 CROSS_COMPILE=/opt/aarch64_eabi_cgslv5.1_gcc4.8.3_glibc2.17.0_fp/bin/aarch64-unknown-linux-gnueabi- all, but run into a problem, which is the following content:

drivers/staging/fsl_rman/rman_uio_driver.c: In function ‘rman_uio_irq_handler’:
drivers/staging/fsl_rman/rman_uio_driver.c:122:2: error: implicit declaration of function ‘in_be32’ [-Werror=implicit-function-declaration]
status = in_be32(rmdev->global_regs + MMEDR);
^
drivers/staging/fsl_rman/rman_uio_driver.c:126:3: error: implicit declaration of function ‘out_be32’ [-Werror=implicit-function-declaration]
out_be32(rmdev->global_regs + MMIER, 0);
^
cc1: some warnings being treated as errors
make[3]: *** [drivers/staging/fsl_rman/rman_uio_driver.o] error 1
make[2]: *** [drivers/staging/fsl_rman] error 2
make[1]: *** [drivers/staging] error 2
make: *** [drivers] error 2

I search the similar problem on the Internet, most of them hold the viewpoint that the problem is caused by lacking of header file, but I added all the header file that relevance of the function ‘in_be32’, the problem is still exist, therefore I hope get help from you.

Thanks in advance,

Amor

0 项奖励
回复
1 回复

1,473 次查看
Pavel
NXP Employee
NXP Employee

Usually the following command sequence is used for SDK kernel compiling:

  1. If kernel source code is not installed, install the kernel source code first.
  • $ bitbake -c cleansstate virtual/kernel
  • $ bitbake -c patch virtual/kernel
  1. Configure kernel to enable CW support:
  • $ bitbake -c menuconfig virtual/kernel
  • Enable Kernel hacking -> Include CodeWarrior kernel debugging in kernel configuration UI.
  1. Rebuild kernel:
  • $ bitbake virtual/kernel

 

See the SDK FAQ in NXP SDK infocenter page:

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-081CCB35-9211-4C64-87EA-1...


Have a great day,
Pavel Chubakov

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

0 项奖励
回复