SD card boot and flashing tool for DM355 and DM365

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

Credits

Usage

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
or 
$ ./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

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

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


See also:

Features

  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

Troubleshooting

  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

TODO

For any questions mailto:const@LinuxDriver.co.il

E2e.jpg For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article SD card boot and flashing tool for DM355 and DM365 here.
Hyperlink blue.png Links
ARM Microcontroller MCU ARM Processor Digital Media Processor Digital Signal Processing Microcontroller MCU Multi Core Processor
Ultra Low Power DSP 8 bit Microcontroller MCU 16 bit Microcontroller MCU 32 bit Microcontroller MCU

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox