Arria 10 NAND booting using JTAG


#1

Hi,

I am having trouble booting custom Arria 10 board from NAND. I am following the steps as given in https://rocketboards.org/foswiki/Documentation/A10Gsrd161NandBoot?validation_key=d0d54f947c8f6494547938d664df12c1 completely.
I have installed Quartus 17.0 version and SocEDS 17.1. Also, I have DS-5 latest version in my PC.

However, I am getting stuck after giving first command itself to flash uboot image with the following error:

DEBUG: Detecting JTAG Connection Parameters
DEBUG: Running jtagconfig

  1. USB-BlasterII [2-1.4]
    02E040DD 10AS048E(1|2|3|3ES|4|4ES)/…
    4BA00477 SOCVHPS

INFO : Detected JTAG cable=‘USB-BlasterII [2-1.4]’
INFO : Detected cdb-entry-param=‘rvi_address=USB-BlasterII on localhost [2-1.4]:USB-BlasterII 2-1.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 [2-1.4]” -o “p;./a10_nand_devkit_revc_design/output_files/ghrd_10as066n2.sof”
Info: *******************************************************************
Info: Running Quartus Prime Programmer
Info: Command: quartus_pgm --no_banner --mode=jtag --cable=“USB-BlasterII [2-1.4]” -o p;./a10_nand_devkit_revc_design/output_files/ghrd_10as066n2.sof
Info (213045): Using programming cable “USB-BlasterII [2-1.4]”
Info (213011): Using programming file ./a10_nand_devkit_revc_design/output_files/ghrd_10as066n2.sof with checksum 0x159B320B for device 10AS048H3F34@1
Info (209060): Started Programmer operation at Thu May 10 11:03:02 2018
Info (209016): Configuring device index 1
Info (209017): Device 1 contains JTAG ID code 0x02E040DD
Info (209007): Configuration succeeded – 1 device(s) configured
Info (209011): Successfully performed operation(s)
Info (209061): Ended Programmer operation at Thu May 10 11:03:10 2018
Info: Quartus Prime Programmer was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 1017 megabytes
Info: Processing ended: Thu May 10 11:03:10 2018
Info: Elapsed time: 00:00:13
Info: Total CPU time (on all processors): 00:00:06
INFO : Creating DS-5 script '_tmp_ds5-debugger-script.ds5’
DEBUG: Running rm -f chunk
*
DEBUG: Running split --bytes=134217728 /media/saumya/04f8a7a6-33b6-4ab7-acd9-ed289c0fd4d4/home/prfor/Programming_NAND/uboot_w_dtb-mkpimage.bin 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 [2-1.4]:USB-BlasterII 2-1.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 [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:0x000003EC
S:0x000003EC LDR r1,[r0,#0]
Target has been reset
Execution stopped in SVC mode due to a breakpoint or watchpoint: S:0x00000000
S:0x00000000 LDR pc,[pc,#24] ; [0x20] = 0xB8
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 [40%]
Loading image data and symbols [50%]
Loading image data and symbols [80%]
Loading image data and symbols [100%]
Loaded section .text: S:0xFFE00000 ~ S:0xFFE19EA3 (size 0x19EA4)
Loaded section .rodata: S:0xFFE19EA4 ~ S:0xFFE22A4B (size 0x8BA8)
Loaded section .data: S:0xFFE22A4C ~ S:0xFFE26D2B (size 0x42E0)
Loaded section .u_boot_list: S:0xFFE2B00C ~ S:0xFFE2B523 (size 0x518)
Entry point S:0xFFE002E0
Starting target with image /media/saumya/04f8a7a6-33b6-4ab7-acd9-ed289c0fd4d4/home/prfor/flash_programmer/a10_nand_devkit_revc_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 /media/saumya/04f8a7a6-33b6-4ab7-acd9-ed289c0fd4d4/home/prfor/flash_programmer/a10_nand_devkit_revc_design/software/bootloader_extcfg_semihosting/devicetree.dtb into memory
Restoring section S:0x00000000 to S:0x000010C2 into memory S:0xFFE2B524 to S:0xFFE2C5E6
Breakpoint 2 at S:0xFFE16DF4
on file vsprintf.c, line 837
starting u-boot
Hardware breakpoint 3 at S:0xFFE072DC
on file cmd_echo.c, line 12

After this point, the board hangs.

Can anyone help me out with this error?

Thanks.