Raspberry Pi 4
21 Sep 2020 00:35 #182998
by Bari
Replied by Bari on topic Raspberry Pi 4
You don't have to install using all the steps at JT's site anymore. There is a full working SDcard image on the wiki now.
LinuxCNC 2.8.0 Raspberry Pi OS based on Debian 10 Buster
www.linuxcnc.org/iso/linuxcnc-2.8.0-pi4.zip
Raspberry Pi 4 Uspace compatible with Mesa Ethernet and SPI interface boards.
A StepConfig app could be written for Rpi4.
LinuxCNC 2.8.0 Raspberry Pi OS based on Debian 10 Buster
www.linuxcnc.org/iso/linuxcnc-2.8.0-pi4.zip
Raspberry Pi 4 Uspace compatible with Mesa Ethernet and SPI interface boards.
A StepConfig app could be written for Rpi4.
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
21 Sep 2020 05:09 #183066
by partec
Replied by partec on topic Raspberry Pi 4
thank you Bari, what does this exactly mean, please, a StepConfig app could be written for Rpi4?
Please Log in or Create an account to join the conversation.
21 Sep 2020 05:47 #183068
by Bari
Replied by Bari on topic Raspberry Pi 4
For x86 we have linuxcnc.org/docs/html/config/stepconf.html
Stepconf is a program that generates configuration files for LinuxCNC for a specific class of CNC machine: those that are controlled via a standard parallel port, and controlled by signals of type step & direction.
Stepconf is installed when you install LinuxCNC and is in the CNC menu.
A similar app could be written for the Rpi to configure GPIO's and test them.
Stepconf is a program that generates configuration files for LinuxCNC for a specific class of CNC machine: those that are controlled via a standard parallel port, and controlled by signals of type step & direction.
Stepconf is installed when you install LinuxCNC and is in the CNC menu.
A similar app could be written for the Rpi to configure GPIO's and test them.
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
21 Sep 2020 06:37 - 22 Sep 2020 07:41 #183074
by partec
Replied by partec on topic Raspberry Pi 4
Yes, thank you, this Stepconf i know.
I am looking for something like
erste.de/rasPiCat.html
how to configure Raspberry PI4 GPIO to use it as it is like the parallel ports, say ini and hal configuration
I am looking for something like
erste.de/rasPiCat.html
how to configure Raspberry PI4 GPIO to use it as it is like the parallel ports, say ini and hal configuration
Last edit: 22 Sep 2020 07:41 by partec.
Please Log in or Create an account to join the conversation.
21 Sep 2020 15:50 #183157
by Bari
Replied by Bari on topic Raspberry Pi 4
Turned off GPU accel and video4linux and with a 100,000nS servo thread latency is <25,000nS after several hours, but without playing a video.
Kernel 4.19.71, the one that comes with the Rpi4 2.8 img on the LCNC website.
www.linuxcnc.org/iso/linuxcnc-2.8.0-pi4.zip
Video is limited to 1920x1080. Overclocked to 2.1Ghz, isolcpus=1,2,3, idle=poll
With video playback latency jumps to 102,000nS after a few seconds. Video is choppy.
A USB GPU might work well enough with the Rpi4. Will try that soon.
We had Xenomai on the allwinners 6 years ago (cubieboards) at 40,000 worst case while playing videos.
Kernel 4.19.71, the one that comes with the Rpi4 2.8 img on the LCNC website.
www.linuxcnc.org/iso/linuxcnc-2.8.0-pi4.zip
Video is limited to 1920x1080. Overclocked to 2.1Ghz, isolcpus=1,2,3, idle=poll
With video playback latency jumps to 102,000nS after a few seconds. Video is choppy.
A USB GPU might work well enough with the Rpi4. Will try that soon.
We had Xenomai on the allwinners 6 years ago (cubieboards) at 40,000 worst case while playing videos.
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
21 Sep 2020 16:08 #183161
by AgentWD40
I'm curious, is this rpi distro 64 bit?
Replied by AgentWD40 on topic Raspberry Pi 4
You don't have to install using all the steps at JT's site anymore. There is a full working SDcard image on the wiki now.
LinuxCNC 2.8.0 Raspberry Pi OS based on Debian 10 Buster
www.linuxcnc.org/iso/linuxcnc-2.8.0-pi4.zip
Raspberry Pi 4 Uspace compatible with Mesa Ethernet and SPI interface boards.
A StepConfig app could be written for Rpi4.
I'm curious, is this rpi distro 64 bit?
Please Log in or Create an account to join the conversation.
21 Sep 2020 20:00 #183176
by Bari
Replied by Bari on topic Raspberry Pi 4
It's 32bit.
Run "uname -m" to confirm. If it says aarch64 then it is 64 bit. If it says armv7l then it is 32 bit.
If you want 64b I'd start with github.com/sakaki-/gentoo-on-rpi-64bit
Bootable 64-bit Gentoo image for the Raspberry Pi 4 Model B, and Pi 3 B and B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera & h/w codec support, profile 17.0, weekly-autobuild binhost
Run "uname -m" to confirm. If it says aarch64 then it is 64 bit. If it says armv7l then it is 32 bit.
If you want 64b I'd start with github.com/sakaki-/gentoo-on-rpi-64bit
Bootable 64-bit Gentoo image for the Raspberry Pi 4 Model B, and Pi 3 B and B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera & h/w codec support, profile 17.0, weekly-autobuild binhost
The following user(s) said Thank You: AgentWD40
Please Log in or Create an account to join the conversation.
23 Sep 2020 00:42 #183363
by Bari
Replied by Bari on topic Raspberry Pi 4
To turn off hardware acceleration on the Rpi4:
To turn off software rendering and go back to hardware acceleration:
A copy of the kernel module blacklist file is also attached.
- Download and copy this kernel module blacklist file pastebin.pl/view/2f57585f to your /rootfs/etc/modprobe.d/
- Reboot and you should be software rendering now.
To turn off software rendering and go back to hardware acceleration:
- Remove the kernel module blacklist file from your /rootfs/etc/modprobe.d/ directory.
- Reboot and you should be back to hardware rendering.
A copy of the kernel module blacklist file is also attached.
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
23 Sep 2020 00:52 #183364
by partec
Replied by partec on topic Raspberry Pi 4
thank you for all your effort!
Please Log in or Create an account to join the conversation.
23 Sep 2020 03:31 #183384
by Bari
Replied by Bari on topic Raspberry Pi 4
We were using isolcpus=1,2,3, idle=poll with software rendering.
I haven't tried testing software rendering with just isolcpus=3, idle=poll and the core clock speed lower. Theoretically isolcpus=3 should keep RT on the highest core which is 3 (counting up from 0). And this should make cores 0, 1 and 2 available for software rendering and non-RT.
Somebody also mentioned that force_turbo=1 does not actually keep the cores at max frequency when the core gets warmer. So it might still speed step/throttle cpu core speed even though we are asking for max speed at all times. Keeping the max core speed lower might keep it from throttling even though we told the cpu not to.
I haven't tried testing software rendering with just isolcpus=3, idle=poll and the core clock speed lower. Theoretically isolcpus=3 should keep RT on the highest core which is 3 (counting up from 0). And this should make cores 0, 1 and 2 available for software rendering and non-RT.
Somebody also mentioned that force_turbo=1 does not actually keep the cores at max frequency when the core gets warmer. So it might still speed step/throttle cpu core speed even though we are asking for max speed at all times. Keeping the max core speed lower might keep it from throttling even though we told the cpu not to.
The following user(s) said Thank You: partec
Please Log in or Create an account to join the conversation.
Time to create page: 0.135 seconds