make kernel error

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

make kernel error

2,629 Views
rainho
Contributor II

drivers/tty/vt/consolemap_deftbl.c:1:8: Error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token drivers/tty/vt/cp437.uni
Occasionally, this error occurs when compiling the kernel (version 4.1.15). I have specified the platform and compilation chain in the top-level makefile, but every time I need make clean to recompile, it is too time-consuming. What is the reason? I know that the file is automatically generated by cp437, but sometimes it is wrong. Is this because of the encoding or the compiler? I am using the gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf version
Please answer, thank you!

Labels (2)
0 Kudos
Reply
6 Replies

2,602 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @rainho ,

I hope you are doing well.

->Please make sure to check the command you give to compile as well as all the prerequisites to build the image.
->Please also make sure to check the Linux environment is set properly to build the image.

Please refer to section 5.2 Choosing an i.MX Yocto project image.
Based on the target one set the image takes that much time to get built based on the recipe set for that.

gcc version is mentioned in the doc and the library for that.
https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

I hope it helps!

Thanks & Regards,
Sanket Parekh

0 Kudos
Reply

2,595 Views
rainho
Contributor II

Hello @Sanket Parekh

I hope you are doing well.

 

I did not use yocto to build the kernel by myself, but downloaded the kernel source code to build it myself. This problem occurs occasionally, especially when changing the device tree. But after I cleaned it up, the defconfig file that was not changed in the previous step can still be built. Success. When compiling, the gcc version has been clearly specified, and the environment has been established. The 5.2 in your document is not very useful to me, and I am still confused.

Thanks !

 

 

0 Kudos
Reply

2,580 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @rainho ,

I hope you are doing well.

I checked the driver source code but the drivers/tty/vt/consolemap_deftbl.c file doesn't exist in the Linux version you have mentioned.

I have shared a link to download the Linux kernel 4.1.15 please download it from there and then try to compile it.
https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

Thanks & Regards,
Sanket Parekh

0 Kudos
Reply

2,566 Views
rainho
Contributor II

Hello,Sanket Parekh

Ok, I will try your approach. But I want to ask you whether your source code has been compiled. As far as I know, the source code you released in version 4.1.15 does not have a table file. This file is related to the kernel compilation The module is automatically generated, including cp437, and there are related instructions in the comments at the top of the generated table file. Finally, my kernel source code is downloaded from imx-linux in github, which should be consistent with your version.

Thank you for your answer!

0 Kudos
Reply

2,551 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @rainho ,

I'm glad to help you!
Hence the issue is solved now, Can I close this thread?

Thanks & Regards,
Sanket Parekh

0 Kudos
Reply

2,546 Views
rainho
Contributor II

Hello 

ok,you can 

Thanks 

0 Kudos
Reply