Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: CrossCompilation for raspberry pi

CrossCompilation for raspberry pi 3 months 1 week ago #11597

Hi :)

Today i wanted to see if i could get the runtime up and running on a raspberry pi.
My development station is a Vm running Ubuntu 20.04.
But when i add a plc program to my node i get this error.
I have tried to remove the PLC program from the node, and then i donĀ“t have any problem compiling.
In the CustomBuild object the Release option is currently set to V5.9 and if i remove this i get another error.
I currently run on 5.9.0-2 so i guess it should be set to V5.9
Attachments:
Last Edit: 3 months 1 week ago by michael.schalck.
The administrator has disabled public write access.

CrossCompilation for raspberry pi 3 months 1 week ago #11604

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3048
  • Thank you received: 454
  • Karma: 125
Hi Michael,

I looks as if the PlcPgm hasn't been cross compiled. Have you set OperatingSystem in File/Volume attributes in the root volume configurator to CustomBuild? If you make a modification in the PlcPgm and build (or build with force), you should be able to see in the terminal window which platform the PlcPgm is compiled for.

/Claes
The administrator has disabled public write access.

CrossCompilation for raspberry pi 3 months 6 days ago #11607

Hi Claes :)

I have tried to make a screendump where you cane see how i have configured the different objects.

I did however try to change the OperatingSystem in the nodeConfig for my rpi object to "Linux on Arm"and then the compilation worked. I ave not yet tested to see if it will run on my raspberry pi. So i will post an update when i have tried that.
*UPDATE : The runtime started after i compiled and distributed, but i get this message in the runtime that i did not start the plc.
Attachments:
Last Edit: 3 months 6 days ago by michael.schalck.
The administrator has disabled public write access.

CrossCompilation for raspberry pi 3 months 6 days ago #11610

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3048
  • Thank you received: 454
  • Karma: 125
Hi Michael,

To use the cross compiler the OperatingSystem in the NodeConfig object has to be CustomBuild. 'Linux on ARM' will use the native compiler and will only work if you are developing on the rpi.

You have to set CustomBuild in two places, in the NodeConfig object (seems to be correct in the screenshot), and in the root volume object that is opened from 'File/Volume attributes' in the root volume configurator. I still suspect that the later is not set to CustomBuild.

/Claes
The administrator has disabled public write access.

CrossCompilation for raspberry pi 3 months 5 days ago #11614

Thanks Claes :)

It was the missing settings in the volume atributes that was not set to custom build..
So now it works.. Thanks a lot.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.394 seconds