Visible to Intel only — GUID: mwh1410816337916
Ixiasoft
1.6.1. Example Implementation of Remote Debugging on an Altera SoC (5CSXSoC)
Requirements:
- microSD card for the Linux image
- USB cables
- Cyclone V SoC golden hardware reference design (GHRD)
- Linux drivers
- Setup Tcl script
- Start Linux on the Altera SoC.
- Get the USB serial UART cable and driver.
- Connect by serial to the board using PuTTY and selecting serial and the correct COM number with speed 57600.
- Press Enter and login as root.
If the above fails, double-check that the serial driver is in the Device Manager.If you are sure the failure is not due to a configuration issue, then the Linux kernel might not be on the SD card.
- After you get a connection via serial, get the board's IP with >>ifconfig
- Add the SLD Hub Controller from the GHRD.1
Figure 6. SLD Hub Controller in GHRD
- Generate in Qsys.
- Compile the design.
- Program the board with the GHRD .sof.
- Transfer the sld_hub.ko driver to the board via SFTP.
- Transfer the mmlink user application to the board via SFTP.
Figure 7. mmlink Application
- Run the SLD Hub Controller Linux driver and mmlink application.
>>insmod sld_hub.ko>>./mmlink
- Use System Console to connect to the board.
>>system-console-jtag_server--rc_script=mmlink_setup.tcl<design>.sof<ip>3333Figure 8. Connect with System Console
- Open the SignalTap II Logic Analyzer and select SystemConsole on localhost:xxxx under Hardware and Sld Hub Controller System under Device.
Figure 9. Selecting Hardware and Device
- Run analysis and view the waveforms.
Figure 10. Altera SoC Successfully Connected
Note: The SLD Hub Controller driver (sld_hub.ko) is compatible with Linux kernel 3.8.0-00069-g54902df-dirty.
1 The SLD Hub Controller Avalon Memory Mapped Slave connects to h2f AXI Master (HPS).