element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Hardware Hacking
  • Challenges & Projects
  • Project14
  • Hardware Hacking
  • More
  • Cancel
Hardware Hacking
Blog SQRL "Oak" dev board: Installation and Summary
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Hardware Hacking to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Fred27
  • Date Created: 13 Jul 2020 10:49 AM Date Created
  • Views 2180 views
  • Likes 6 likes
  • Comments 2 comments
  • artix-7
  • xilinx
  • fpga
  • hardwarehackingch
Related
Recommended

SQRL "Oak" dev board: Installation and Summary

Fred27
Fred27
13 Jul 2020

So, last time I managed to get the SQL Acron CLE-215 running whilst powered by an external power supply and connect to it over JTAG. This let me get blinky running but didn't really take advantage of the unusual feature which drew me to the board - the PCIe interface. Now that I knew I had some control over the board it was time to put it inside my PC.

 

Hardware

My main desktop is a small-ish form factor machine running Windows 10. Luckily I had a slightly older tower PC that had much more room for PCIe board. Whilst the SQRL board isn't tall, that large heatsink does make it awkwardly wide. Talking of which, how would it ever be possible to put this in the m.2 slot of a laptop? It might just about fit with the heatsink removed, but I suspect that taking any advantage of the power of the onboard Artix-7 would cause it to overheat very quickly.

image

So I installed the SQRL board and its PCIe carrier inside the desktop. This wasn't too difficult but I didn't want to give up JTAG, so I have the rather strange configuration of a USB cable connected to the PC and snaking back inside where it connects to a Digilent HS2 JTAG programming cable that's taped to a convenient rail. Obviously the primary use case for this device is where your bitstream is loaded in from flash and you interact with it over PCIe. That's all fine once you've finished developing the PL, but I still need JTAG for a little while longer.

 

image

Software

I decided that to make things easier to work with PCIe drivers I would run Ubuntu natively on this machine. Most Xilinx PCIe examples start from Linux so I didn't want to make things harder than they needed to be. After a brief flirt with Ubuntu 20.04 LTS - because you know, it's new and shiny - I found out that Xilinx weren't joking when then said only 18.04 LTS is supported. I was tripped up by things like Petalinux builds that are unrelated to this board, but it still seemed wise to stick with what's supported by Xilinx for now.

 

Luckily the documentation for the NiteFury board included a PCIe example block design and some basic instructions for getting Xilinx's XDMA driver installed on Linux. The block design synthesis and was transferred over to the device without a problem. The driver side however was a little more tricky. I thought that Vivado was a bit touchy about versions, but the XDMA drivers were even more so. There were so many gotcha that required quite a bit of searching, and you have to wonder why some of this wasn't included in the Xilinx-supplied instructions.

 

Firstly, a signing key was missing so the drivers couldn't be compiled. I found the solution here, but it really should have been included. Things then got even stranger.

cd /usr/src/linux-headers-$(uname -r)/certs
sudo openssl req -new -x509 -newkey rsa:2048 -keyout signing_key.pem -outform DER -out signing_key.x509 -nodes -subj "/CN=Owner/"

 

 

The build got further but then complained about a missing 'System.map' file. More googling and rabbit holes later, it seems that not only is the version of Linux important, later kernels cause problems. I ended up having to revert the kernel on my Ubuntu 18.04 from 5.3 to 4.15. Considering I'm probably an 80% Windows / 20% Linux guy, altering the active kernel seems a bit out there. However, I managed it with the following:

sudo apt remove linux-image-5.3.0-59-generic
sudo apt remove linux-image-5.3.0-53-generic
sudo apt remove linux-image-unsigned-5.3.0-53-generic
sudo apt remove linux-image-5.3.0-28-generic
sudo update-grub
sudo reboot now

 

With the change in kernel (and hence the value returned by "uname -r") I had to redo the SSL cert above. I could now build the kernal module and install it!

image

 

Next is a quick test of communication between Linux and the FPGA. Unfortunately Linux is still not happy with the XDMA drivers. A lot of searching has yet to come up with a solution to this. There are other avenues I can explore, such as using Xilinx QDMA drivers under Windows btu considering that would need a whole OS reinstallation. Time constraints and other things I need to do (like a job) mean I will unfortunately have to leave it here for now.

image

image

 

Summary

It was a bit of a gamble buying a totally undocumented and manufacturer-abandoned FPGA board on eBay. I've had a lot of fun reverse engineering things like JTAG and learned a lot along the way. In some ways, discovering the link between the SQRL Acorn and the NiteFury turned the potentially impossible into a much easier proposition.

 

Whilst I haven't had the time to really make use of the strengths of the device yet, I have managed to find £30-worth of eBay junk and make this into a $349 development board. Considering most Xilinx boards that support PCIe are in the 4-digit price range it seems even more of a bargain! Looking at the thread I started an EEVBlog and a few posts on Twitter from other FPGA developers, it seems that a few of these once useless cryptominer cards have now found a good home. It's great that I've not only saved this one from the e-waste pile but quite a few others too.

 

I think I'm going to all the end result of a nice dev board to be the final output of this project. The use of it for a PCIe-based project will have to wait for another day.

  • Sign in to reply

Top Comments

  • Fred27
    Fred27 over 4 years ago in reply to maxpowerr +1
    I'd have thought that provided the adapter allowed you to supply a decent amount of power that it would work. The FPGA can definitely draw more power than the PCIe slot can supply, so this adapter has…
  • Fred27
    Fred27 over 4 years ago in reply to maxpowerr

    I'd have thought that provided the adapter allowed you to supply a decent amount of power that it would work. The FPGA can definitely draw more power than the PCIe slot can supply, so this adapter has a separate power header.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • maxpowerr
    maxpowerr over 4 years ago

    Cool project. Do you know if this board will work with another PCI adapter?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube