Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rock64 enable 1-wire to read DS18B20 or Dallas temperature sensor

Featured Replies

How is the 1-wire bus enabled on a Rock64 with Armbian 20.08.17 Bionic? I have enabled the w1-gpio through armbian-config. The /sys/bus/w1/devices/ folder is empty after sudo modprobe w1-gpio and sudo modprobe w1-therm. 

 

Below is what is in the armbianEnv.txt file in the /boot directory.

verbosity=1

bootlogo=false

overlay_prefix=rockchip

rootdev=UUID=cbeeff94-c38d-4a79-b10a-3854a2470be4

rootfstype=ext4

usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

overlays=i2c7 spi-spidev w1-gpio

 

In the /boot/dtb/rockchip/overlay/ directory there is a file rockchip-w1-gpio.dtbo.

 

I have connected the VCC pin of the DS18B20 to 3v3 physical pin 1, ground of the DS18B20 to physical pin 9, data of the DS18B20 to physical 7.

The DS18B20 address and w1_bus_master1 do not appear in the /sys/bus/w1/devices/ folder.

 

What more is required to see the DS18B20 and take readings?

 

I have already connected an 18x2 LCD to i2c and am writing information to the LCD using python.

 

Thank you for the help.

Perry

  • Author

Good evening. I added the following to /boot/armbianEnv.txt

param_w1_pin=GPIO1_D4

 

This is the armbianEnv.txt contents

verbosity=1

bootlogo=false

overlay_prefix=rockchip

rootdev=UUID=cbeeff94-c38d-4a79-b10a-3854a2470be4

rootfstype=ext4

usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

param_w1_pin=GPIO1_D4

overlays=i2c7 spi-spidev w1-gpio

 

I restarted the Rock64. The w1 directory is not created in the /sys/bus/ directory. I have to run modprobe w1-gpio and/or modprobe w1-therm to see the w1 directory. The /sys/bus/w1/devices/ directory is empty. There is not an address or the w1_bus_master listed.

 

Thank you for your help

Perry

17 hours ago, Perry said:

Thank you for your help

 

Ok ! I've never try this over on Rock64, but I did for some other Rockchip boards.

So, I've just tried and figured out that U-Boot version was not supporting "setexpr" function, so fixup script failed :

 

## Executing script at 0900Unknown command 'setexpr' - try 'help'
Unknown command 'setexpr' - try 'help'
Unknown command 'setexpr' - try 'help'
Unknown '
Unknown command 'setexpr' - tlibfdt fdt_getprop(): FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_BADPATH

 

I will check to see if doing new builds will provided newer U-Boot for this board ...

 

Alternatively, it is possible maybe to workaround by editing main DT instead of using overlay.

10 hours ago, martinayotte said:

Alternatively, it is possible maybe to workaround by editing main DT instead of using overlay.

Or, apply overlay static to base blob.

fdtoverlay --help

Much easier ;)

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.