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

From Texas Instruments Wiki
Jump to: navigation, search

Credits[edit]

Usage[edit]

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
  • saveenv

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


See also:

Features[edit]

  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[edit]

  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[edit]

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
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article SD card boot and flashing tool for DM355 and DM365 here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article SD card boot and flashing tool for DM355 and DM365 here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article SD card boot and flashing tool for DM355 and DM365 here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article SD card boot and flashing tool for DM355 and DM365 here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article SD card boot and flashing tool for DM355 and DM365 here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article SD card boot and flashing tool for DM355 and DM365 here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article SD card boot and flashing tool for DM355 and DM365 here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article SD card boot and flashing tool for DM355 and DM365 here. 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

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity