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.

PSP 4.2.0.7 Kernel Build Instructions

Other Parts Discussed in Thread: AM3517

Hi,

I think the manual can use some minor edits. Please see:

http://processors.wiki.ti.com/index.php/AM35x-OMAP35x-PSP_04.02.00.07_UserGuide#Compiling_Linux_Kernel

And copied here:

  1. Change to the base of the Linux kernel source directory.
    $ cd ./kernel

    Should this be:

    $ cd ./linux
  2. Remove the intermediate files generated during build. This step is not necessary when building for the first time.
    $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean
  3. Choose build configuration corresponding to the target platform
    • For OMAP3EVM:
      $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm omap3_evm_defconfig
    • For AM3517EVM:
      $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm am3517_evm_defconfig
    • For Beagle/ BeagleXM:
      $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm omap3_beagle_defconfig
  4. Initiate the build
    $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm
    On successful completion, file uImage will be created in the sub-directory arch/arm/boot. Copy this file to the root directory of your TFTP server.

    I don't believe uImage is a default target. It doesn't build for me and isn't listed as a default target in "make help".

  • The target "uImage" should in "arch/arm/boot/Makefile". It depends on the utility "mkimage" existing. I think it silently fails if it cannot find "mkimage". Maybe you try "which mkimage" to see if there is one in your path.

  • Hi Norman,

    I think it's just that it isn't selected as a default target. "make help" does not list it as "* uImage".

    If I "make uImage" it builds the image just fine.

    Best,

    Ken

  • I misunderstood. The instructions should have said.

    4. Initiate the build
      $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm uImage
      On successful completion, file uImage will be created in the sub-directory arch/arm/boot. Copy this file to the root directory of your TFTP server.

    The uImage target is an add-on just for embedded systems with u-boot. Maybe the mainline Linux guys don't want to force everybody to build uImage. The TI patched kernel partly does. I don't know if there are any TI platforms that don't use u-boot. In the far off past, I think uImage had manually built outside the kernel make.

     

  • Thanks for the feedback. You should see the User Guide updated soon.