Skip to content

Instantly share code, notes, and snippets.

View regymm's full-sized avatar
💎

regymm regymm

💎
View GitHub Profile
@regymm
regymm / YPCB_Kintex7_RPi5.md
Created August 10, 2026 05:01
YPCB Kintex 7 480t PCIe Gen2 on Raspberry Pi 5

Hardware connection

Using PCIe to M.2 board for RPi5 (WaveShare), and M.2 to standard PCIe adaptor board for the card.

JTAG connected as usual, and a external 12V jack is soldered on the board.

I'm using 12V 3A power supply, it's enough for small designs but may not be so for larger designs.

12V 1A certainly doesn't work.

@regymm
regymm / prjxray-notes-zynq7030.md
Last active August 10, 2026 05:08
PrjXray Notes
@regymm
regymm / usdr-pcie-raspberry-pi5.md
Last active November 16, 2024 01:59
USDR PCIe SDR (With Xilinx Artix 7) on Raspberry Pi 5

USDR with PCIe interface on RPi5

On x86 computer, the official document is quite straightforward. I installed usdr-lib, which contains a SoapySDR plugin, to /usr/local. Then, the SoapySDR installed from ArchLinux package manager can detect the plugin and then the device, by: LD_LIBRARY_PATH=/usr/local/lib SoapySDRUtil --find

Setup

I'm using this hat https://www.waveshare.com/pcie-to-m.2-board-c.htm

Detected usdr at 01:00.0 (no drivers installed at this stage):

BUILDDIR := ${CURDIR}/build
TOP := HDMI_test
LOGFILE := ${BUILDDIR}/top.log
all: ${BUILDDIR} ${BUILDDIR}/top.bit
${BUILDDIR}:
mkdir -m 777 -p ${BUILDDIR} && chown -R nobody ${BUILDDIR} | true
@regymm
regymm / gist:8f4c846782605a89368df945b00e7d89
Created January 6, 2022 13:40
FPGAOL RISC-V Tests Binary Hex
3705009293050000232cb500232eb50013058005b703009383a28300e38e
02fe23a0a30083a28300e38e02fe1305f004ef00801f1305b004ef00001f
930000001301000093010000130200009302000013030000930300001304
000093040000130500009305000013060000930600001307000093070000
13080000930800001309000093090000130a0000930a0000130b0000930b
0000130c0000930c0000130d0000930d0000130e0000930e0000130f0000
930f00009300803e6f30904e9300803e6f10c0259300803e6f20d0769300
803e6f2010499300803e6f20d0599300803e6f1040349300803e6f20805d
9300803e6f10106a9300803e6f10806a9300803e6f20c0209300803e6f10
50279300803e6f30c0019300803e6f3040629300803e6f30d0599300803e
@regymm
regymm / openwifi etc interrupt
Created November 30, 2021 07:09
/etc/interrupt, sdr,tx_intrpt increase when hotspot enabled.
CPU0 CPU1
16: 0 0 GIC-0 27 Edge gt
17: 0 0 GIC-0 43 Level ttc_clockevent
18: 230216 230797 GIC-0 29 Edge twd
19: 0 0 GIC-0 37 Level arm-pmu
20: 0 0 GIC-0 38 Level arm-pmu
21: 43 0 GIC-0 39 Level f8007100.adc
24: 0 0 GIC-0 35 Level f800c000.ocmc
26: 167767 0 GIC-0 58 Level e0006000.spi
27: 15 0 GIC-0 51 Level e000d000.spi
@regymm
regymm / openwifi fosdem-11ag log
Created November 30, 2021 06:59
Verbose log captured after running ~/openwifi/fosdem-11ag.sh, there was no more openwifi-related messages after waiting for a while.
sdr,sdr openwifi_prepare_multicast
sdr,sdr openwifi_configure_filter MON 0 M_BCN 1 BST0 1 BST1 1 UST 1 PB_RQ 1 PS_PL 1 O_BSS 0 CTL 0 BCN_PRP 0 PCP_FL 0 FCS_FL 0 ALL_MUT 1
sdr,sdr openwifi_remove_interface vif idx 0
sdr,sdr openwifi_stop: rfkill radio off
sdr,sdr openwifi_stop: dropped channel dma4chan1
sdr,sdr openwifi_stop: dropped channel dma3chan0
sdr,sdr openwifi_stop
sdr,sdr openwifi_start: rfkill radio on
sdr,sdr openwifi_start: ad9361_ctrl_outs_setup en_mask 0xff index 0x16
sdr,rx_intf hw_init mode 2
@regymm
regymm / openwifi iwscan log
Last active November 30, 2021 06:59
2 iwlist scans with verbose messages. First reported no results. Second showed my wifi spot at 5200MHz -50dBm (line 163)
sdr,sdr openwifi_config changed flag 00000100
sdr,sdr openwifi_prepare_multicast
sdr,sdr openwifi_configure_filter MON 0 M_BCN 0 BST0 1 BST1 1 UST 1 PB_RQ 1 PS_PL 1 O_BSS 0 CTL 0 BCN_PRP 1 PCP_FL 0 FCS_FL 0 ALL_MUT 1
sdr,sdr openwifi_tx: 73bytes ht0 10M FC0040 DI0000 addr1/2/3:ffffffffffff/6655443322d0/ffffffffffff SC0290 flag4001201e retr1 ack0 prio0 q0 wr40 rd39
sdr,sdr openwifi_tx_interrupt: tx_result 00 prio0 wr41 rd40 num_rand_slot 0 cw 0
sdr,sdr ad9361_rf_set_channel 2417M rssi_correction 153 (change flag 1) fpga_lbt_th 150 (auto 150 static 0)
sdr,sdr openwifi_tx: 73bytes ht0 10M FC0040 DI0000 addr1/2/3:ffffffffffff/6655443322d0/ffffffffffff SC02a0 flag4001201e retr1 ack0 prio0 q0 wr41 rd40
sdr,sdr openwifi_tx_interrupt: tx_result 00 prio0 wr42 rd41 num_rand_slot 0 cw 0
sdr,sdr ad9361_rf_set_channel 2422M rssi_correction 153 (change flag 1) fpga_lbt_th 150 (auto 150 static 0)
sdr,sdr openwifi_tx: 73bytes ht0 10M FC0040 DI0000 addr1/2/3:ffffffffffff/6655443322d0/ffffffffffff SC02b0 flag4001201
❯ make
cd build && symbiflow_synth -t cache_cpu -v ../cache_cpu.v -d zynq7 -p xc7z010clg400-1 -x ../../../rtl/board-specific/squeakyboard/squeakyboard-symbi.xdc
-t
adding top
cache_cpu
-v
../cache_cpu.v
-d
zynq7
-p
@regymm
regymm / gist:7fcdfade09dcef3710881462bd9b5e1f
Created November 28, 2021 03:49
fosdem-11ag log on PYNQSDR
root@analog:~# ./openwifi/fosdem-11ag.sh
hostapd: no process found
network-manager stop/waiting
num_arg 0
last_input xxxxxxxxx
test_mode 0
rmmod: ERROR: Module sdr is not currently loaded
rmmod: ERROR: Module tx_intf is not currently loaded
check tx_intf module is loaded or not
tx_intf is loaded!