pumuckl Posted August 31, 2018 Posted August 31, 2018 Hello, i like to work with 1wire 18b20 sensors on my Oragne Pi one , with the latest Armbian Bionic . root@orangepione:~# uname -r 4.14.65-sunxi In this forum and in the orange pi forum, there are some instructions, but I think they are out of date. 1.edit your /etc/default/cpufrequtils After edit. $ cat /etc/default/cpufrequtils ENABLE=true MIN_SPEED=480000 MAX_SPEED=1200000 GOVERNOR=interactive 2.reboot Edited by nopnop2002 at 2017-8-5 17:10 1.edit your /etc/default/cpufrequtils After edit. $ cat /etc/default/cpufrequtils ENABLE=true MIN_SPEED=480000 MAX_SPEED=1200000 GOVERNOR=interactive 2.reboot 3.driver load sudo modprobe w1-gpio sudo modprobe w1-therm Until here, this works but then I get: # sudo modprobe w1-sunxi modprobe: FATAL: Module w1-sunxi not found in directory /lib/modules/4.14.65-sunxi I aktivated W1 gpio in armbian-config/system/hardware this is the output of dmesg: [ 1.245629] core: _opp_supported_by_regulators: OPP minuV: 1320000 maxuV: 1320000, not supported by regulator [ 1.245640] cpu cpu0: _opp_add: OPP not supported by regulators (1296000000) [ 1.245985] thermal thermal_zone0: binding zone cpu-thermal with cdev thermal-cpufreq-0 failed:-17 [ 1.247906] NOHZ: local_softirq_pending 80 [ 1.248715] NOHZ: local_softirq_pending 02 [ 1.249027] of_cfs_init [ 1.249111] of_cfs_init: OK [ 1.249216] vdd-cpux-dummy: disabling [ 1.249220] vcc3v0: disabling [ 1.249225] vcc5v0: disabling [ 1.249227] usb0-vbus: disabling [ 1.251585] Freeing unused kernel memory: 1024K [ 1.317269] NOHZ: local_softirq_pending 80 [ 1.321935] NOHZ: local_softirq_pending 80 [ 1.327276] NOHZ: local_softirq_pending 80 [ 1.332280] NOHZ: local_softirq_pending 80 [ 1.831391] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 1.831398] [drm] No driver support for vblank timestamp query. [ 1.841228] sun4i-drm display-engine: bound 1100000.mixer (ops sun8i_mixer_platform_driver_exit [sun8i_mixer]) [ 1.841528] sun4i-drm display-engine: No panel or bridge found... RGB output disabled [ 1.841549] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops sun4i_tcon_platform_driver_exit [sun4i_tcon]) [ 1.966469] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy) [ 1.967468] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver [ 1.967817] sun4i-drm display-engine: bound 1ee0000.hdmi (ops sun8i_dw_hdmi_ops [sun8i_dw_hdmi]) [ 1.967857] [drm] Cannot find any crtc or sizes [ 1.968291] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0 [ 2.091399] rc_core: IR keymap rc-cec not found [ 2.091420] Registered IR keymap rc-empty [ 2.091827] rc rc0: RC for dw_hdmi as /devices/platform/soc/1ee0000.hdmi/rc/rc0 [ 2.092441] input: RC for dw_hdmi as /devices/platform/soc/1ee0000.hdmi/rc/rc0/input0 [ 2.499851] random: fast init done [ 2.531421] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null) [ 3.006461] [drm] Cannot find any crtc or sizes [ 3.242165] systemd[1]: System time before build time, advancing clock. [ 3.280369] ip_tables: (C) 2000-2006 Netfilter Core Team [ 3.303396] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) [ 3.304234] systemd[1]: Detected architecture arm. [ 3.343442] systemd[1]: Set hostname to <orangepione>. [ 4.097778] random: systemd: uninitialized urandom read (16 bytes read) [ 4.104921] systemd[1]: Created slice System Slice. [ 4.106034] random: systemd: uninitialized urandom read (16 bytes read) [ 4.106314] systemd[1]: Listening on Journal Audit Socket. [ 4.106607] random: systemd: uninitialized urandom read (16 bytes read) [ 4.106852] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 4.107954] systemd[1]: Created slice system-serial\x2dgetty.slice. [ 4.108581] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. [ 4.109049] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 4.109338] systemd[1]: Reached target Swap. [ 4.238551] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro [ 4.459317] systemd-journald[232]: Received request to flush runtime journal from PID 1 [ 4.918711] Driver for 1-wire Dallas network protocol. [ 5.078820] thermal thermal_zone0: failed to read out thermal zone (-110) [ 5.166527] asoc-simple-card sound: i2s-hifi <-> 1c22800.i2s mapping ok [ 5.407723] zram: Added device: zram0 [ 5.421363] zram: Added device: zram1 [ 5.423905] zram: Added device: zram2 [ 5.424657] zram: Added device: zram3 [ 5.425578] zram: Added device: zram4 [ 5.680041] zram1: detected capacity change from 0 to 64659456 [ 6.145450] thermal thermal_zone0: failed to read out thermal zone (-110) [ 6.505614] w1_master_driver w1_bus_master1: w1_search: max_slave_count 64 reached, will continue next search. [ 6.753330] random: crng init done [ 6.753342] random: 7 urandom warning(s) missed due to ratelimiting [ 6.778463] Adding 63140k swap on /dev/zram1. Priority:5 extents:1 across:63140k SSFS [ 6.780763] zram2: detected capacity change from 0 to 64659456 [ 6.798117] Adding 63140k swap on /dev/zram2. Priority:5 extents:1 across:63140k SSFS [ 6.800323] zram3: detected capacity change from 0 to 64659456 [ 6.817613] Adding 63140k swap on /dev/zram3. Priority:5 extents:1 across:63140k SSFS [ 6.819763] zram4: detected capacity change from 0 to 64659456 [ 6.837622] Adding 63140k swap on /dev/zram4. Priority:5 extents:1 across:63140k SSFS [ 6.875993] zram0: detected capacity change from 0 to 52428800 [ 7.166308] EXT4-fs (zram0): mounted filesystem without journal. Opts: (null) [ 7.166323] thermal thermal_zone0: failed to read out thermal zone (-110) [ 8.472331] Generic PHY 0.1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0.1:01, irq=POLL) [ 8.486641] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available [ 8.486658] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW [ 8.487103] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 11.582988] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [ 11.583031] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 51.682236] w1_master_driver w1_bus_master1: Attaching one wire slave 00.800000000000 crc 8c [ 51.686179] w1_master_driver w1_bus_master1: Family 0 for 00.800000000000.8c is not registered. [ 107.822458] w1_master_driver w1_bus_master1: Attaching one wire slave 00.400000000000 crc 46 [ 107.826367] w1_master_driver w1_bus_master1: Family 0 for 00.400000000000.46 is not registered. [ 152.680655] w1_master_driver w1_bus_master1: Attaching one wire slave 00.c00000000000 crc ca [ 152.684609] w1_master_driver w1_bus_master1: Family 0 for 00.c00000000000.ca is not registered. [ 220.102887] w1_master_driver w1_bus_master1: Attaching one wire slave 00.200000000000 crc 23 [ 220.106738] w1_master_driver w1_bus_master1: Family 0 for 00.200000000000.23 is not registered. [ 276.242980] w1_master_driver w1_bus_master1: Attaching one wire slave 00.a00000000000 crc af [ 276.246926] w1_master_driver w1_bus_master1: Family 0 for 00.a00000000000.af is not registered. [ 309.798495] w1_master_driver w1_bus_master1: Attaching one wire slave 00.600000000000 crc 65 [ 309.806800] w1_master_driver w1_bus_master1: Family 0 for 00.600000000000.65 is not registered. I cant find the gpio for 1 wire like this: $dmesg [ 34.067409] W1_SUNXI: Added w1-gpio on GPIO-10 so how I can find the right pin to use 1wire pls help thx
guidol Posted August 31, 2018 Posted August 31, 2018 maybe the instructions are for older kernels. on bionic it possible that are some features are missing/dont work, because is mostly in testing/dev state
pumuckl Posted September 2, 2018 Author Posted September 2, 2018 Thanks for the fast reply. This morning I could test it, with the older kernel 1-wire is working. thanks 1
Recommended Posts