Raspberry Pi 4

More
23 Feb 2020 08:15 #158281 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4

Gene heelo
I downloaded the kernel img...
oops it changed again on 22 feb so my original thought is not up-to-date

Its not, its all root:root internally now

anyway
I think you should supply the config.txt and cmdline.txt
so other users can duplicate your setup.
Because I already got the previous incarnattion (~4days ago )
and supplied what i thought were like your config.txt cmdline.txt
( which wsa isolcpus-3, no mention of idle=poll ..
thats as close as i can guess from your posts ..)
and got > 54uS right away, 4 tests,
no time to add any other processes for extra load,
and 4 cold boot retires)
so, i think there is something missing,
something outide of geneslinuxbox.net:6309/gene/lathe-stf/li...c4pi4b/rt-kernel.tgz
May be you have a low rez monitor? mine is 1380x??? not on rpinow ;-9

I appreciate your work, i just dont get the expected results.
thx
tomp


Done, and I also updated the sha512sum for rt-kernel.tgz And I should emphasize that this is for an rpi4b and likely will perform poorly on an rpi3b, and that I don't have a latency-test other than the one that comes with LinuxCNC My monitor is a 1920x1080

Since I am not running LCNC with a base thread, use
'latency-test period'
which will complain about the missing variable, but it will run it without a useless base thread. Here its the servo-thread that counts, but be aware in this $config, there is a 200 hertz slow thread that runs the jogging stuff.

I should pack up the linuxcnc/$config dir and post it so others might see what sort of gingerbread I have added to axis, the gui, and maybe put up a screenshot in case it won't just run on your hardware. So look for those additions later tonight. Since apache2 runs in a sandbox, I have to chown it all to me while I'm making those additions, them put it back.

Take care TomP.

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)
Genes Web page <geneslinuxbox.net:6309/gene>

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

More
23 Feb 2020 09:04 #158283 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4
the spi transmits 32 bit packets at about 40 megabits/sec and rx's the 32 bit packets at 25 megabits/second. Running a 1 kilohertz servo thread, there's time to sendand rx more than 1 packet per thread execution. That's why my 26 pin cable is under 2" long, the pi is mounted upside down with a small fan under it. No twists in a cable that is actually a transmission line that way. It reports those clocking rates as its starting up linuxcnc

As for picnc, I've not heard of it till tonight, describe it please.
The config and a screen snapshot.png are now pull-able.

Take care TomP

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)
Genes Web page <geneslinuxbox.net:6309/gene>

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

More
23 Feb 2020 10:43 #158291 by tjtr33
Replied by tjtr33 on topic Raspberry Pi 4
Hi Gene,
will try your newest asap.

re PiCNC
its a hdwr stepgen for linuxcnc using a simple (hahah) chip

here's the original 3 axis version
github.com/kinsamanka/PICnc-V2/wiki

and here's a 5 axis branch
github.com/Wireb/PICnc-5axis

I talked about using it here
wiki.linuxcnc.org/cgi-bin/wiki.pl?RPi3BPreemptRT
thx Gene

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

More
23 Feb 2020 10:55 - 23 Feb 2020 11:23 #158294 by MrGreg
Replied by MrGreg on topic Raspberry Pi 4
Hello again

I'll try out your latest, on a Pi4 ( and Pi3 ) later today.
Will report back

Re Picnc:
Originally developed on Linuxcnc circa 2012.
I think it is OK on Lcnc 2.7 but not 2.9.
As a bare bones on stripboard, comes in at under £10
See
github.com/kinsamanka/PICnc-V2/wiki

And a mighty long thread here
www.raspberrypi.org/forums/viewtopic.php...d17afefffe677405a0ba

Cheers
MrGreg
Edit
Beat me to TJ
Last edit: 23 Feb 2020 11:23 by MrGreg. Reason: update

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

More
23 Feb 2020 15:02 - 23 Feb 2020 15:40 #158299 by MrGreg
Replied by MrGreg on topic Raspberry Pi 4
Hello Gene & all
Reporting back

