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


Recommended Posts

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.

 

 

Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

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

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...