From owner-freebsd-arm@freebsd.org Fri Aug 5 21:35:43 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC7BBBB06C4 for ; Fri, 5 Aug 2016 21:35:43 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C4EA1012 for ; Fri, 5 Aug 2016 21:35:42 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id u75LZZa3076477 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 5 Aug 2016 23:35:40 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id u75LZTpJ070923 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Aug 2016 23:35:29 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTP id u75LZTwd029245; Fri, 5 Aug 2016 23:35:29 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id u75LZTbH029244; Fri, 5 Aug 2016 23:35:29 +0200 (CEST) (envelope-from ticso) Date: Fri, 5 Aug 2016 23:35:29 +0200 From: Bernd Walter To: freebsd-arm@freebsd.org Cc: Bernd Walter Subject: ow_temp failed to read when loaded as module Message-ID: <20160805213528.GP18406@cicely7.cicely.de> Reply-To: ticso@cicely.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely7.cicely.de 10.2-RELEASE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2016 21:35:44 -0000 It might be the loading order I'd used. kldload owc kldload ow kldload ow_temp owc0: 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: romid 28:b0:6b:29:05:00:00:ae on ow0 ow_temp1: 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: at pin 4 on gpiobus0 ow0: <1 Wire Bus> on owc0 ow_temp0: romid 28:b0:6b:29:05:00:00:ae on ow0 ow_temp1: 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 http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.