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.

AM3358: U-boot issues

Part Number: AM3358

We have developed a custom board based on the BeagleBone Green reference and I'm having problems with the boot. 

I've posted my process and results below. NOTE: I have not put the root file system on ext4 (partition 2 of the SD card).

I had the following questions:

- For am3358 (BBG equivalents), what defconfig should I be using? [is there a document that I can refer to?]

- For am335x_evm_defconfig - what causes the 'No matching DT out of these options: Firmware image with one or more FDT blobs' issue?

- For am335x_boneblack_vboot_defconfig - why is the environment not read? ( *** Warning - bad CRC, using default environment)

Ted

==============================================================

// Process: Using these guidlines: https://elinux.org/Building_for_BeagleBone

// Get u-boot repo - using 'master' branch

$ git clone http://git.denx.de/u-boot.git u-boot/

 

// Clean, configure and build u-boot.img, MLO (Linaro GCC 7.5-2019-12)

$ make ARCH=arm CROSS_COMPILE=${CC} distclean

// Documentation uses am335x_evm_config - I've tried both am335x_evm_defconfig or am335x_boneblack_vboot_defconfig, output from both shown below

$ make ARCH=arm CROSS_COMPILE=${CC} [deconfig file]

$ make ARCH=arm CROSS_COMPILE=${CC}

 

// I had to make the following adjustment to hack eeprom/board check (board/ti/am335x/board.h)

static inline int board_is_bone_lt(void)

{

       //return board_ti_is("A335BNLT");

       return 1;

}

 

// Partition uSD

//     P1 (BOOT) = fat16 – 1GB, boot flag

//     P2 (ROOTFS) = ext4 – 13.84GB

cp MLO /media/xxx/BOOT/

cp u-boot.img /media/xxx/BOOT/

cp uEnv.txt /media/xxx/BOOT/

 

// uEnv.txt – basic structure only

bootdir=

bootfile=zImage

fdtfile=am335x-boneblack.dtb

loadaddr=0x80007fc0

fdtaddr=0x80F80000

loadfdt=fatload mmc 0:1 ${fdtaddr} ${fdtfile}

loaduimage=fatload mmc 0:1 ${loadaddr} ${bootfile}

uenvcmd=mmc rescan; run loaduimage; run loadfdt; run fdtboot

fdtboot=run mmc_args; run mmcargs; bootz ${loadaddr} - ${fdtaddr}

mmc_args=setenv bootargs console=${console} ${optargs} root=${mmcroot} rootfstype=${mmcrootfstype}

// I've also  used this process: https://elinux.org/Building_for_BeagleBone#Kernel to build zImage and am335x-boneblack.dtb and then loaded these files to the SD card (partition 1):

$ sudo cp arch/arm/boot/zImage /mnt
$ sudo cp arch/arm/boot/dts/am335x-boneblack.dtb /mnt

// --------------------------------------------------

// Results of booting

// Configuration=am335x_evm_defconfig

U-Boot SPL 2020.01-rc5-00012-gd792b63feb-dirty (Dec 24 2019 - 10:20:36 -0800)
Trying to boot from MMC1
No matching DT out of these options:
Firmware image with one or more FDT blobs
No matching DT out of these options:
Firmware image with one or more FDT blobs
No matching DT out of these options:
Firmware image with one or more FDT blobs
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

 

// Configuration=am335x_boneblack_vboot_defconfig

