Jump to content

Orange Pi Zero LTS - can't get w1-slave running


Go to solution Solved by DTS,

Recommended Posts

Posted

I'm running the newest Arbian Buster Kernel (Linux version 5.8.14-sunxi) on a Orange Pi Zero LTS.

I can't get a DS18B20 running over days of experimeting. I read a lot in this forum, followed the suggestions of martinayotte and others, no success.

The frustration/desperation begins to rise.

 

Extract from boot screen:

------------------------------------------------------------------------------

Found mainline kernel configuration
32515 bytes read in 12 ms (2.6 MiB/s)
374 bytes read in 17 ms (21.5 KiB/s)
Applying kernel provided DT overlay sun8i-h3-i2c0.dtbo
778 bytes read in 18 ms (42 KiB/s)
Applying kernel provided DT overlay sun8i-h3-pps-gpio.dtbo
777 bytes read in 18 ms (42 KiB/s)
Applying kernel provided DT overlay sun8i-h3-w1-gpio.dtbo
4185 bytes read in 17 ms (240.2 KiB/s)
Applying kernel provided DT fixup script (sun8i-h3-fixup.scr)
## Executing script at 45000000
tmp_bank=A
tmp_pin=10

------------------------------------------------------------------------------

 

w1_bus_master1 is listed in /sys/bus/w1/devices. But not any slave.

 

/etc/modules-load.d/modules.conf  only contains:

g_serial

 

/boot/armbianEnv.txt contains:

verbosity=1
bootlogo=false
console=serial
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=i2c0 pps-gpio w1-gpio
param_w1_pin=PA10
param_w1_pin_int_pullup=1
rootdev=UUID=e891ced7-28ea-408c-bbe6-d0074b514c7b
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

 

CPU min frequency is set to 648000 Hz

 

I tried differen GPIOs, different sensors, both w/ and w/o pullup. No success.

Currently connected to:

VCC 3.3V     -   Pin 17

GND           -    Pin 25

1Wire         -    Pin 26 (PA10)

 

If any other information is of importance, please let me know.

Any suggestions to get it running would be highly appreciated.

 

 

Posted

I can barely remember there was a similar thing about a year ago and I think the conclusion was that H2+/H3 does not support slave mode but master only.

Could be totally wrong though, just as a hint where you could start digging.

Posted

The headline might be a bit misleading. I want to use the OPi Zero as master. But the system does not show any slave inside /sys/bus/w1/devices. Not at different pins, not with different sensors. I connected the sensors on a ESP8266, no problem.

Posted
On 10/18/2020 at 5:29 AM, DTS said:

followed the suggestions of martinayotte

In my case, I don't have any issue with a DS18B20 plugged on one of my OPiZero, except maybe that I'm using an external pullup ...

 

root@orangepizero:~# cat /sys/bus/w1/devices/28-000003ebdd28/w1_slave 
b9 01 4b 46 7f ff 07 10 d1 : crc=d1 YES
b9 01 4b 46 7f ff 07 10 d1 t=27562

 

  • Solution
Posted

Problem is solved. Is was an soldering issue at the 26 pin header.

However, thans for your answers.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines