Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests-first impressions
The Pi image is forked from here https://github.com/pyavitz/rpi-img-builder It is based on the official Raspberry Pi kernel https://github.com/raspberrypi/linux (rpi-6.1-y branch ) with Debian Bookworm wrapped around it. It uses a cross compilation environment so it gets built on x86 hardware. It has a good scripting environment that allows us to install linuxcnc as part of the build process.. The download page desperately needs a paragraph outlining the username (cnc) and password (cnc) and the need to run sudo menu-config to complete the build. I have no idea where the source is for that page or I would do a PR. Builds for both the pi4b/400 and the pi5 are supported by setting the board parameter at build time. The Pi4 version supports the gpiod driver which is documented. https://linuxcnc.org/docs/stable/html/drivers/hal_gpio.html Preempt_rt patches are supported but the challenge here is always to match the kernel being built with the patched RT version. We can specify the commit to pull so we can match to the RT patch but currently, the latest kernels that have been patched have not been merged into the pi source. As far as spi and gpio on the pi5 go, that board was never in scope. It is up to the devs to devise appropriate drivers as its out of scope of the installer. Rod Webster *1300 896 832* +61 435 765 611 Vehicle Modifications Network www.vehiclemods.net.au On Thu, 28 Dec 2023 at 14:44, gene heskett wrote: > On 12/27/23 22:33, Rob M wrote: > > Gene are you after a PC image or a Pi image ? > rpi4 here. > > Or have you made a type with the amd64 bit ? > No, arm64. > > > > I must admit with the "role your image utility" rod uses the locale > things > > is a bit messy & seems to do what it wants. > > I've made images usingthe same method and it's felt a bit "hit & miss" > > getting the locale thing correct. Half the issue is a that you expect it > to > > work like an RPi image but it's not based on any of the RPi images by > > "The Foundation", tho the kernel and some utilities come from there there > > does seem to be some "magic sauce" missing. > > Yes they are very against anything realtime. Mention it the 3rd time and > get banned from thier forum for life. So when I first did this in about > late 2017 on an rpi3b, I built my own 4.19-rt kernel but had no clue how > to install it. So I pulled a tarball together that was only the lib and > /boot stuff from those 2 directories of the build, which I actually did > on the pi. The plain, no gzip tarball is about 28 megs, and I installed > it by mounting the sd-card in a reader, and using mc, copied the lib > subdir of the tarball to the /lib of the card, and the same with the > /boot stuff. Put the card back in the pi's socket, it booted my kernel & > ran that way till the rpi4 came out, 2 years or so. Since I do my > building on an SSD, much faster than the SD card and it mounted to the > rpi4 with a usb to sata cable, installing on the rpi4 was essentially a > wash, rinse and repeat but much faster with the 4's usb 3 sockets. That > was in Feb 2020. > > Its been running an updated master of linuxcnc since. And doing stuff > it could not do when assembled in Chicago in the late '40's. > But the image now on the card has the first 2.9 release and I'd like to > go back to master & continue with what I call the canary in the coal > mine duties for linuxcnc. When I get that done, trixie will probably be > out, and the buster on my 3 wintel machines is getting stale so I'll > bring them up to trixie, if I don't miss roll call first, a possibility > since my next b-day will be the 90th. Got hardware keeping me alive now, > pacemaker and a TAVR valve in my heart. 5 or 6 years left on each ;o)> > > > > On Thu, Dec 28, 2023 at 1:53 PM gene heskett > wrote: > > > >> On 12/27/23 20:18, andy pugh wrote: > >>> On Thu, 28 Dec 2023 at 01:15, andy pugh wrote: > >>> > > >> > http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_raspberry_pi_image > >>> > >>> Sorry, the link to the image is higher up the same page: > >>> > >> > http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_normal_download > >>> > >> Sorry, I went there and not wanting to waste the pi's card, I installed > >> zsync on this machine too, then copy/pasted the download line, but it > >> quickly failed: > >> gene@coyote:~$ zsync > >> https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso > >> failed on url > https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso > >> could not read control file from URL > >> https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso > >> > >> What do I do next? > >> > >> Thanks all > >> > >> Cheers, Gene Heskett. > >> -- > >> "There are four boxes to be used in defense of liberty: > >>soap, ballot, jury, and ammo. Please use in that order." > >> -Ed Howdershelt (Author, 1940) > >> If we desire respect for the law, we must first make the law > respectable. > >>- Louis D. Brandeis >
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests-firstimpressions
On 12/27/23 23:44, gene heskett wrote: On 12/27/23 22:33, Rob M wrote: Gene are you after a PC image or a Pi image ? rpi4 here. Or have you made a type with the amd64 bit ? No, arm64. I must admit with the "role your image utility" rod uses the locale things is a bit messy & seems to do what it wants. I've made images usingthe same method and it's felt a bit "hit & miss" getting the locale thing correct. Half the issue is a that you expect it to work like an RPi image but it's not based on any of the RPi images by "The Foundation", tho the kernel and some utilities come from there there does seem to be some "magic sauce" missing. Yes they are very against anything realtime. Mention it the 3rd time and get banned from thier forum for life. So when I first did this in about late 2017 on an rpi3b, I built my own 4.19-rt kernel but had no clue how to install it. So I pulled a tarball together that was only the lib and /boot stuff from those 2 directories of the build, which I actually did on the pi. The plain, no gzip tarball is about 28 megs, and I installed it by mounting the sd-card in a reader, and using mc, copied the lib subdir of the tarball to the /lib of the card, and the same with the /boot stuff. Put the card back in the pi's socket, it booted my kernel & ran that way till the rpi4 came out, 2 years or so. Since I do my building on an SSD, much faster than the SD card and it mounted to the rpi4 with a usb to sata cable, installing on the rpi4 was essentially a wash, rinse and repeat but much faster with the 4's usb 3 sockets. That was in Feb 2020. Its been running an updated master of linuxcnc since. And doing stuff it could not do when assembled in Chicago in the late '40's. But the image now on the card has the first 2.9 release and I'd like to go back to master & continue with what I call the canary in the coal mine duties for linuxcnc. When I get that done, trixie will probably be out, and the buster on my 3 wintel machines is getting stale so I'll bring them up to trixie, if I don't miss roll call first, a possibility since my next b-day will be the 90th. Got hardware keeping me alive now, pacemaker and a TAVR valve in my heart. 5 or 6 years left on each ;o)> So I goto linuxcnx.org & hunt up the 291 announcement, and the first thing I see when I find the build bot link is to install its key which is different foom the other one. But on execing the get key phrase, I'm greeted with: cnc@rpi4:/etc$ sudo apt-key adv --keyserver hkp://keys.openpgp.org --recv-key EF1B07FEE0EE663E Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). Executing: /tmp/apt-key-gpghome.xOf7G6JcDy/gpg.1.sh --keyserver hkp://keys.openpgp.org --recv-key EF1B07FEE0EE663E gpg: key EF1B07FEE0EE663E: new key but contains no user ID - skipped gpg: Total number processed: 1 gpg: w/o user IDs: 1 Reading the above its been deprecated, the man page agrees but offers NDA while the other man pages still say to use it. but no one has told the other apt man 8 pages. So how is this done now? On Thu, Dec 28, 2023 at 1:53 PM gene heskett wrote: On 12/27/23 20:18, andy pugh wrote: On Thu, 28 Dec 2023 at 01:15, andy pugh wrote: http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_raspberry_pi_image Sorry, the link to the image is higher up the same page: http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_normal_download Sorry, I went there and not wanting to waste the pi's card, I installed zsync on this machine too, then copy/pasted the download line, but it quickly failed: gene@coyote:~$ zsync https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso failed on url https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso could not read control file from URL https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso What do I do next? Thanks all Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers Cheers, Gene Heskett. Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests-first impressions
On 12/27/23 22:33, Rob M wrote: Gene are you after a PC image or a Pi image ? rpi4 here. Or have you made a type with the amd64 bit ? No, arm64. I must admit with the "role your image utility" rod uses the locale things is a bit messy & seems to do what it wants. I've made images usingthe same method and it's felt a bit "hit & miss" getting the locale thing correct. Half the issue is a that you expect it to work like an RPi image but it's not based on any of the RPi images by "The Foundation", tho the kernel and some utilities come from there there does seem to be some "magic sauce" missing. Yes they are very against anything realtime. Mention it the 3rd time and get banned from thier forum for life. So when I first did this in about late 2017 on an rpi3b, I built my own 4.19-rt kernel but had no clue how to install it. So I pulled a tarball together that was only the lib and /boot stuff from those 2 directories of the build, which I actually did on the pi. The plain, no gzip tarball is about 28 megs, and I installed it by mounting the sd-card in a reader, and using mc, copied the lib subdir of the tarball to the /lib of the card, and the same with the /boot stuff. Put the card back in the pi's socket, it booted my kernel & ran that way till the rpi4 came out, 2 years or so. Since I do my building on an SSD, much faster than the SD card and it mounted to the rpi4 with a usb to sata cable, installing on the rpi4 was essentially a wash, rinse and repeat but much faster with the 4's usb 3 sockets. That was in Feb 2020. Its been running an updated master of linuxcnc since. And doing stuff it could not do when assembled in Chicago in the late '40's. But the image now on the card has the first 2.9 release and I'd like to go back to master & continue with what I call the canary in the coal mine duties for linuxcnc. When I get that done, trixie will probably be out, and the buster on my 3 wintel machines is getting stale so I'll bring them up to trixie, if I don't miss roll call first, a possibility since my next b-day will be the 90th. Got hardware keeping me alive now, pacemaker and a TAVR valve in my heart. 5 or 6 years left on each ;o)> On Thu, Dec 28, 2023 at 1:53 PM gene heskett wrote: On 12/27/23 20:18, andy pugh wrote: On Thu, 28 Dec 2023 at 01:15, andy pugh wrote: http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_raspberry_pi_image Sorry, the link to the image is higher up the same page: http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_normal_download Sorry, I went there and not wanting to waste the pi's card, I installed zsync on this machine too, then copy/pasted the download line, but it quickly failed: gene@coyote:~$ zsync https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso failed on url https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso could not read control file from URL https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso What do I do next? Thanks all Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests -first impressions
Gene are you after a PC image or a Pi image ? Or have you made a type with the amd64 bit ? I must admit with the "role your image utility" rod uses the locale things is a bit messy & seems to do what it wants. I've made images usingthe same method and it's felt a bit "hit & miss" getting the locale thing correct. Half the issue is a that you expect it to work like an RPi image but it's not based on any of the RPi images by "The Foundation", tho the kernel and some utilities come from there there does seem to be some "magic sauce" missing. On Thu, Dec 28, 2023 at 1:53 PM gene heskett wrote: > On 12/27/23 20:18, andy pugh wrote: > > On Thu, 28 Dec 2023 at 01:15, andy pugh wrote: > > > >> > http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_raspberry_pi_image > > > > Sorry, the link to the image is higher up the same page: > > > http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_normal_download > > > Sorry, I went there and not wanting to waste the pi's card, I installed > zsync on this machine too, then copy/pasted the download line, but it > quickly failed: > gene@coyote:~$ zsync > https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso > failed on url https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso > could not read control file from URL > https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso > > What do I do next? > > Thanks all > > Cheers, Gene Heskett. > -- > "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. Please use in that order." > -Ed Howdershelt (Author, 1940) > If we desire respect for the law, we must first make the law respectable. > - Louis D. Brandeis > > > > ___ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests-first impressions
On 12/27/23 21:49, Rod Webster wrote: @gene, you can probably set the locale to your environment by typing: sudo menu-config ISTR doing that at first boot, but did locales again anyway, set everything to en-UTF8. sudo apt update still finishes up with: All packages are up to date. W: Skipping acquire of configured file '2.9-rt/source/Sources' as repository 'https://www.linuxcnc.org bookworm InRelease' does not seem to provide it (sources.list entry misspelt?) Can you post yours? I've looked at mine but don't see anything obvious. Thanks a bunch. Rod Webster *1300 896 832* +61 435 765 611 Vehicle Modifications Network www.vehiclemods.net.au On Thu, 28 Dec 2023 at 12:35, gene heskett wrote: On 12/27/23 16:50, Rod Webster wrote: You could try this image that contains preempt_rt for the Pi 5 (Linuxcnc 2.9.1) https://drive.google.com/file/d/1H_q0Ra-27ZDOhquvq179beUZQNVlex1f/view?usp=drive_link I don't have a Pi5 to test it but others say it worked. This is an updated image from our Raspberry Pi 4 one that is built for the newer Pi 5 CPU sudo apt upgrade should update to 2.9.2 I tried that with my rpi4 that is running your image, but I get this: W: GPG error: http://linuxcnc.org bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3CB9FD148F374FEF E: The repository 'http://linuxcnc.org bookworm InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Skipping acquire of configured file '2.9-rt/source/Sources' as repository 'https://www.linuxcnc.org bookworm InRelease' does not seem to provide it (sources.list entry misspelt?) I say its installed, I've done the install twice, but here is an ls -l of: cnc@rpi4:/etc/apt$ ls -l trusted.gpg.d/ total 84 -rw-r--r-- 1 root root 11861 Mar 28 2023 debian-archive-bookworm-automatic.asc -rw-r--r-- 1 root root 11873 Mar 28 2023 debian-archive-bookworm-security-automatic.asc -rw-r--r-- 1 root root 461 Mar 28 2023 debian-archive-bookworm-stable.asc -rw-r--r-- 1 root root 11861 Mar 28 2023 debian-archive-bullseye-automatic.asc -rw-r--r-- 1 root root 11873 Mar 28 2023 debian-archive-bullseye-security-automatic.asc -rw-r--r-- 1 root root 3403 Mar 28 2023 debian-archive-bullseye-stable.asc -rw-r--r-- 1 root root 11093 Mar 28 2023 debian-archive-buster-automatic.asc -rw-r--r-- 1 root root 11105 Mar 28 2023 debian-archive-buster-security-automatic.asc -rw-r--r-- 1 root root 1704 Mar 28 2023 debian-archive-buster-stable.asc which has no sign of that key, so where did the installer put it? That key 3CB9FD148F374FEF has been installed, twice. But I can't find it. uname -a sys: Linux rpi4.coyote.den 6.1.54-rt15 #1 SMP PREEMPT_RT Wed Sep 20 20:36:44 AEST 2023 aarch64 GNU/Linux Its latency-test is not as good as my old 4.19 something build but its plenty good enough to move my lathe nicely. But from the message, I found it in /usr/share/keyrings and put a copy in trusted* and now its offering me 19 updates. Which were all security related from debian but locale complained: locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory How to fix that? I don't have an /etc/locale but I do have these: -rw-r--r-- 1 root root2996 Jul 13 14:07 locale.alias -rw-r--r-- 1 root root9431 Oct 17 04:24 locale.gen but it recommends I run locale-gen, which returns very quickly w/o errors and does not generate anything in the locale directory, so I'll delete the directory I made. Done. And after all this I'm still bumfuzzled. And can't update linuxcnc. Thanks & Happy New Year All. Rod Webster *1300 896 832* +61 435 765 611 Vehicle Modifications Network www.vehiclemods.net.au On Thu, 28 Dec 2023 at 06:46, Sebastian Kuzminsky wrote: On 12/27/23 13:38, Steffen Möller via Emc-developers wrote: Gesendet: Mittwoch, 27. Dezember 2023 um 17:13 Uhr Von: "andy pugh" An: "EMC developers" Cc: "Steffen Möller" Betreff: Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions On Wed, 27 Dec 2023 at 15:20, Steffen Möller via Emc-developers wrote: My RPi5 arrived over Xmas and I just fired it up, was offered to install LinuxCNC directly from what we offer in Debian, and then ran latency tests. Graphics (as in video but also the extra art from your X interface when ALT-tabbing through your applications) have the most effect on the latency. I/O from the SD does not seem to affect it too much. The numbers you show are _awful_ though? It doesn't look like the LinuxCNC installation has installed the correct kernel. (I seem to recall that I had to do a fair bit of fiddling to make it happen, it's a Pi thing) Rebooted with Linux version
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests -first impressions
On 12/27/23 20:18, andy pugh wrote: On Thu, 28 Dec 2023 at 01:15, andy pugh wrote: http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_raspberry_pi_image Sorry, the link to the image is higher up the same page: http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_normal_download Sorry, I went there and not wanting to waste the pi's card, I installed zsync on this machine too, then copy/pasted the download line, but it quickly failed: gene@coyote:~$ zsync https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso failed on url https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso could not read control file from URL https://www.linuxcnc.org/iso/linuxcnc_2.9.1-amd64.hybrid.iso What do I do next? Thanks all Cheers, Gene Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests -first impressions
@gene, you can probably set the locale to your environment by typing: sudo menu-config Rod Webster *1300 896 832* +61 435 765 611 Vehicle Modifications Network www.vehiclemods.net.au On Thu, 28 Dec 2023 at 12:35, gene heskett wrote: > On 12/27/23 16:50, Rod Webster wrote: > > You could try this image that contains preempt_rt for the Pi 5 (Linuxcnc > > 2.9.1) > > > https://drive.google.com/file/d/1H_q0Ra-27ZDOhquvq179beUZQNVlex1f/view?usp=drive_link > > I don't have a Pi5 to test it but others say it worked. > > > > This is an updated image from our Raspberry Pi 4 one that is built for > > the newer Pi 5 CPU > > sudo apt upgrade should update to 2.9.2 > > > I tried that with my rpi4 that is running your image, but I get this: > W: GPG error: http://linuxcnc.org bookworm InRelease: The following > signatures couldn't be verified because the public key is not available: > NO_PUBKEY 3CB9FD148F374FEF > E: The repository 'http://linuxcnc.org bookworm InRelease' is not signed. > N: Updating from such a repository can't be done securely, and is > therefore disabled by default. > N: See apt-secure(8) manpage for repository creation and user > configuration details. > W: Skipping acquire of configured file '2.9-rt/source/Sources' as > repository 'https://www.linuxcnc.org bookworm InRelease' does not seem > to provide it (sources.list entry misspelt?) > I say its installed, I've done the install twice, but here is an ls -l of: > cnc@rpi4:/etc/apt$ ls -l trusted.gpg.d/ > total 84 > -rw-r--r-- 1 root root 11861 Mar 28 2023 > debian-archive-bookworm-automatic.asc > -rw-r--r-- 1 root root 11873 Mar 28 2023 > debian-archive-bookworm-security-automatic.asc > -rw-r--r-- 1 root root 461 Mar 28 2023 > debian-archive-bookworm-stable.asc > -rw-r--r-- 1 root root 11861 Mar 28 2023 > debian-archive-bullseye-automatic.asc > -rw-r--r-- 1 root root 11873 Mar 28 2023 > debian-archive-bullseye-security-automatic.asc > -rw-r--r-- 1 root root 3403 Mar 28 2023 > debian-archive-bullseye-stable.asc > -rw-r--r-- 1 root root 11093 Mar 28 2023 > debian-archive-buster-automatic.asc > -rw-r--r-- 1 root root 11105 Mar 28 2023 > debian-archive-buster-security-automatic.asc > -rw-r--r-- 1 root root 1704 Mar 28 2023 debian-archive-buster-stable.asc > > which has no sign of that key, so where did the installer put it? > > That key 3CB9FD148F374FEF has been installed, twice. But I can't find it. > > uname -a sys: > Linux rpi4.coyote.den 6.1.54-rt15 #1 SMP PREEMPT_RT Wed Sep 20 20:36:44 > AEST 2023 aarch64 GNU/Linux > > Its latency-test is not as good as my old 4.19 something build but its > plenty good enough to move my lathe nicely. > > But from the message, I found it in /usr/share/keyrings and put a copy > in trusted* and now its offering me 19 updates. Which were all security > related from debian but locale complained: > locale: Cannot set LC_CTYPE to default locale: No such file or directory > locale: Cannot set LC_MESSAGES to default locale: No such file or directory > locale: Cannot set LC_ALL to default locale: No such file or directory > > How to fix that? I don't have an /etc/locale but I do have these: > -rw-r--r-- 1 root root2996 Jul 13 14:07 locale.alias > -rw-r--r-- 1 root root9431 Oct 17 04:24 locale.gen > but it recommends I run locale-gen, which returns very quickly w/o > errors and does not generate anything in the locale directory, so I'll > delete the directory I made. Done. > > And after all this I'm still bumfuzzled. And can't update linuxcnc. > > Thanks & Happy New Year All. > > > > Rod Webster > > *1300 896 832* > > +61 435 765 611 > > Vehicle Modifications Network > > www.vehiclemods.net.au > > > > > > On Thu, 28 Dec 2023 at 06:46, Sebastian Kuzminsky > wrote: > > > >> On 12/27/23 13:38, Steffen Möller via Emc-developers wrote: > >>> > Gesendet: Mittwoch, 27. Dezember 2023 um 17:13 Uhr > Von: "andy pugh" > An: "EMC developers" > Cc: "Steffen Möller" > Betreff: Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests > >> - first impressions > > On Wed, 27 Dec 2023 at 15:20, Steffen Möller via Emc-developers > wrote: > > > My RPi5 arrived over Xmas and I just fired it up, was offered to > >> install LinuxCNC directly from what we offer in Debian, and then ran > >> latency tests. Graphics (as in video but also the extra art from your X > >> interface when ALT-tabbing through your applications) have the most > effect > >> on the latency. I/O from the SD does not seem to affect it too much. > > The numbers you show are _awful_ though? > > It doesn't look like the LinuxCNC installation has installed the > correct kernel. (I seem to recall that I had to do a fair bit of > fiddling to make it happen, it's a Pi thing) > >>> > >>> Rebooted with > >>> Linux version 6.1.0-rpi7-rpi-2712 (debian-ker...@lists.debian.org) > >> (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) > 2.40) > >> #1 SMP PREEMPT
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests -first impressions
On 12/27/23 16:50, Rod Webster wrote: You could try this image that contains preempt_rt for the Pi 5 (Linuxcnc 2.9.1) https://drive.google.com/file/d/1H_q0Ra-27ZDOhquvq179beUZQNVlex1f/view?usp=drive_link I don't have a Pi5 to test it but others say it worked. This is an updated image from our Raspberry Pi 4 one that is built for the newer Pi 5 CPU sudo apt upgrade should update to 2.9.2 I tried that with my rpi4 that is running your image, but I get this: W: GPG error: http://linuxcnc.org bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3CB9FD148F374FEF E: The repository 'http://linuxcnc.org bookworm InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Skipping acquire of configured file '2.9-rt/source/Sources' as repository 'https://www.linuxcnc.org bookworm InRelease' does not seem to provide it (sources.list entry misspelt?) I say its installed, I've done the install twice, but here is an ls -l of: cnc@rpi4:/etc/apt$ ls -l trusted.gpg.d/ total 84 -rw-r--r-- 1 root root 11861 Mar 28 2023 debian-archive-bookworm-automatic.asc -rw-r--r-- 1 root root 11873 Mar 28 2023 debian-archive-bookworm-security-automatic.asc -rw-r--r-- 1 root root 461 Mar 28 2023 debian-archive-bookworm-stable.asc -rw-r--r-- 1 root root 11861 Mar 28 2023 debian-archive-bullseye-automatic.asc -rw-r--r-- 1 root root 11873 Mar 28 2023 debian-archive-bullseye-security-automatic.asc -rw-r--r-- 1 root root 3403 Mar 28 2023 debian-archive-bullseye-stable.asc -rw-r--r-- 1 root root 11093 Mar 28 2023 debian-archive-buster-automatic.asc -rw-r--r-- 1 root root 11105 Mar 28 2023 debian-archive-buster-security-automatic.asc -rw-r--r-- 1 root root 1704 Mar 28 2023 debian-archive-buster-stable.asc which has no sign of that key, so where did the installer put it? That key 3CB9FD148F374FEF has been installed, twice. But I can't find it. uname -a sys: Linux rpi4.coyote.den 6.1.54-rt15 #1 SMP PREEMPT_RT Wed Sep 20 20:36:44 AEST 2023 aarch64 GNU/Linux Its latency-test is not as good as my old 4.19 something build but its plenty good enough to move my lathe nicely. But from the message, I found it in /usr/share/keyrings and put a copy in trusted* and now its offering me 19 updates. Which were all security related from debian but locale complained: locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory How to fix that? I don't have an /etc/locale but I do have these: -rw-r--r-- 1 root root2996 Jul 13 14:07 locale.alias -rw-r--r-- 1 root root9431 Oct 17 04:24 locale.gen but it recommends I run locale-gen, which returns very quickly w/o errors and does not generate anything in the locale directory, so I'll delete the directory I made. Done. And after all this I'm still bumfuzzled. And can't update linuxcnc. Thanks & Happy New Year All. Rod Webster *1300 896 832* +61 435 765 611 Vehicle Modifications Network www.vehiclemods.net.au On Thu, 28 Dec 2023 at 06:46, Sebastian Kuzminsky wrote: On 12/27/23 13:38, Steffen Möller via Emc-developers wrote: Gesendet: Mittwoch, 27. Dezember 2023 um 17:13 Uhr Von: "andy pugh" An: "EMC developers" Cc: "Steffen Möller" Betreff: Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions On Wed, 27 Dec 2023 at 15:20, Steffen Möller via Emc-developers wrote: My RPi5 arrived over Xmas and I just fired it up, was offered to install LinuxCNC directly from what we offer in Debian, and then ran latency tests. Graphics (as in video but also the extra art from your X interface when ALT-tabbing through your applications) have the most effect on the latency. I/O from the SD does not seem to affect it too much. The numbers you show are _awful_ though? It doesn't look like the LinuxCNC installation has installed the correct kernel. (I seem to recall that I had to do a fair bit of fiddling to make it happen, it's a Pi thing) Rebooted with Linux version 6.1.0-rpi7-rpi-2712 (debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) but do not see any relevant change. That's the wrong kernel: "PREEMPT" is not enough, you need "PREEMPT_RT" in the uname string. This is usually the difficult part of getting systems with out-of-tree vendor-specific kernels to work well with LinuxCNC. -- Sebastian Kuzminsky ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers ___ Emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions
Has anyone had a chance to look into the SPI issue with the RPi5 ? I've thrown mine back into it's box and a random location on shelf as ATM it's kinda useless for what I wanted it for. On Thu, Dec 28, 2023 at 12:19 PM andy pugh wrote: > On Thu, 28 Dec 2023 at 01:15, andy pugh wrote: > > > > http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_raspberry_pi_image > > Sorry, the link to the image is higher up the same page: > > http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_normal_download > > -- > atp > "A motorcycle is a bicycle with a pandemonium attachment and is > designed for the especial use of mechanical geniuses, daredevils and > lunatics." > — George Fitch, Atlanta Constitution Newspaper, 1912 > > > ___ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions
On Thu, 28 Dec 2023 at 01:15, andy pugh wrote: > http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_raspberry_pi_image Sorry, the link to the image is higher up the same page: http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_normal_download -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions
On Thu, 28 Dec 2023 at 00:58, Steffen Möller via Emc-developers wrote: > I looked through our documentation today but did not find anything beyond the > use of RPi GPIOs. http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_raspberry_pi_image And (same page) http://linuxcnc.org/docs/stable/html/getting-started/getting-linuxcnc.html#_installing_on_raspbian_12 -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions
Thank you, Rod! Will definitely try that one. We need to find some official instructions for the RPi4/5 installation, I suggest. I looked through our documentation today but did not find anything beyond the use of RPi GPIOs. After Seb's comment on using the wrong kernel I had a bit of a facepalm moment - thank you, Seb! Then I installed a regular arm64-rt kernel but that then ruined the RPi setup, so after a reboot I had no more Wifi and (worse) the ventilator was a max, even though the same wrong stock kernel was booting after the reboot. Sounds like flashing a new SD card to me. And it also sounds like a guarantee to lose all our new LinuxCNC users on an RPi. We can certainly do a lot via our custom images for which we could come up with an RPi5 variant, but preferably we'd have someone in an official position to prepare the RPi5-rt kernels for everyone, as part of the Raspbian or Debian distribution, not just us for ourselves. Is there anyone on this list who would know whom to ask? Best, Steffen > Gesendet: Mittwoch, 27. Dezember 2023 um 22:24 Uhr > Von: "Rod Webster" > An: "EMC developers" > Betreff: Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - > first impressions > > You could try this image that contains preempt_rt for the Pi 5 (Linuxcnc > 2.9.1) > https://drive.google.com/file/d/1H_q0Ra-27ZDOhquvq179beUZQNVlex1f/view?usp=drive_link > I don't have a Pi5 to test it but others say it worked. > > This is an updated image from our Raspberry Pi 4 one that is built for > the newer Pi 5 CPU > sudo apt upgrade should update to 2.9.2 > > Rod Webster > *1300 896 832* > +61 435 765 611 > Vehicle Modifications Network > www.vehiclemods.net.au > > > On Thu, 28 Dec 2023 at 06:46, Sebastian Kuzminsky wrote: > > > On 12/27/23 13:38, Steffen Möller via Emc-developers wrote: > > > > > >> Gesendet: Mittwoch, 27. Dezember 2023 um 17:13 Uhr > > >> Von: "andy pugh" > > >> An: "EMC developers" > > >> Cc: "Steffen Möller" > > >> Betreff: Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests > > - first impressions > > >> > > >> On Wed, 27 Dec 2023 at 15:20, Steffen Möller via Emc-developers > > >> wrote: > > >> > > >>> My RPi5 arrived over Xmas and I just fired it up, was offered to > > install LinuxCNC directly from what we offer in Debian, and then ran > > latency tests. Graphics (as in video but also the extra art from your X > > interface when ALT-tabbing through your applications) have the most effect > > on the latency. I/O from the SD does not seem to affect it too much. > > >> > > >> The numbers you show are _awful_ though? > > >> > > >> It doesn't look like the LinuxCNC installation has installed the > > >> correct kernel. (I seem to recall that I had to do a fair bit of > > >> fiddling to make it happen, it's a Pi thing) > > > > > > Rebooted with > > > Linux version 6.1.0-rpi7-rpi-2712 (debian-ker...@lists.debian.org) > > (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) > > #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) > > > but do not see any relevant change. > > > > That's the wrong kernel: "PREEMPT" is not enough, you need "PREEMPT_RT" > > in the uname string. > > > > This is usually the difficult part of getting systems with out-of-tree > > vendor-specific kernels to work well with LinuxCNC. > > > > > > -- > > Sebastian Kuzminsky > > > > > > > > ___ > > Emc-developers mailing list > > Emc-developers@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/emc-developers > > > > ___ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions
You could try this image that contains preempt_rt for the Pi 5 (Linuxcnc 2.9.1) https://drive.google.com/file/d/1H_q0Ra-27ZDOhquvq179beUZQNVlex1f/view?usp=drive_link I don't have a Pi5 to test it but others say it worked. This is an updated image from our Raspberry Pi 4 one that is built for the newer Pi 5 CPU sudo apt upgrade should update to 2.9.2 Rod Webster *1300 896 832* +61 435 765 611 Vehicle Modifications Network www.vehiclemods.net.au On Thu, 28 Dec 2023 at 06:46, Sebastian Kuzminsky wrote: > On 12/27/23 13:38, Steffen Möller via Emc-developers wrote: > > > >> Gesendet: Mittwoch, 27. Dezember 2023 um 17:13 Uhr > >> Von: "andy pugh" > >> An: "EMC developers" > >> Cc: "Steffen Möller" > >> Betreff: Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests > - first impressions > >> > >> On Wed, 27 Dec 2023 at 15:20, Steffen Möller via Emc-developers > >> wrote: > >> > >>> My RPi5 arrived over Xmas and I just fired it up, was offered to > install LinuxCNC directly from what we offer in Debian, and then ran > latency tests. Graphics (as in video but also the extra art from your X > interface when ALT-tabbing through your applications) have the most effect > on the latency. I/O from the SD does not seem to affect it too much. > >> > >> The numbers you show are _awful_ though? > >> > >> It doesn't look like the LinuxCNC installation has installed the > >> correct kernel. (I seem to recall that I had to do a fair bit of > >> fiddling to make it happen, it's a Pi thing) > > > > Rebooted with > > Linux version 6.1.0-rpi7-rpi-2712 (debian-ker...@lists.debian.org) > (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) > #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) > > but do not see any relevant change. > > That's the wrong kernel: "PREEMPT" is not enough, you need "PREEMPT_RT" > in the uname string. > > This is usually the difficult part of getting systems with out-of-tree > vendor-specific kernels to work well with LinuxCNC. > > > -- > Sebastian Kuzminsky > > > > ___ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions
On 12/27/23 13:38, Steffen Möller via Emc-developers wrote: Gesendet: Mittwoch, 27. Dezember 2023 um 17:13 Uhr Von: "andy pugh" An: "EMC developers" Cc: "Steffen Möller" Betreff: Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions On Wed, 27 Dec 2023 at 15:20, Steffen Möller via Emc-developers wrote: My RPi5 arrived over Xmas and I just fired it up, was offered to install LinuxCNC directly from what we offer in Debian, and then ran latency tests. Graphics (as in video but also the extra art from your X interface when ALT-tabbing through your applications) have the most effect on the latency. I/O from the SD does not seem to affect it too much. The numbers you show are _awful_ though? It doesn't look like the LinuxCNC installation has installed the correct kernel. (I seem to recall that I had to do a fair bit of fiddling to make it happen, it's a Pi thing) Rebooted with Linux version 6.1.0-rpi7-rpi-2712 (debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) but do not see any relevant change. That's the wrong kernel: "PREEMPT" is not enough, you need "PREEMPT_RT" in the uname string. This is usually the difficult part of getting systems with out-of-tree vendor-specific kernels to work well with LinuxCNC. -- Sebastian Kuzminsky ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions
> Gesendet: Mittwoch, 27. Dezember 2023 um 17:13 Uhr > Von: "andy pugh" > An: "EMC developers" > Cc: "Steffen Möller" > Betreff: Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - > first impressions > > On Wed, 27 Dec 2023 at 15:20, Steffen Möller via Emc-developers > wrote: > > > My RPi5 arrived over Xmas and I just fired it up, was offered to install > > LinuxCNC directly from what we offer in Debian, and then ran latency tests. > > Graphics (as in video but also the extra art from your X interface when > > ALT-tabbing through your applications) have the most effect on the latency. > > I/O from the SD does not seem to affect it too much. > > The numbers you show are _awful_ though? > > It doesn't look like the LinuxCNC installation has installed the > correct kernel. (I seem to recall that I had to do a fair bit of > fiddling to make it happen, it's a Pi thing) Rebooted with Linux version 6.1.0-rpi7-rpi-2712 (debian-ker...@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) but do not see any relevant change. After fixing the process to a processor the max observed latency is reduced by a third (down to 23 million nanoseconds). That is with wifi, video and loads of I/O. No latencies observed as a regular user - so I am still excited about this new Pi. I just updated the firmware (the routine update could not do that because of a version conflict) and will then try again. Best, Steffen ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] RPi5 + Raspbian + LinuxCNC latency tests - first impressions
On Wed, 27 Dec 2023 at 15:20, Steffen Möller via Emc-developers wrote: > My RPi5 arrived over Xmas and I just fired it up, was offered to install > LinuxCNC directly from what we offer in Debian, and then ran latency tests. > Graphics (as in video but also the extra art from your X interface when > ALT-tabbing through your applications) have the most effect on the latency. > I/O from the SD does not seem to affect it too much. The numbers you show are _awful_ though? It doesn't look like the LinuxCNC installation has installed the correct kernel. (I seem to recall that I had to do a fair bit of fiddling to make it happen, it's a Pi thing) -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
[Emc-developers] linuxcnc is marked for autoremoval from testing
linuxcnc 2.9.0~pre1+git20230208.f1270d6ed7-1 is marked for autoremoval from testing on 2023-12-26 It is affected by these RC bugs: 1056990: linuxcnc: fails to migrate to testing for too long: unresolved RC issue https://bugs.debian.org/1056990 It (build-)depends on packages with these RC bugs: 1056440: pyopengl: pyopengl's autopkg tests fail with Python 3.12 https://bugs.debian.org/1056440 1058031: pygame: FTBFS with Python 3.12 https://bugs.debian.org/1058031 1058308: pyopengl: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13 https://bugs.debian.org/1058308 This mail is generated by: https://salsa.debian.org/release-team/release-tools/-/blob/master/mailer/mail_autoremovals.pl Autoremoval data is generated by: https://salsa.debian.org/qa/udd/-/blob/master/udd/testing_autoremovals_gatherer.pl ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers