Linuxcnc preempt rt uspace

Moderator: Forum moderators

Post Reply
User avatar
Vverve
Posts: 120
Joined: Tue Jul 14, 2020 1:12 pm
Location: 45°17'43.6"N 72°16'10.4"W avatar;Mira.ca
Has thanked: 6 times
Been thanked: 13 times

Linuxcnc preempt rt uspace

Post by Vverve »

Back in old rip 2019 forum ,i've left uncompleted those interesting tests,

Big thanks to rockedge for rt kernels .

Caution; cutting tools/moving machine/electricity may hurt you,or worst,hardware (parport,pc,interface,etc) may fails, machines setups/timing needed/timing achieve/hw/etc
are in hundreds in mix and match possible configurations..
my usual 100% NO Warranty apply here too.Use at your own risk.

Why ?
Mainly for testing uspace preempt rt ,prove a puppy can run linuxcnc for cnc,3d printer,etc.
If size/ram matter,linuxcnc-2.8.2-r_preempt_buster.iso is 2Gb...did not tested this live iso features and latency result,shame on me...
note;Debian dog rtai still work fine and can be update to latest version ,here,2.8pre latest i did in 2017.
but ,its a dog.

So , facts( the recipes tested yet ) ;

-Bionicpup64 8.0.0 & rockedge 5.4.70-rt40-full-rt_x64
frugal install ,all in ram..
-ubuntu ppa build linuxcnc 1:2.8.1_uspace_bionic1 or debian stretch build of linuxcnc-uspace_2.8.2 or else!!!
-homebrew pet of missing deps ,scripts run-as-root &kill left process to menu llnuxcnc-dep-fix22-spot-2_9.pet
-hardware tested here; dell mobo i5 2500 5Gb ram, 1 pci parport card,1 pcie parport card,onboard video,
an obselete Soundlogic combo breakout board ,gecko g201 on small 12¨x17¨x4¨ xyz cnc/steppers/encoders.
-linuxcnc axis gui only,their is 4 more options using ,some might need more libs

-get ok latency to operate dangerously fast enough the machine with parallels ports**²

20mar.22 more___ tests_;
-Retested a few of rockedge kernels, preempt rt, + full ,5.4.70-rt40-full-rt_x64 is your best bet latency speaking,here it does.

-ethernet mesa 7i92 works , beta 7i92 configuration/flashing tool too ,it needed some of python 3.6 + more ,but do it all.
Ask rsrcn51 for his latest 4.8 peasywifi if the ethernet + wifi is needed, it was the only manager that enable simultaneous connections,let it know if you succeed with another.
,**² using device like mesa ethernet card you can forget about latency.


for now,i cannot find a glitch that does not have a workaround .

THE run as spot options, why ?
just to use pre-build debian? yes, run as root wont go.
(wrote this assuming compiling it could give the prg his root freedom...it may not be so,no compiling test yet)

Linuxcnc default path to machine-configs is ~/linuxcnc/config.
Set mine in ;
~/spot/linuxcnc/configs symlink to ~/linuxcnc

The menu for pncconf and stepconf as spot included in my sfs are not needed,
weird as it may seems, if you run as spot stepconf or pncconf they wont let you write to your spot folder,
using either ones (not spot) you can write your configuration to the ~/linuxcnc link to spot,
i dont get it,but it works.

Lets run linuxcnc as run-as-spot
everything is fine ,assuming your machine-configuration is ok
-program preferences can be save.
-editing gcode with geany,or else,within a ¨spot_linuxcnc¨ get permission problems
so,edit outside and reload gcode .

for now,i cannot explain why these happen but got a workaround;

if, you encounter a glitch with linuxcnc asking thru pickconfig(graphical) to copy your configuration to your home but wont let you do it,
you can load any of your config directly ,try;
run-as-root linuxcnc path/to/your/your.ini

.

