Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Aug 2016 23:35:29 +0200
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        freebsd-arm@freebsd.org
Cc:        Bernd Walter <ticso@cicely7.cicely.de>
Subject:   ow_temp failed to read when loaded as module
Message-ID:  <20160805213528.GP18406@cicely7.cicely.de>

next in thread | raw e-mail | index | archive | help
It might be the loading order I'd used.
kldload owc
kldload ow
kldload ow_temp

owc0: <FDT GPIO attached one-wire bus> at pin 4 on gpiobus0
ow0: <1 Wire Bus> on owc0
oops, starting over
oops, starting over
oops, starting over
oops, starting over
oops, starting over
oops, starting over
oops, starting over
oops, starting over
ow0: romid 28:b0:6b:29:05:00:00:ae: no driver
ow0: romid 28:99:3b:29:05:00:00:1b: no driver
ow_temp0: <Advanced One Wire Temperature> romid 28:b0:6b:29:05:00:00:ae on ow0
ow_temp1: <Advanced One Wire Temperature> romid 28:99:3b:29:05:00:00:1b on ow0

root@rpi-b:/home/freebsd # sysctl dev.ow_temp
dev.ow_temp.1.parasite: 0
dev.ow_temp.1.reading_interval: 1000
dev.ow_temp.1.badread: 0
dev.ow_temp.1.badcrc: 0
dev.ow_temp.1.temperature: -1
dev.ow_temp.1.%parent: ow0
dev.ow_temp.1.%pnpinfo: romid=28:99:3b:29:05:00:00:1b
dev.ow_temp.1.%location: 
dev.ow_temp.1.%driver: ow_temp
dev.ow_temp.1.%desc: Advanced One Wire Temperature
dev.ow_temp.0.parasite: 0
dev.ow_temp.0.reading_interval: 1000
dev.ow_temp.0.badread: 0
dev.ow_temp.0.badcrc: 0
dev.ow_temp.0.temperature: -1
dev.ow_temp.0.%parent: ow0
dev.ow_temp.0.%pnpinfo: romid=28:b0:6b:29:05:00:00:ae
dev.ow_temp.0.%location: 
dev.ow_temp.0.%driver: ow_temp
dev.ow_temp.0.%desc: Advanced One Wire Temperature
dev.ow_temp.%parent: 

Compiled into the kernel everything runs fine:
owc0: <FDT GPIO attached one-wire bus> at pin 4 on gpiobus0
ow0: <1 Wire Bus> on owc0
ow_temp0: <Advanced One Wire Temperature> romid 28:b0:6b:29:05:00:00:ae on ow0
ow_temp1: <Advanced One Wire Temperature> romid 28:99:3b:29:05:00:00:1b on ow0

root@rpi-b:/home/freebsd # sysctl dev.ow_temp
dev.ow_temp.1.parasite: 0
dev.ow_temp.1.reading_interval: 1000
dev.ow_temp.1.badread: 0
dev.ow_temp.1.badcrc: 5
dev.ow_temp.1.temperature: 29.312C
dev.ow_temp.1.%parent: ow0
dev.ow_temp.1.%pnpinfo: romid=28:99:3b:29:05:00:00:1b
dev.ow_temp.1.%location: 
dev.ow_temp.1.%driver: ow_temp
dev.ow_temp.1.%desc: Advanced One Wire Temperature
dev.ow_temp.0.parasite: 0
dev.ow_temp.0.reading_interval: 1000
dev.ow_temp.0.badread: 0
dev.ow_temp.0.badcrc: 4
dev.ow_temp.0.temperature: 29.437C
dev.ow_temp.0.%parent: ow0
dev.ow_temp.0.%pnpinfo: romid=28:b0:6b:29:05:00:00:ae
dev.ow_temp.0.%location: 
dev.ow_temp.0.%driver: ow_temp
dev.ow_temp.0.%desc: Advanced One Wire Temperature
dev.ow_temp.%parent: 

-- 
B.Walter <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160805213528.GP18406>