Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.

SD card boot and flashing tool for DM355 and DM365

From Texas Instruments Wiki
Jump to: navigation, search



1. insert SD card to PC or EVM and get it device name (i.e. /dev/sdb, triple check this to ensure you do not damage your HDD contents!)

2. format SD card from user root (once)

$ sudo ./dm3xx_sd_boot format /dev/<sd device>

3. remove and re-insert the SD card and wait when it will be automounted or mount manually

4. copy boot data to SD card from regular user (not root):

$ make install
$ ./dm3xx_sd_boot data [/media/disk/dm3xx.dat]

5. set DM3x5 to SD boot mode (DM365EVM SW4 = 010000b, DM355EVM SW7 = 10b), insert the SD card to the top slot of DM365 (if in was in the PC before) or in bottom slot of DM355 (J27)

6. boot DM3x5 and install firmware (UBL, u-boot, Linux kernel and root file system image) on flash

7. set DM3x5 to NAND boot mode

8. reboot DM3x5

7. for booting from SD card peress 1. In u-boot issue command:

  • set bootargs console=ttyS0,115200n8 root=/dev/ram0 rw initrd=0x82000000,4M ip=off; bootm 0x80700000

You can copy root FS to second partition and use it with command in u-boot:

  • set bootargs console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw ip=off; bootm 0x80700000

9. optionally set u-boot environment to boot kernel and root fs from flash:

  • set bootcmd 'nand read 0x82000000 0x600000 0x400000;nboot 0x80700000 0 0x400000;bootm'
  • set bootargs mem=76M console=ttyS0,115200n8 root=/dev/ram0 rw initrd=0x82000000,8M ip=off
  • saveenv

10. To change UBL, u-boot etc images please edit file dm3xx_sd.config

See also:


  1. flashes UBL, u-boot, kernel and root file system
  2. boots and flashed dm356, not dm355 yet
  3. boot data located on FAT filesystem
  4. no root access required to update boot images
  5. Ubuntu/Debian dash compatible (under construction and testing)
  6. Ubuntu (Dash) compatibility


  1. bug and hot fix: when working on PC run before work: export PATH=$PATH:bin.x86
  2. Be careful don't damage your hard disk. Format SD card only. Check for available storage devices in file /proc/partitions
  3. sometimes format fails at first time because of conflict with automatic mount. Just try a second time.
  4. format device, not partition: /dev/sdc and /dev/mmcblk0 - storage devices, /dev/sdc1 and /dev/mmcblk0p1 - partitions on this devices
  5. With certain SD cards the tool gets stuck at some random address during flashing/booting from SD card. Try another card.

Tested SD Cards

This List is not exhaustive. It is assumed that most sd cards are working. So try any card you may already have first!

Cards That Work

  1. SanDisk 2GB, class2, e.g. SN: BE0933714685G Made in China. Blue with the logo in white on red. They come in a double-pack.
  2. Kingston 2GB, SD/2GB a.k.a SD-M02G, generic blue card purchased from Microcenter.

Cards That Failed

  1. HP 4GB SDHC, L1878A, SD-K04G, Card formatted properly and even began booting, but hangs at sdcard_init, likely due to lack of SDHC support