From owner-freebsd-arm@freebsd.org Sun Sep 27 15:57:35 2015 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 19C9DA06B1C for ; Sun, 27 Sep 2015 15:57:35 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from mail.kronometrix.org (mail.kronometrix.org [54.72.43.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.kronometrix.org", Issuer "mail.kronometrix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A7B3D1A7 for ; Sun, 27 Sep 2015 15:57:34 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from [192.168.1.171] (89-27-2-202.bb.dnainternet.fi [89.27.2.202]) (authenticated bits=0) by mail.kronometrix.org (8.14.9/8.14.9) with ESMTP id t8RFvUOF039895 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 27 Sep 2015 15:57:31 GMT (envelope-from sparvu@kronometrix.org) Reply-To: sparvu@kronometrix.org Subject: Re: RBPI2 ds1307 rtc kernel panic References: <5607C63D.2010203@kronometrix.org> <5607DC59.5050509@gmail.com> To: freebsd-arm@FreeBSD.org From: Stefan Parvu X-Enigmail-Draft-Status: N1110 Organization: kronometrix.org Message-ID: <560811E5.806@kronometrix.org> Date: Sun, 27 Sep 2015 18:57:25 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5607DC59.5050509@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Sep 2015 15:57:35 -0000 > device ds1307 > > In the DTS file (sys/boot/fdt/dts/arm/rpi.dts) I added Thanks a lot for comments. Couple of questions: 1. It seems I need to modify and add the rtc section under rpi2.dts not the bcm2836.dtsi. Do I need still to build the dtb file: root@rpi2:/usr/src/sys/tools/fdt # setenv MACHINE arm root@rpi2:/usr/src/sys/tools/fdt # ./make_dtb.sh /usr/src/sys /usr/src/sys/boot/fdt/dts/arm/rpi2.dts . converting /usr/src/sys/boot/fdt/dts/arm/rpi2.dts -> ./rpi2.dtb Warning (reg_format): "reg" property in /axi/gpio/rtc has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) Warning (avoid_default_addr_size): Relying on default #address-cells value for /axi/gpio/rtc Warning (avoid_default_addr_size): Relying on default #size-cells value for /axi/gpio/rtc 2. After modifying the rpi2.dts and the RPI2 kernel config file I just rebuild, right ? Nothing else ? Thanks, -- Stefan Parvu