Skip to content

Instantly share code, notes, and snippets.

View yunqu's full-sized avatar
🏠
Working from home

Yun Rock Qu yunqu

🏠
Working from home
View GitHub Profile
@yunqu
yunqu / pynq-boot.md
Last active July 13, 2026 13:41
Steps to modify boot device tree in PYNQ image

Quick Steps to Modify Device Tree

This document covers the simple steps to modify an existing device tree in a Petalinux-generated boot partition. For detailed information, you can refer to the steps on Xilinx Wiki page.

Note starting from image v2.3, the customized boot steps are no longer supported by the PYNQ SD build flow. Instead, Petalinux will be used to generate the boot partition. Petalinux has certain requirements on the boot files; the resulting

@yunqu
yunqu / dropbox.md
Created January 7, 2020 21:01
Download a File from Dropbox in Linux

Download a File from Dropbox in Linux

To download a file from dropbox, the following steps have to be followed:

  1. In your dropbox folder, click the file you want to share, and then click share; and then click create link.
  2. Once the link has been created, you can copy the link by copy link. This will copy the link into your clipboard.
  3. You can paste it somewhere. It has a format similar to: https://www.dropbox.com/s/m5ay6j4to7ryr4p/resizer.bit?dl=0
@yunqu
yunqu / install-gcc.md
Last active October 8, 2024 01:45
Install a different version of GCC on Ubuntu

First, add the ubuntu-toolchain-r/test PPA to your system with:

sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test

Install the desired GCC and G++ versions by typing:

sudo apt install gcc-7 g++-7 gcc-8 g++-8 gcc-9 g++-9
@yunqu
yunqu / build-ray.md
Last active October 12, 2022 07:54
Building Ray for aarch64

Building Ray for aarch64

There are multiple ways to build ray on aarch64 processors. We will use the PYNQ image v2.4 with Ubuntu 18.04 OS as an example. In this document, we will introduce 2 approaches to build ray; we will always prefer the second approach (building on Amazon A1) since it is faster, cleaner, and easy to reproduce.

Building from Source on the Target

@yunqu
yunqu / build-bazel.md
Last active May 25, 2022 02:43
Building the bazel package for aarch64 on Amazon A1

Building Bazel for aarch64

I am building bazel for aarch64 on Amazon A1 platform. This flow is pretty nice and much easier than the QEMU flow which is prone to QEMU bugs.

Requirement

  • An Amazon A1 platform running Ubuntu 18.04.
@yunqu
yunqu / build-bazel-qemu-arm.md
Last active February 19, 2022 01:49
Build Bazel on QEMU for Pynq-Z1/Pynq-Z2

Building Bazel on armv7l QEMU

Here you'll learn how to build Bazel for Pynq-Z1 (image v2.4). A similar flow can be run directly on the board (native build). However, this guide is based on QEMU flow, which is running faster and cleaner than a native build on the board.

The same flow can also target aarch64 (ZCU104). You just have to work with the correct image (instead of Pynq-Z1-2.4.img, work with ZCU104-2.4.img).

@yunqu
yunqu / qt-fix.md
Created October 21, 2020 18:14
QT error message when running petalinux-config

For petalinux-config command, sometimes I see the following error:

QCoreApplication::arguments: Please instantiate the QApplication object first
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

And the petalinux-config command refuses to give me terminal window to configure the project.

To resolve this issue:

@yunqu
yunqu / build-bazel-qemu.md
Last active August 6, 2020 14:09
Steps to build Bazel in QEMU environment for PYNQ images

Building Bazel on QEMU

Here you'll learn how to build Bazel targetting PYNQ image (ZCU104 or Pynq-Z1) with QEMU environment.

I am using ZCU104 as an example; Pynq-Z1 is very similar (change ZCU104 to Pynq-Z1 where it is needed in my steps). Other Zynq and Zynq Ultrascale images should also work.

Requirement

@yunqu
yunqu / pynq-on-debian.md
Last active April 11, 2020 23:21
Installation steps for PYNQ on Debian Stretch

Install PYNQ on Debian Stretch

We will detail the steps for PYNQ installation on Debian Stretch. We will use the Debian Stretch released along with DNNDK, on ZCU104 board. For other Debian-based OS, the flow will be similar.

Step 1. Set up the image

This step is to configure the image, which is specific to ZCU104 Debian Stretch released. It is not

@yunqu
yunqu / UrlConnect.java
Created March 30, 2020 05:56
URL test for java class
// Test for URL in java
//
// Usage:
// $ javac UrlConnect.java
// $ java UrlConnect
//
// If failed, need to check the cacerts store to make sure
// by default this is /etc/ssl/certs/java/cacerts
// Can change the URL in the file to test other sites