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/PROCESSOR-SDK-AM335X: Creating bootable SD card

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

Hi All, 

   I know how to create a bootable SD card using pre-built SDK images and create-sdcard.sh script. But how to do it when I'm building the SDK on my own using "make all" command?

Regards, 

Karol

  • Hello Karol,

    SD card creation with custom images is described here.

    Best regards,
    Kemal

  • Hi Kemal,
    thanks for your answer. I went through the guide you pointed out but what is unclear to me is where will the boot partition files & root partition be exposed after I run "make all" command on my Linux SDK source code so i can use it with the create-sdcard.sh script? Any ideas?

    Regards,

    Karol
  • <Processor SDK>/board-support/u-boot-<version>/MLO
    <Processor SDK>/board-support/u-boot-<version>/u-boot.img
    <Processor SDK>/board-support/linux-<version>/arch/arm/boot/zImaga
    <Processor SDK>/board-support/linux-<version>/arch/arm/boot/dts/*.dtb
    <Processor SDK>/filesystem/tisdk-rootfs-image-am335x-evm.tar.xz

  • Hi Kemal,
    when I run create-sdcard.sh script and I select: 2 ) Enter in custom boot and rootfs file paths

    I get the following prompt:

    ################################################################################

    For U-boot and MLO

    If files are located in Tarball write complete path including the file name.
    e.x. $: /home/user/MyCustomTars/boot.tar.xz

    If files are located in a directory write the directory path
    e.x. $: /ti-sdk/board-support/prebuilt-images/

    NOTE: Not all platforms will have an MLO file and this file can
    be ignored for platforms that do not support an MLO.

    Update: The proper location for the kernel image and device tree
    files have moved from the boot partition to the root filesystem.

    ################################################################################

    I've tried all different options from the ones suggested by you but nothing seems to work :(

    Enter path for Boot Partition : ~/ti-processor-sdk-linux-am335x-evm-04.03.00.05/board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd/

    Invalid path make sure to include complete path
    Enter path for Boot Partition : ~/ti-processor-sdk-linux-am335x-evm-04.03.00.05/board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd/MLO

    Invalid path make sure to include complete path
    Enter path for Boot Partition : ~/ti-processor-sdk-linux-am335x-evm-04.03.00.05/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae/arch/arm/boot/zImage

    Invalid path make sure to include complete path
    Enter path for Boot Partition : ~/ti-processor-sdk-linux-am335x-evm-04.03.00.05/board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd/u-boot.img

    Invalid path make sure to include complete path
    Enter path for Boot Partition : ~/ti-processor-sdk-linux-am335x-evm-04.03.00.05/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae/arch/arm/

    Invalid path make sure to include complete path

    Can you tell me what path exactly should I select for the boot image? And since I will probably have similar issues with the filesystem - can you also tell me exactly what path should I select for that?

    Thanks in advance for your help.

    Regards,

    Karol
  • Use the absolute path.
  • Hi Kemal,
    I understand that I need give absolute path but I'm still confused :(
    What path should I set when the script asks me for "Enter path for boot partition"? The path to the MLO file? Or u-boot.img?
    What path should I set when the script asks me for "Enter path for Rootfs Partition"? <Processor SDK>/filesystem/tisdk-rootfs-image-am335x-evm.tar.xz?

    Thanks in advance for your help.

    Regards,

    Karol
  • Copy the MLO and u-boot.img to separate directory, then cd to that directory and type pwd. This is the absolute path.