Tnx! Johan, Great work.
I tried to build the PIO@RP1@PI-5 driver ‘radioberry.ko’.
but my skills are not very good, so I had to learn from my Copilot teacher...
Tonight, ‘radioberry.ko’ has not been built yet.
Running summary:
First, I created the /home/pi/git/rp1-driver/Module.symvers and rp1-pio.ko), which is written in SBC/rpi-5/device_driver/pio-mode/driver/Makefile.
The driver was obtained from the official Raspberry Pi Linux kernel repository.
https://github.com/raspberrypi/linux Actually, I git cloned it from Johan's github below. (raspberrypi/linux:rpi-6.12.y) due to a modification in rp1-pio.c
-> Pull request #6918 rp1-pio config and transfer not right synced. In raspberrypi/linux;· pa3gsb opened on Jun 22
cd ~/git
Build radioberry driver.
$ cd ~/tmp/rpi-5_driver_250723/device_driver/pio-mode/driver/src/
$ make clean
$ make
- I had the following error and tried all Sunday, but still no radioberry.ko with the error
pi@raspi5:~ $ ls -lrt /lib/modules/6.6.74+rpt-rpi-2712/kernel/drivers/misc
-rw-r--r-- 1 root root 5668 Jan 28 02:19 ws2812-pio-rp1.ko.xz
-rw-r--r-- 1 root root 11124 Jan 28 02:19 rp1-pio.ko.xz <--- Jan 28 rp1-pio.ko !
-rw-r--r-- 1 root root 6460 Jan 28 02:19 bcm2835_smi.ko.xz
drwxr-xr-x 2 root root 4096 Mar 26 13:50 ti-st
drwxr-xr-x 2 root root 4096 Mar 26 13:50 eeprom <--- Mar 26 eeprom !;
- Only rp1-pio was built separately, but ~/git/linux/drivers/misc/Module.symvers was not generated.
- EXPORT symbol "rp1_pio_sm_buffer_virt" version generation failed
- When building `rp1-pio.c`, `PIO_IOC_SM_CONFIG_XFER32' macro not visible.
Attached gateware change pin (rx/tx) for RPi5_pr1-pio in pins.tcl file.
- control the radio via SPI
- RX stream via PIO sm and DMA uses 6 IO pins.
- TX stream via PIO sm and DMA uses 3 IO pins.
// Yado-san, jg1twp
2025年7月24日木曜日 20:45:40 UTC+9 pa3gsb: