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.

DM388: Camera Starter Kit Boot up issue

Part Number: DM388

Recently I got the DM388 camera starter kit. I tired to set it up based on the user guide. Got stuck on Power On and Determining Board IP Address (Section 4.2 user's guide) . Here in Tera Term after setting the serial option, step 6 Boot up is not happening its showing " CCCCC " continues  in tera term window. No boot up and so not getting RTSP links.

  • Hi Ebin,

    For first time boot you need to flash images through SD card as explained in section 3.

    Regards,
    Prashant
    PathPartner Technology Pvt Ltd
  • Ebin Geo Johnson,

    • Have you received any SD card along with the board?
    • If you have received SD card, please insert the received SD card to card slot on board and boot the board.

    Thanks 

  • Addition to this, you can refer below link for "Hardware Installation" section for SW1 position on board

    processors.wiki.ti.com/.../IPNC_RDK_DM38x_,_DM8127
  • Thank you for the reply. I have received SD card along with the board and I was trying to boot with SD Card inserted to card slot. I have not flashed the the SD card, used as it is, as i found dm38x-csk.dtb, MLO, u-boot, uImage files when i checked in PC.

  • Looks you have the right SD card with Images. May be this is not an issue in your case, still I would like to double confirm with you. 

    Do you have the right power supply for CSK? Please check this document for power supply requirements.

  • Yes, i'm using the right power supply with 5V, 3A as per requirement 

  • HI Ebin,

    It is a very rare scenario where out of the box SD card boot is not working.  Sine your board shows 'CCCCC' on UART console on power ON, I assume CSK board is fine but SD card is not good. Please can you follow the steps to prepare bootable SD card for DM388 CSK using pre-built binaries?. 

    You can refer "prepare SD card" section of  this Wiki page for more details on how to prepare bootable SD card.

    Note:

    • Please don't format or modify the SD card shipped. Use a separate SD card for all your experiemnts. 
    • Class-10 SD card is recommonded for booting CSK's.

    Thanks

  • Hi Ravikiran

    I installed IPNC_RDK in my PC. The location where I installed and extracted is home/ti/ipnc_rdk-3.9.0. As you suggested I'm preparing  bootable SD card using pre-built binaries. 

    On host $ dmesg, I got

    [  518.823817] sd 3:0:0:0: [sdb] 62521344 512-byte logical blocks: (32.0 GB/29.8 GiB)
    [  518.829853] sd 3:0:0:0: [sdb] Write Protect is off
    [  518.829971] sd 3:0:0:0: [sdb] Mode Sense: 03 00 00 00
    [  518.836444] sd 3:0:0:0: [sdb] No Caching mode page found
    [  518.836447] sd 3:0:0:0: [sdb] Assuming drive cache: write through

    So I assume my micro-SD card is detected on /dev/sdb

    3rd Step: Navigated to

    cd ti/ipnc_rdk-3.9.0/Utils/sd-script

    4th step: Run the script mksd-ti81xx.sh, I did

    sudo ./mksd-ti81xx.sh /dev/sdb /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/MLO /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/u-boot.img /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/dm38x-csk.dtb /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/uImage /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/filesystem_DM388_FULL_FEATURE.tar.

    After entering password, I'm getting 'Incorrect MLO Location !' . Please figure out what mistake I'm doing

  • Hi,

    Unplug the SDCard from PC and still you see /dev/sdb, then it is corrupt device node. Would suggest you to sudo rm -r /dev/sdb and then try again.
  • Please can you post the
    1. mksd-ti81xx.sh script
    2. ls /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/

    Thanks
  • Posting the mksd-ti81xx.sh script

    #!/bin/bash

    if [[ -z $1 || -z $2 || -z $3 || -z $4 || -z $5 || -z $6 ]]
    then
    echo "mksd-ti81xx Usage:"
    echo " mksd-ti81xx <device> <MLO> <u-boot.img> <dtb> <uImage> <rootfs tar.gz>"
    echo " Example: mksd-ti81xx /dev/sdc MLO u-boot.img dm38x-csk.dtb uImage nfs.tar.gz"
    exit
    fi

    if ! [[ -e $2 ]]
    then
    echo "Incorrect MLO location!"
    exit
    fi

    if ! [[ -e $3 ]]
    then
    echo "Incorrect u-boot.img location!"
    exit
    fi

    if ! [[ -e $4 ]]
    then
    echo "Incorrect dtb location!"
    exit
    fi

    if ! [[ -e $5 ]]
    then
    echo "Incorrect uImage location!"
    exit
    fi

    if ! [[ -e $6 ]]
    then
    echo "Incorrect rootfs location!"
    exit
    fi

    echo "All data on "$1" now will be destroyed! Continue? [y/n]"
    read ans
    if ! [ $ans == 'y' ]
    then
    exit
    fi

    echo "[Partitioning $1...]"

    DRIVE=$1
    dd if=/dev/zero of=$DRIVE bs=1024 count=1024

    SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'`

    echo DISK SIZE - $SIZE bytes

    CYLINDERS=`echo $SIZE/255/63/512 | bc`

    echo CYLINDERS - $CYLINDERS
    {
    echo ,9,0x0C,*
    echo 10,,,-
    } | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE

    echo "[Making filesystems...]"

    mkfs.vfat -F 32 -n boot "$1"1 &> /dev/null
    mkfs.ext3 -L rootfs "$1"2 &> /dev/null

    echo "[Copying files...]"

    mount "$1"1 /mnt
    cp $2 /mnt/MLO
    cp $3 /mnt/u-boot.img
    cp $4 /mnt/
    cp $5 /mnt/uImage
    umount "$1"1

    mount "$1"2 /mnt
    tar zxvf $6 -C /mnt &> /dev/null
    chmod 755 /mnt
    umount "$1"2

    echo "[Done]"
  • As mentioned in last post, I need " ls /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/" as well. to understand the issue.
    script looks okay, but may be there is some issue in your path ?

    Thanks
  • You want me to attach the files here? it contains  MLO, u-boot.img, dm38x-csk.dtb, uImage, 

    filesystem_DM388_FULL_FEATURE.tar.gz and filesystem_DM388_LOW_POWER.tar.gz

    I navigate to the sd script using "cd ti/ipnc_rdk-3.9.0/Utils/sd-script"

    To Run the script mksd-ti81xx.sh script

    "sudo ./mksd-ti81xx.sh /dev/sdb /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/MLO /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/u-boot.img /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/dm38x-csk.dtb /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/uImage /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/filesystem_DM388_FULL_FEATURE.tar"
  • Hi,

    Your path for MLO, uboot etc is wrong. Ravi kiran is trying to check that by ls

    Please give correct path. It does not start with /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/ , instead try ../../../ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/MLO etc
  • does this path exist on your PC ? check using ls command as below

    ls /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/MLO
  • Yes the path exist in PC

    ims@ims-VirtualBox:~$ ls ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/
    dm38x-csk.dtb                         MLO
    filesystem_DM388_FULL_FEATURE.tar.gz  u-boot.img
    filesystem_DM388_LOW_POWER.tar.gz     uImage
    ims@ims-VirtualBox:~$

  • Ravi asked for
    ls /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/

    and not for
    ls ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/

    There is a difference. a slash / before ti is there in Ravi's ls
    Do a pwd here
    ims@ims-VirtualBox:~$ pwd

    also do a pwd in
    ims@ims-VirtualBox:~/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/$
  • ims@ims-VirtualBox:~$ pwd
    /home/ims
    ims@ims-VirtualBox:~$ cd ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd
    ims@ims-VirtualBox:~/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd$ pwd
    /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd
    ims@ims-VirtualBox:~/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd$ cd
    ims@ims-VirtualBox:~$ ls /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/
    ls: cannot access /ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/: No such file or directory
    ims@ims-VirtualBox:~$
  • Hi Ebin,

    Please try with below command

    "sudo ./mksd-ti81xx.sh /dev/sdb /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/MLO /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/u-boot.img /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/dm38x-csk.dtb /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/uImage /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/filesystem_DM388_FULL_FEATURE.tar.gz"

    Regards,

    Prashant

    PathPartner Technology Pvt Ltd

  • ims@ims-VirtualBox:~$ cd ti/ipnc_rdk-3.9.0/Utils/sd-scriptims@ims-VirtualBox:~/ti/ipnc_rdk-3.9.0/Utils/sd-script$ sudo ./mksd-ti81xx.sh /dev/sdb /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/MLO /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/u-boot.img /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/dm38x-csk.dtb /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/uImage /home/ims/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/filesystem_DM388_FULL_FEATURE.tar
    [sudo] password for ims:
    Incorrect rootfs location!
    ims@ims-VirtualBox:~/ti/ipnc_rdk-3.9.0/Utils/sd-script$
  • Hi Ebin,

    Use filesystem_DM388_FULL_FEATURE.tar.gz instead of filesystem_DM388_FULL_FEATURE.tar

    Regards,

    Prashant

    PathPartner Technology Pvt Ltd
  • Hello Ebin,

    As indicated by other posts there is problem with the paths you have provided.  When you start using the script on day one, It  is better  to provide absolute path.

    For example if you have all the packages placed in  use  /home/ims/ti/ instead of  /ti/ becase directory 'ti' exists in  /home/ims/ not in root(/).

    Also, please provide complete file system name including extensions such ans gz & tar etc. 

    Refer this WiKi for more details

    Thanks

  • Thanks for the support provided by all. Now the new SD card is prepared as you suggested. The  new SD is inserted in the card slot. But situation is same the board did not boot up and no RTSP Links.

  • Hello Ebin,

    That is strange situation ! Your SD card slot seems to have some problem !

    How did you get this board? Was that through your local FAE. I would suggest you to contact your local FAE to get more support.

    Thanks
  • If SD card slot is having some error, is there any alternative for this like by using the NAND Flash

  • Ebin,

    To run nand boot on csk, we should have sd /mmcenabled. Nand can be flashed only after sd boot.

    Other boot modes such as uart or tftp are not supported on csk by default.

    But this can be enabled and tested with some rework on hardware though it is not a feature supported by TI as of now in the software

    Thanks

  • Dear Sir,

    We had DM388  MP Production with IPNC_RDK 3.8 for our customer.

    We have the plan to upgrade new SDK for kernel 4.4.

    After using these images,  I boot from SD card.

    I got this error.

    -------------------------------------

    U-Boot SPL 2016.05-00004-g63acf8c-dirty (Feb 13 2017 - 17:24:46)
    Trying to boot from MMC2
    -------------------------------------

    It stops at MLO(spl) stage and don't jump to u-boot.img.

    Even if I run "make sysall", the result is the same.

    1. sudo ./mksd-ti81xx.sh /dev/sdb /home/dm388/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/MLO /home/dm388/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/u-boot.img /home/dm388/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/dm38x-csk.dtb /home/dm388/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/uImage /home/dm388/ti/ipnc_rdk-3.9.0/Source/ipnc_rdk/binaries/DM388/sd/filesystem_DM388_FULL_FEATURE.tar.gz

    2.  I trace the source code.

    I can see the final debug message -> puts("[sk]check point 1\n");

    If I add  "goto OK1", I CAN NOT see any debug string in the  tera term. It's very strange.

    void board_init_r(gd_t *dummy1, ulong dummy2)
    {

    ....

    #ifdef CONFIG_SPL_BOARD_INIT
    puts("[sk] spl_board_init check\n");
        spl_board_init();
    #endif

    puts("[sk] board_boot_order\n");
        board_boot_order(spl_boot_list);
        for (i = 0; i < ARRAY_SIZE(spl_boot_list) &&
                spl_boot_list[i] != BOOT_DEVICE_NONE; i++) {
            announce_boot_device(spl_boot_list[i]);
            puts("[sk]check point 1\n");
            goto OK1;
            if (!spl_load_image(spl_boot_list[i]))
            {
                puts("[sk] break status\n");
                break;
            }
        }
    puts("[sk]checking\n");
        if (i == ARRAY_SIZE(spl_boot_list) ||
            spl_boot_list[i] == BOOT_DEVICE_NONE) {
            puts("SPL: failed to boot from all boot devices\n");
            hang();
        }
    OK1:
    puts("[sk] spl_image.os\n");
        switch (spl_image.os) {
        case IH_OS_U_BOOT:
            debug("Jumping to U-Boot\n");
            puts("Jumping to U-Boot\n");
            break;
    #ifdef CONFIG_SPL_OS_BOOT
        case IH_OS_LINUX:

    .....

    }

    I think it's at MLO(spl) stage and should be no problem to jump u-boot.img.

    Do you have any suggestions?

    Yours Sincerely,

    S.K.

  • user4154483,
    Please can you create a new thread and post the issue. It will help to track better and other users of forum also can look into the issue to help. :)
    Thanks