LinuxCNC / linuxcnc-live-build

8 stars 8 forks source link

RaspberryPi .iso - collection of ideas/concerns #12

Closed smoe closed 1 year ago

smoe commented 1 year ago

I just thought I bring this up to collect what comes to mind.

Other bits and pieces?

sebastiankuzminsky commented 1 year ago

I recently played around with the Debian (not Raspberry PI OS, formerly known as Raspbian) bookworm aarch64 RPi4 image (2022-08-08) from https://raspi.debian.net/. It's built from https://salsa.debian.org/raspi-team/image-specs.

The good:

The bad:

smoe commented 1 year ago

I did some googleing and the entertaining blog entry https://waldorf.waveform.org.uk/2021/the-pins-they-are-a-changin.html pointed me to http://abyz.me.uk/lg/py_lgpio.html .

andypugh commented 1 year ago

PCW has noted that you need to use ntpd rather than timesyncd https://forum.linuxcnc.org/38-general-linuxcnc-questions/46340-jittery-stepper-pulses-with-mesa-7i76e-solved?start=10#256153

SebKuzminsky commented 1 year ago

https://waldorf.waveform.org.uk/2021/the-pins-they-are-a-changin.html

This points to gpiod, which is available in Debian and which does indeed let you twiddle the GPIO pins from userspace, so that's a good step forward.

But it doesn't help with the missing SPI - there's still no way to enable the SPI uart as far as i can see.

smoe commented 1 year ago

Please also follow that link to the lg library, this https://github.com/joan2937/lg I understand to be the github repository of it, which states to also be supporting SPI. I have not found it on Debian, but Ubuntu has it as https://launchpad.net/ubuntu/+source/lg-gpio .

SebKuzminsky commented 1 year ago

I looked briefly at that and I think I just calls open() on /dev/spidev, which doesn't do the trick.

The problem is that /dev/spidev* only exists if the device-tree says it should exist, and the dts in the kernel.org kernel says it should not exist. The raspbian kernel has extensive changes and additions to the dts, and changes to the kernel itself to allow loading dtb overlays at runtime, to do things like enable the SPI uarts.

rodw-au commented 1 year ago

This issue can be closed because we have a seperate repo for the Raspberry pi that addressses all of the concerns mentioned. Ref: https://github.com/LinuxCNC/rpi-img-builder-lcnc

Recommend this issue be closed