使用串口烧写系统时,可以把TF-A烧写到ddr中,并正常运行,但是烧写完u-boot后uboot无法正常启动。串口输出信息如下:
NOTICE: CPU: STM32MP151CAC Rev.Z
NOTICE: Model: 100ASK ASK-STM32MP157-512D PRO V1 Board
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: Using UART
INFO: Instance 2
INFO: Boot used partition fsbl1
INFO: uart_dev_open,138:111111111111111111111111111
NOTICE: BL212: v2.2-r1.0(debug):806b12b-dirty
NOTICE: BL2: Built : 05:27:21, May 30 2023
INFO: Using crypto library ‘stm32_crypto_lib’
INFO: bl2_load_images,55:BL2: Doing platform setup
INFO: drivers/st/ddr/stm32mp1_ram.c,384:ddrctrl base = 0x5a003000
INFO: drivers/st/ddr/stm32mp1_ram.c,386:ddrphyc base = 0x5a004000
INFO: RAM NAME: DDR3-DDR3L 16bits 533000Khz
INFO: RAM SPEED: 0x82208
INFO: RAM size: 0x20000000
INFO: stm32mp1_ddr_init,838: ddr_reten = 0
INFO: stm32mp1_ddr_clk_enable,37:DDR: mem_speed (533000 kHz), RCC 533000 kHz
INFO: Memory size = 0x20000000 (512 MB)
INFO: BL2 runs SP_MIN setup
INFO: bl2_platform_setup,220:run here
INFO: plat/common/plat_bl_common.c,43:RUN HERE
INFO: BL2: Loading image id 4
INFO: Loading image id=4 at address 0x2ffed000
INFO: Image id=4 loaded: 0x2ffed000 - 0x2ffff000
INFO: drivers/auth/auth_mod.c,357:RUN HERH
INFO: drivers/auth/auth_mod.c,362:RUN HERH
INFO: common/bl_common.c,200:RUN HERH
INFO: plat/common/plat_bl_common.c,43:RUN HERE
INFO: BL2: Loading image id 5
INFO: uart_block_open,222:current_phase.keep_header set
INFO: uart_block_read,478: current_phase.keep_header = 1
INFO: uart_block_read,479: header_length_read = 0
INFO: uart_block_read,480: sizeof(boot_api_image_header_t) = 256
INFO: Read block in buffer 0x2ffeb0f4 size 0x100 phase ID 0
INFO: binary size 0xf5
INFO: uart_block_read,478: current_phase.keep_header = 1
INFO: uart_block_read,479: header_length_read = 256
INFO: uart_block_read,480: sizeof(boot_api_image_header_t) = 256
INFO: drivers/st/uart/io_programmer_uart.c,485: RUN HERE
INFO: Read block in buffer 0xc0000000 size 0xf5 phase ID 0
INFO: uart_block_open,237:current_phase.keep_header CLEAR
INFO: Loading image id=5 at address 0xc0100000
INFO: uart_block_read,478: current_phase.keep_header = 0
INFO: uart_block_read,479: header_length_read = 0
INFO: uart_block_read,480: sizeof(boot_api_image_header_t) = 256
INFO: Read block in buffer 0x2ffeb0f4 size 0x100 phase ID 3
INFO: binary size 0xd4781
INFO: uart_block_read,478: current_phase.keep_header = 0
INFO: uart_block_read,479: header_length_read = 256
INFO: uart_block_read,480: sizeof(boot_api_image_header_t) = 256
INFO: drivers/st/uart/io_programmer_uart.c,489: RUN HERE
INFO: plat/st/common/stm32mp_common.c,181:RUN HERE 111111111111111111111111111111111111
INFO: Read block in buffer 0xc0100000 size 0xd4781 phase ID 3
INFO: Image id=5 loaded: 0xc0100000 - 0xc01d4781
INFO: drivers/auth/auth_mod.c,357:RUN HERH
INFO: drivers/auth/auth_mod.c,362:RUN HERH
INFO: img_parser_check_integrity,85:run here!!!
INFO: plat/st/common/stm32mp_img_parser_lib.c,21:RUN HERE
INFO: plat/st/common/stm32mp_crypto_lib.c,56:RUN HERE
WARNING: Skip signature check (header option)
INFO: plat/st/common/stm32mp_common.c,188:RUN HERE
NOTICE: ROTPK is not deployed on platform. Skipping ROTPK verification.
INFO: common/bl_common.c,200:RUN HERH
INFO: bl2/bl2_image_load_v2.c,105:RUN HERH
INFO: bl2/bl2_main.c,99:next_bl_ep_info = 0x2ffe9170
NOTICE: BL2: Booting BL32
INFO: Entry point address = 0x2ffed000
INFO: SPSR = 0x1d3
INFO: Argument #0 = 0x2ffeb308
INFO: Argument #1 = 0x0
INFO: Argument #2 = 0x0
INFO: Argument #3 = 0x0
INFO: bl2_main,138: run here !!!
NOTICE: SP_MIN: v2.2-r1.0(debug):806b12b-dirty
NOTICE: SP_MIN: Built : 05:27:23, May 30 2023
INFO: ARM GICv2 driver initialized
INFO: stm32mp IWDG1 (12): Secure
INFO: ETZPC: CRYP1 (9) could be non secure
INFO: SP_MIN: Initializing runtime services
INFO: sp_min_main,179: run here !!!
INFO: SP_MIN: Preparing exit to normal world
INFO: sp_min_main,185: run here !!!
INFO: sp_min_main,191: run here !!!
INFO: sp_min_main,193: run here !!!
运行到这里之后uboot未加载,cube programmer 显示信息如下:
16:33:48 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off
16:33:48 : Activating device: OK
16:33:48 : Chip ID: 0x500
16:33:48 : BootLoader protocol version: 4.0
16:33:51 : Start Embedded Flashing service
16:33:52 : Memory Programming …
16:33:52 : Opening and parsing file: tf-a-stm32mp157c-100ask-512d-v1-serialboot.stm32
16:33:52 : File : tf-a-stm32mp157c-100ask-512d-v1-serialboot.stm32
16:33:52 : Size : 241984 Bytes
16:33:52 : Partition ID : 0x01
16:33:52 : Download in Progress:
16:34:18 : File download complete
16:34:18 : Time elapsed during download operation: 00:00:26.221
16:34:18 : RUNNING Program …
16:34:18 : PartID: :0x01
16:34:18 : Start operation done successfully at partition 0x01
16:34:18 : GETPHASE command not acknowledged!
16:34:18 : Reemission of GetPhase command
16:34:18 : Flashlayout Programming …
16:34:18 : Running Flashlayout Partition …
16:34:18 : Flashlayout partition started successfully
16:34:18 : Memory Programming …
16:34:18 : Opening and parsing file: u-boot.stm32
16:34:18 : File : u-boot.stm32
16:34:18 : Size : 869937 Bytes
16:34:18 : Partition ID : 0x03
16:34:18 : Download in Progress:
16:35:53 : File download complete
16:35:53 : Time elapsed during download operation: 00:01:35.105
16:35:53 : RUNNING Program …
16:35:53 : PartID: :0x03
16:35:53 : Start operation done successfully at partition 0x03
16:36:23 : Timeout error occured while waiting for acknowledgement.
16:36:23 : GETPHASE command not acknowledged!
16:36:23 : Reemission of GetPhase command
16:36:53 : Timeout error occured while waiting for acknowledgement.
16:36:53 : GETPHASE command not acknowledged!
16:36:53 : Reemission of GetPhase command
16:37:24 : Timeout error occured while waiting for acknowledgement.
16:37:24 : GETPHASE command not acknowledged!
16:37:24 : Error: GetPhase command not acknowledged after 3 retries!
16:37:24 : Error: Parition 0xbb not found in TSV File
16:37:24 : Error: TSV flashing service failed
16:37:26 : Timeout error occured while waiting for acknowledgement.
16:37:26 : Error: GETID command not acknowledged!
16:37:26 : Reemission of GetID command
16:37:27 : Timeout error occured while waiting for acknowledgement.
16:37:27 : Error: GETID command not acknowledged!
16:37:27 : Reemission of GetID command
16:37:28 : Timeout error occured while waiting for acknowledgement.
16:37:28 : Error: GETID command not acknowledged!
16:37:29 : Timeout error occured while waiting for acknowledgement.
16:37:29 : Error: GETID command not acknowledged!
16:37:29 : Reemission of GetID command
16:37:30 : Timeout error occured while waiting for acknowledgement.
16:37:30 : Error: GETID command not acknowledged!
16:37:30 : Reemission of GetID command
16:37:31 : Timeout error occured while waiting for acknowledgement.
16:37:31 : Error: GETID command not acknowledged!
16:37:31 : Warning: Connection to device 0x500 is lost
16:37:31 : Disconnected from device.
请问老师这是什么问题,应该从哪些方面着手排查
解决了,一直也没人回,
你是怎么解决的? 让我知道。
1 个赞