Install LinuxCNC On ARM64

More
27 Jun 2024 07:02 #303874 by CTB_le123
Hey, everyone!
I am installing LinuxCNC on an ARM64 board (the core module is TI AM6254), and the board uses the premeet-rt kernel. I know I need to use cross-compilation, but I don't know how to proceed. My operation sequence is as follows:

./configure --prefix=~/Desktop/linuxcnc/linuxcnc-build/ --build=i686-pc-linux --host=arm-linux  --enable-static --with-realtime=uspace --enable-non-distributable=yes --with-libmodbus --with-libusb-1.0 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu
make 
make installThe terminal prompts me that there is no
sys/io.h
. in rtapi/uspace_rtapi_app.cc
How can I should do? Looking for ur reply.
 

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

More
27 Jun 2024 09:17 #303879 by cornholio
Replied by cornholio on topic Install LinuxCNC On ARM64
sys/io.h has the functions for ioport access on the x86 arch.

Can you use the debian arm64 packages ?

From what I've read the best way to do this is not to cross compile but to compile in an emulated environment via qemu.

I've done for the Rpi4 by copying theRPi4 file system to directory then chrooting into it.

Here's some info about the procedure
wiki.debian.org/QemuUserEmulation

If you have a link to a filesystem image i can have a look for you.

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

More
27 Jun 2024 11:16 #303885 by cornholio
Replied by cornholio on topic Install LinuxCNC On ARM64
Ok not knowning your exact board, I found a Debian image for the beagleplay, www.beagleboard.org/boards/beagleplay copied the rootfs part to a directory chrooted in and was able to install Linuxcnc via apt.

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

More
28 Jun 2024 02:26 #303950 by CTB_le123
Replied by CTB_le123 on topic Install LinuxCNC On ARM64
Thank you for ur help.

This is all the information about my development board. down.myir-tech.com/MYD-YM62X/
I'm not sure if you can download it, as this is a Chinese website. If u can't, please let me know. I will upload them to GitHub.

And I need to cross compile the LinuxCNC, because I modified the source code.

I will try what u told to me.

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

More
28 Jun 2024 03:27 #303951 by cornholio
Replied by cornholio on topic Install LinuxCNC On ARM64
If you can link to your image that would be great.
Also if you have a github repo with your modified src......or if it's something you can't share I can try with the Linuxcnc sources to get the process down.
Cheers
Rob

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

More
28 Jun 2024 09:03 #303964 by CTB_le123
Replied by CTB_le123 on topic Install LinuxCNC On ARM64
Is this the Image github.com/Douglas-d/MYD-AM6254/blob/main/Image ?

Sorry, I can't share the modified src now.

Thanks

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

More
28 Jun 2024 12:01 - 29 Jun 2024 06:44 #303968 by cornholio
Replied by cornholio on topic Install LinuxCNC On ARM64
20Mb for a file system image ??????

I wasn't asking for a kernel image but a file system image. Can't chroot into a kernel image.
Last edit: 29 Jun 2024 06:44 by cornholio.

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

More
01 Jul 2024 02:10 #304118 by CTB_le123
Replied by CTB_le123 on topic Install LinuxCNC On ARM64
sorry for later reply.

I am totally new about ARM.

I think this is what you really need. github.com/Douglas-d/MYD-AM6254/blob/master/my6254.img.gz
If it's not, I will check again.

Thank u sincerely!!!

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

More
01 Jul 2024 12:28 #304145 by cornholio
Replied by cornholio on topic Install LinuxCNC On ARM64
Maybe 3rd time lucky replying.

1 Development tools & libraries to not appear to be install.
2 There seems to be a lot of x86 Linuxcnc binaries in the image.
3 Once Linuxcnc has been built, you will need the runtime libraries to suit, if these aren't available it will be a hard task (as these may require building from source)
There is a utility to convert deb packages to OPKG formats, so this maybe an option.

Unless there is a way to get a version of Debian arm installed it may be a very very hard battle. But Debian does support ARM64.

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

More
01 Jul 2024 12:41 #304146 by cornholio
Replied by cornholio on topic Install LinuxCNC On ARM64
Are you 100% sure this board is suitable for Linuxcnc.
If it's for an embedded application, I not sure if RPi s are certified for Industrial use, would be a better option, I'm sure it's suitable for ethercat.

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

Time to create page: 0.087 seconds
Powered by Kunena Forum