This module fixes RS-485 flow control issue on reComputer R1000 v1.0 by hooking uart_write
function.
screen_record.mp4
Make sure you're running on a reComputer R1000 v1.0 with its drivers installed.
$ sudo apt update
$ sudo apt install linux-headers-$(uname -r) git make gcc -y
$ git clone https://github.com/bclswl0827/r1000v1-rs485-autoflow.git
$ cd r1000v1-rs485-autoflow
$ make
$ sudo make install
To load the module, use the modprobe
command:
$ sudo modprobe r1000v1_rs485_autoflow
If the kernel module is successfully loaded, you should see the following message in the kernel log:
[ 256.037465] r1000v1_rs485_autoflow: RS-485 interface has been hooked successfully
To unload the module, use the rmmod
command:
$ sudo rmmod r1000v1_rs485_autoflow
If the kernel module is successfully unloaded, you should see the following message in the kernel log:
[ 315.105485] r1000v1_rs485_autoflow: RS-485 interface has been unhooked successfully
You can load the module at boot by adding the module name to the /etc/modules
file:
$ echo "r1000v1_rs485_autoflow" | sudo tee -a /etc/modules
Note that this will require a reboot for the changes to take effect.
This module is compatible with DKMS, which is a kernel module management system. If you're planning to use this module with DKMS, please make sure to install the dkms
package and use the make dkms_install
command to install the module.
This module is released under the MIT License.