Onewire devices with Ubuntu 20.04, kernel 5.4 on the xu4

Post Reply
lgrobe
Posts: 2
Joined: Wed Jul 21, 2021 1:11 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Onewire devices with Ubuntu 20.04, kernel 5.4 on the xu4

Post by lgrobe »

Dear all,

I just got completely stuck with addressing a set of onewire sensors that I connected as documented on the corresponding application note https://wiki.odroid.com/odroid-xu4/appl ... gpio/1wire page. Following this step by step I end up with an empty /devices directory despite the modules load without errors.

Has anyone successfully used onewire devices connected to a GPIO with Ubuntu 20.04 / kernel 5.4 so far?

I can only guess right now, maybe the default pin expected by the onewire stack changed with the new kernel? Searching the forum led me to a lot of references to overlays, ftd-commands etc. I realised that this is quite different than a standard linux configuration task and got somewhat overwhelmed. Do I really need this if I just aim at the standard functionality of reading out onewire sensors? Or am I searching the cause of the problem in the wrong spot here?

Any help would be greatly appreciated! I installed a recent distribution since the devices are supposed to be operated over the next few years, but if necessary I may also fall back to an older kernel or distribution.

Best, Lars.

User avatar
odroid
Site Admin
Posts: 37793
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1919 times
Been thanked: 1186 times
Contact:

Re: Onewire devices with Ubuntu 20.04, kernel 5.4 on the xu4

Post by odroid »

We are enabling the missing 1-wire drivers for Kernel 5.4.
Give us a few days.

lgrobe
Posts: 2
Joined: Wed Jul 21, 2021 1:11 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 0
Contact:

Re: Onewire devices with Ubuntu 20.04, kernel 5.4 on the xu4

Post by lgrobe »

Dear odroid, thank you for the reply! Will you update this thread when the drivers are enabled, and give a hint how to update an existing Ubuntu installation?
Best, Lars.

User avatar
odroid
Site Admin
Posts: 37793
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1919 times
Been thanked: 1186 times
Contact:

Re: Onewire devices with Ubuntu 20.04, kernel 5.4 on the xu4

Post by odroid »

"apt update && apt upgrade && reboot" will be a update process as we did in the past several years.

We will leave a message on this thread.

lsc1117
Posts: 226
Joined: Thu Aug 22, 2013 12:46 am
languages_spoken: english
Location: South Korea
Has thanked: 3 times
Been thanked: 27 times
Contact:

Re: Onewire devices with Ubuntu 20.04, kernel 5.4 on the xu4

Post by lsc1117 »

@lgrobe

Now, you can upgrade your kernel version to 5.4.134-222 with the "apt update && apt upgrade && reboot" command.
After enabling the onewire, you can find device nodes as follow.

Don't forget to remove onewire from the blacklist. https://wiki.odroid.com/odroid-xu4/appl ... 1-wire_bus

Code: Select all

root@odroid:~# uname -a
Linux odroid 5.4.134-222 #1 SMP PREEMPT Thu Jul 22 11:55:57 EDT 2021 armv7l armv7l armv7l GNU/Linux
root@odroid:~#

root@odroid:~# cd /sys/bus/w1/devices/
root@odroid:/sys/bus/w1/devices# ls
10-000802f3be04  w1_bus_master1
root@odroid:/sys/bus/w1/devices# cat 10-000802f3be04/w1_slave 
3a 00 4b 46 ff ff 10 10 e0 : crc=e0 YES
3a 00 4b 46 ff ff 10 10 e0 t=28750
root@odroid:/sys/bus/w1/devices#

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 7 guests