Preparing native Raspberry Pi OS for LinuxCNC

More
2 years 8 months ago #294494 by rodw
Any kernel parameters can be set here
github.com/rodw-au/rpi-img-builder-lcnc/...rscripts/uscripts#L6
Any kernel compile time settings can be set in menuconfig and then the  defconfig file can be saved for future compiles.

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

More
2 years 8 months ago #294546 by ago_tm
Thank you cornholio and rodw for your answers!
- About the SD Card and I decided to think that it was some troubles with SD partition and just taken another one, if it will be reproduced - I'll dig it deeper.

- I understand the idea of selecting kernel-and-patch consistency, in my actual test I try to take fresh kernel 6.1.77 and corresponding RT patch 77-rt24.

I also excited about the way of installing additional packages from standard Debian sources as well as from additional using userscripts.

rodw, I also would suggest a small fix to support the spaces in full name, otherwise someone will receive something like that (example for full name "Andrey CNC"):
+ adduser ago --gecos Andrey CNC --disabled-password
adduser: The user `ago' does not exist.

As I understand it is placed in two places:
* github.com/rodw-au/rpi-img-builder-lcnc/...ccount#L12C29-L12C36
* github.com/rodw-au/rpi-img-builder-lcnc/.../scripts/stage2#L112
(Not sure about the correct fix, I am not very experienced with bash yet. I tried to fix it with '${NAME}' but just received name ${NAME} :)
I am very excited to the way you did this image builder!

cornholio, you said that you did something similar to my experiment with the original Raspberry Pi OS image. I slightly confused with my tutorial at the early beginning of this thread. Nevertheless I did it once, I can not repeat it anymore... Not sure what the problem is, unfortunately screen shows very fast several red lines in the console during the boot and then I see the only black screen. Did you posted your steps somewhere? I I will be very pleased if you could briefly take a look at my solution and find problems there if any.

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

More
2 years 8 months ago #294579 by Cant do this anymore bye all
I installed the kernel using packages & info here
github.com/kdoren/linux/wiki/Installatio...ge-(Raspberry-Pi-OS)

then I used the following to prevent the kernel being upgraded
sudo apt-mark hold linux-image
sudo apt-mark hold linux-headers

reboot
used this
www.linuxcnc.org/linuxcnc-install.sh

then installed linuxcnc-uspace-dev

Seemed to work fine
The following user(s) said Thank You: ago_tm

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

More
2 years 8 months ago #294586 by rodw
If you type sudo menu-config, you should be able to edit your username and password and other settings in a graphical environment. Refer the screen dump in the read.me on my repo.
The following user(s) said Thank You: ago_tm

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

More
2 years 8 months ago #294807 by ago_tm
just a brief status of my experiments...

I spent several days trying to setup the feasible VNC server on the Debian 12 LinuxCNC image but unfortunately looks like I can't. The only successful result was reached with x11vnc, but jitter grew up to ~280 μs (280,000 ns) just after I run x11vnc process (even with no connections).

I also tried to install there wayvnc like on raspberry OS, but debian sources contains too old version 0.5xx. On raspberry it is 0.8xx RC and several days ago they released regular 0.8. But I didn't understand how to resolve the dependency hell with all the required packages...

Will try to use Rod's toolchain to prepare the image based on the Raspberry Pi OS — I'm really loved in the way how can I customize all the required packages and appearance before the image has been flashed.

If someone resolved the lightsweight enough VNC server on Debian, I would be pleased to take a look. Thanks,

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

More
2 years 8 months ago #294809 by Cant do this anymore bye all
Rods tool chain creates a Debian based image, not a Raspberry Pi OS based image. Whilst the are similar there are some differences, you lose some of the customizations that Raspberry Pi Foundation has.
On my Raspberry Pi based image I used this tutorial:
pimylifeup.com/raspberry-pi-vnc-server/

Can't remember if I checked latency, if I did it doesn't stick in my mind there were any latency issues. One thing I forgot to add is I changed from the wayland backend to the X11 backend using raspi-config. The X11 layer in wayland was very very slow in some of the tests I tried.
The following user(s) said Thank You: ago_tm

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

Time to create page: 0.261 seconds
Powered by Kunena Forum