Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, FPGA AI Suite, Software Stack, and Reference Designs
482 Discussions

fpgaflash fails with "Connection timed out"



I'm trying to update the FIM and BMC of my PAC A10 to 1.2.

I downloaded the 1.2 version of the acceleration stack and followed the section "A. Updating the FIM and BMC Firmware" of the documentation.

Here is my fpgainfo fme:

//****** FME ******//
Object Id : 0xF100000
PCIe s:b:d:f : 0000:02:00:0
Device Id : 0x09C4
Socket Id : 0x00
Ports Num : 01
Bitstream Id : 0x113000200000177
Bitstream Version : 0x557E00030101
Pr Interface Id : 9926ab6d-6c92-5a68-aabc-a7d84c545738


First, as the BittWorks II ToolkitLite is no longer available I downloaded the toolkit from another post on this forum:

I then followed the instruction to use the setup_fim_and_bmc script to to the update. (the fpga is in the PCIe slot  + connected with a USB cable.

>> lspci | grep 09c4

02:00.0 Processing accelerators: Intel Corporation Device 09c4

>> ./ -b 02 -d 0 -f 0 -p $OPAE_PLATFORM_ROOT

1. Intel FPGA driver and OPAE must be installed
2. Bittware Tools must be installed
CentOS tool version: sudo yum install bw2tk-lite-2018.4.0.el7.x86_64.rpm
Ubuntu tool version: sudo dpkg -i bw2tk-lite-2018.4.0.u1604.amd64.deb
Bittware tools must be added to PATH; export PATH=/opt/bwtk/2018.4.0L/bin/:$PATH
3. Only one PAC card must be connected to the host server using the Intel FPGA Download cable
4. Do not interrupt the script flow, this could brick the board
!!!Exit(Ctrl- C) and Refer to the Intel Acceleration Stack for Intel Programmable Acceleration Card with Intel A10 GX FPGA Quick Start Guide if above steps are not completed

Do you want to continue with the FIM and BMC upgrade? (Y/n): y

Two part install process:
Part 1: Install FIM and program BMC application
<Power Cycle>; reboot is not sufficient
Part 2: Install BMC bootloader and update remainder of BMC application

Please type a selection or press Enter to accept default choice [ 1 ]: 1

Provide directory path to BMC firmware and Bootloader: /home/yuguen/Downloads/Bittware_toolkit/
>>> Running cmd:
bwconfig --scan=usb

Scanning for devices

[result]: Board Type (Name), Serial, VendorID, DeviceID, USB-Address
[0]: 0x5f (A10SA4) 204338 0x2528 0x0004 0x6
Updating the FIM Image
>>> Running cmd:
sudo fpgaflash user /home/yuguen/inteldevstack/a10_gx_pac_ias_1_2_pv/hw/blue_bits/dcp*.rpd 0000:02:00.0

flash size is 134217728
reversing bits
erasing flash
Traceback (most recent call last):
File "/bin/fpgaflash", line 642, in <module>
File "/bin/fpgaflash", line 636, in main
ret = fpga_update(args.type, args.file, bdf, bdf_map)
File "/bin/fpgaflash", line 282, in fpga_update
update_flash(utype, ifile, mtd_dev)
File "/bin/fpgaflash", line 231, in update_flash
flash_erase(mtd_dev, start_addr, (flash_size - start_addr))
File "/bin/fpgaflash", line 106, in flash_erase
fcntl.ioctl(file_.fileno(), MEMERASE, ioctl_data)
IOError: [Errno 110] Connection timed out
Command: "sudo fpgaflash user /home/yuguen/inteldevstack/a10_gx_pac_ias_1_2_pv/hw/blue_bits/dcp*.rpd 0000:02:00.0" exited with error code: 1


Does anyone have an idea of what the problem might be?


Many thanks!

0 Kudos
1 Reply

Have you stopped the pacd before upgrading the FPGA flash, you may refer to page 35 of below:

0 Kudos