xr_usb_serial_common Ubuntu 16.04
-
- Posts: 6
- Joined: Mon Feb 10, 2020 8:38 pm
- languages_spoken: Spanish
- ODROIDs: C2
- Has thanked: 0
- Been thanked: 0
- Contact:
xr_usb_serial_common Ubuntu 16.04
Hi. I am trying to install xr_usb_serial_common for communicate with a tracer 10420an using RS485 modbus. I followed the instruccions, i compiled the kernel with the usbserial and cdc-acm as modules to be able to unload and load. But no luck.
When i run insmos ./ xr_usb_serial_common.ko it said that the device is busy.
Anyone knows what other module conflict or how to install xr_usb_serial_common on ubuntu on odroid C2?
Thansk for all.
When i run insmos ./ xr_usb_serial_common.ko it said that the device is busy.
Anyone knows what other module conflict or how to install xr_usb_serial_common on ubuntu on odroid C2?
Thansk for all.
- odroid
- Site Admin
- Posts: 39117
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 2513 times
- Been thanked: 1382 times
- Contact:
Re: xr_usb_serial_common Ubuntu 16.04
Do you run Kernel 3.16? or 3.14?
Try 3.16 with this Ubuntu 18.04.3 image since we don't support 16.04 anymore.
https://wiki.odroid.com/odroid-c2/os_images/ubuntu/v3.1
Try 3.16 with this Ubuntu 18.04.3 image since we don't support 16.04 anymore.
https://wiki.odroid.com/odroid-c2/os_images/ubuntu/v3.1
-
- Posts: 6
- Joined: Mon Feb 10, 2020 8:38 pm
- languages_spoken: Spanish
- ODROIDs: C2
- Has thanked: 0
- Been thanked: 0
- Contact:
-
- Posts: 6
- Joined: Mon Feb 10, 2020 8:38 pm
- languages_spoken: Spanish
- ODROIDs: C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: xr_usb_serial_common Ubuntu 16.04
same error and the USB wireless network adapter doesn't work in this version. the driver doesn't compile.
- odroid
- Site Admin
- Posts: 39117
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 2513 times
- Been thanked: 1382 times
- Contact:
Re: xr_usb_serial_common Ubuntu 16.04
How did you compile the driver?
Which WiFi module do you have?
Which WiFi module do you have?
-
- Posts: 6
- Joined: Mon Feb 10, 2020 8:38 pm
- languages_spoken: Spanish
- ODROIDs: C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: xr_usb_serial_common Ubuntu 16.04
rtl8192eu
I change this two settings in Makefile
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_AARCH64 = y
Then
sudo dkms add .
sudo dkms install rtl8192eu/1.0
And don’t compile. For testing i use make
I get an error on rtw_ap.c error
Using auth_len
I change this two settings in Makefile
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_AARCH64 = y
Then
sudo dkms add .
sudo dkms install rtl8192eu/1.0
And don’t compile. For testing i use make
I get an error on rtw_ap.c error
Using auth_len
- odroid
- Site Admin
- Posts: 39117
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 2513 times
- Been thanked: 1382 times
- Contact:
Re: xr_usb_serial_common Ubuntu 16.04
I could build RTL8821CU driver with dkms.
viewtopic.php?f=177&t=34769
Can you post a full log when you run 'make'?
viewtopic.php?f=177&t=34769
Can you post a full log when you run 'make'?
-
- Posts: 6
- Joined: Mon Feb 10, 2020 8:38 pm
- languages_spoken: Spanish
- ODROIDs: C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: xr_usb_serial_common Ubuntu 16.04
for the wireless driver i am using
but I make this changes to the Makefile and now is working
Now with xr_usb_serial_common
Code: Select all
git clone https://github.com/Mange/rtl8192eu-linux-driver
Code: Select all
133c133,134
< CONFIG_PLATFORM_I386_PC = y
---
> CONFIG_PLATFORM_I386_PC = n
> CONFIG_PLATFORM_ARM_AARCH64 = y
1305a1307
> EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
Code: Select all
sudo insmod ./xr_usb_serial_common.ko
insmod: ERROR: could not insert module ./xr_usb_serial_common.ko: Device or resource busy
- odroid
- Site Admin
- Posts: 39117
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 2513 times
- Been thanked: 1382 times
- Contact:
Re: xr_usb_serial_common Ubuntu 16.04
Try the following steps to check other device driver was already loaded or not.
<1> Remove the USB device and reboot.
<2> Check "lsmod" output.
<3> Plug the USB device and check "lsmod" output.
If there is a new driver (automatically loaded one), add the module into the blacklist file
And reboot your C2 and load your own driver module manually.
<1> Remove the USB device and reboot.
<2> Check "lsmod" output.
<3> Plug the USB device and check "lsmod" output.
If there is a new driver (automatically loaded one), add the module into the blacklist file
/etc/modprobe.d/blacklist-odroid.conf
.And reboot your C2 and load your own driver module manually.
-
- Posts: 6
- Joined: Mon Feb 10, 2020 8:38 pm
- languages_spoken: Spanish
- ODROIDs: C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: xr_usb_serial_common Ubuntu 16.04
the only difference is the usbserial module. I try to blacklist it anyway but the problem persists. Another thing that I notice is that when I connect the USB to SR485 the other port loses connection on the controller. That doesn't happen on windows.
I am going to stop trying to use the USB to RS485. I am going to try to make a uart to RS485.
Thanks for all the help.
I am going to stop trying to use the USB to RS485. I am going to try to make a uart to RS485.
Thanks for all the help.
-
- Posts: 2
- Joined: Sun Mar 26, 2017 12:29 pm
- languages_spoken: english
- ODROIDs: C2
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: xr_usb_serial_common Ubuntu 16.04
Hmmm, I'm running into the same issue trying to use module xr_usb_serial_common - apparently a built-in driver is already using the usb resource.
Is there a good way to detect which driver exactly is linked to usb hardware?
I also saw https://unix.stackexchange.com/question ... not-loaded, but I cannot quite figure out what goes where.
Using Ubuntu 20.04 on an Odroid C4.
There's also the topic of overlays. Could that be a solution for this case? But what would that exactly look like? I'm kinda bit lost.
Code: Select all
root@odroid:~# insmod /lib/modules/"$(uname -r)"/kernel/drivers/usb/serial/xr_usb_serial_common.ko
insmod: ERROR: could not insert module /lib/modules/4.9.277-83/kernel/drivers/usb/serial/xr_usb_serial_common.ko: Device or resource busy
I also saw https://unix.stackexchange.com/question ... not-loaded, but I cannot quite figure out what goes where.
Using Ubuntu 20.04 on an Odroid C4.
There's also the topic of overlays. Could that be a solution for this case? But what would that exactly look like? I'm kinda bit lost.

- odroid
- Site Admin
- Posts: 39117
- Joined: Fri Feb 22, 2013 11:14 pm
- languages_spoken: English, Korean
- ODROIDs: ODROID
- Has thanked: 2513 times
- Been thanked: 1382 times
- Contact:
Who is online
Users browsing this forum: No registered users and 2 guests