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.

How to make a SD BOOT Card On DM368 Board ?

Dear All,

            I want to make a SD BOOT CARD on DM368 Board.

           The SDK Version is dvsdk_4_02_00_06.

           I followed the  documention /dvsdk_4_02_00_06/psp/u-boot-2010.12-rc2-psp03.01.01.39/tools/uflash\README , and run the command as below:

 

root@avst-develop:/home/hunter/dvsdk_4_02_00_06/psp/u-boot-2010.12-rc2-psp03.01.01.39/tools/uflash# fdisk /dev/sdb1

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

         switch off the mode (command 'c') and change display units to

         sectors (command 'u').

Command (m for help): d

Partition number (1-4): 1

Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Selected partition 1

First cylinder (1-2160, default 1): 20

Last cylinder, +cylinders or +size{K,M,G} (20-2160, default 2160):

Using default value 2160

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.

The kernel still uses the old table. The new table will be used at

the next reboot or after you run partprobe(8) or kpartx(8)

Syncing disks.

root@avst-develop:/home/hunter/dvsdk_4_02_00_06/psp/u-boot-2010.12-rc2-psp03.01.01.39/tools/uflash# partprobe

 

root@avst-develop:/home/hunter/dvsdk_4_02_00_06/psp/u-boot-2010.12-rc2-psp03.01.01.39/tools/uflash# ./uflash -d /dev/sdb1 -u UBL.bin -b u-boot.bin -vv

UBL Size 20991

U-Boot Size 310391

First partition starts at 66500(34048000)

Required Blocks 774, Available Blocks 66499

UBL Magic Number        : a1aced00

UBL Entry Point         : 00000100

UBL Number of Blocks    : 00000028

UBL Starting Block      : 00000075

UBL Load Address        : 00000000

Writing UBL Signature

Writing UBL

U-Boot Magic Number     : a1aced66

U-Boot Entry Point      : 81080000

U-Boot Number of Blocks : 0000025f

U-Boot Starting Block   : 000000a7

Load U-Boot Address     : 81080000

Writing U-Boot Signature

Writing U-Boot

Done...

 

The UBL.bin is UBL_DM36x_SDMMC_ARM432_DDR340_OSC24.bin  from \dvsdk_4_02_00_06\psp\board_utilities\ccs\dm365.

The u-boot.bin is from \dvsdk_4_02_00_06\psp\u-boot-2010.12-rc2-psp03.01.01.39.

 

And I configure the switch to SD BOOT Mode. Insert the SD card to dm368 board, and power on.

 

