I'm verifying Beaglebone(A6, white, not BBB) from MMC0 with an eMMC device.
I made an circuit board(driver an 8G eMMC chip) connected to uSD connector on beaglebone, so that it just like a microSD card.(gpio_cd, gpio_wp set to -EINVAL and it's 4 bit mode same as beaglebone uSD)
I can edit content in the eMMC card with an SD Card Reader on PC.
Then I created two partitions on PC, the bootble fat32 partition(ML0,uImage,u-boot.img,env.txt) and the ext3 (rootfs) partition.But Beaglebone can not boot from the eMMC device on MMC0.It just printed "CCCCCC"
I thought somthing wrong then read the AM335X TRM,in Section 26.1.7.53, 26.1.7.55
"The high level flowchart of the eMMC / eSD and MMC/SD booting procedure is depicted in Figure 26-17.
The booting file is searched only in case of booting from a card. eMMC/eSD embedded memories only
support raw mode.
...
As previously mentioned the contents of an MMC/SD card may be formatted as raw binary or within a FAT
filesystem. eMMC / eSD devices only support raw mode. The ROM Code reads out raw sectors from
image or the booting file within the file system and boots from it.
...
The raw mode is detected by reading sectors #0, #256, #512, #768. The content of these sectors is then
verified for presence of a TOC structure as described in Section 26.1.9. In the case of a GP Device, a
Configuration Header (CH) must be located in the first sector followed by a GP header. "
link:http://omappedia.org/wiki/E-MMC_boot eMMC RAW boot
Step-1 : ROM code reads 0th sector from eMMC device.
Step-2 : Check TOC, sets up SDRAM using configuration headers in the TOC.
Step-3 : ROM code reads 1st sector from eMMC device.
Step-4 : Decode the length of the image and load address(SRAM) of the x-loader. And execute it.
Step-5 : X-Loader transfers U-Boot to DRAM and executes it.
Step-6 : U-boot reads Kernel from FAT partition to SDRAM and executes it.
Step-7 : Kernel reads Filesystem.
It seems that I should format the eMMC card in "RAW Mode", but what's the RAW Mode? How make it works as RAW mode ? and what the image file contains?
thx~