tdevmon on MIPS architecture

Hello everyone im new here and i wanted to use ioninja serial over ssh using a device with mips architecture... i was wondering is there a way to build a module and service for it?

To be more precise i am trying to build tdevmon driver and service for openwrt device since i need to use that to connect to my modbus devices and give out ssh ( openwrt device has wifi and everything ) could that be possible in any way? thank you very much

MIPS is not currently supported, sorry. It's on our TODO list, but not too high up, to be honest (people mostly run tdevmon on PCs and Raspberry Pis)

However, the kernel module is open source, so if you have experience in Linux Kernel development, you can try porting the tdevmon LKM to MIPS yourself (yes, porting is required, bare recompilation won't cut it, unfortunately).

If you're able to port the kernel module, I can provide you with the sources of the CLI app, too -- then you should be able to build the whole tdevmon on MIPS.

@vladimir well for now ive managed to do what i need on raspberry pi but having ioninja on MIPS ( openwrt based router ) would make it really useful for field debugging and testing.

the idea of having scriptable tool that can construct traffic ( modbus or any TCP based traffic for that matter ) wich is actual data flowing through the live automation system is something that makes my life so much easier. For example writitng a script that will "scan" modbus to get all slave responses so i know that all nodes are connected and online before parsing data in automtion system is a gift from gods 😉

Hello Bob,

That's possible. tdevmon contains some proprietary code (mostly concerning the kernel-mode drivers for Windows) so I can't share the actual repo. But I can make a snapshot of what's required to build the tdevmon CLI and give you a link to that. Will that work for you?

Also, are you going to publish the results of your porting so that we can merge them into the main repo -- or is it some closed-sourced project? Either way is OK with us.

Extracted the non-proprietary code and published it here:

https://github.com/vovkos/tdevmon-linux

The user-mode part should build on any generic Linux box without a problem. The kernel module would require porting (at least, the write protection removal code).

Re missing dl -- try with the latest axl:

cd axl
git checkout master
git pull

then rebuild

cd ../build
cmake .
make clean
make -j`nproc`

libudev and dl issues are (probably) caused by axl tests; if the problem persist, simply comment line 51 in axl/CMakeLists.txt:

# add_subdirectory(test)

As for ARM cross-compiling -- I build and debug on a Raspberry Pi over an SSH channel, so I don't have a ready-to-use cross-compiling toolchain.

That's great! Please send a pull request to tdevmon-linux; I will take a look and integrate the changes to the main repo after testing those on Rpi-3 & 4.

Happy New Year!