Firstly by way of indicative comparison....
glxgears & browser circa 20mins duration
Ran latency-test period on my existing Pi2 4.4.4RT setup.
Came in at ~ 160

Re ran using rt-tests with:
cyclictest -n -p 90 -i 1000
Came in at 147

Similar enough to be indicative in that example at least. I will re test with the lcnc latency test in due course.

Tried the/your newer kernel on Pi4 with cmdline & config from your link.
Extraction seemed to run OK.
Hangs at boot ! Suspect it is something in your modified cmdline.txt ?
Edit
Prob not cmdline or config ? put stock ones back in with a kernel=kernel7i-rt.img
Still hangs at boot

Cheers
MrGreg
Last edit: 23 Feb 2020 15:40 by MrGreg.

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

More
23 Feb 2020 15:44 #158301 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4
i disagree with the decision to run the pi headless. The net cable and an ssh connection is a huge video slowdown. With the video switched to GL using raspi-config, glxgears will run at full screen and over 50 fps!. Here its about 3.2 fps or a hair more over an ssh -Y connection. Its fine for writing code, but just doesn't cut it for running the code you just wrote, so I have a 21" high res 1920x1080 monitor plugged into the pi4's hdmi output0, and a usb2 cable plugged into the usb2 port, one of those with the 4 buttons on a hub on the far end of a 4 foot cable, hangs over the headstock with one or 2 dongles for wireless keyboards and mice, Since mine has to clear an overhead garage door, I've erected an overhead bar about 5 feet long, the left vertical carries the pi and its motor driver hardware on the rear of the post, a 650 WA UPS one the left face,. Another 2" post is duplicated a couple inches to the right of the right end of the bed, and a strip of dexeon connects the top of the posts, its carries a box with 2 SSR;s to control vfd and motor power from the F2 state, holds the vfd and has a 4000 lumen led lamp 4' long to put a good light on the bed. And my video on the monitor now that I've switched it to a pi4, is so close to real time that no lag can be detected. And my garage door clears it all by about 2".

IMNSHO you guys running it headless are totally throwing away your real time because the machine is fully capable of being several inches ahead of what you are seeing jerkily on the monitor. When dealing with potentially lethal power in a machine the size of this Sheldon, that lag can break tools, and injure or kill the operator.

Because I am building all this on that same pi, my usb3 ports have a couple SSD's plugged in via usb3-sata adaptors from startech, with the bigger 240G mounted via /etc/fstab as /media/pi/workspace, and the smaller is used as a backup of /boot, and has a 10G parition mounted in /etc/fstab as swap, and the swap-file turned off using the command you'll find in that fstab file, reducing the wear and tear on the micro-sd card. That swapfile is NOT big enough to build LinuxCNC as it may overrun the 100 megs it has while building the rs-274-d interpreter, I've had it happen due to OOM. The pi is also backed up nightly by several entries in the amanda disklist here on this machine. I do a backup of all 5 machines nightly, takes around an hour

Take care 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)
Genes Web page <geneslinuxbox.net:6309/gene>

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

More
23 Feb 2020 15:59 #158303 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4

Hello Gene & all
Reporting back

Firstly by way of indicative comparison....
glxgears & browser circa 20mins duration
Ran latency-test period on my existing Pi2 4.4.4RT setup.
Came in at ~ 160

Re ran using rt-tests with:
cyclictest -n -p 90 -i 1000
Came in at 147

Similar enough to be indicative in that example at least. I will re test with the lcnc latency test in due course.

Tried the/your newer kernel on Pi4 with cmdline & config from your link.
Extraction seemed to run OK.
Hangs at boot ! Suspect it is something in your modified cmdline.txt ?
Edit
Prob not cmdline or config ? put stock ones back in with a kernel=kernel7i-rt.img
Still hangs at boot

Cheers
MrGreg


I don't think its hung, its probably fscking the u-sd card, which is feedbackless, and can take several minutes on a 64G sd card. If when its hung, there is activity on the pi's red led, thats what its doing.

