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.

AM3354: MLO/u-boot.img fails

Part Number: AM3354

Hi,

I am using AM3354 and have built via buildroot-2019.0.9 and uboot-2019.01+gitAUTOINC+8b90adfb16-g8b90adfb16 the corresponding MLO and u-boot.img.

Because of NO output from the minicom interface I did some "printf" output into the code:

U-Boot SPL 2019.01 (May 26 2020 - 14:28:31 +0200)))))



Line: 217 File: arch/arm/mach-omap2/boot-common.c func: spl_board_init
Line: 376 File: board/logicway/lw-dimm-cpu12/board.c func: am33xx_spl_board_init board_is_dimm_cpu12_b_or_later
Line: 97 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board
Line: 100 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board
Line: 112 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board ep->magic: 0xcafecafe
Line: 113 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board ep->name: DIMM_CPU12
Line: 114 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board ep->version: B
Line: 116 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board ep->serial: serial
Line: 118 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board ep->config: config
Line: 119 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board HDR_NO_OF_MAC_ADDR: 3
Line: 120 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board HDR_ETH_ALEN: 6
Line: 124 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board ep->mac_addr[0]: addr[0addr[1addr[2]
Line: 125 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board ep->mac_addr[1]: addr[1addr[2]
Line: 126 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board ep->mac_addr[2]: addr[2]
Line: 127 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board DIMM_CPU12_TYPE_MAGIC: 0xcafecafe
Line: 128 File: board/logicway/lw-dimm-cpu12/board.c func: detect_board OMAP_SRAM_SCRATCH_BOARD_EEPROM_START: 0x4030b428
Line: 130 File: board/logicway/lw-dimm-cpu12/board.c func: detect_board NON_SECURE_SRAM_IMG_END: 0x4030b800
Line: 131 File: board/logicway/lw-dimm-cpu12/board.c func: detect_board SRAM_SCRATCH_SPACE_ADDR: 0x4030b400
Line: 132 File: board/logicway/lw-dimm-cpu12/board.c func: detect_board DIMM_CPU12_TYPE_DATA: 0x
Line: 133 File: board/logicway/lw-dimm-cpu12/board.c func: detect_board DIMM_CPU12_TYPE_MAGIC: 0xcafecafe
Line: 159 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board
Line: 385 File: board/logicway/lw-dimm-cpu12/board.c func: am33xx_spl_board_init TEST: 111
Line: 60 File: board/logicway/lw-dimm-cpu12/board.h Func: board_is_dimm_cpu12_b_or_later
Line: 54 File: board/logicway/lw-dimm-cpu12/board.h Func: board_is_dimm_cpu12
Line: 389 File: board/logicway/lw-dimm-cpu12/board.c func: am33xx_spl_board_init board_is_dimm_cpu12_b_or_later
Line: 424 File: board/logicway/lw-dimm-cpu12/board.c func: am33xx_spl_board_init
Line: 219 File: arch/arm/mach-omap2/boot-common.c func: spl_board_init
Line: 618 File: common/spl/spl.c func: board_init_r
Trying to boot from MMC2
Line: 700 File: common/spl/spl.c func: board_init_r
Line: 702 File: common/spl/spl.c func: board_init_r
Line: 704 File: common/spl/spl.c func: board_init_r
Line: 705 File: common/spl/spl.c func: board_init_r spl_image.load_addr: 0x80800000
Line: 706 File: common/spl/spl.c func: board_init_r spl_image.entry_point: 0x80800000
Line: 707 File: common/spl/spl.c func: board_init_r spl_image.fdt_addr: 0x80870940
Line: 232 File: arch/arm/mach-omap2/boot-common.c func: jump_to_image_no_args OMAP_SRAM_SCRATCH_BOOT_PARAMS: 0x4030b424
Line: 233 File: arch/arm/mach-omap2/boot-common.c func: jump_to_image_no_args boot_params: 0x4030cdcc
Line: 236 File: arch/arm/mach-omap2/boot-common.c func: jump_to_image_no_args spl_image->entry_point: 0x80800000

Here it starts again:

U-Boot SPL 2019.01 (May 26 2020 - 14:28:31 +0200)))))



Line: 217 File: arch/arm/mach-omap2/boot-common.c func: spl_board_init
Line: 376 File: board/logicway/lw-dimm-cpu12/board.c func: am33xx_spl_board_init board_is_dimm_cpu12_b_or_later
Line: 97 File: board/logicway/lw-dimm-cpu12/board.c Func: detect_board
......

This output runs in a loop without reaching the point to load the kernel.

When I built via buildroot-2019.0.9 and uboot-2015.07+gitAUTOINC+5922e09363 the corresponding MLO and u-boot.img work as expexted, the kernel is loading and everything is fine.

I append the ".config" file to show my confuration via "make uboot-menuconfig".

Any idea, what is wrong in my configuration?

Regards, Ralph4035.config.cfg

  • Hi Ralph,

    Ralph Nemitz said:
    I am using AM3354 and have built via buildroot-2019.0.9 and uboot-2019.01+gitAUTOINC+8b90adfb16-g8b90adfb16

    Sounds like you have further customized the U-Boot tree? If I look at that commit hash I don't see any support for board/logicway/lw-dimm-cpu12

    Ralph Nemitz said:
    This output runs in a loop without reaching the point to load the kernel.

    Something seems wrong with the handover to U-Boot, or the startup of U-Boot, triggering a device reset.

    1. Can you use JTAG to step through that handover code and see exactly what's going on?
    2. Alternatively, can you try combinations of "old" and "new" MLO and U-Boot images to see if you can make any of the new images work this way? This could tell us if the issue is in MLO or U-Boot (note, I don't expect such combinations to completely work, but doing so may help to narrow down where the issue is).
    3. Add a #define DEBUG statement to the very top of common/board_f.c and see if this yields any additional prints from U-Boot itself.

    Regards, Andreas