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.

AM335x eMMC boot in raw mode

Hi, Everyone

My customer need to know Raw mode TOC of AM335x.
I have some question about this.

I wanna make sure Table 26-20 of TRM.

(1)What is Start on field of TOC ?
(2)What is Size on field of TOC ?
(3)What is Section on field of TOC ?
(4)What address should we set Table 26-21. Configuration Header Settings ?
(5)Where should we set binary data with GP Header ?

Best Regards
Hiroyasu

  • I will ask the MMC experts to comment.
  • Hi, Biser

    Thank you!

    Best Regards
    Hiroyasu
  • I think it's best to look at an example. I built u-boot and MLO. Doing a hexdump of MLO shows

    00000000  40 00 00 00 0c 00 00 00  00 00 00 00 00 00 00 00  |@...............|
    00000010  00 00 00 00 43 48 53 45  54 54 49 4e 47 53 00 00  |....CHSETTINGS..|
    00000020  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
    *
    00000040  c1 c0 c0 c0 00 01 00 00  00 00 00 00 00 00 00 00  |................|
    00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    *
    00000200  90 29 01 00 00 04 2f 40  75 00 00 eb 00 00 0f e1  |.)..../@u.......|

    So the start field is 0x00000040. The start of a section. The size field is 0x0000000C which is the size of the section starting at offset 0x00000008. So 0x00000008+0x0000000C=0x00000014, where you'll find the filename CHSETTINGS. At offset 0x40 you have the key 0xc0c0c0c1 followed by the enable value of 1. The GP header starts at 0x00000200. The first word is the size of the image 0x00012990 followed by the word address the boot ROM will load the image at 0x402f0400.

    If you use standard u-boot, it automatically creates all of the for you so you shouldn't have to worry about it.

    Steve K.

  • Hi, Steve

    Thank you for your reply !
    My customer does not use u-boot. They wanna use raw mode.

    I have two question about start field.
    TOC value TRM says and your value are difference.


    Can you tell me which value should we use ?

    and 

    MLO is discussed on "26.1.7.5.7.3 FAT12/16/32 Root Directory" of TRM.
    We wanna use Raw mode.

    Can we use same value you tell me?

    Best Regards
    Hiroyasu

  • MLO/u-boot can be used in raw mode. Under Linux you can use the dd command to flash them to so that you can use raw mode. The beagleboard community uses raw mode for beaglebone boards and they use dd to write MLO/u-boot.img so that they can boot from raw mode.

    Steve K.

  • Hi, Steave

    I understood MLO can be used in raw mode.
    Thank you so much!

    and Could you tell me why your MLO value and TRM TOC header value of start field are difference ?

    Best Regards
    Hiroyasu
  • Hi, Steave

    Can you tell me any comments?
    I guess TRM is one example.  I guess User can changed TOC header value.

    This understanding is correct ?

    Best Regards
    Hiroyasu

  • Yes, the TRM is just one example.

    Steve K.

  • Hi, Steave

    Thank you for your comments.

    Can you tell me these three questions.

    (1)What is section ?
       You and TRM explained start of a section and start of a section.
       Can you tell me what is section ?

    (2)I understand we should set binary data with GP Header to address 0.
       This understanding is correct ?

    (3)Should we set 0 to address 00000050~00000200 ?

    Best Regards
    Hiroyasu

  • Hi, Steave

    Colud you reply for me ?

    Best Regards
    Hiroyasu