Wiki

This version is outdated by a newer approved version.DiffThis version (14 Sep 2022 14:47) was approved by Stefan-Robert Raus.The Previously approved version (08 Sep 2022 14:19) is available.Diff

This is an old revision of the document!


Loading

Download the pre-build image for you device in question.

Latest Build: 2022_08_05 - 2021_R1

Linux branch: 2021_R1
Linux repository: https://github.com/analogdevicesinc/linux.git

HDL branch: hdl_2021_r1
HDL repository: https://github.com/analogdevicesinc/hdl.git

FPGA Carrier FMC Card Download
KC705 AD9467_FMC 2021_r1_kc705_ad9467_fmc.zip

Latest Build: 2021_07_27 - 2019_R2

Linux branch: 2019_R2
Linux repository: https://github.com/analogdevicesinc/linux.git

HDL branch: hdl_2019_r2
HDL repository: https://github.com/analogdevicesinc/hdl.git

Latest Build: 2018_05_08 - 2018_R1

Linux branch:2018_R1
Linux repository:https://github.com/analogdevicesinc/linux.git

Vivado branch:hdl_2018_r1
Vivado repository:https://github.com/analogdevicesinc/hdl.git

Master Microblaze images

  • It is recommended to use master microblaze images only if you really need them (for example features that are not part of any release yet) since the files may not be always in a good state. Check Latest microblaze released images for most recent and tested images.
  • Inside every archive there is system_top.bit, simpleImage.<project name>.strip and a script to program it.
10 Jan 2022 15:06 · Stefan-Robert Raus

There are two ways of loading the design. One is using the XMD command line. Open a xmd command window/shell and enter the commands manually.

Below is just a example and the file-names may vary.

Xilinx XMD command console

Click to display ⇲

Click to hide ⇱

Dave@HAL9000:~$ xmd
                                                                                                                                                                                                             
****** Xilinx Microprocessor Debugger (XMD) Engine
****** XMD v2014.2 (64-bit)
  **** SW Build 932637 on Wed Jun 11 13:12:06 MDT 2014
    ** Copyright 1986-2014 Xilinx, Inc. All Rights Reserved.


XMD% fpga -f download.bit                                                                                                                                                                                    
Configuring Device 1 (xcku040) with Bitstream -- download.bit
....10....20....30....40....50....60.....70....80....90....Done
Successfully downloaded bit file.

JTAG chain configuration
--------------------------------------------------
Device   ID Code        IR Length    Part Name
 1       03822093           6        xcku040

0
XMD% connect mb mdm                                                                                                                                                                                          
                                                                                                                                                                                                             
JTAG chain configuration
--------------------------------------------------
Device   ID Code        IR Length    Part Name
 1       03822093           6        xcku040

MicroBlaze Processor Configuration :
-------------------------------------
Version............................9.3
Optimization.......................Performance
Interconnect.......................AXI-LE
MMU Type...........................Full_MMU
No of PC Breakpoints...............1
No of Read Addr/Data Watchpoints...0
No of Write Addr/Data Watchpoints..0
Instruction Cache Support..........on
Instruction Cache Base Address.....0x80000000
Instruction Cache High Address.....0xbfffffff
Data Cache Support.................on
Data Cache Base Address............0x80000000
Data Cache High Address............0xbfffffff
Exceptions  Support................on
FPU  Support.......................off
Hard Divider Support...............on
Hard Multiplier Support............on - (Mul64)
Barrel Shifter Support.............on
MSR clr/set Instruction Support....on
Compare Instruction Support........on
PVR Supported......................on
PVR Configuration Type.............Full
Data Cache Write-back Support......off
Fault Tolerance Support............off
Stack Protection Support...........off

Connected to "mb" target. id = 0
Starting GDB server for "mb" target (id = 0) at TCP port no 1234