In my opition, I will see the UBL and uboot logs from serial port. But I get nothing.Why? Is there some steps get error ?

 

 

 

  • yanping zhang,

    Have a look at this post it might help you out link

     

    Regards,

    --Prabhakar Lad

     


  • Dear Prabhakar Lad,

          Thank you very much. I have resolved this problem already. But I still have another problem. That is U-BOOT can not detect ETH PHY.

           This is the UBL and U-BOOT logs:

     

    DM36x initialization passed!
    TI UBL Version: 1.50
    Booting Catalog Boot Loader
    BootMode = SD/MMC
    Starting SDMMC Copy...
       DONE
    Jumping to entry point at 0x81080000.
    [board.c] [board_init_f] [273]


    U-Boot 2010.12-rc2 (Nov 29 2011 - 20:40:11)

    U-Boot code: 81080000 -> 810C8620  BSS: -> 81111A58
    Cores: ARM 432 MHz
    DDR:   340 MHz
    I2C:   ready
    monitor len: 00091A58
    ramsize: 10000000
    TLB table at: 8fff0000
    Top of RAM usable for U-Boot at: 8fff0000
    Reserving 582k for U-Boot at: 8ff5e000
    Reserving 1280k for malloc() at: 8fe1e000
    Reserving 24 Bytes for Board Info at: 8fe1dfe8
    Reserving 120 Bytes for Global Data at: 8fe1df70
    New Stack Pointer is: 8fe1df68
    RAM Configuration:
    Bank #0: 80000000 256 MiB
    relocation Offset is: 0eede000
    [board.c] [board_init_r] [452]
    monitor flash len: 00048620
    Now running in RAM - U-Boot at: 8ff5e000
    NAND:  No NAND device found!!!
    0 MiB
    MMC:   davinci: 0, davinci: 1
    *** Warning - readenv() failed, using default environment

    Destroy Hash Table: 8ffecad4 table = (null)
    Create Hash Table: N=93
    INSERT: table 8ffecad4, filled 1/97 rv 8fe1e390 ==> name="bootargs" value="console=ttyS0,115200n8 root=/dev/mmcblk0p1 rootwait rootfstype=ext3 rw"
    INSERT: table 8ffecad4, filled 2/97 rv 8fe1e504 ==> name="bootcmd" value="mmc rescan 0;ext2load mmc 0 0x80700000 boot/uImage; bootm 0x80700000"
    INSERT: table 8ffecad4, filled 3/97 rv 8fe1e534 ==> name="bootdelay" value="2"
    INSERT: table 8ffecad4, filled 4/97 rv 8fe1e3e4 ==> name="baudrate" value="115200"
    INSERT: table 8ffecad4, filled 5/97 rv 8fe1e7bc ==> name="ethaddr" value=""00:0e:99:02:cc:cb""
    INSERT: table 8ffecad4, filled 6/97 rv 8fe1e480 ==> name="bootfile" value=""uImage""
    INSERT: free(data = 8fe1e248)
    INSERT: done
    Net:   [eth.c] [eth_initialize] [209]
    [dm365evm.c] board_eth_init
    EMAC_MDIO_CLOCK_FREQ=2200000
    No ETH PHY detected!!!
    dm9000

     

    The SDK Version is dvsdk_4_02_00_06. and the phy is dm9161b,the board is dm368 board.

    If I use dvsdk_4_00_00_17,the UBOOT can find the ETH PHY.But this version of uboot does not  support boot from SD CARD.

    What should I change with dvsdk_4_02_00_06's UBOOT ?


  • Dear

    Could you find any solution to address your problem?

    I have a similar case and I couldn't find any way to activate ETH.

    Please let me know if you got anything.

    Thanks.

  • I follow the all steps give her. But I am not able to prepare sd card. uflash is giving segmentation fault.
    Please find bellow log and please help.


    vaibhav@CPU-194:~/home/dm365_low_latency_camera/Reference/SDFlash/sd_final$ sudo ./mksdboot_vaibhav.sh --device /dev/sdc --sdk .
    ************************************************************
    * 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'
    1024+0 records in
    1024+0 records out
    1048576 bytes (1.0 MB) copied, 0.345 s, 3.0 MB/s

    WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.

    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 ...
    Formating /dev/sdc2 ...
    mke2fs 1.42 (29-Nov-2011)
    Executing mkimage utilty to create a boot.scr file
    Image Name: Execute uImage
    Created: Wed Dec 17 19:09:02 2014
    Image Type: ARM Linux Script (uncompressed)
    Data Size: 368 Bytes = 0.36 kB = 0.00 MB
    Load Address: 00000000
    Entry Point: 00000000
    Contents:
    Image 0: 360 Bytes = 0.35 kB = 0.00 MB
    Copying uImage/boot.scr on /dev/sdc1
    Executing uflash tool to write ubl and u-boot.bin
    ./mksdboot_vaibhav.sh: line 180: 24733 Segmentation fault (core dumped) $sdkdir/uflash -d ${device} -u ${sdkdir}/UBL_DM36x_SDMMC.bin -b ${sdkdir}/u-boot-dm365-evm.bin -vv
    Failed to execute uflash
    vaibhav@CPU-194:~/home/dm365_low_latency_camera/Reference/SDFlash/sd_final$