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.

Problem on Creating a bootable SD card for lightcrafter by using DVSDK

Other Parts Discussed in Thread: TMS320DM365

Hi All,

I am new to Lightcrafter development.  Now I am trying to flash the firmware on Ubuntu from DVSDK to a micro SD card in order to boot the EVM. I have followed exactly the instruction  from TMS320DM365 SDG, particularly in "How to create an SD card" section.
When I typed the command "/bin/mksdboot.sh --device /dev/sdc --sdk"

The menu displayed

Usage: mksdboot.sh [options] <sdk_install_dir> <device>

Mandatory options:
  --device              SD block device node (e.g /dev/sdd)
  --sdk                 Where is sdk installed ?

Optional options:
  --version             Print version.
  --help                Print this help message.

and When I tried "/bin/mksdboot_lcr.sh --device /dev/sdc --sdk . --rootfs", it just showed "ERROR: failed to find rootfs ./filesystem/dvsdk-dm365-evm-rootfs.tar.gz"

Now, I have no idea what to do with it

Thank you in advance.

Regards

Martin

  • Hi Martin,

    and When I tried "/bin/mksdboot_lcr.sh --device /dev/sdc --sdk . --rootfs", it just showed "ERROR: failed to find rootfs ./filesystem/dvsdk-dm365-evm-rootfs.tar.gz"

    It is expecting the filesystem with the name "dvsdk-dm365-evm-rootfs.tar.gz" that should be present in "filesystem" current working directory folder.

    Do you have any "filesystem" folder in present workign dir (PWD) while you creating the SD card?

    If no, then create "filesystem" folder and place DM365's fs with the name "dvsdk-dm365-evm-rootfs.tar.gz"

    Place the DM365's filesystem in "filesystem" folder and start to create SD card.

  • zbj@ubuntu:~$ sudo /bin/mksdboot_lcr.sh --device /dev/sdc --sdk . --rootfs
    ************************************************************
    *         THIS WILL DELETE ALL THE DATA ON /dev/sdc        *
    *                                                          *
    *         WARNING! Make sure your computer does not go     *
    *                  in to idle mode while this script is    *
    *                  running. The script will complete,      *
    *                  but your SD card may be corrupted.      *
    *                                                          *
    *         Press <ENTER> to confirm....                     *
    ************************************************************

    unmounting device '/dev/sdc1'
    unmounting device '/dev/sdc2'
    1024+0 records in
    1024+0 records out
    1048576 bytes (1.0 MB) copied, 2.56711 s, 408 kB/s
    Disk /dev/sdc doesn't contain a valid partition table
    Checking that no-one is using this disk right now ...
    OK

    Disk /dev/sdc: 966 cylinders, 255 heads, 63 sectors/track

    sfdisk: ERROR: sector 0 does not have an msdos signature
     /dev/sdc: unrecognized partition table type
    Old situation:
    No partitions found
    New situation:
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

       Device Boot Start     End   #cyls    #blocks   Id  System
    /dev/sdc1         20      29      10      80325    b  W95 FAT32
    /dev/sdc2         30     965     936    7518420   83  Linux
    /dev/sdc3          0       -       0          0    0  Empty
    /dev/sdc4          0       -       0          0    0  Empty
    Warning: no primary partition is marked bootable (active)
    This does not matter for LILO, but the DOS MBR will not boot this disk.
    Successfully wrote the new partition table

    Re-reading the partition table ...

    If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
    to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
    (See fdisk(8).)
    Formating /dev/sdc1 ...
    Executing mkimage utilty to create a boot.scr file
    mkimage: Can't stat ./bin/boot.cmd: No such file or directory
    Failed to execute mkimage to create boot.scr
    Execute 'sudo apt-get install uboot-mkimage' to install the package

    Finally, this happened.  "uboot-mkimage" is installed on ubuntu already.

  • Hi Martin,


    If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
    to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
    (See fdisk(8).)
    Formating /dev/sdc1 ...
    Executing mkimage utilty to create a boot.scr file
    mkimage: Can't stat ./bin/boot.cmd: No such file or directory
    Failed to execute mkimage to create boot.scr
    Execute 'sudo apt-get install uboot-mkimage' to install the package

    Finally, this happened.  "uboot-mkimage" is installed on ubuntu already.

    I think you can ignore this error unless you need "boot.scr" file for carrying the u-boot's boot commands.

  • The problem is that I can't use the sd card to boot the lightcrafter and when i check the sd card, nothing inside.

    Thanks for quick reply.

  • Hi Martin,

    Do you have "boot.cmd" file in "bin" directory ?

    If no, then put some dummy "boot.cmd" file there and start to create again.

    Because of the "boot.cmd file not found" error, it does not proceed to next step to format the SD card.