Uboot hangs during flash programming


#1

I’m trying to use the flash programming alternative to load a qspi image quickly on a custom board: https://rocketboards.org/foswiki/Documentation/Arria10NANDFlashProgramming. For some reason it hangs when starting u-boot. I generated a custom sof for the new board, and used the hps_isw_handoff from there to create the u-boot. Below is the log:

DEBUG: Detecting JTAG Connection Parameters
DEBUG: Running jtagconfig

  1. USB-BlasterII [3-4]
    02E050DD 10AS066H(1|2|2ES|3|3E2|3ES)/…
    4BA00477 SOCVHPS

INFO : Detected JTAG cable='USB-BlasterII [3-4]'
INFO : Detected cdb-entry-param='rvi_address=USB-BlasterII on localhost [3-4]:USB-BlasterII 3-4’
INFO : Detected soc='a10’
DEBUG: Detected cdb-entry='Altera::Arria 10 SoC::Bare Metal Debug::Bare Metal Debug::Debug Cortex-A9_0::USB-Blaster’
INFO : Configuring FPGA
DEBUG: Running quartus_pgm --no_banner --mode=jtag --cable=“USB-BlasterII [3-4]” -o "p;./a10_qspi_module_design/output_files/ghrd_10as066n2.sof"
Info: *******************************************************************
Info: Running Quartus Prime Programmer
Info: Command: quartus_pgm --no_banner --mode=jtag --cable=“USB-BlasterII [3-4]” -o p;./a10_qspi_module_design/output_files/ghrd_10as066n2.sof
Info (213045): Using programming cable "USB-BlasterII [3-4]"
Info (213011): Using programming file ./a10_qspi_module_design/output_files/ghrd_10as066n2.sof with checksum 0x1CBA15EC for device 10AS066H3F34@1
Info (209060): Started Programmer operation at Mon Nov 6 15:56:03 2017
Info (209016): Configuring device index 1
Info (209017): Device 1 contains JTAG ID code 0x02E050DD
Info (209007): Configuration succeeded – 1 device(s) configured
Info (209011): Successfully performed operation(s)
Info (209061): Ended Programmer operation at Mon Nov 6 15:56:14 2017
Info: Quartus Prime Programmer was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 1266 megabytes
Info: Processing ended: Mon Nov 6 15:56:14 2017
Info: Elapsed time: 00:00:19
Info: Total CPU time (on all processors): 00:00:11
INFO : Creating DS-5 script '_tmp_ds5-debugger-script.ds5’
DEBUG: Running rm -f chunk
*
DEBUG: Running split --bytes=134217728 qspiimage.img chunk

DEBUG: Running DS-5 debugger
DEBUG: Running debugger --continue_on_error=true --stop_on_connect=false --cdb-entry=“Altera::Arria 10 SoC::Bare Metal Debug::Bare Metal Debug::Debug Cortex-A9_0::USB-Blaster” --cdb-entry-param=“rvi_address=USB-BlasterII on localhost [3-4]:USB-BlasterII 3-4” --semihosting-output ___tmp_ds5_uboot_console.txt -s ___tmp_ds5-debugger-script.ds5
Launching debug server [0%]
[target] Starting debug server
[target] Waiting for debug server to start accepting connections
[target] Debug server started successfully
[target]
Launching debug server [100%]
Connected to running target Cortex-A9_0
Execution stopped in SVC mode at S:0x000003F0
S:0x000003F0 ANDS r2,r1,#1
Target has been reset
Execution stopped in SVC mode at S:0x000003F0
S:0x000003F0 ANDS r2,r1,#1
Loading image data and symbols [0%]
Loading image data and symbols [10%]
Loading image data and symbols [20%]
Loading image data and symbols [30%]
Loading image data and symbols [50%]
Loading image data and symbols [80%]
Loading image data and symbols [100%]
Loaded section .text: S:0xFFE00000 ~ S:0xFFE140D7 (size 0x140D8)
Loaded section .rodata: S:0xFFE140D8 ~ S:0xFFE1CB1A (size 0x8A43)
Loaded section .data: S:0xFFE1CB1C ~ S:0xFFE1D4BD (size 0x9A2)
Loaded section .u_boot_list: S:0xFFE1D4C0 ~ S:0xFFE1D9B7 (size 0x4F8)
Entry point S:0xFFE002E0
Semihosting server socket created at port 8000
Semihosting enabled automatically due to semihosting symbol detected in image 'u-boot’
Starting target with image /root/flash_programmer/a10_qspi_module_design/software/bootloader_extcfg_semihosting/uboot-socfpga/u-boot
Running from entry point
Execution stopped in SVC mode at S:0xFFE002E0
In start.S
S:0xFFE002E0 36,0 bl save_boot_params
Loading image devicetree.dtb [0%]
Loading image devicetree.dtb [100%]
Restoring Binary file /root/flash_programmer/a10_qspi_module_design/software/bootloader_extcfg_semihosting/devicetree.dtb into memory
Restoring section S:0x00000000 to S:0x000010EE into memory S:0xFFE1D9B8 to S:0xFFE1EAA6
Breakpoint 2 at S:0xFFE110D0
on file vsprintf.c, line 837
starting u-boot
Hardware breakpoint 3 at S:0xFFE07100
on file cmd_echo.c, line 12

Does anyone have any idea what the issue is?


#2

Hi,
Any update onto this query? Were you able to rectify this bug?