Various notes;
this new forum is fairly resuming the old murga ones.
Please bare with me, i do not have my electrical/electronic engineer degree since than.
----------
As i use sparcely documented cnc Soundlogic breakout boards now obsolete ,that,
i now got 5 pci(+e) cards with differents chipsets,
parallel ports vs linuxcnc is complex,it could be seen as a tweakable drivers ,
to the point i did taught i had hardware failures when it was settings problems...
yes,heard the; well its call a school !!! you stubborn autodidact dreamer...
----------
linuxcnc is not anymore intel only ,
there are arm ,rasberian pi success with it these days
with their smallest more ecofriendly footprint impact,in their physical size ,on a waste managing side...
questionnable,as you find good old pc on roadside..
maybe i should investigate bitcoin farms trash/recycling bin!
and there is woof-ce arm support, put it on your to do list !!.

What's to do or test;

-forget new year resolutions i wont maintain ...within the year ,and feel good about it.
----oh sh!t,that's for the refrigerator sticker...oh anyways..

-let the system run for a whole 24 hours in loop ..mainly with parport .

- test newer rt_preempt kernels if available


all about linuxcnc here
___________
notes; as old forum cannot be edit, the script you still find there for run as spot is ¨out of date¨..

Welcome testers.

This first post will be edit,if i find something to share or update.

Last edited by Vverve on Wed Mar 23, 2022 2:11 pm, edited 7 times in total.
User avatar
rockedge
Site Admin
Posts: 5669
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1942 times
Been thanked: 2061 times
Contact:

Re: Linuxcnc preempt rt uspace

Post by rockedge »

I am looking forward to an ISO of the project!

But for now I'll settle for a video of the system in operation!!

Excellent report @Vverve

User avatar
Vverve
Posts: 120
Joined: Tue Jul 14, 2020 1:12 pm
Location: 45°17'43.6"N 72°16'10.4"W avatar;Mira.ca
Has thanked: 6 times
Been thanked: 13 times

Re: Linuxcnc preempt rt uspace

Post by Vverve »

rockedge wrote: Fri Feb 18, 2022 1:25 am

But for now I'll settle for a video of the system in operation!!

Oups...got a foot in the door ..
and a camera in my big mouth.. :D

preempt rt does make machine faster...not the operator.
Oh you workaholics coders,you deserve all my gratitudes .
Thanks rockedge

User avatar
Vverve
Posts: 120
Joined: Tue Jul 14, 2020 1:12 pm
Location: 45°17'43.6"N 72°16'10.4"W avatar;Mira.ca
Has thanked: 6 times
Been thanked: 13 times

Re: Linuxcnc preempt rt uspace

Post by Vverve »

I wrote this topic first post without reading murga old ones.
Memories came back thru google drive,5-6 frugal installs and a few notes.
I took the time to read most of murga forum now,
Dr conclusion to this kind of ¨reverse frankensteingineering introspection of the past ¨
i got it partialy right..

One thing; Wrote on murga ; -needed modules here compile for kernel 4.19.82-rt30
since than,i change kernel to 5.4.70 an compiled none of those.
ppdev module was the most important,i think,

or rockedge add it to 5.4.70rt..

Did you rockedge?

So ,i will review to whole install process from a fresh bionicpup64,homebrew sfs,module or not,etc..

It does work very well,vey stable the way i got it now...its more ,how did i did it,to be shure you too can do it.
works so well i dust off my old gopro1 for later.

Vvv

Last edited by Vverve on Tue Feb 22, 2022 12:33 am, edited 1 time in total.
User avatar
rockedge
Site Admin
Posts: 5669
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1942 times
Been thanked: 2061 times
Contact:

Re: Linuxcnc preempt rt uspace

Post by rockedge »

Vverve wrote:

Did you rockedge?

Yes. After the kernel 4.19.82-rt30 ran so well but looked like it needed some userspace and some other modules needed to be enabled for a kernel to run in a Puppy Linux, in full real time, and be able to talk to parallel and serial ports with CNC machinery in mind. I compiled a 5.4 LTS kernel with all of the real time patches, AUFS patches and more virtualization and other modules I thought might help after researching what it takes to run LinuxCNC properly. Which is the 5.4.70-rt40 version.

I use it for KLV-Airedale when needed otherwise I'm using a kernel from @ozsouth.

Works great for serious audio work as well. 4.19.82-rt30 also very good for live audio work or softhware synthesizers.

User avatar
Vverve
Posts: 120
Joined: Tue Jul 14, 2020 1:12 pm
Location: 45°17'43.6"N 72°16'10.4"W avatar;Mira.ca
Has thanked: 6 times
Been thanked: 13 times

Re: Linuxcnc preempt rt uspace

Post by Vverve »

rockedge wrote:

Yes

This is a wonderful relief.
Thank you sooo much.

User avatar
Vverve
Posts: 120
Joined: Tue Jul 14, 2020 1:12 pm
Location: 45°17'43.6"N 72°16'10.4"W avatar;Mira.ca
Has thanked: 6 times
Been thanked: 13 times

Re: Linuxcnc preempt rt uspace

Post by Vverve »

Thanks to too many,
I've booted a pristine bionicpup64,with 5.4.70 preempt rt,intel p-state to null+isolcpus tweaks, cleaned os startup to basic,quickpet fixed,
installed latest stable debian stretch build of linuxcnc-uspace_2.8.2.89.gccf8f2d58 ,
installed a new homebrew pet of missing deps ,in it some very simple run-as-spot&kill left process scripts and menu link.
Got google chrome,wifi,youtube,6 glxgear open,moving windows,some data copying,30 min of latency-test = slightly better latency than whateverver ,i did not notes ,tweaks i've tried in 2019 ,¨hidden¨ in my old setup.
Run axis gui with knew ok machine configs.

Tested ,it works,fast, it cut air for the moment, no dust or aluminium chips....cnc here not rugged enough for titanium ,
even soft steel...untill i get together all parts i've collected to get it on a bit more robust paths, to get it from R&D & wood work to an ok state of seriousness,cnc speaking.

see links ,few changes and imperfections in first post.
Vvv

User avatar
Vverve
Posts: 120
Joined: Tue Jul 14, 2020 1:12 pm
Location: 45°17'43.6"N 72°16'10.4"W avatar;Mira.ca
Has thanked: 6 times
Been thanked: 13 times

Re: Linuxcnc preempt rt uspace

Post by Vverve »

Found a used Mesa 7i92h ethernet thingy , still got to pickup cable headers ,make some for the breakout board.
..expect results vs pain in the network...And mild season coming dedicate to other priorities..

as obvious it may seems to some, for now,the student here struggle trying to have eth0 + wlan simultanously ...
in puppys world,idealy,you got one,or the other !!
i might need a lesson or two about the subjet,
school time...

Last edited by Vverve on Sat Mar 12, 2022 6:22 pm, edited 1 time in total.
User avatar
Vverve
Posts: 120
Joined: Tue Jul 14, 2020 1:12 pm
Location: 45°17'43.6"N 72°16'10.4"W avatar;Mira.ca
Has thanked: 6 times
Been thanked: 13 times

Re: Linuxcnc preempt rt uspace

Post by Vverve »

nrcrsn51 and PeasyWifi network manager
remember those name if in need of wifi+lan..
there is no other option.
darpa gave us the internet..
nrcrs51 gave us the manager..

User avatar
Vverve
Posts: 120
Joined: Tue Jul 14, 2020 1:12 pm
Location: 45°17'43.6"N 72°16'10.4"W avatar;Mira.ca
Has thanked: 6 times
Been thanked: 13 times

Re: Linuxcnc preempt rt uspace

Post by Vverve »

Notes for run-as-spot good practice and ethernet tests results added in 1 first post

and ethernet tests result
________edit_____SORRY if you search first post for updated,there was none wrote yet...really sorry...
Funny. .this was my version of a pocket-call,hmm,a rocket-post, floating in a nowhere between drafts and facts you dont need to know ,like;
-i've always been shy in front of strangers ,-i got bad habits ,like; trying to explain i'm serious within a joke,or two.
-no , you cannot blame wrong medications..their aint no.
-overuse of punctuations is my drug...,; it make text breathe... dislike it or have a ball figure out my sh!ts togethers...
Ok seriously i got to edit that first post .....before tomorrow..

User avatar
Vverve
Posts: 120
Joined: Tue Jul 14, 2020 1:12 pm
Location: 45°17'43.6"N 72°16'10.4"W avatar;Mira.ca
Has thanked: 6 times
Been thanked: 13 times

Re: Linuxcnc preempt rt uspace

Post by Vverve »

Done ,editing first post...
explaining what you cannot understand without loosing credebility is hard. :shock:

Post Reply

Return to “Engineering/Science/Simulation”