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!