NOTICE: The Processors Wiki will End-of-Life in December of 2020. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
SD card boot and flashing tool for DM355 and DM365
- Binary and sources download: http://makelinux.net/linuxdavinci/data/boot/
- Sources on gforge: https://gforge.ti.com/gf/project/dm3xx_sd_boot/
- Feedback forum
- 2009, by Constantine Shulyupin http://www.MakeLinux.com/
- The program uses TI flash_utils and SpectrumDigital evmdm365 SD driver
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
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
10. To change UBL, u-boot etc images please edit file dm3xx_sd.config
- flashes UBL, u-boot, kernel and root file system
- boots and flashed dm356, not dm355 yet
- boot data located on FAT filesystem
- no root access required to update boot images
- Ubuntu/Debian dash compatible (under construction and testing)
- Ubuntu (Dash) compatibility
- bug and hot fix: when working on PC run before work: export PATH=$PATH:bin.x86
- Be careful don't damage your hard disk. Format SD card only. Check for available storage devices in file /proc/partitions
- sometimes format fails at first time because of conflict with automatic mount. Just try a second time.
- format device, not partition: /dev/sdc and /dev/mmcblk0 - storage devices, /dev/sdc1 and /dev/mmcblk0p1 - partitions on this devices
- 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
- SanDisk 2GB, class2, e.g. SN: BE0933714685G Made in China. Blue with the logo in white on red. They come in a double-pack.
- Kingston 2GB, SD/2GB a.k.a SD-M02G, generic blue card purchased from Microcenter.
Cards That Failed
- 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