xr_usb_serial_common Ubuntu 16.04

Post Reply
prfiredragon
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

Post by prfiredragon »

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.

User avatar
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

Post by odroid »

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

prfiredragon
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

Post by prfiredragon »

3.14. ok, I am going to try 3.16 on ubuntu 1.04.3. thanks

prfiredragon
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

Post by prfiredragon »

same error and the USB wireless network adapter doesn't work in this version. the driver doesn't compile.

User avatar
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

Post by odroid »

How did you compile the driver?
Which WiFi module do you have?

prfiredragon
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

Post by prfiredragon »

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

User avatar
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

Post by odroid »

I could build RTL8821CU driver with dkms.
viewtopic.php?f=177&t=34769

Can you post a full log when you run 'make'?

prfiredragon
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

Post by prfiredragon »

for the wireless driver i am using

Code: Select all

git clone https://github.com/Mange/rtl8192eu-linux-driver
but I make this changes to the Makefile and now is working

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
Now with xr_usb_serial_common

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

User avatar
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

Post by odroid »

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 /etc/modprobe.d/blacklist-odroid.conf.
And reboot your C2 and load your own driver module manually.

prfiredragon
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

Post by prfiredragon »

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.

ElectricJoe
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

Post by ElectricJoe »

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.

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
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. :?:

User avatar
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

Post by odroid »

@ElectricJoe,
Make a new topic on the C4 sub-forum.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests