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.

AM6442: AM6442: EMMC booting failing

Part Number: AM6442


Tool/software:

Hello all,

I am failing to boot from emmc boot partition mmcblk0boot0.

though I am writing the tiboot3.bin, tispl.bin and u-boot.img file it is not booting from emmc but the data is present at that location.
I am able to see the data from the emmc partition but not able to boot.

=> md ${loadaddr} 0x2000
82000000: f6078230 de058230 010203a0 1e140202  0...0...........
82000010: ac7432ec 8905a8c7 d7473f0c 8683d3d2  .2t......?G.....
82000020: 30467dce 2a09060d f7864886 0d01010d  .}F0...*.H......
82000030: 81300005 300b319d 55030609 02130604  ..0..1.0...U....
82000040: 0b315355 03060930 0c080455 31585402  US1.0...U....TX1
82000050: 060d300f 07045503 6144060c 73616c6c  .0...U....Dallas
82000060: 25302731 04550306 541e0c0a 73617865  1'0%..U....Texas
82000070: 736e4920 6d757274 73746e65 636e4920   Instruments Inc
82000080: 6f70726f 65746172 30133164 55030611  orporated1.0...U
82000090: 0a0c0b04 636f7250 6f737365 13317372  ....Processors1.
820000a0: 03061130 0c030455 2049540a 70707553  0...U....TI Supp
820000b0: 3174726f 061b301d 48862a09 010df786  ort1.0...*.H....
820000c0: 0e160109 70707573 4074726f 632e6974  ....support@ti.c
820000d0: 1e306d6f 35320d17 34323430 39323431  om0...2504241429
820000e0: 175a3033 3035320d 31343235 33393234  30Z..25052414293
820000f0: 81305a30 300b319d 55030609 02130604  0Z0..1.0...U....
82000100: 0b315355 03060930 0c080455 31585402  US1.0...U....TX1
82000110: 060d300f 07045503 6144060c 73616c6c  .0...U....Dallas
82000120: 25302731 04550306 541e0c0a 73617865  1'0%..U....Texas
82000130: 736e4920 6d757274 73746e65 636e4920   Instruments Inc
82000140: 6f70726f 65746172 30133164 55030611  orporated1.0...U
82000150: 0a0c0b04 636f7250 6f737365 13317372  ....Processors1.
82000160: 03061130 0c030455 2049540a 70707553  0...U....TI Supp
82000170: 3174726f 061b301d 48862a09 010df786  ort1.0...*.H....
82000180: 0e160109 70707573 4074726f 632e6974  ....support@ti.c
82000190: 82306d6f 0d302202 862a0906 0df78648  om0.."0...*.H...
820001a0: 05010101 02820300 8230000f 82020a02  ..........0.....
820001b0: bf000102 d849ae14 6bd3727f 48ebcd23  ......I..r.k#..H
820001c0: 22dc650e 4f0ef24d b5edf682 7cdbddf2  .e."M..O.......|
820001d0: 596efa91 b6f7d5ff 8a1d04de d995d2cc  ..nY............
820001e0: c1c4e0d1 ffbf50f8 22910c48 7b4c9a50  .....P..H.."P.L{
820001f0: 0a96f38b a4b32628 55a9e0d9 3efb1a41  ....(&.....UA..>
82000200: bf6c275b af71c0ca ee22722f 62250146  ['l...q./r".F.%b
82000210: 04c73ead b618b1f6 6e12c02c 3e9be20f  .>......,..n...>
82000220: a8a0a6e5 41034506 1f164e17 84d674a9  .....E.A.N...t..
82000230: a779d64e a911b810 251f920e f2b17fdd  N.y........%....
82000240: 68f2b9d1 4b5933d8 cc777d82 23fa9cd1  ...h.3YK.}w....#
82000250: 8858fbb4 d5eacdf2 752cf216 c362fa2d  ..X.......,u-.b.
82000260: e06e09c1 b5e07006 62990907 e7e4d6d9  ..n..p.....b....
82000270: 82c86d6c f7935007 d1edd8e2 9ed0e35f  lm...P......_...
82000280: d95493cf ce5ddd5f abf16037 7b048a14  ..T._.].7`.....{
82000290: 7fbaa765 7c4545df ae5ba14b 3d94c64e  e....EE|K.[.N..=
820002a0: d2874e8c f3a43c94 f2fcda9f 0de77c36  .N...<......6|..
820002b0: 37425aad d0812af1 67a7a16e ed871e03  .ZB7.*..n..g....
820002c0: 4a73bb00 a2312868 04a39a82 ff87e8c1  ..sJh(1.........
820002d0: c1aa7e45 053bd49f 21fd83c7 7fbdfe71  E~....;....!q...
820002e0: 1916c938 03e60e52 1e1d8d33 cd1c36c9  8...R...3....6..
820002f0: 29829d4e 2a9bcd88 7b5f6cbe 793ab2b2  N..)...*.l_{..:y

  • Hi Nayana,

    I have assigned your query to our expert. Please provide actual steps and logs for expert to analyze. 

    Best Regards,

    Suren

  • Hello,

    Can you please share the flashing logs and the commands you used to modify the partconf and bootbus?

    Thanks!

  • Hello Prashant,

    I have set the command mmc partconf 0 1 1 1 and mmc bootbus 0 2 0 0.
    I have shared the log of setting and rebooting where it is booting from mmc2
    Please let me know the possible issue and solution 

    => mmc dev 0
    switch to partitions #0, OK
    mmc0(part 0) is current device
    => mmc partconf 0 1 1 1
    => mmc bootbus 0 2 0 0
    Set to BOOT_BUS_WIDTH = 0x2, RESET = 0x0, BOOT_MODE = 0x0
    => reset
    resetting ...
    
    U-Boot SPL 2024.04-ti-g29d0c23d67ee (Nov 29 2024 - 11:41:54 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.8--v10.01.08 (Fiery Fox)')
    EEPROM not available at 0x48, trying to read at 0x49
    Reading on-board EEPROM at 0x49 failed -121
    SPL initial stack usage: 13392 bytes
    Trying to boot from MMC2
    Authentication passed
    Authentication passed
    Loading Environment from MMC... *** Warning - No MMC card found, using default environment
    
    Authentication passed
    Authentication passed
    Starting ATF on ARM64 core...
    
    

  • What's the reason of using the "reset" command?

    This would just resets the SoC to boot from the same bootmode it was initially configured to boot from. You would need to change the bootmode pins to eMMC alternate bootmode.

  • Hello Prashant,

    I tried to configure and changed pins without resetting the board from uboot, still it is not booting .

    Below is log of the uboot .

    U-Boot SPL 2024.04-ti-g29d0c23d67ee (Nov 29 2024 - 11:41:54 +0000)
    SYSFW ABI: 4.0 (firmware rev 0x000a '10.1.8--v10.01.08 (Fiery Fox)')
    EEPROM not available at 0x56, trying to read at 0x57
    Reading on-board EEPROM at 0x57 failed -1
    Trying to boot from MMC2
    Authentication passed
    Authentication passed
    
    
    U-Boot 2024.04-ti-g29d0c23d67ee (Nov 29 2024 - 11:41:54 +0000)
    
    SoC:   AM64X SR2.0 HS-FS
    Model: Texas Instruments AM642 EVM
    EEPROM not available at 0x56, trying to read at 0x57
    Reading on-board EEPROM at 0x57 failed -1
    DRAM:  1 GiB
    Core:  70 devices, 29 uclasses, devicetree: separate
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    EEPROM not available at 0x56, trying to read at 0x57
    Reading on-board EEPROM at 0x57 failed -1
    Net:   eth0: ethernet@8000000port@1
    Hit any key to stop autoboot:  0
    =>
    =>
    =>
    =>
    => mmc dev 0
    switch to partitions #0, OK
    mmc0(part 0) is current device
    => mmc partconf 0 1 1 1
    => mmc bootbus 0 2 0 0
    Set to BOOT_BUS_WIDTH = 0x2, RESET = 0x0, BOOT_MODE = 0x0
    =>
    U-Boot SPL 2024.04-ti-g29d0c23d67ee (Nov 29 2024 - 11:41:54 +0000)
    Resetting on cold boot to workaround ErrataID:i2331
    Please resend tiboot3.bin in case of UART/DFU boot
    resetting ...
    
    U-Boot SPL 2024.04-ti-g29d0c23d67ee (Nov 29 2024 - 11:41:54 +0000)
    Resetting on cold boot to workaround ErrataID:i2331
    Please resend tiboot3.bin in case of UART/DFU boot
    resetting ...
    
    

    Please let me know the possible issue.

  • Hello Prashant, 

    Thanks for the information.
    The above procedure worked for one of the board, but in the other board it is not working even the ROM boot code is not printing

    U-Boot SPL 2024.04-ti-g29d0c23d67ee (Nov 29 2024 - 11:41:54 +0000)
    Resetting on cold boot to workaround ErrataID:i2331
    Please resend tiboot3.bin in case of UART/DFU boot
    resetting ...

    At least the above code is not printing in once I remove the SD card.
    Please let me know any other things need to be set.

  • Hello,

    The above procedure worked for one of the board, but in the other board

    Are these custom boards?

    Did you follow all the steps in the same way from the working setup to the non working setup?

    Thanks!