I've tried to compile a simple "helloworld" app for the RUT956, but I get the following :-
./helloworld: line 1 syntax error: unexpected "(" expecting ")".
I am guessing that the code is not being built for the correct architecture. I wonder if anyone can point me in the right direction for howto compile for this router?
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
It appears you are using firmware that is not from the official OpenWrt project.
When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.
Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).
If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.
I don't want to install an offiical version of OpenWrt. I believe the Teltonika routers are based on OpenWrt, and was merely looking for some assistance in how-to compile a simple C program for that specific architecture.
Option 1 - you add official OpenWRT support for particular device. Since you have GPL code from OEM probably an easy ride.
Option 2 - ask vendor to support ancient firmware version even by their means (current 956 firmware is approximately OpenWRT 23.05 if reading release notes)
You need to ask teltonika for SDK compatible with your by all means ancient device firmware. Or in general inquire their support line with your question.
No problem. I wrongly believed that this was a general OpenWRT question in how-to compile for the Teltonika as it's based on OpenWRT. I have asked Teltonika the same question and can only thank you guys for pointing me in the right direction.