This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: How to rebuild Linux kernel for OMAP L138 LCDK

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Tool/software: Linux

Hi there, I have installed the mcsdk_1_01_00_02 on Linux host machine and trying to rebuild Linux kernel provided in the board-support folder.

The version is 3.3 linux-3.3-psp03.22.00.26.sdk.

I am following the steps mentioned in the wiki 

Linux Kernel & Drivers Related Info and Activities

host $ cd linux-3.1.10
host $ ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- make distclean
host $ ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- make omapl138_lcdk_defconfig
host $ ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- make menuconfig
host $ ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- make uImage
host $ ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- make modules
host $ ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- make modules_install INSTALL_MOD_PATH=<your ARMv5 target file system location>


but I got the following error when I did "make omapl138_lcdk_defconfig"

$ ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- make omapl138_lcdk_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
***
*** Can't find default configuration "arch/arm/configs/omapl138_lcdk_defconfig"!
***
/home/miteshhiran/ti/mcsdk_1_01_00_02/board-support/linux-3.3-psp03.22.00.06.sdk/scripts/kconfig/Makefile:96: recipe for target 'omapl138_lcdk_defconfig' failed
make[1]: *** [omapl138_lcdk_defconfig] Error 1
Makefile:492: recipe for target 'omapl138_lcdk_defconfig' failed
make: *** [omapl138_lcdk_defconfig] Error 2

Please, let me know, if I have missed some settings. Cheers.

Regards,

Mitesh

  • Hi Mitesh,

    For MCSDK, you should use
    tisdk_omapl138-lcdk_defconfig

    You can find that there is NO omapl138_lcdk_defconfig file in arch/arm/configs, this is why you get the above error.

    Best Regards,
    Yordan
  • Great, thanks.

    However, not got error while running make uImage.
    Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
    /home/miteshhiran/ti/mcsdk_1_01_00_02/board-support/linux-3.3-psp03.22.00.06.sdk/kernel/Makefile:130: recipe for target 'kernel/timeconst.h' failed
    make[1]: *** [kernel/timeconst.h] Error 255
    Makefile:945: recipe for target 'kernel' failed
    make: *** [kernel] Error 2
  • Hi Yordan, all I want to do as of now is to rebild kernel for omapl138 lcdk board without any changes.
    Do I still need to run all of the make commands?

    and when running "make menuconfig" is there any expectation to make any changes?? I just selected exit! is that okay?
  • Hi,

    Here is the sequence:
    export ARCH=arm
    export PATH=/home/miteshhiran/ti/mcsdk_1_01_00_02/linux-devkit/sysroots/i686-arago-linux/usr/bin/:$PATH
    export CROSS_COMPILE=arm-arago-linux-gnueabi-
    make distclean
    make tisdk_omapl138-lcdk_defconfig
    make

    This will build your kernel with the default configuration, described in tisdk_omapl138-lcdk_defconfig.

    when running "make menuconfig" is there any expectation to make any changes?? I just selected exit! is that okay?

    You run make menuconfig only when you wish to add/remove something from the default configuration (described in tisdk_omapl138-lcdk_defconfig). If you don't want to change anything with the kernel configuration you can skip this step.

    Best Regards,
    Yordan
  • Thanks. will try that.
    But If I want to change for example, MII to RMII for network driver. then would I have to do make menuconfig, uImage, modules & filesystems ?
    or can I just change that in defconfig file?
  • Hi there, I am using this wiki link,
    processors.wiki.ti.com/.../AM1x

    to change ethernet driver to work with RMII but I can't find the option shown in the wiki.
    cant find:
    System Type --->
    TI DaVinci Implementations --->
    [*] Use RMII Ethernet PHY on DA850/OMAP-L138 EVM
  • Hi there, when I do make
    the following is what I get and not sure what to select from the list...

    make
    scripts/kconfig/conf --silentoldconfig Kconfig
    *
    * Restart config...
    *
    *
    * General setup
    *
    Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
    Cross-compiler tool prefix (CROSS_COMPILE) []
    Local version - append to kernel release (LOCALVERSION) []
    Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
    Kernel compression mode
    > 1. Gzip (KERNEL_GZIP)
    2. Bzip2 (KERNEL_BZIP2) (NEW)
    3. LZMA (KERNEL_LZMA)
    4. XZ (KERNEL_XZ) (NEW)
    5. LZO (KERNEL_LZO)
    choice[1-5?]: