This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Boot uboot from MMC/SD of OMAPL138

Other Parts Discussed in Thread: OMAPL138, OMAP-L138, AM1808

hi,

    I want to boot uboot from MMC/SD of OMAPL138,I tried to apply with the steps below:

First,I applyed the artical"DA8x/OMAP-L1/AM1x DVEVM Additional Procedures" to Create bootable SD card for OMAP-L138 EVM board.

in the host linux:

karr@karr-desktop:~$ sudo fdisk -l
[sudo] password for karr:
Sorry, try again.
[sudo] password for karr:

Disk /dev/sda: 26.8 GB, 26843545600 bytes
255 heads, 63 sectors/track, 3263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00090477

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1495    12002304   83  Linux
/dev/sda2            1495        1567      577537    5  Extended
/dev/sda3            1568        3263    13623120   83  Linux
/dev/sda5            1495        1567      577536   82  Linux swap / Solaris

Disk /dev/sdb: 1977 MB, 1977614336 bytes
255 heads, 63 sectors/track, 240 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x01d3f1c3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         241     1931232+   b  W95 FAT32
Partition 1 has different physical/logical endings:
     phys=(239, 254, 63) logical=(240, 109, 61)


My SD card was connected to the host by though usb reader, It can be recongnized as /dev/sdb1,

karr@karr-desktop:~$ sudo fdisk /dev/sdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): d
Selected partition 1

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-240, default 1): 20
Last cylinder, +cylinders or +size{K,M,G} (20-240, default 240): +200

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

Now I can load u-boot.bin to SD card  by uflash tool.

karr@karr-desktop:~$  sudo ./uflash -d /dev/sdb -b u-boot.bin -p OMAPL138 -vv

U-Boot Size 193775
First partition starts at 305235(156280320)
U-Boot Magic Number        : a1aced66
U-Boot Entry Point         : c1080000
U-Boot Number of Blocks    : 0000017b
U-Boot Starting Block      : 00000075
Load U-Boot Address        : c1080000
Writing U-Boot Signature
Writing U-Boot
Done...

The SD card was ok. Then I use flashwriter to load arm-mmcsd-ais.bin to nandflash,Then I set the boot mode bits :bit[7-0]: 0000 1110b   I boot the board from Nand boot mode,I got some information below:

        "Booting with TI UBL
          Device OPP (300MHz, 1.2V)SD/MMC Boot failed."   ,Then there is nothing printed.

 

Then I reset  the boot mode bits :bit[7-0]: 0001 1100b   ,apply with  doc:   sprab41d.pdf,  page 29, boot the board again ,there is nothing printed to the terminal.

So, What steps should I apply with to boot uboot from mmc/SD card,  Is there any doc to applied with.   Or Omapl138 can't support this boot mode.

thanks!

  • This thread from several months back may be of some help.  At that time (maybe still true) there was some conflicting information about SD card booting.

    Regards, Daniel

  • hi Daniel,

            Thanks for your reply!    As you said,  Mounth agao there was some conflicting information about SD card booting,  Now ti can support boot from SD card,right?

    I check the uflash.c file of DaVinci-PSP-SDK-03.20.00.13 package,  The  uflash.c can't support to write ais.bin file on omapl138,  but in the package there is a arm-mmcsd-ais.bin file ,    it likes a boot file ,but I don't  know how to load it to my sd card.    In last mail,  I said i loaded the arm-mmcsd-ais.bin file to my nandflash,and boot from the Nandflash, It can print some informations under below:

           Booting with TI UBL
           Device OPP (300MHz, 1.2V)SD/MMC Boot failed

     then there is nothing printed. of course I loaded u-boot.bin to sd first. There are two questions:

    1)/  If I set omapl138 boot mode bit[7.....0]:0001 1100b , I should load ais file to my sd card first,  and how to use uflash to do that?

    2)\ if booting from sd card, wether the ENV can be saveed into sd card.  and what changes occured in uboot source file,If a new configuration should be generated for uboot rebuilding,how to do that ,thanks!!

    Regards, Ben! 

  • The best directions for using the SD card for booting the OMAP-L138/AM1808/C6748 can now be found on this wiki page:

    http://processors.wiki.ti.com/index.php/OMAP-L138_Preparing_SD_Card_for_Boot

    Regards, Daniel