SD card boot and flashing tool for DM355 and DM365
From Texas Instruments Embedded Processors Wiki
- Binary and sources download: http://www.linux-davinci.info/data/boot/
- Sources on gforge: https://gforge.ti.com/gf/project/dm3xx_sd_boot/
- Feedback forum
Contents |
Credits
- 2009, by Constantine Shulyupin http://www.LinuxDriver.co.il/
- The program uses TI flash_utils and SpectrumDigital evmdm365 SD driver
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:
- 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
See also:
Features
- 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
Troubleshooting
- 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
TODO
- finish gforge
For any questions mailto:const@LinuxDriver.co.il
Leave a Comment