From owner-freebsd-arm@freebsd.org Tue Aug 14 22:04:53 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3CE9F106633D for ; Tue, 14 Aug 2018 22:04:53 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from plan-b.pwste.edu.pl (plan-b.pwste.edu.pl [IPv6:2001:678:618::40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plan-b.pwste.edu.pl", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 91F638B3B5 for ; Tue, 14 Aug 2018 22:04:52 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from fomalhaut.potoki.eu ([IPv6:2001:470:71:d47:c4f7:ef33:9cec:87d]) (authenticated bits=0) by plan-b.pwste.edu.pl (8.15.2/8.15.2) with ESMTPSA id w7EM4kW6071852 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 15 Aug 2018 00:04:46 +0200 (CEST) (envelope-from zarychtam@plan-b.pwste.edu.pl) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=plan-b.pwste.edu.pl; s=plan-b-mailer; t=1534284286; bh=y/PPKUrJf1TbR94MdaYLHndUz4R7sQ/Is85qHa8EDgM=; h=To:Cc:References:From:Subject:Date:In-Reply-To; b=e/6eNFFHYdb9p4BK2Mo18Cy1rEJjys+exW9YlW3RPqTUOP3uRB9Z1Wm0uCTNqt4NT zD+U+bRoy7ArAMOOCV12ZBpu/qUZBQuAhN1J8KiWnkwzG+6++3jEDcYBIB44SPVDf5 IpMWh7306m0JRT7Mct2ePh2AvS3RZKamzu3ojqt/8EJn65zWDKphP7v1axfArPDcUw gIhQ9be4Q4U+ZFdoIUqXjdvJb9az0P9tlJECulpzryOH5SXoQJmJVwWxPHFETlqSKm fxWYL8GSQhSPkbXSw0mB8tQtA0e6cHGk8pX6R9dKWiL9xLdXkCzW6Mn/TK/iVp8RQu 53yBXqIhA9VsA== X-Authentication-Warning: plan-b.pwste.edu.pl: Host [IPv6:2001:470:71:d47:c4f7:ef33:9cec:87d] claimed to be fomalhaut.potoki.eu To: Warner Losh Cc: "freebsd-arm@freebsd.org" References: <1e34169b-a638-ca80-13f1-b96585483a76@plan-b.pwste.edu.pl> From: Marek Zarychta Openpgp: preference=signencrypt Autocrypt: addr=zarychtam@plan-b.pwste.edu.pl; prefer-encrypt=mutual; keydata= xsBNBFfi3cMBCADLecMTFXad4uDXqv3eRuB4qJJ8G9tzzFezeRnnwxOsPdytW5ES2z1ibSrR IsiImx6+PTqrAmXpTInxAi7yiZGdSiONRI4CCxKY9d1YFiNYT/2WyNXCekm9x29YeIU7x0JB Llbz0f/9HC+styBIu2H+PY/X98Clzm110CS+n/b9l1AtiGxTiVFj7/uavYAKxH6LNWnbkuc5 v8EVNc7NkEcl5h7Z9X5NEtzDxTOiBIFQ/kOT7LAtkYUPo1lqLeOM2DtWSXTXQgXl0zJI4iP1 OAu4qQYm2nXwq4b2AH9peknelvnt1mpfgDCGSKnhc26q6ibTfMwydp+tvUtQIQYpA6b9ABEB AAHNLk1hcmVrIFphcnljaHRhIChQV1NURSkgPHphcnljaHRhQHB3c3RlLmVkdS5wbD7CwHoE EwEIACQCGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AFAlfi61cCGQEACgkQHZW8vIFppoKb Qgf+IlZ71gjdVsvBykXUyxF6tZvpdPS0jnPqZBG/+WKIv6D2YfQ1wAQCkApv1CGz3XPdWDhh 0vGmF8ZCN/fKDpMGT4pIJkn5ZZxSmediy44BGUqFBqWSsZaFb6Ub6EbRHDvfBssRQZT9TMB9 abZtF5ZZOXmxlTuDDGL1PMp5XYVSMXfBH6qU8DSv5mBQr3v1IYJyxc6ylyE6lhg52eZ73NAl uxZelDIZX+uTK2GhpP1YWDucTUBUCpquhQjpNd6jw2uhmeF1ZgbS1WiTyK4j1VqT+j1HqiLB zOq9dC52g/wEGZet82Of5EFIpp1+o3PXkAVf9CpSsm3aavp9463QlksxA87ATQRX4t3DAQgA 10h6RCXuBLMHxq5B8X/ZIlj9sgLoeyfRdDZEc9rT2KUeUJVHDsbvOFf4/7F1ovWYhJbA6GK/ LUZeHHTjnbZcH1uDYQeHly4UOLxeEvhGoz4JhS2C7JzN/uRnwbdOAUbJr8rUj/IYa7gk906r ktsc/Ldrxrxh7O6WO0JCh2XO/p4pDfEwwB37g4xHprSab28ECYJ9JMbtA8Sy4M55g3+GQ28F vSlGnx48OoGXU2BZdc1vZKSQmNOlikB+9/hDX8zdYWVfDaX1TLQ8Ib4+xTUmapzamV/bxIsa ZRBw+jFjLQHhTbIMfPEU+4mxFDvTdbKPruKPqVf1ydgMnPZWngowdwARAQABwsBfBBgBCAAJ BQJX4t3DAhsMAAoJEB2VvLyBaaaC6qkIAJs9sDPqrqW0bYoRfzY6XjDWQ59p9tJiv8aogxac QNCfAu+WkJ8PNVUtC1dlVcG5NnZ80gXzd1rc8ueIvXlvdanUt/jZd8jbb3gaDbK3wh1yMCGB l/1fOJTyEGYv1CRojv97KK89KP5+r8x1P1iHcSrunlDNqGxTMydNCwBH23QcOM+mu4spKnJ/ s0VRBkw3xoKBZfZza6fTQ4gTpAipjyk7ldOGBV+PvkKATdhK2yLwuWXhKbg/GRlD1r5P0gxz SqfV4My+KJuc2EDcrqp1y0wOpE1m9iZqCcd0fup5f7HDsYlLWshr7NQl28f6+fQbsylq/j67 2BHXsdeqf/Ip9V4= Subject: Re: 1-Wire and RPi2 Message-ID: Date: Wed, 15 Aug 2018 00:04:36 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kM9OzwNNjm9rqRN1BfRkX73G5N0JerjXL" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2018 22:04:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --kM9OzwNNjm9rqRN1BfRkX73G5N0JerjXL Content-Type: multipart/mixed; boundary="PCwj3c4IzaGkGYHA7Ngtevw9zCLPXLXie"; protected-headers="v1" From: Marek Zarychta To: Warner Losh Cc: "freebsd-arm@freebsd.org" Message-ID: Subject: Re: 1-Wire and RPi2 References: <1e34169b-a638-ca80-13f1-b96585483a76@plan-b.pwste.edu.pl> In-Reply-To: --PCwj3c4IzaGkGYHA7Ngtevw9zCLPXLXie Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable W dniu 14.08.2018 o=C2=A021:15, Warner Losh pisze: > > > On Tue, Aug 14, 2018 at 12:20 PM, Marek Zarychta > > > wrote: > > I followed owc(4) man page, so added "onewire { ..." to rpi2.dts fi= le. > Then the kernel was recompiled and reinstalled. Also rpi2.dtb was > recompiled using /usr/src/sys/tools/fdt/make_dtb.sh and reinstalled= in > /boot/msdos. > > The only significant change I can see is changed MAC address assign= ed > for ue0. The 1-Wire device is still missing and I want to find out > what > I am doing wrong. > > Is 1-Wire bus supported on RPi2 boards running FreeBSD 12.0-ALPHA1?= > > > I'd expect it to work. I've not recently confirmed it working though. > > Warner Thank you for this device driver and for the reply. Of course, it works, I upgraded this box from 11-STABLE, but only partially upgraded boot environment installed on /boot/msdos partition. Currently (for FreeBSD 12.0-ALPHA1) getting ow_temp(4) working on Raspberry Pi 2 is pretty straightforward. I couldn't resist posting a simple tutorial, maybe some enthusiasts will benefit from it: pkg install rpi-firmware cp /usr/local/share/rpi-firmware/overlays/w1-gpio.dtbo /boot/msdos/overla= ys/ echo 'dtoverlay=3Dw1-gpio' >>/boot/msdos/config.txt echo 'ow_load=3D"yes"'=C2=A0 >>/boot/loader.conf echo 'owc_load=3D"yes"' >>/boot/loader.conf echo 'ow_temp_load=3D"yes"' >>/boot/loader.conf After reboot: #dmesg | grep -i wire owc0: at pin 4 on gpiobus0 ow0: <1 Wire Bus> on owc0 ow_temp0: romid 28:90:2d:e0:05:00:00:c7 on ow0 ow_temp1: romid 28:02:e6:84:05:00:00:d4 on ow0 ow_temp2: romid 28:9e:0a:a1:05:00:00:12 on ow0 ow_temp3: romid 28:db:82:85:05:00:00:07 on ow0 --=20 Marek Zarychta --PCwj3c4IzaGkGYHA7Ngtevw9zCLPXLXie-- --kM9OzwNNjm9rqRN1BfRkX73G5N0JerjXL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEMOqvKm6wKvS1/ZeCdZ/s//1SjSwFAltzUf0ACgkQdZ/s//1S jSzYogf7B4aiSC336j8MTSvduqUlGZ+yoo8yq9SdnD9cihiVuBLgSKUhAqDLLsG0 HDw6NZ719dEXWBN2H1r4yw9Ui1M2OtLxrlthaPA3Vyyy3+i9oP9++CkeFuWYIXlV Tbwij3JUP5cVY+QAA7zwGDzGA6fIHK8HpiE+HrSLuxbxEL1opPvubn/rTagumPDW Qx4QMA9hBzH7HabCfE7dvaBzCZeCymOCwwK+3NypXRnnhqtB4QXhKots623DmHNf RwVmmWbJbyiYsXeEDHkNS3JTuMsvjaMMfWRMCGNHy76tpbeKXXJF67odEPo4ElLY oivexdIr2IOY+dMeYkmVQwSTp0CYHA== =5oB+ -----END PGP SIGNATURE----- --kM9OzwNNjm9rqRN1BfRkX73G5N0JerjXL--