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.

1-wire sensor and buster on tinkerboard

Featured Replies

Hello. Sorry for maybe newbie question. I try to enable DS18B20 on my tinkerboard. The Armbian version is 21.08.1_Tinkerboard_buster_current_5.10.60. I've read the documentation about DTC, but I see no /boot/dtb/overlay directory, just /boot/dtb. I copied decompiled version of dtb from TinkerOS to this folder, compile it to rockchip-w1-gpio.dtb, but there is no /sys/bus/w1 folder.

 

dmesg|grep w1 is empty.

 

Here is my dts file:

/dts-v1/;

/ {
	compatible = "rockchip,rk3288-miniarm", "rockchip,rk3288";

	fragment@0 {
		target-path = [2f 00];

		__overlay__ {

			onewire@0 {
				compatible = "w1-gpio";
				pinctrl-names = "default";
				pinctrl-0 = <0x1>;
				gpios = <0xffffffff 0x11 0x0>;
				status = "okay";
				phandle = <0x2>;
			};
		};
	};

	fragment@1 {
		target = <0xffffffff>;

		__overlay__ {

			w1_pins@0 {
				rockchip,pins = <0x0 0x11 0x0 0xffffffff>;
				phandle = <0x1>;
			};
		};
	};

	__symbols__ {
		w1 = "/fragment@0/__overlay__/onewire@0";
		w1_pins = "/fragment@1/__overlay__/w1_pins@0";
	};

	__fixups__ {
		gpio0 = "/fragment@0/__overlay__/onewire@0:gpios:0", "/fragment@1:target:0";
		pcfg_pull_up = "/fragment@1/__overlay__/w1_pins@0:rockchip,pins:12";
	};

	__local_fixups__ {

		fragment@0 {

			__overlay__ {

				onewire@0 {
					pinctrl-0 = <0x0>;
				};
			};
		};
	};
};

 

 

Here is my armbianEnv.txt:

 

verbosity=1
bootlogo=false
overlay_prefix=rockchip
overlays=i2c1 i2c4 spi2 spidev2 uart1 uart2 w1-gpio
rootdev=UUID=acb95555-1de2-4b72-85c7-28b7b9d1a84e
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

 

Am I on a right way to activate 1-wire driver? Shall I use another method to add new device to DT on this OS version?

Maybe this is related to this:

 

I'm also experiencing similar issues with a NanoPi M4v2 here:

 

Have you found a solution @IvanD? It seems like there are regular issues around 1 wire in Rockchip boards.

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.