U-Boot SPL 2020.01-rc5-00012-gd792b63feb-dirty (Dec 24 2019 - 10:26:16 -0800)
WDT: Not found!
Trying to boot from MMC1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Loading Environment from MMC... mmc_read_data: timedout waiting for status!
*** Warning - MMC init failed, using default environment

  • Hi,
    You query has been assigned to a TI engineer. Please note that response may be delayed due to Christmas and New Year holidays.
  • Hi Ted,

    Ted Singh1 said:

    We have developed a custom board based on the BeagleBone Green reference and I'm having problems with the boot. 

    I've posted my process and results below. NOTE: I have not put the root file system on ext4 (partition 2 of the SD card).

    I had the following questions:

    - For am3358 (BBG equivalents), what defconfig should I be using? [is there a document that I can refer to?]

    The BeagleBone Green is fully supported by upstream U-Boot. The respective support was introduced with this commit:

    board/ti/am335x: add support for BeagleBone Green
    https://gitlab.denx.de/u-boot/u-boot/commit/dfd1bb4ec89e8b1e87f0605af2345ad6dcf777da

    I would recommend reviewing this commit in detail, it'll probably provide valuable pointers related the issues you are experiencing.

    As for the defconfig, use am335x_evm_defconfig. If you open it you see that it includes am335x-bonegreen (DTS file) via CONFIG_OF_LIST.

    Ted Singh1 said:
    - For am335x_evm_defconfig - what causes the 'No matching DT out of these options: Firmware image with one or more FDT blobs' issue?

    You need to review/debug board/ti/am335x/board.c, specifically board_fit_config_name_match(). I suppose the pre-conditions for detecting your board are not met as the code probes it. You could simply update this function to remove the check for board_is_bbg1().

    Ted Singh1 said:
    - For am335x_boneblack_vboot_defconfig - why is the environment not read? ( *** Warning - bad CRC, using default environment)

    Don't use this configuration (at least not right way), it is for special "verified boot" use cases.

    Regards, Andreas

  • I think I'm getting closer to the root cause of my failure to boot properly. It appears that reading from the MMC/SD card, two nibbles appear to be corrupted and as a result, u-boot isn't able to proceed reading the configuration it needs to have.

    I am now using am335x_evm_defconfig, as per your recommendation. When using my this defconfig and building the u-boot.img/MLO files, I am able to get to the u-boot prompt when I test on a BeagleBone Green, but fail due to corruptions on our custom board (which btw is very similar design to the BBG). These corruptions appear to happen at the same place/nibble within the u-boot.img read buffer at an offset of ~0x0104 and ~0x0374. 

    I am leaning towards thinking that this may be a read from SD issue, because I have written a routine to test memory at the destination location and it works without errors

    Any recommendations on what to investigate/research for a potential source of the problem?

  • Hi Ted,

    just thinking, you are reading u-boot.img to DDR, and looking at the data written to DDR. What if there is something wrong with DDR, setup related or otherwise?

    Can you instrument the SPL code for testing purposes to read/write/verify the memory locations in DDR the corrupted bytes are located in?

    Regards, Andreas

  • just thinking, you are reading u-boot.img to DDR, and looking at the data written to DDR. What if there is something wrong with DDR, setup related or otherwise?

    I thought the exact same thing, so I wrote a memory tester, so that immediately after I read in the u-boot.img file within the spl_load_simple_fit function, I loop to write then read a variation of words (e.g., 0xFFFFFFFF, 0x00000000, 0xF0F0F0F0, 0x0F0F0F0F, 0xDEADBEEF) repetitively - I ran this overnight without any issues. Most often (always?) the buffer is allocated starting at 0x807FF680. There were not issues, not even at the locations where the corruption happened just before I entered the memory test.

    Can you instrument the SPL code for testing purposes to read/write/verify the memory locations in DDR the corrupted bytes are located in?

    In the compare example image, I print the memory address, then the contents. Or did I misunderstand your question?

  • Hi Ted,

    Ted Singh1 said:

    Can you instrument the SPL code for testing purposes to read/write/verify the memory locations in DDR the corrupted bytes are located in?

    In the compare example image, I print the memory address, then the contents. Or did I misunderstand your question?

    I was thinking more like printing the data directly as it is being read from the media to make sure there is no corruption happening after that, such as doing so in the function mmc_read_blocks(). Might need to modify the function to read into a temporary buffer first (512 bytes, on the stack, for printing) to further decouple the reading process itself.

    Do you see this issues on multiple of your boards, and is the failure consistent? Assuming there is some signal-routing or integrity issue I'd expect it to manifest itself in different ways, especially across different boards, so that would be good to understand.

    Then, have you tried different SD cards, specifically older ones? (older ones tend to only support slower speeds, which in turn would impact the read access, potentially increasing the likelihood of the reads to succeed - I'm suggesting this not as a workaround but in an effort to help identify the root cause of your corruption).

    Lastly, you can also try to limit the speed of the SD card interface via DTS entries. Try adding a max-frequency = <24000000> (or lower) property to the respective MMC controller node in the device tree (while using a logic analyzer / oscilloscope to make sure this setting has an actual impact on MMC_CLK).

    Regards, Andreas

  • 8802.bbq - 200117-220624.txt
    U-Boot SPL 2020.01-rc5-00073-g4b75aa5aa7-dirty (Jan 17 2020 - 22:06:24 -0800)
    Trying to boot from MMC1
    mmc_read_data: size=8 to address=0x81fffd80
    mmc_read_data: size=64 to address=0x81fffe00
    mmc_read_data: size=64 to address=0x81fffe00
    mmc_read_data: size=512 to address=0x81fffac0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffac0
    blk_dread: @drive start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffac0
    mmc_read_data: size=512 to address=0x81fffbc0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffbc0
    blk_dread: @drive start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffbc0
    mmc_read_data: size=512 to address=0x81fffbc0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffbc0
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffbc0
    mmc_read_data: size=512 to address=0x81f101c0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81f101c0
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81f101c0
    mmc_read_data: size=16384 to address=0x81f001c0
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f001c0
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f001c0
    blk_dread: @drive start=0x00000b21 blkcnt=0 * blksize=512 = 0 bytes => 0x807fffc0
    mmc_read_data: size=512 to address=0x81fffb80
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffb80
    blk_dread: @drive start=0x00000b21 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffb80
    spl_load_image_fat: file_fat_read err/bytes=64
    spl_load_image_fat: Found FIT - magic matched
    spl_load_simple_fit
    spl_load_simple_fit: Read entire image from FAT ----------
    mmc_read_data: size=512 to address=0x81f21100
    mmc_read_blocks: read 1 blocks to dest.dst=0x81f21100
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81f21100
    mmc_read_data: size=16384 to address=0x81f11100
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f11100
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f11100
    mmc_read_data: size=2048 to address=0x807ff680
    0xedfe0dd0 0x47090000 0x38000000 0xbc080000 0x28000000 0x11000000 0x02000000 0x00000000 0x8b000000 0x84080000 0x00000000 0x00000000 0x00000000 0x00000000 0x01000000 0x00000000
    0x03000000 0x04000000 0x6b000000 0x63a0225e 0x03000000 0x2a000000 0x5f000000 0x6d726946 0x65726177 0x616d6920 0x77206567 0x20687469 0x20656e6f 0x6d20726f 0x2065726f 0x20544446
    0x626f6c62 0x00000073 0x03000000 0x33000000 0x57000000 0x6f422d55 0x6d20746f 0x616d696b 0x32206567 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537 0x37616135
    0x7269642d 0x00007974 0x03000000 0x04000000 0x48000000 0x01000000 0x01000000 0x67616d69 0x00007365 0x01000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x04000000 0x81000000
    0x10f30700 0x03000000 0x04000000 0x75000000 0x00000000 0x03000000 0x3c000000 0x5f000000 0x6f422d55 0x3220746f 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537
    0x37616135 0x7269642d 0x66207974 0x6120726f 0x3533336d 0x6f622078 0x00647261 0x03000000 0x09000000 0x43000000 0x6d726966 0x65726177 0x00000000 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x07000000 0x3b000000 0x6f622d75 0x0000746f 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x03000000 0x04000000 0x2a000000 0x00008080 0x03000000
    0x04000000 0x24000000 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000031 0x03000000 0x04000000 0x81000000 0x3d970000 0x03000000 0x04000000 0x75000000 0x10f30700 0x03000000
    0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000032 0x03000000 0x04000000 0x81000000 0xdd7f0000 0x03000000 0x04000000 0x75000000 0x508a0800 0x03000000
    0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000033 0x03000000 0x04000000 0x81000000 0x2d820000 0x03000000 0x04000000 0x75000000 0x300a0900 0x03000000
    0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261
    0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000034 0x03000000 0x04000000 0x81000000 0xe9930000 0x03000000 0x04000000 0x75000000
    0x608c0900 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000035 0x03000000 0x04000000 0x81000000 0xdd800000 0x03000000 0x04000000
    0x75000000 0x4c200a00 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000
    0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000036 0x03000000 0x04000000 0x81000000 0x9a850000
    0x03000000 0x04000000 0x75000000 0x2ca10a00 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f
    0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000037 0x03000000 0x04000000 0x81000000
    0x157d0000 0x03000000 0x04000000 0x75000000 0xc8260b00 0x03000000 0x14000000 0x5f000000 0x33336d61 0x702d7835 0x656b636f 0x61656274 0x00656c67 0x03000000 0x08000000 0x43000000
    0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x02000000 0x01000000 0x666e6f63 0x72756769
    0x6f697461 0x0000736e 0x03000000 0x07000000 0x17000000 0x666e6f63 0x0000312d 0x01000000 0x666e6f63 0x0000312d 0x03000000 0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76
    0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466
    0x00000031 0x02000000 0x01000000 0x666e6f63 0x0000322d 0x03000000 0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177
    0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000032 0x02000000 0x01000000 0x666e6f63 0x0000332d
    0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000
    0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000033 0x02000000 0x01000000 0x666e6f63 0x0000342d 0x03000000 0x0d000000 0x5f000000
    0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d
    0x03000000 0x06000000 0x00000000 0x2d746466 0x00000034 0x02000000 0x01000000 0x666e6f63 0x0000352d 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572
    0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000
    0x2d746466 0x00000035 0x02000000 0x01000000 0x666e6f63 0x0000362d 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x0b000000 0x0e000000
    
    mmc_read_blocks: read 4 blocks to dest.dst=0x807ff680
    0xedfe0dd0 0x47090000 0x38000000 0xbc080000 0x28000000 0x11000000 0x02000000 0x00000000 0x8b000000 0x84080000 0x00000000 0x00000000 0x00000000 0x00000000 0x01000000 0x00000000
    0x03000000 0x04000000 0x6b000000 0x63a0225e 0x03000000 0x2a000000 0x5f000000 0x6d726946 0x65726177 0x616d6920 0x77206567 0x20687469 0x20656e6f 0x6d20726f 0x2065726f 0x20544446
    0x626f6c62 0x00000073 0x03000000 0x33000000 0x57000000 0x6f422d55 0x6d20746f 0x616d696b 0x32206567 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537 0x37616135
    0x7269642d 0x00007974 0x03000000 0x04000000 0x48000000 0x01000000 0x01000000 0x67616d69 0x00007365 0x01000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x04000000 0x81000000
    0x10f30700 0x03000200 0x04000000 0x75000000 0x00000000 0x03000000 0x3c000000 0x5f000000 0x6f422d55 0x3220746f 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537
    0x37616135 0x7269642d 0x66207974 0x6120726f 0x3533336d 0x6f622078 0x00647261 0x03000000 0x09000000 0x43000000 0x6d726966 0x65726177 0x00000000 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x07000000 0x3b000000 0x6f622d75 0x0000746f 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x03000000 0x04000000 0x2a000000 0x00008080 0x03000000
    0x04000000 0x24000000 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000031 0x03000000 0x04000000 0x81000000 0x3d970000 0x03000000 0x04000000 0x75000000 0x10f30700 0x03000000
    0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000032 0x03000000 0x04000000 0x81000000 0xdd7f0000 0x03000000 0x04000000 0x75000000 0x508a0800 0x03000000
    0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000033 0x03000000 0x04000000 0x81000000 0x2d820000 0x03000000 0x04000000 0x75000000 0x300a0900 0x03000000
    0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261
    0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000034 0x03000000 0x04000000 0x81000000 0xe9930000 0x03000600 0x04000000 0x75000000
    0x608c0900 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000035 0x03000000 0x04000000 0x81000000 0xdd800000 0x03000000 0x04000000
    0x75000000 0x4c200a00 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000
    0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000036 0x03000000 0x04000000 0x81000000 0x9a850000
    0x03000000 0x04000000 0x75000000 0x2ca10a00 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f
    0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000037 0x03000000 0x04000000 0x81000000
    0x157d0000 0x03000000 0x04000000 0x75000000 0xc8260b00 0x03000000 0x14000000 0x5f000000 0x33336d61 0x702d7835 0x656b636f 0x61656274 0x00656c67 0x03000000 0x08000000 0x43000000
    0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x02000000 0x01000000 0x666e6f63 0x72756769
    0x6f697461 0x0000736e 0x03000000 0x07000000 0x17000000 0x666e6f63 0x0000312d 0x01000000 0x666e6f63 0x0000312d 0x03000000 0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76
    0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466
    0x00000031 0x02000000 0x01000000 0x666e6f63 0x0000322d 0x03000000 0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177
    0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000032 0x02000000 0x01000000 0x666e6f63 0x0000332d
    0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000
    0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000033 0x02000000 0x01000000 0x666e6f63 0x0000342d 0x03000000 0x0d000000 0x5f000000
    0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d
    0x03000000 0x06000000 0x00000000 0x2d746466 0x00000034 0x02000000 0x01000000 0x666e6f63 0x0000352d 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572
    0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000
    0x2d746466 0x00000035 0x02000000 0x01000000 0x666e6f63 0x0000362d 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x0b000000 0x0e000000
    
    blk_dread: @drive start=0x00000b21 blkcnt=4 * blksize=512 = 2048 bytes => 0x807ff680
    mmc_read_data: size=512 to address=0x81fffb00
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffb00
    blk_dread: @drive start=0x00000b25 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffb00
    fat_read_file: filename=u-boot.img read=0
    spl_fit_read: filename=u-boot.img buf=0x807ff680
    fit read sector 0, sectors=2376, buffer=807ff680, count=2376, size=0x948
    spl_load_simple_fit
    
    I was thinking more like printing the data directly as it is being read from the media to make sure there is no corruption happening after that, such as doing so in the function mmc_read_blocks(). Might need to modify the function to read into a temporary buffer first (512 bytes, on the stack, for printing) to further decouple the reading process itself.

    This problem occurs at spl_load_simple_fit (reading whole fit logic in spl_fit). I was finally able to inspect the low-level mmc read @ mmc_read_data (omap_hsmmc.c) and compare it with the same buffer @ returned to mmc_read_blocks (mmc.c). I would have thought they would be the same, but somewhere between the mmc_read_data and the return to mmc_read_blocks, a couple of nibbles, always in the same area, in the same memory location are changed. If I run the same test on a BeagleBone Green, these nibbles are not affected. (see attached logs + diff).

    I saw this as a memory issue, so I've run tests on memory, particularly in the area where this buffer is allocated and have not been able to make it fail, so unless something is writing into the fit area to affect these nibbles, I'm not sure what it could be :-(

    Do you see this issues on multiple of your boards, and is the failure consistent? Assuming there is some signal-routing or integrity issue I'd expect it to manifest itself in different ways, especially across different boards, so that would be good to understand.

    Yes, seems consistent with the boards, albeit sometimes, the board/uart doesn't make it far enough to review results.

    Then, have you tried different SD cards, specifically older ones? (older ones tend to only support slower speeds, which in turn would impact the read access, potentially increasing the likelihood of the reads to succeed - I'm suggesting this not as a workaround but in an effort to help identify the root cause of your corruption).

    Yes, I've tried other SD cards and older ones.

    Lastly, you can also try to limit the speed of the SD card interface via DTS entries. Try adding a max-frequency = <24000000> (or lower) property to the respective MMC controller node in the device tree (while using a logic analyzer / oscilloscope to make sure this setting has an actual impact on MMC_CLK).

    I am investigating this right now.

    bbg - 200117-220624.txt
    U-Boot SPL 2020.01-rc5-00073-g4b75aa5aa7-dirty (Jan 17 2020 - 22:06:24 -0800)
    Trying to boot from MMC1
    mmc_read_data: size=8 to address=0x81fffd80
    mmc_read_data: size=64 to address=0x81fffe00
    mmc_read_data: size=64 to address=0x81fffe00
    mmc_read_data: size=512 to address=0x81fffac0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffac0
    blk_dread: @drive start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffac0
    mmc_read_data: size=512 to address=0x81fffbc0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffbc0
    blk_dread: @drive start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffbc0
    mmc_read_data: size=512 to address=0x81fffbc0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffbc0
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffbc0
    mmc_read_data: size=512 to address=0x81f101c0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81f101c0
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81f101c0
    mmc_read_data: size=16384 to address=0x81f001c0
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f001c0
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f001c0
    blk_dread: @drive start=0x00000b21 blkcnt=0 * blksize=512 = 0 bytes => 0x807fffc0
    mmc_read_data: size=512 to address=0x81fffb80
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffb80
    blk_dread: @drive start=0x00000b21 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffb80
    spl_load_image_fat: file_fat_read err/bytes=64
    spl_load_image_fat: Found FIT - magic matched
    spl_load_simple_fit
    spl_load_simple_fit: Read entire image from FAT ----------
    mmc_read_data: size=512 to address=0x81f21100
    mmc_read_blocks: read 1 blocks to dest.dst=0x81f21100
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81f21100
    mmc_read_data: size=16384 to address=0x81f11100
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f11100
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f11100
    mmc_read_data: size=2048 to address=0x807ff680
    0xedfe0dd0 0x47090000 0x38000000 0xbc080000 0x28000000 0x11000000 0x02000000 0x00000000 0x8b000000 0x84080000 0x00000000 0x00000000 0x00000000 0x00000000 0x01000000 0x00000000
    0x03000000 0x04000000 0x6b000000 0x63a0225e 0x03000000 0x2a000000 0x5f000000 0x6d726946 0x65726177 0x616d6920 0x77206567 0x20687469 0x20656e6f 0x6d20726f 0x2065726f 0x20544446
    0x626f6c62 0x00000073 0x03000000 0x33000000 0x57000000 0x6f422d55 0x6d20746f 0x616d696b 0x32206567 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537 0x37616135
    0x7269642d 0x00007974 0x03000000 0x04000000 0x48000000 0x01000000 0x01000000 0x67616d69 0x00007365 0x01000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x04000000 0x81000000
    0x10f30700 0x03000000 0x04000000 0x75000000 0x00000000 0x03000000 0x3c000000 0x5f000000 0x6f422d55 0x3220746f 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537
    0x37616135 0x7269642d 0x66207974 0x6120726f 0x3533336d 0x6f622078 0x00647261 0x03000000 0x09000000 0x43000000 0x6d726966 0x65726177 0x00000000 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x07000000 0x3b000000 0x6f622d75 0x0000746f 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x03000000 0x04000000 0x2a000000 0x00008080 0x03000000
    0x04000000 0x24000000 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000031 0x03000000 0x04000000 0x81000000 0x3d970000 0x03000000 0x04000000 0x75000000 0x10f30700 0x03000000
    0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000032 0x03000000 0x04000000 0x81000000 0xdd7f0000 0x03000000 0x04000000 0x75000000 0x508a0800 0x03000000
    0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000033 0x03000000 0x04000000 0x81000000 0x2d820000 0x03000000 0x04000000 0x75000000 0x300a0900 0x03000000
    0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261
    0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000034 0x03000000 0x04000000 0x81000000 0xe9930000 0x03000000 0x04000000 0x75000000
    0x608c0900 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000035 0x03000000 0x04000000 0x81000000 0xdd800000 0x03000000 0x04000000
    0x75000000 0x4c200a00 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000
    0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000036 0x03000000 0x04000000 0x81000000 0x9a850000
    0x03000000 0x04000000 0x75000000 0x2ca10a00 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f
    0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000037 0x03000000 0x04000000 0x81000000
    0x157d0000 0x03000000 0x04000000 0x75000000 0xc8260b00 0x03000000 0x14000000 0x5f000000 0x33336d61 0x702d7835 0x656b636f 0x61656274 0x00656c67 0x03000000 0x08000000 0x43000000
    0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x02000000 0x01000000 0x666e6f63 0x72756769
    0x6f697461 0x0000736e 0x03000000 0x07000000 0x17000000 0x666e6f63 0x0000312d 0x01000000 0x666e6f63 0x0000312d 0x03000000 0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76
    0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466
    0x00000031 0x02000000 0x01000000 0x666e6f63 0x0000322d 0x03000000 0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177
    0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000032 0x02000000 0x01000000 0x666e6f63 0x0000332d
    0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000
    0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000033 0x02000000 0x01000000 0x666e6f63 0x0000342d 0x03000000 0x0d000000 0x5f000000
    0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d
    0x03000000 0x06000000 0x00000000 0x2d746466 0x00000034 0x02000000 0x01000000 0x666e6f63 0x0000352d 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572
    0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000
    0x2d746466 0x00000035 0x02000000 0x01000000 0x666e6f63 0x0000362d 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x0b000000 0x0e000000
    
    mmc_read_blocks: read 4 blocks to dest.dst=0x807ff680
    0xedfe0dd0 0x47090000 0x38000000 0xbc080000 0x28000000 0x11000000 0x02000000 0x00000000 0x8b000000 0x84080000 0x00000000 0x00000000 0x00000000 0x00000000 0x01000000 0x00000000
    0x03000000 0x04000000 0x6b000000 0x63a0225e 0x03000000 0x2a000000 0x5f000000 0x6d726946 0x65726177 0x616d6920 0x77206567 0x20687469 0x20656e6f 0x6d20726f 0x2065726f 0x20544446
    0x626f6c62 0x00000073 0x03000000 0x33000000 0x57000000 0x6f422d55 0x6d20746f 0x616d696b 0x32206567 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537 0x37616135
    0x7269642d 0x00007974 0x03000000 0x04000000 0x48000000 0x01000000 0x01000000 0x67616d69 0x00007365 0x01000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x04000000 0x81000000
    0x10f30700 0x03000000 0x04000000 0x75000000 0x00000000 0x03000000 0x3c000000 0x5f000000 0x6f422d55 0x3220746f 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537
    0x37616135 0x7269642d 0x66207974 0x6120726f 0x3533336d 0x6f622078 0x00647261 0x03000000 0x09000000 0x43000000 0x6d726966 0x65726177 0x00000000 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x07000000 0x3b000000 0x6f622d75 0x0000746f 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x03000000 0x04000000 0x2a000000 0x00008080 0x03000000
    0x04000000 0x24000000 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000031 0x03000000 0x04000000 0x81000000 0x3d970000 0x03000000 0x04000000 0x75000000 0x10f30700 0x03000000
    0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000032 0x03000000 0x04000000 0x81000000 0xdd7f0000 0x03000000 0x04000000 0x75000000 0x508a0800 0x03000000
    0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000033 0x03000000 0x04000000 0x81000000 0x2d820000 0x03000000 0x04000000 0x75000000 0x300a0900 0x03000000
    0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261
    0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000034 0x03000000 0x04000000 0x81000000 0xe9930000 0x03000000 0x04000000 0x75000000
    0x608c0900 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000035 0x03000000 0x04000000 0x81000000 0xdd800000 0x03000000 0x04000000
    0x75000000 0x4c200a00 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000
    0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000036 0x03000000 0x04000000 0x81000000 0x9a850000
    0x03000000 0x04000000 0x75000000 0x2ca10a00 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f
    0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000037 0x03000000 0x04000000 0x81000000
    0x157d0000 0x03000000 0x04000000 0x75000000 0xc8260b00 0x03000000 0x14000000 0x5f000000 0x33336d61 0x702d7835 0x656b636f 0x61656274 0x00656c67 0x03000000 0x08000000 0x43000000
    0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x02000000 0x01000000 0x666e6f63 0x72756769
    0x6f697461 0x0000736e 0x03000000 0x07000000 0x17000000 0x666e6f63 0x0000312d 0x01000000 0x666e6f63 0x0000312d 0x03000000 0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76
    0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466
    0x00000031 0x02000000 0x01000000 0x666e6f63 0x0000322d 0x03000000 0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177
    0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000032 0x02000000 0x01000000 0x666e6f63 0x0000332d
    0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000
    0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000033 0x02000000 0x01000000 0x666e6f63 0x0000342d 0x03000000 0x0d000000 0x5f000000
    0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d
    0x03000000 0x06000000 0x00000000 0x2d746466 0x00000034 0x02000000 0x01000000 0x666e6f63 0x0000352d 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572
    0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000
    0x2d746466 0x00000035 0x02000000 0x01000000 0x666e6f63 0x0000362d 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x0b000000 0x0e000000
    
    blk_dread: @drive start=0x00000b21 blkcnt=4 * blksize=512 = 2048 bytes => 0x807ff680
    mmc_read_data: size=512 to address=0x81fffb00
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffb00
    blk_dread: @drive start=0x00000b25 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffb00
    fat_read_file: filename=u-boot.img read=0
    spl_fit_read: filename=u-boot.img buf=0x807ff680
    fit read sector 0, sectors=2376, buffer=807ff680, count=2376, size=0x948
    spl_load_simple_fit: Find uboot config nodes ----------
    spl_fit_get_image_node
    spl_fit_get_image_name type=firmware
    fit_find_config_node: fdt=0x807ff680
    fit_find_config_node: Found /configurations node: 1340
    fit_find_config_node: dflt_conf_name=conf-1
    board_fit_config_name_match
    board_is_bone_lt
    board_is_bone_lt
    board_fit_config_name_match
    board_is_bone_lt
    board_is_bone_lt
    board_fit_config_name_match
    board_is_bone_lt
    Selecting config 'am335x-boneblack'
    firmware: 'firmware-1'
    spl_load_fit_image: external data
    mmc_read_data: size=512 to address=0x81f32040
    mmc_read_blocks: read 1 blocks to dest.dst=0x81f32040
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81f32040
    mmc_read_data: size=16384 to address=0x81f22040
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f22040
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f22040
    get_contents: tmp_buffer=0x81f32e40
    mmc_read_data: size=16384 to address=0x81f32e40
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f32e40
    blk_dread: @drive start=0x00000b21 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f32e40
    get_contents: tmp_buffer==buffer size=14016
    mmc_read_data: size=3072 to address=0x81f32240
    mmc_read_blocks: read 6 blocks to dest.dst=0x81f32240
    blk_dread: @drive start=0x00000801 blkcnt=6 * blksize=512 = 3072 bytes => 0x81f32240
    mmc_read_data: size=506880 to address=0x808036c0
    mmc_read_blocks: read 990 blocks to dest.dst=0x808036c0
    blk_dread: @drive start=0x00000b41 blkcnt=990 * blksize=512 = 506880 bytes => 0x808036c0
    mmc_read_data: size=512 to address=0x81fffac0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffac0
    blk_dread: @drive start=0x00000f1f blkcnt=1 * blksize=512 = 512 bytes => 0x81fffac0
    fat_read_file: filename=u-boot.img read=0
    spl_fit_read: filename=u-boot.img buf=0x80800000
    spl_load_fit_image: External data: dst=80800000, offset=948, size=7f310
    spl_fit_append_fdt
    spl_fit_get_image_node
    spl_fit_get_image_name type=fdt
    fit_find_config_node: fdt=0x807ff680
    fit_find_config_node: Found /configurations node: 1340
    fit_find_config_node: dflt_conf_name=conf-1
    board_fit_config_name_match
    board_is_bone_lt
    board_is_bone_lt
    board_fit_config_name_match
    board_is_bone_lt
    board_is_bone_lt
    board_fit_config_name_match
    board_is_bone_lt
    Selecting config 'am335x-boneblack'
    fdt: 'fdt-3'
    fit_get_debug: Can't get 'load' property from FIT 0x807ff680, node: offset 664, name fdt-3 (FDT_ERR_NOTFOUND)
    spl_load_fit_image: external data
    mmc_read_data: size=512 to address=0x81f46f80
    mmc_read_blocks: read 1 blocks to dest.dst=0x81f46f80
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81f46f80
    mmc_read_data: size=16384 to address=0x81f36f80
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f36f80
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f36f80
    mmc_read_data: size=3072 to address=0x81f47180
    mmc_read_blocks: read 6 blocks to dest.dst=0x81f47180
    blk_dread: @drive start=0x00000801 blkcnt=6 * blksize=512 = 3072 bytes => 0x81f47180
    get_contents: tmp_buffer=0x81f47d80
    mmc_read_data: size=16384 to address=0x81f47d80
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f47d80
    blk_dread: @drive start=0x00000fa1 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f47d80
    get_contents: tmp_buffer==buffer size=11456
    mmc_read_data: size=21504 to address=0x80882000
    mmc_read_blocks: read 42 blocks to dest.dst=0x80882000
    blk_dread: @drive start=0x00000fc1 blkcnt=42 * blksize=512 = 21504 bytes => 0x80882000
    mmc_read_data: size=512 to address=0x81fffa80
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffa80
    blk_dread: @drive start=0x00000feb blkcnt=1 * blksize=512 = 512 bytes => 0x81fffa80
    fat_read_file: filename=u-boot.img read=0
    spl_fit_read: filename=u-boot.img buf=0x8087f340
    spl_load_fit_image: External data: dst=8087f340, offset=91378, size=822d
    spl_fit_get_image_node
    spl_fit_get_image_name type=loadables
    fit_find_config_node: fdt=0x807ff680
    fit_find_config_node: Found /configurations node: 1340
    fit_find_config_node: dflt_conf_name=conf-1
    board_fit_config_name_match
    board_is_bone_lt
    board_is_bone_lt
    board_fit_config_name_match
    board_is_bone_lt
    board_is_bone_lt
    board_fit_config_name_match
    board_is_bone_lt
    Selecting config 'am335x-boneblack'
    loadables: 'firmware-1'
    spl_load_fit_image: external data
    mmc_read_data: size=512 to address=0x81f5bec0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81f5bec0
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81f5bec0
    mmc_read_data: size=16384 to address=0x81f4bec0
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f4bec0
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f4bec0
    get_contents: tmp_buffer=0x81f5ccc0
    mmc_read_data: size=16384 to address=0x81f5ccc0
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f5ccc0
    blk_dread: @drive start=0x00000b21 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f5ccc0
    get_contents: tmp_buffer==buffer size=14016
    mmc_read_data: size=3072 to address=0x81f5c0c0
    mmc_read_blocks: read 6 blocks to dest.dst=0x81f5c0c0
    blk_dread: @drive start=0x00000801 blkcnt=6 * blksize=512 = 3072 bytes => 0x81f5c0c0
    mmc_read_data: size=506880 to address=0x808036c0
    mmc_read_blocks: read 990 blocks to dest.dst=0x808036c0
    blk_dread: @drive start=0x00000b41 blkcnt=990 * blksize=512 = 506880 bytes => 0x808036c0
    mmc_read_data: size=512 to address=0x81fffac0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffac0
    blk_dread: @drive start=0x00000f1f blkcnt=1 * blksize=512 = 512 bytes => 0x81fffac0
    fat_read_file: filename=u-boot.img read=0
    spl_fit_read: filename=u-boot.img buf=0x80800000
    spl_load_fit_image: External data: dst=80800000, offset=948, size=7f310
    spl_fit_append_fdt
    spl_fit_get_image_node
    spl_fit_get_image_name type=fdt
    fit_find_config_node: fdt=0x807ff680
    fit_find_config_node: Found /configurations node: 1340
    fit_find_config_node: dflt_conf_name=conf-1
    board_fit_config_name_match
    board_is_bone_lt
    board_is_bone_lt
    board_fit_config_name_match
    board_is_bone_lt
    board_is_bone_lt
    board_fit_config_name_match
    board_is_bone_lt
    Selecting config 'am335x-boneblack'
    fdt: 'fdt-3'
    fit_get_debug: Can't get 'load' property from FIT 0x807ff680, node: offset 664, name fdt-3 (FDT_ERR_NOTFOUND)
    spl_load_fit_image: external data
    mmc_read_data: size=512 to address=0x81f70e00
    mmc_read_blocks: read 1 blocks to dest.dst=0x81f70e00
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81f70e00
    mmc_read_data: size=16384 to address=0x81f60e00
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f60e00
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f60e00
    mmc_read_data: size=3072 to address=0x81f71000
    mmc_read_blocks: read 6 blocks to dest.dst=0x81f71000
    blk_dread: @drive start=0x00000801 blkcnt=6 * blksize=512 = 3072 bytes => 0x81f71000
    get_contents: tmp_buffer=0x81f71c00
    mmc_read_data: size=16384 to address=0x81f71c00
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f71c00
    blk_dread: @drive start=0x00000fa1 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f71c00
    get_contents: tmp_buffer==buffer size=11456
    mmc_read_data: size=21504 to address=0x80882000
    mmc_read_blocks: read 42 blocks to dest.dst=0x80882000
    blk_dread: @drive start=0x00000fc1 blkcnt=42 * blksize=512 = 21504 bytes => 0x80882000
    mmc_read_data: size=512 to address=0x81fffa80
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffa80
    blk_dread: @drive start=0x00000feb blkcnt=1 * blksize=512 = 512 bytes => 0x81fffa80
    fat_read_file: filename=u-boot.img read=0
    spl_fit_read: filename=u-boot.img buf=0x8087f340
    spl_load_fit_image: External data: dst=8087f340, offset=91378, size=822d
    spl_fit_get_image_node
    spl_fit_get_image_name type=loadables
    fit_find_config_node: fdt=0x807ff680
    fit_find_config_node: Found /configurations node: 1340
    fit_find_config_node: dflt_conf_name=conf-1
    board_fit_config_name_match
    board_is_bone_lt
    board_is_bone_lt
    board_fit_config_name_match
    board_is_bone_lt
    board_is_bone_lt
    board_fit_config_name_match
    board_is_bone_lt
    Selecting config 'am335x-boneblack'
    
    
    U-Boot 2020.01-rc5-00073-g4b75aa5aa7-dirty (Jan 17 2020 - 22:06:24 -0800)
    
    print_cpuinfo
    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM:  dram_init: CONFIG_SYS_SDRAM_BASE=0x80000000
    512 MiB
    board_init_r ------------
    tss.board_init ----------
    WDT:   Started with servicing (60s timeout)
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Loading Environment from FAT... mmc_read_data: size=8 to address=0x9df18940
    mmc_read_data: size=64 to address=0x9df189c0
    mmc_read_data: size=64 to address=0x9df189c0
    mmc_read_data: size=64 to address=0x9df189c0
    mmc_read_data: size=512 to address=0x9df18800
    mmc_read_blocks: read 1 blocks to dest.dst=0x9df18800
    blk_dread: @drive start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x9df18800
    blk_dread: @cache start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x9df18800
    mmc_read_data: size=512 to address=0x9df18840
    mmc_read_blocks: read 1 blocks to dest.dst=0x9df18840
    blk_dread: @drive start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x9df18840
    blk_dread: @cache start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x9df18840
    blk_dread: @cache start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x9df18840
    mmc_read_data: size=512 to address=0x9df18900
    mmc_read_blocks: read 1 blocks to dest.dst=0x9df18900
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x9df18900
    blk_dread: @cache start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x9df53a40
    mmc_read_data: size=16384 to address=0x9df43a00
    mmc_read_blocks: read 32 blocks to dest.dst=0x9df43a00
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x9df43a00
    fat_itr_resolve: exit -ENOENT
    *** Warning - bad CRC, using default environment
    
    board_late_init
    board_is_bone_lt
    board_is_bone_lt
    board_is_bone_lt
    <ethaddr> not set. Validating first E-fuse MAC
    Net:   eth0: ethernet@4a100000
    Warning: usb_ether MAC addresses don't match:
    Address in ROM is          de:ad:be:ef:00:01
    Address in environment is  34:03:de:93:c9:92
    , eth1: usb_ether
    Hit any key to stop autoboot:  0
    =>
    
    bbq - 200117-220624.txt
    U-Boot SPL 2020.01-rc5-00073-g4b75aa5aa7-dirty (Jan 17 2020 - 22:06:24 -0800)
    Trying to boot from MMC1
    mmc_read_data: size=8 to address=0x81fffd80
    mmc_read_data: size=64 to address=0x81fffe00
    mmc_read_data: size=64 to address=0x81fffe00
    mmc_read_data: size=512 to address=0x81fffac0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffac0
    blk_dread: @drive start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffac0
    mmc_read_data: size=512 to address=0x81fffbc0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffbc0
    blk_dread: @drive start=0x00000000 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffbc0
    mmc_read_data: size=512 to address=0x81fffbc0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffbc0
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffbc0
    mmc_read_data: size=512 to address=0x81f101c0
    mmc_read_blocks: read 1 blocks to dest.dst=0x81f101c0
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81f101c0
    mmc_read_data: size=16384 to address=0x81f001c0
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f001c0
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f001c0
    blk_dread: @drive start=0x00000b21 blkcnt=0 * blksize=512 = 0 bytes => 0x807fffc0
    mmc_read_data: size=512 to address=0x81fffb80
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffb80
    blk_dread: @drive start=0x00000b21 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffb80
    spl_load_image_fat: file_fat_read err/bytes=64
    spl_load_image_fat: Found FIT - magic matched
    spl_load_simple_fit
    spl_load_simple_fit: Read entire image from FAT ----------
    mmc_read_data: size=512 to address=0x81f21100
    mmc_read_blocks: read 1 blocks to dest.dst=0x81f21100
    blk_dread: @drive start=0x00000800 blkcnt=1 * blksize=512 = 512 bytes => 0x81f21100
    mmc_read_data: size=16384 to address=0x81f11100
    mmc_read_blocks: read 32 blocks to dest.dst=0x81f11100
    blk_dread: @drive start=0x00000a01 blkcnt=32 * blksize=512 = 16384 bytes => 0x81f11100
    mmc_read_data: size=2048 to address=0x807ff680
    0xedfe0dd0 0x47090000 0x38000000 0xbc080000 0x28000000 0x11000000 0x02000000 0x00000000 0x8b000000 0x84080000 0x00000000 0x00000000 0x00000000 0x00000000 0x01000000 0x00000000
    0x03000000 0x04000000 0x6b000000 0x63a0225e 0x03000000 0x2a000000 0x5f000000 0x6d726946 0x65726177 0x616d6920 0x77206567 0x20687469 0x20656e6f 0x6d20726f 0x2065726f 0x20544446
    0x626f6c62 0x00000073 0x03000000 0x33000000 0x57000000 0x6f422d55 0x6d20746f 0x616d696b 0x32206567 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537 0x37616135
    0x7269642d 0x00007974 0x03000000 0x04000000 0x48000000 0x01000000 0x01000000 0x67616d69 0x00007365 0x01000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x04000000 0x81000000
    0x10f30700 0x03000000 0x04000000 0x75000000 0x00000000 0x03000000 0x3c000000 0x5f000000 0x6f422d55 0x3220746f 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537
    0x37616135 0x7269642d 0x66207974 0x6120726f 0x3533336d 0x6f622078 0x00647261 0x03000000 0x09000000 0x43000000 0x6d726966 0x65726177 0x00000000 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x07000000 0x3b000000 0x6f622d75 0x0000746f 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x03000000 0x04000000 0x2a000000 0x00008080 0x03000000
    0x04000000 0x24000000 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000031 0x03000000 0x04000000 0x81000000 0x3d970000 0x03000000 0x04000000 0x75000000 0x10f30700 0x03000000
    0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000032 0x03000000 0x04000000 0x81000000 0xdd7f0000 0x03000000 0x04000000 0x75000000 0x508a0800 0x03000000
    0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000033 0x03000000 0x04000000 0x81000000 0x2d820000 0x03000000 0x04000000 0x75000000 0x300a0900 0x03000000
    0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261
    0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000034 0x03000000 0x04000000 0x81000000 0xe9930000 0x03000000 0x04000000 0x75000000
    0x608c0900 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000035 0x03000000 0x04000000 0x81000000 0xdd800000 0x03000000 0x04000000
    0x75000000 0x4c200a00 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000
    0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000036 0x03000000 0x04000000 0x81000000 0x9a850000
    0x03000000 0x04000000 0x75000000 0x2ca10a00 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f
    0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000037 0x03000000 0x04000000 0x81000000
    0x157d0000 0x03000000 0x04000000 0x75000000 0xc8260b00 0x03000000 0x14000000 0x5f000000 0x33336d61 0x702d7835 0x656b636f 0x61656274 0x00656c67 0x03000000 0x08000000 0x43000000
    0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x02000000 0x01000000 0x666e6f63 0x72756769
    0x6f697461 0x0000736e 0x03000000 0x07000000 0x17000000 0x666e6f63 0x0000312d 0x01000000 0x666e6f63 0x0000312d 0x03000000 0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76
    0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466
    0x00000031 0x02000000 0x01000000 0x666e6f63 0x0000322d 0x03000000 0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177
    0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000032 0x02000000 0x01000000 0x666e6f63 0x0000332d
    0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000
    0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000033 0x02000000 0x01000000 0x666e6f63 0x0000342d 0x03000000 0x0d000000 0x5f000000
    0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d
    0x03000000 0x06000000 0x00000000 0x2d746466 0x00000034 0x02000000 0x01000000 0x666e6f63 0x0000352d 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572
    0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000
    0x2d746466 0x00000035 0x02000000 0x01000000 0x666e6f63 0x0000362d 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x0b000000 0x0e000000
    
    mmc_read_blocks: read 4 blocks to dest.dst=0x807ff680
    0xedfe0dd0 0x47090000 0x38000000 0xbc080000 0x28000000 0x11000000 0x02000000 0x00000000 0x8b000000 0x84080000 0x00000000 0x00000000 0x00000000 0x00000000 0x01000000 0x00000000
    0x03000000 0x04000000 0x6b000000 0x63a0225e 0x03000000 0x2a000000 0x5f000000 0x6d726946 0x65726177 0x616d6920 0x77206567 0x20687469 0x20656e6f 0x6d20726f 0x2065726f 0x20544446
    0x626f6c62 0x00000073 0x03000000 0x33000000 0x57000000 0x6f422d55 0x6d20746f 0x616d696b 0x32206567 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537 0x37616135
    0x7269642d 0x00007974 0x03000000 0x04000000 0x48000000 0x01000000 0x01000000 0x67616d69 0x00007365 0x01000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x04000000 0x81000000
    0x10f30700 0x03000200 0x04000000 0x75000000 0x00000000 0x03000000 0x3c000000 0x5f000000 0x6f422d55 0x3220746f 0x2e303230 0x722d3130 0x302d3563 0x33373030 0x6234672d 0x61613537
    0x37616135 0x7269642d 0x66207974 0x6120726f 0x3533336d 0x6f622078 0x00647261 0x03000000 0x09000000 0x43000000 0x6d726966 0x65726177 0x00000000 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x07000000 0x3b000000 0x6f622d75 0x0000746f 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x03000000 0x04000000 0x2a000000 0x00008080 0x03000000
    0x04000000 0x24000000 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000031 0x03000000 0x04000000 0x81000000 0x3d970000 0x03000000 0x04000000 0x75000000 0x10f30700 0x03000000
    0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000032 0x03000000 0x04000000 0x81000000 0xdd7f0000 0x03000000 0x04000000 0x75000000 0x508a0800 0x03000000
    0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000
    0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000033 0x03000000 0x04000000 0x81000000 0x2d820000 0x03000000 0x04000000 0x75000000 0x300a0900 0x03000000
    0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261
    0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000034 0x03000000 0x04000000 0x81000000 0xe9930000 0x03000600 0x04000000 0x75000000
    0x608c0900 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000
    0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000035 0x03000000 0x04000000 0x81000000 0xdd800000 0x03000000 0x04000000
    0x75000000 0x4c200a00 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f 0x03000000
    0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000036 0x03000000 0x04000000 0x81000000 0x9a850000
    0x03000000 0x04000000 0x75000000 0x2ca10a00 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x08000000 0x43000000 0x74616c66 0x0074645f
    0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x01000000 0x2d746466 0x00000037 0x03000000 0x04000000 0x81000000
    0x157d0000 0x03000000 0x04000000 0x75000000 0xc8260b00 0x03000000 0x14000000 0x5f000000 0x33336d61 0x702d7835 0x656b636f 0x61656274 0x00656c67 0x03000000 0x08000000 0x43000000
    0x74616c66 0x0074645f 0x03000000 0x04000000 0x3e000000 0x006d7261 0x03000000 0x05000000 0x2f000000 0x656e6f6e 0x00000000 0x02000000 0x02000000 0x01000000 0x666e6f63 0x72756769
    0x6f697461 0x0000736e 0x03000000 0x07000000 0x17000000 0x666e6f63 0x0000312d 0x01000000 0x666e6f63 0x0000312d 0x03000000 0x0b000000 0x5f000000 0x33336d61 0x652d7835 0x00006d76
    0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466
    0x00000031 0x02000000 0x01000000 0x666e6f63 0x0000322d 0x03000000 0x0c000000 0x5f000000 0x33336d61 0x622d7835 0x00656e6f 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177
    0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000032 0x02000000 0x01000000 0x666e6f63 0x0000332d
    0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x62656e6f 0x6b63616c 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000
    0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000 0x2d746466 0x00000033 0x02000000 0x01000000 0x666e6f63 0x0000342d 0x03000000 0x0d000000 0x5f000000
    0x33336d61 0x652d7835 0x6b736d76 0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d
    0x03000000 0x06000000 0x00000000 0x2d746466 0x00000034 0x02000000 0x01000000 0x666e6f63 0x0000352d 0x03000000 0x11000000 0x5f000000 0x33336d61 0x622d7835 0x67656e6f 0x6e656572
    0x00000000 0x03000000 0x0b000000 0x0e000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x0b000000 0x04000000 0x6d726966 0x65726177 0x0000312d 0x03000000 0x06000000 0x00000000
    0x2d746466 0x00000035 0x02000000 0x01000000 0x666e6f63 0x0000362d 0x03000000 0x0d000000 0x5f000000 0x33336d61 0x692d7835 0x32766563 0x00000000 0x03000000 0x0b000000 0x0e000000
    
    blk_dread: @drive start=0x00000b21 blkcnt=4 * blksize=512 = 2048 bytes => 0x807ff680
    mmc_read_data: size=512 to address=0x81fffb00
    mmc_read_blocks: read 1 blocks to dest.dst=0x81fffb00
    blk_dread: @drive start=0x00000b25 blkcnt=1 * blksize=512 = 512 bytes => 0x81fffb00
    fat_read_file: filename=u-boot.img read=0
    spl_fit_read: filename=u-boot.img buf=0x807ff680
    fit read sector 0, sectors=2376, buffer=807ff680, count=2376, size=0x948
    spl_load_simple_fit
    

  • Hi Ted,

    Ted Singh1 said:

    This problem occurs at spl_load_simple_fit (reading whole fit logic in spl_fit). I was finally able to inspect the low-level mmc read @ mmc_read_data (omap_hsmmc.c) and compare it with the same buffer @ returned to mmc_read_blocks (mmc.c). I would have thought they would be the same, but somewhere between the mmc_read_data and the return to mmc_read_blocks, a couple of nibbles, always in the same area, in the same memory location are changed. If I run the same test on a BeagleBone Green, these nibbles are not affected. (see attached logs + diff).

    I saw this as a memory issue, so I've run tests on memory, particularly in the area where this buffer is allocated and have not been able to make it fail, so unless something is writing into the fit area to affect these nibbles, I'm not sure what it could be :-(

    Thanks for digging a bit deeper into this aspect. It does indeed seem to be a memory issue, even though you are not able to further isolate it using your own testing scheme. It might be worth further investigating where exactly in the code flow those nibbles change to make sure there isn't something odd going on with software.

    Are you using the (100%)exact(!) same DDR device that's used on the BB Green?

    Also can you check out the AM335x EMIF Tools App Note and its associated spreadsheet to see if there could be something not right with the DDR setup?

    Regards, Andreas