Take care now.

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)
Genes Web page <geneslinuxbox.net:6309/gene>

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

More
23 Feb 2020 18:44 #158321 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4

Hello Gene & all
Reporting back

Firstly by way of indicative comparison....
glxgears & browser circa 20mins duration
Ran latency-test period on my existing Pi2 4.4.4RT setup.
Came in at ~ 160

Re ran using rt-tests with:
cyclictest -n -p 90 -i 1000
Came in at 147

Similar enough to be indicative in that example at least. I will re test with the lcnc latency test in due course.

Tried the/your newer kernel on Pi4 with cmdline & config from your link.
Extraction seemed to run OK.
Hangs at boot ! Suspect it is something in your modified cmdline.txt ?
Edit
Prob not cmdline or config ? put stock ones back in with a kernel=kernel7i-rt.img
Still hangs at boot

Cheers
MrGreg


Talking to TomP just now we have another problem. In /boot/cmdline.txt the first option is "root PARTUUID, and one a different u-sd card it will be wrong, so it will likely hang there forever. I hope you saved the old one so you can get the proper # from it and put it into the cmdline.txt its using.

Also rename the new rt-kernel.img to kernel7l, the name it turns out is not speced, so bootcode.bin must be figuring it out on its own.

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)
Genes Web page <geneslinuxbox.net:6309/gene>

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

More
23 Feb 2020 20:39 - 23 Feb 2020 22:09 #158327 by MrGreg
Replied by MrGreg on topic Raspberry Pi 4
Hello

Well that's better, it's working
In fact I'm responding from it atm to give it a little different to do while the latency test is running.

So at the moment after about 10mins ish, I have, using:
glxgears at 1080p circa 60fps & active browser
rt-tests
sudo cyclictest -n -p 90 -i 1000
326uS

Started off initially at 96uS

Still a bit on the high side of expectations. Yes it depends on how you view the validity of the latency test. TBD / TBA ?
Lower (so far) by ~20% ish than the guysoft RT ( also 4.19.71 )
I'm rather seeing it as a comparative / indicative measure rather than an absolute specific directly related to lcnc.

Perhaps if someone could/would run the cyclic test from debian rt-tests on a more optimised stripped out setup that might yield a useful comparison for general information?

@ Gene

is there a suitable working linuxcnc deb in your collection to plonk in this so I can do a latency-test period on it?

Thanks for your everything

Edit & update
After circa 90mins of hard labour cyclictest reports 432uS latency. Pi4 shutting down and resuming normal duties for the rest of the evening. Exploratory to be continued....

Cheers
MrGreg
Last edit: 23 Feb 2020 22:09 by MrGreg. Reason: update

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

More
23 Feb 2020 22:13 #158335 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4

Hello

Well that's better, it's working
In fact I'm responding from it atm to give it a little different to do while the latency test is running.

So at the moment after about 10mins ish, I have, using:
glxgears at 1080p circa 60fps & active browser
rt-tests
sudo cyclictest -n -p 90 -i 1000
326uS

Started off initially at 96uS

Thats awfull slow and its indicative of running chromium too.

Still a bit on the high side of expectations. Yes it depends on how you view the validity of the latency test. TBD / TBA ?
Lower (so far) by ~20% ish than the guysoft RT ( also 4.19.71 )
I'm rather seeing it as a comparative / indicative measure rather than an absolute specific directly related to lcnc.

Perhaps if someone could/would run the cyclic test from debian rt-tests on a more optimised stripped out setup that might yield a useful comparison for general information?

Where can I get it?

@ Gene

is there a suitable working linuxcnc deb in your collection to plonk in this so I can do a latency-test period on it?

Yes, all of those on my site were built from master 4 or 5 days ago. Should just put those in a separate dir, cd to it and "sudo dpkg -i *"

Thanks for your everything

Cheers
MrGreg


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)
Genes Web page <geneslinuxbox.net:6309/gene>

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

Time to create page: 0.122 seconds
Powered by Kunena Forum