XMD% dow /home/dace/linux/arch/microblaze/boot/simpleImage.kcu105_ad_fmcdaq2_ebz                                                                                                   
System Reset .... DONE
Downloading Program -- /home/michael/linux/arch/microblaze/boot/simpleImage.kcu105_ad_fmcdaq2_ebz                                                                                     
	section, .text: 0x80000000-0x8031cda7
	section, .init.text: 0x803fc000-0x804185eb
	section, .init.ivt: 0x8041afac-0x8041afd3
	section, __fdt_blob: 0x8031cda8-0x80324da7
	section, .rodata: 0x80325000-0x803b950f
	section, __ksymtab: 0x803b9510-0x803be90f
	section, __ksymtab_gpl: 0x803be910-0x803c1e27
	section, __ksymtab_strings: 0x803c1e28-0x803d4dd7
	section, __param: 0x803d4dd8-0x803d5147
	section, __modver: 0x803d5148-0x803d5fff
	section, __ex_table: 0x803d6000-0x803d75df
	section, .notes: 0x803d75e0-0x803d7603
	section, .sdata2: 0x803d7604-0x803d7fff
	section, .data: 0x803d8000-0x803fbc5f
	section, .init.data: 0x804185ec-0x8041afab
	section, .init.setup: 0x8041afd4-0x8041b327
	section, .initcall.init: 0x8041b328-0x8041b683
	section, .con_initcall.init: 0x8041b684-0x8041b68b
	section, .init.ramfs: 0x8041b68c-0x806f97b3
	section, .bss: 0x806fa000-0x8070f8db
Download Progress........10.......20.......30.......40.......50........60.......70.......80.......90........Done                                                                                             
Setting PC with Program Start Address 0x80000000
XMD% con                                                                                                                                                                                                     
Processor started. Type "stop" to stop processor

RUNNING> XMD% 

</WRAP>

XMD has been replaced with XSCT/XSDB in newer releases of VIVADO. In windows, you can run the XSCT terminal from start menu → Xilinx Design Tools → Xilinx Software Command Line Tool…

Xilinx XSCT command console

****** Xilinx System Debugger (XSDB) v2021.1
  **** Build date : Jun 10 2021-20:11:58
    ** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.


xsdb% connect
attempting to launch hw_server

****** Xilinx hw_server v2021.1
  **** Build date : Jun 10 2021 at 20:11:57
    ** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.

INFO: hw_server application started
INFO: Use Ctrl-C to exit hw_server application

INFO: To connect to this hw_server instance use url: TCP:127.0.0.1:3121

tcfchan#0
xsdb% fpga -f system_top.bit
100%    4MB   1.7MB/s  00:02
xsdb% targets
  1  xc7k325t
     2  MicroBlaze Debug Module at USER2
        3  MicroBlaze #0 (Running)
xsdb% target 3
xsdb% dow simpleImage.kc705_fmcomms2-3.strip
Downloading Program -- /home/liacob/microblaze/simpleImage.kc705_fmcomms2-3/simpleImage.kc705_fmcomms2-3.strip
        section, .text: 0x80000000 - 0x804763ab
        section, __fdt_blob: 0x804763ac - 0x804863ab
        section, .rodata: 0x80487000 - 0x808b110f
        section, .builtin_fw: 0x808b1110 - 0x808b1133
        section, __ksymtab: 0x808b1134 - 0x808b746b
        section, __ksymtab_gpl: 0x808b746c - 0x808bc483
        section, __ksymtab_strings: 0x808bc484 - 0x808d6973
        section, __param: 0x808d6974 - 0x808d6e5f
        section, __modver: 0x808d6e60 - 0x808d6fff
        section, __ex_table: 0x808d7000 - 0x808d844f
        section, .notes: 0x808d8450 - 0x808d848b
        section, .sdata2: 0x808d848c - 0x808d8fff
        section, .data: 0x808d9000 - 0x8095893f
        section, .init.text: 0x80959000 - 0x8097a75b
        section, .init.data: 0x8097a75c - 0x8097c053
        section, .init.ivt: 0x8097c054 - 0x8097c07b
        section, .init.setup: 0x8097c07c - 0x8097c3f3
        section, .initcall.init: 0x8097c3f4 - 0x8097c80f
        section, .con_initcall.init: 0x8097c810 - 0x8097c813
        section, .init.ramfs: 0x8097c814 - 0x80c2a9fb
        section, .bss: 0x80c2b000 - 0x80c4225b
