LinuxCNC on Raspberry Pi 5

More
1 year 9 months ago #317951 by Cant do this anymore bye all
Also sometimes users want something that doesn’t work within Linuxcnc’s model.
Mostly this will boil down to USB motion cards, usually ones the Mach supports and using Linuxcnc to send gcode to an external board. Most are accepting this is not supported and not in the pipe line, once every often someone will spit the dummy and throw all their toys out of the pram.
For other support channels you may want to jump over to the Linuxcnc homepage and see what the other options are and links to said options.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #317952 by resmond
Replied by resmond on topic LinuxCNC on Raspberry Pi 5
Now that I have my Pi 5 / Mesa 7i95T basically working (still re-reading Docs and tweaking ini/hal configs) I do like it and don't regret starting with it.

I faced the most challenges from the following:
  • Very rusty on Linux distro's, package managers and Kernel versions
  • The Docs, Form and Wiki are AWESOME but it's often a challenge to remember where something was documents to find and re-read the details once I hit a problem.  (Fortunately Google search will usually find Forum threads for error outputs.
  • Since the Pi4/5 are ARM based its more challenging to find Deb packages and APT sources for certain things.
  • I always started with the LinuxCNC Debian imaging for all my builds - then would screw it up from there.
I am planning to build up an Intel platform machine next to smooth out some of the ARM related challenges.  If I had it to do over I would have chosen Intel.

Here are a few of the options I'm looking at and I've used other boards for other projects.

LattePanda Mu ($105 on sale)
    A Micro x86 Compute Module (N100 CPU,8GB RAM,64GB eMMC)
     On DfRobot

Lite Carrier Board for LattePanda Mu Compute Module ($39)
(USB 3.0, Ethernet, PCIe 3.0, M.2 M key, HDMI)
     On DfRobot

The carrier has two PCIe slots (1x/3x) but most people will need to add wifi Intel M.2 Wifi ($19)
     On Amazon

So that's around $170 plus shipping then you have to choose a DC supply and this one is really fast if that matters.

LattePanda 2 Delta 432
A Pocket-sized Powerful Windows/Linux Single Board Computer (4GB RAM/32GB eMMC)
     On DfRobot

M.2 PCIe card riser ($30)  On Amazon
This one comes with WiFi so it just needs power. It has less memory than the Mu and needs the riser to plug in full sized PCIe cards but it comes with a fan.

LattePanda V1 (~160 on sale) On DfRobot
The Smallest Windows 10 Single Board Computer (Unactivated, 4GB/64GB)
Both the V1 and Delta 432 come with a built in Arduino with standard HAT connections but since this one does not have a PCIe compatible M.2 using PCI Mesa cards would be out. It would be Ethernet only.

I think it would be facinating to see what the built in Arduino might make possible for controlling odds and ends using the HAT boards.

 

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #317955 by TomAlborough
Hi resmond,

Thank you for the summary of your interactions with the Pi 5 world and its parallels. It sounds like a win.

Hi cornholio,

GitHub/LinuxCNC certainly has a lot going on including "issues". Let me ask some questions there about helping.

Thanks,
Tom

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #317959 by Cant do this anymore bye all
From memory the arduino is connected via a USB serial port so it’s very limited.

If you are looking at small form factor x86 based boards the Odroid h4 is probably worth a look. I’ve been using a h2 for years now, one of the good things about it is the dual Ethernet ports.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #318043 by rodw
Replied by rodw on topic LinuxCNC on Raspberry Pi 5
If your interest is in kernels and the pi 5, the Linuxcnc builder (for the Pi 5 and 4b)
github.com/LinuxCNC/rpi-img-builder-lcnc
Is a fork of my repo
github.com/rodw-au/rpi-img-builder-lcnc/tree/linuxcnc-2.9.3
Which in turn is a fork of
github.com/pyavitz/rpi-img-builder
with Linuxcnc and the PREEMPT_RT kernel installed

Note the builder cross compiles on a normal PC and builds the official Pi kernel, then wraps Debian around it before installing Linuxcnc and a few other goodies in this script  github.com/rodw-au/rpi-img-builder-lcnc/....3/files/userscripts

I got as far as merging the latest upstream code into my  master over Christmas but have not pushed it to my 2.9.3 branch as the default kernel has rolled forward from 6.1 used by Debian Bookwoem to 6.6
It's quite a business finding a Pi kernel commit that agrees with the PREEMPT_RT patch kernel version. 
The latest upstream source now supports the 6.12 kernel so it would be good to build for it as there is no need to patch the kernel anymore
ref:  github.com/rodw-au/rpi-img-builder-lcnc/.../patches/userpatches
(but you still need to set the fully preemptible kernel in  menuconfig)
Cornholio has asked in another thread for changes to config.txt to support spi so there is a nice kernel related project here.
 

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #318047 by Cant do this anymore bye all
Just created a Pull Request for the change required. So hopefully that can be ticked off the list.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum