LinuxCNC S-Curve Accelerations

More
1 year 6 months ago #325453 by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations
Very Good Grotius!
If you could just make a .deb file that installed the planner, you could host it here
packagecloud.io/

I had a version of the Ethercat hal driver there which the Linuxcnc ISO installer used until the etherlab guys started hosting it.

Please Log in to join the conversation.

More
1 year 6 months ago #325469 by Grotius
Hi Rod,

The packages up to 200mb can be uploaded to codeberg. No problem.
The scurve is 63mb, it will fit.

The thing is, i always use rip-installations. So my whole mindset is up to a git clone.
Before making a .deb for you all. I have to make a list where what to install.
As i understand your installation path is like /usr/local/ or /usr/
And also the lcnc source need to be recompiled. If files are spread around,
it will be hard to recompile the source.

But i have no oversight now. Maybe first unpack a linuxcnc .iso and look wherer the
files are stored.

It's also not easy to modify the lcnc original make file, because it will not accept .cpp files for compilation.
Otherwise i could just copy all in, and edit the original makefile, and done!

Rodw, what's your idea about this? I am still positive, no problem.

 

Please Log in to join the conversation.

More
1 year 6 months ago #325479 by tommylight

What could be the reason  the business is quiet?
From last year we can travel visa free through EU, so nearly 10% of the population moved to Europe due to much better pay.
In a country with a total of 1.7 million people,that is noticeable. Add to that we do not manufacture or produce anything at all, the price hike, huge unemployment, extremely lazy people, "experts" with absolutely no knowledge, etc etc... and we are f@ked, properly.

Please Log in to join the conversation.

More
1 year 6 months ago #325483 by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations
Looking at my chromebook with 2.10 installed from a .Deb, tpmod.so is installed in
/usr/lib/linuxcnc/modules

My thinking is that you could just deploy your new files in the right location in a stand alone deb.

But I think you also do more than just create a new tpmod version because you change some other files. I think that results in a new motmod.so
If that's the case, its loaded in the hal file so the modular approach of Linuxcnc still lets you keep it compartmentalised and add everything to the core Linuxcnc build just by adding some new folders under /src/emc

The trajectory planner is in
src/emc/tp
So if you made a new folder
src/emc/grotius-tp 
for your planner and included a Submakefile in that folder, you  just need to edit the main make file to include the new folder.
Here is the main tpmod makefile entry
github.com/LinuxCNC/linuxcnc/blob/master/src/Makefile#L1230

You could also use the same approach for changes to motion
github.com/LinuxCNC/linuxcnc/blob/master/src/Makefile#L1215

I suspect the Debian .deb build will include all .so files built, so it may not need changing.

I tested this methodology once by building a new module plasmatask because Andy thought that might be a good approach for plasma. I copied the  /src/emc/task folder to /src/emc/plasmatask and updated the main make file as I describe. Everything built perfectly and I could load plasmatask in the ini file no problems.

If you could do this, grotius-tp would be super simple to include in the main distribution. :)
 

Please Log in to join the conversation.

More
1 year 6 months ago #325484 by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations
Ooops, you also need to add grotius-tp  here too
github.com/LinuxCNC/linuxcnc/blob/master/src/Makefile#L1330

Please Log in to join the conversation.

More
1 year 6 months ago #325511 by endian
@Grotious

Installation by following your steps is not finished well probably ...

Which files to patch ?
Code:
user@user:~$ sudo find / -type f -name "tp.c" 2>/dev/null /opt/linuxcnc/cmake/patch_files/tp.c /opt/linuxcnc/src/emc/tp/tp.c /opt/linuxcnc/src/objects/hal/components/tp.c

with your script \
Code:
#!/bin/bash cd patch_files cp tp.c ../../src/emc/tp cp tp.h ../../src/emc/tp cp motion.c ../../src/emc/motion cp axis_scurve_mm.ini ../../configs/sim/axis cd ..

Please Log in to join the conversation.

More
1 year 6 months ago #325522 by Grotius
@Endian,

I am not ready with the .iso, but you can try this archive. Unpack it where you want.
Then : ./install.sh

I didn't test it on a fresh .iso so i can not confirm it works straight away.
After installing goto : ~/linuxcnc/cmake/configs and do : ./run_axis_9

At your own risk:
repository.qtpyvcp.com/repo/linux-distro/lcnc_archive.tar


 

Please Log in to join the conversation.

More
1 year 6 months ago #325535 by endian

@Endian,

I am not ready with the .iso, but you can try this archive. Unpack it where you want.
Then : ./install.sh

I didn't test it on a fresh .iso so i can not confirm it works straight away.
After installing goto : ~/linuxcnc/cmake/configs and do : ./run_axis_9

At your own risk:
repository.qtpyvcp.com/repo/linux-distro/lcnc_archive.tar

 
I will check it in my virtual machine and let you know but the best path will be to wait for your iso file because of all the components and stuff around ...

 

Please Log in to join the conversation.

More
1 year 6 months ago #325537 by rodw
Replied by rodw on topic LinuxCNC S-Curve Accelerations
Re the ISO in a hurry, you could fork the Bookworm branch of Linuxcnc's live-build which I have maintained
github.com/LinuxCNC/linuxcnc-live-build
Follow the instructions to install and run the builder after cloning

Append your build script to this file 
github.com/LinuxCNC/linuxcnc-live-build/...linuxcnc.hook.chroot
or add a seperate file starting with 520-
clone your repository into a folder under /tmp and you should be able to  build and install anything you need.

You would need to delete this file which installs Linuxcnc from the repository at Linuxcnc.org
github.com/LinuxCNC/linuxcnc-live-build/...-lists/linuxcnc.list

Add any additional dependencies to 
github.com/LinuxCNC/linuxcnc-live-build/...e-lists/desktop.list

You probably need to delete all 6 files containing Linuxcnc in the name as these are the apt settings
github.com/LinuxCNC/linuxcnc-live-build/...worm/config/archives
note preempt_rt is a dependency of linuxcnc-uspace so you will need to explicitly install it.

This will install the Ethercat repositories :)

You may wish to update some of these fields
github.com/LinuxCNC/linuxcnc-live-build/...bookworm/auto/config

Note that the Debian live build inherits the version of Debian you run this on. eg if you run this on Trixie, you will get a Trixie ISO

If you have any questions, just ask.

Please Log in to join the conversation.

More
1 year 6 months ago #325870 by Grotius
Hi,

I finally have some succes, after a long story.

The software is already pre-configured so that linuxcnc scurve runs.

This then is a debian 12 rt distribution running:
  • linuxcnc scurve
  • ethercat-master
  • cia402
  • linuxcnc-ethercat
Download mirror:
repository.qtpyvcp.com/repo/linux-distro/

README.md
  1. The readme file informs how to extract the 2 archives of type .7z.
  2. The readme file informs how to proceed with the .img files.

The user has 2 choices.
  1. Using .img "debian_disk" wich can be loaded into a linux vm directly.
  2. Using .img "debian_raw" wich can be copied to usb and is a bootable linux distro.

Please Log in to join the conversation.

Time to create page: 0.443 seconds
Powered by Kunena Forum