Compilation of Davinci kernel image uImage

Source: Internet
Author: User

Compilation of Davinci kernel image uImage 1. copy the directory of the kernel to/root, this prevents other configurations from being damaged. cp/opt/mv_pro_4.0/montavista/pro/devkit/lsp/ti-davinci/root/-rf 2. enter the copied Directory: cd/root/ti-davinci (// or a level-1 Directory, which should contain arch and so on) 3. make menuconfig (A Kernel configuration image interface is displayed. open the newly generated configs file arch/arm/configs/davinci_dm644x_defconfig 5. copy the new configuration file to the current directory/root/ti-davinci to overwrite (hide the file ). config cp arch/arm/configs/davinci_dm644x_defconfig. config 6. open again On the configuration page, modify the required configuration parameter make menuconfig 7. make 8. make uImage 9. copy the new uImage from/root/ti-davinci/arch/arm/boot to the file system cp/root/ti-davinci/arch/arm/boot/uImage/tftpboot/ 10. set permission: chmod 777/tftpboot/uImage attached: Compile the kernel and use it in the arm-gcc compiler. You need to set the environment variable: export PATH = "/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_5.0/montavista/pro/bin: /opt/mv_pro_5.0/montavista/common/bin: $ PATH "Davinci kernel compilation common commands DM64 46 set the kernel to the default configuration mode: make ARCH = arm CROSS_COMPILE = arm_v5t_le-davinci_dm644x_defconfigmake ARCH = arm CROSS_COMPILE = arm_v5t_le-checksetconfig DM355 set the kernel to the default configuration mode: make ARCH = arm CROSS_COMPILE = arm_v5t_le-policarch = arm CROSS_COMPILE = arm_v5t_le-checksetconfig enter the configuration menu and change the Kernel configuration option: make ARCH = arm CROSS_COMPILE = arm_v5t_le-menuconfig: make ARCH = arm CROSS_COMPILE = arm_v5t_le-uImage kernel module Compilation Command: ARCH = arm CROSS_COMPILE = arm_v5t_le-modules if the mkimage command cannot be found during image compilation, run the following command and run the make command export PATH = $ PATH: /opt/mv_pro_4.0.1/montavista/pro/bin (gcc path required for compiling the kernel) chmod a + x/opt/mv_pro_4.0.1/montavista/pro/bin/mkimage (path of mkimage) make ARCH = arm CROSS_COMPILE = arm_v5t_le-uImage. If not, enable/home/davinci/ICETEKWork/lsp/ti-davinci/scripts/mkuboot. sh file. Assign the MKIMAGE directly to the absolute path of the mkimage. Mine is MKIMAGE =/opt/mv_pro_4.0/mon. Tavista/pro/bin/mkimage, and then run the compile kernel command again...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.