widgetlords / libwlmio

https://wlmio.com
MIT License
1 stars 2 forks source link

Incompatibility with updated OS and software versions #2

Open shawnferry opened 7 months ago

shawnferry commented 7 months ago

For various reasons notably including a desire to easily use an NVME drive we are targeting the Raspberry Pi 5 in our testing.

We are trying to use:

Installed via the 1.2.2 deb with modified dts and locally compiled python3.9 loading fail with: *** SystemError: Failed to initialize libwlmio

For RPI5

[64762.230168] OF: resolver: node label 'uart5' not found in live devicetree symbols table
[64762.238187] OF: resolver: overlay phandle fixup failed: -22

I've tried a naive change in wlmio.dts but I'm unable to cleanly build/package a test release. Pointing uart5 -> 4 and uart3 -> 2

https://github.com/raspberrypi/firmware/blob/40ac9ca411ba2a0947061712a379a43579a33c0c/boot/overlays/README#L4735-L4744

Post change dtoverlay emits the following on load

[   50.296936] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/spi@50000/status
[   50.308202] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/spi@50000/spidev@0/status
[   50.320257] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/i2c@74000/#address-cells
[   50.332169] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/i2c@74000/#size-cells
[   50.343817] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/i2c@74000/status
[   50.355033] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/serial@38000/pinctrl-names
[   50.367140] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/serial@38000/pinctrl-0
[   50.378888] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/serial@38000/status
[   50.390361] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/serial@40000/pinctrl-names
[   50.402442] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/serial@40000/pinctrl-0
[   50.414183] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/serial@40000/status
[   50.425745] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/gpio@d0000/pinctrl-names
[   50.437654] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /axi/pcie@120000/rp1/gpio@d0000/pinctrl-0
[   50.451984] pl011-axi 1f00038000.serial: cts_event_workaround enabled
[   50.452121] 1f00038000.serial: ttyAMA2 at MMIO 0x1f00038000 (irq = 148, base_baud = 0) is a PL011 AXI
[   50.452567] pl011-axi 1f00040000.serial: cts_event_workaround enabled
[   50.452663] 1f00040000.serial: ttyAMA4 at MMIO 0x1f00040000 (irq = 150, base_baud = 0) is a PL011 AXI
[   50.471692] dw_spi_mmio 1f00050000.spi: DMA init failed
[   50.483164] CAN device driver interface
[   50.487474] rtc-ds1307 1-006f: registered as rtc1

For Ubuntu/Debian/Pi OS

/boot has been moved to /boot/firmware

Package building fails with

dh_usrlocal: error: debian/libwlmio/usr/local/lib/python3.11/dist-packages/_wlmio.cpython-311-aarch64-linux-gnu.so is not a directory
make: *** [debian/rules:3: binary] Error 25

As a fallback I will try with Ubuntu 22.04

shawnferry commented 7 months ago

My in process changes here #3

optlink commented 6 months ago

We don't currently support Ubuntu but they may change in the near future. We definitely want to fix the problem with the overlay but we'll have to source a Pi 5 for testing. I'll get back to you.

optlink commented 4 months ago

I have a Pi 5 in my hands and am working through the various compatibility problems now.