100%   12MB   0.2MB/s  00:56
Setting PC to Program Start Address 0x80000000
Successfully downloaded /home/liacob/microblaze/simpleImage.kc705_fmcomms2-3/simpleImage.kc705_fmcomms2-3.strip
xsdb% Info: MicroBlaze #0 (target 3) Stopped at 0x0 (Stop)
xsdb% con
Info: MicroBlaze #0 (target 3) Running
xsdb%

The second method is to run the tcl script which takes care of loading the bit file and the linux image. Run Vivado TCL Shell from Windows start menu → Xilinx Design Suite → Vivado → Vivado TCL Shell. (In Linux, source the settings.sh file first)

Then run the tcl script:

Vivado TCL shell or Linux console

****** Xilinx System Debugger (XSDB) v2021.1
  **** Build date : Jun 10 2021-20:11:58
    ** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.


xsdb% source run.tcl
attempting to launch hw_server

****** Xilinx hw_server v2021.1
  **** Build date : Jun 10 2021 at 20:11:57
    ** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.

INFO: hw_server application started
INFO: Use Ctrl-C to exit hw_server application

INFO: To connect to this hw_server instance use url: TCP:127.0.0.1:3121

100%    4MB   1.7MB/s  00:02
Downloading Program -- /home/liacob/microblaze/simpleImage.kc705_fmcomms2-3/simpleImage.kc705_fmcomms2-3.strip
        section, .text: 0x80000000 - 0x804763ab
        section, __fdt_blob: 0x804763ac - 0x804863ab
        section, .rodata: 0x80487000 - 0x808b110f
        section, .builtin_fw: 0x808b1110 - 0x808b1133
        section, __ksymtab: 0x808b1134 - 0x808b746b
        section, __ksymtab_gpl: 0x808b746c - 0x808bc483
        section, __ksymtab_strings: 0x808bc484 - 0x808d6973
        section, __param: 0x808d6974 - 0x808d6e5f
        section, __modver: 0x808d6e60 - 0x808d6fff
        section, __ex_table: 0x808d7000 - 0x808d844f
        section, .notes: 0x808d8450 - 0x808d848b
        section, .sdata2: 0x808d848c - 0x808d8fff
        section, .data: 0x808d9000 - 0x8095893f
        section, .init.text: 0x80959000 - 0x8097a75b
        section, .init.data: 0x8097a75c - 0x8097c053
        section, .init.ivt: 0x8097c054 - 0x8097c07b
        section, .init.setup: 0x8097c07c - 0x8097c3f3
        section, .initcall.init: 0x8097c3f4 - 0x8097c80f
        section, .con_initcall.init: 0x8097c810 - 0x8097c813
        section, .init.ramfs: 0x8097c814 - 0x80c2a9fb
        section, .bss: 0x80c2b000 - 0x80c4225b
100%   12MB   0.2MB/s  00:56
Setting PC to Program Start Address 0x80000000
Successfully downloaded /home/liacob/microblaze/simpleImage.kc705_fmcomms2-3/simpleImage.kc705_fmcomms2-3.strip
Info: MicroBlaze #0 (target 3) Running
xsdb% Info: tcfchan#0 closed
xsdb%

Messages

If you are interested in the Linux console messages and command line interface, connect a USB cable to the USB UART port. Terminal settings are 115200,8N1.

There are two users:

user password
root analog
analog analog

If you FPGA carrier board (KC705, vc707, ml605) features a LCD display and the board is connected to a DHCP enabled network. You should also see it's IP address printed on the display. This allows you to connect remote to the board as well. (ssh, libiio remote)

Unlike shown in the picture below you won't see the second line. In case the IP address is 192.168.2.2, this indicates that DHCP failed and it's now using it's default address. This address may not be within your subnet, and things therefore may fail.

LCD image

You should see the kernel start-up messages as follows:

resources/tools-software/linux-drivers/platforms/microblaze_loading.1663159574.txt.gz · Last modified: 14 Sep 2022 14:46 by Stefan-Robert Raus