Howe can i compil kernel?

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

Howe can i compil kernel?

582 次查看
yaşarcani_tişge
Contributor II

i want to work with a screen that is not in MXC_lcdif.c file.

So I made the following changes in mxc_lcdif.
static struct fb_videomode lcdif_modedb[] = {
    {
        /* 480x272 @ 60 Hz , pixel clk @ 9MHz */
    "CLAA-WVGA", 60, 480, 272, 100000, 8, 2, 11, 2, 35, 2,
        //nane , refresh, xres, yres,pixclock, leftmargin, rightmargin, uppermargin, lowermargin, hsync, vsync
    FB_SYNC_CLK_LAT_FALL, //sync
    FB_VMODE_NONINTERLACED, //vmode
    0,},

    /* 800x480 @ 57 Hz , pixel clk @ 27MHz */
    /*"CLAA-WVGA", 57, 800, 480, 37037, 40, 60, 10, 10, 20, 10,
    FB_SYNC_CLK_LAT_FALL,
    FB_VMODE_NONINTERLACED,
    0,},
    {
    /* 800x480 @ 60 Hz , pixel clk @ 32MHz */
    /*"SEIKO-WVGA", 60, 800, 480, 29850, 89, 164, 23, 10, 10, 10,
    FB_SYNC_CLK_LAT_FALL,
    FB_VMODE_NONINTERLACED,
    0,},*/

I can not build the kernel. How  can i compile kernel? 
标签 (4)
1 回复

451 次查看
diegoadrian
NXP Employee
NXP Employee

Hello,

Thank you for writing.

If you want to build the kernel image separately, you can use the following commands:

$ export PATH=~/myandroid/bootable/bootloader/uboot-imx/tools:$PATH # If you do not know the path of your u-boot tools, you can skip this step. 
$ cd ~/myandroid/kernel_imx  # this can be different, you need to go to your kernel path.
$ echo $ARCH && echo $CROSS_COMPILE

 

You need to set those two environment variables:

$ export ARCH=arm
$ export CROSS_COMPILE=~/myandroid/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi- #set your own toolchain path, this is an important step

 

Then, you proceed to build your kernel image.

$ make imx_v7_android_defconfig      # probably, you will not need this part

$ make menuconfig                             #set your desired configuration

$ make KCFLAGS=-mno-android      # use your own flags

 

Note that I am using Android as example. You need to change the example according to your needs

I hope this can help you.

 

Best Regards,

Diego.

 

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