NetBSD Problem Report #53284

From www@NetBSD.org  Sun May 13 05:29:11 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6B6417A174
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 13 May 2018 05:29:11 +0000 (UTC)
Message-Id: <20180513052910.775097A1D0@mollari.NetBSD.org>
Date: Sun, 13 May 2018 05:29:10 +0000 (UTC)
From: jun@soum.co.jp
Reply-To: jun@soum.co.jp
To: gnats-bugs@NetBSD.org
Subject: Support RPI3B+,RPI0W,RPI2-1.2
X-Send-Pr-Version: www-1.0

>Number:         53284
>Category:       port-arm
>Synopsis:       Support RPI3B+,RPI0W,RPI2-1.2
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun May 13 05:30:00 +0000 2018
>Closed-Date:    Sun Sep 01 05:51:50 +0000 2019
>Last-Modified:  Sun Sep 01 05:51:50 +0000 2019
>Originator:     Jun Ebihara
>Release:        NetBSD rpi 8.99.14
>Organization:
SOUM Corporation
>Environment:
NetBSD rpi 8.99.14 NetBSD 8.99.14 (RPI2) #0: Wed Mar 21 17:03:09 UTC 2018  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/RPI2 evbarm
>Description:
RPI3B+
RPI0W
RPI2-1.2
need dtb files to boot NetBSD. 

on default,boot failed on RPI3B+ RPI0W RPI2-1.2.

>How-To-Repeat:
make netbsd rpi image
http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/201805121530Z/evbarm-earmv6hf/binary/gzimg/rpi.img.gz

gunzip < rpi.img.gz |dd of=/dev/rsd0d

boot failed with 
RPI3B+
RPI0W
RPI2-1.2

>Fix:
copy or make dtb files to boot.
        # RPI3B+
        cp ${MNT}/bcm2837-rpi-3-b.dtb  ${MNT}/bcm2837-rpi-3-b-plus.dtb
        # RPI0W
        cp ${MNT}/bcm2835-rpi-zero.dtb ${MNT}/bcm2835-rpi-zero-w.dtb
        # RPI2-1.2
        cp ${MNT}/bcm2836-rpi-2-b.dtb  ${MNT}/bcm2837-rpi-2-b.dtb

http://ftp.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/2018-04-14-earmv6hf/2018-04-14-netbsd-raspi-earmv6hf.img.gz
gunzip < 2018-04-14-netbsd-raspi-earmv6hf.img.gz |dd of=/dev/rsd0d

boot well on 
RPI3B+
RPI0W
RPI2-1.2

>Release-Note:

>Audit-Trail:
From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53284 CVS commit: src/sys/arch/evbarm/conf
Date: Sun, 1 Jul 2018 15:33:29 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Sun Jul  1 15:33:29 UTC 2018

 Modified Files:
 	src/sys/arch/evbarm/conf: GENERIC64 RPI RPI2 RPI64

 Log Message:
 Add bcm2835-rpi-zero-w.dts and bcm2837-rpi-3-b-plus.dts as appropriate

 PR/53284 -  Support RPI3B+,RPI0W,RPI2-1.2


 To generate a diff of this commit:
 cvs rdiff -u -r1.23 -r1.24 src/sys/arch/evbarm/conf/GENERIC64
 cvs rdiff -u -r1.81 -r1.82 src/sys/arch/evbarm/conf/RPI
 cvs rdiff -u -r1.5 -r1.6 src/sys/arch/evbarm/conf/RPI2
 cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbarm/conf/RPI64

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 29 Sep 2018 18:56:39 +0000
State-Changed-Why:
Is this working? I assume we can't pull it up  easily because -8 RPI doesn't use fdt?


From: Jun Ebihara <jun@soum.co.jp>
To: gnats-bugs@NetBSD.org, maya@NetBSD.org
Cc: port-arm-maintainer@netbsd.org, netbsd-bugs@netbsd.org,
        gnats-admin@netbsd.org
Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
Date: Sun, 30 Sep 2018 05:51:14 +0900 (JST)

 From: maya@NetBSD.org
 Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
 Date: Sat, 29 Sep 2018 18:56:39 +0000 (UTC)

 > Is this working? I assume we can't pull it up  easily because -8 RPI doesn't use fdt?

 On 8.99.25
 - RPI3B+ and RPI2-1.2: fixed,thanx
 - RPI0W: can't initialize microSD.
   cp /boot/bcm2835-rpi-zero.dtb  /boot/bcm2835-rpi-zero-w.dtb 

State-Changed-From-To: feedback->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 29 Sep 2018 23:22:34 +0000
State-Changed-Why:
need rpi0w too.


State-Changed-From-To: open->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Mon, 12 Aug 2019 10:15:36 +0000
State-Changed-Why:
Does rpi0w work afte the dts import on May25 2019?


From: Jun Ebihara <jun@soum.co.jp>
To: gnats-bugs@netbsd.org, skrll@NetBSD.org
Cc: port-arm-maintainer@netbsd.org, netbsd-bugs@netbsd.org,
        gnats-admin@netbsd.org
Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
Date: Thu, 15 Aug 2019 20:24:08 +0900 (JST)

 From: skrll@NetBSD.org
 Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
 Date: Mon, 12 Aug 2019 10:15:37 +0000 (UTC)

 > State-Changed-Why:
 > Does rpi0w work afte the dts import on May25 2019?

 NetBSD/earmv6hf 9.99.8 201908150100Z on RPI0W 
 cant find root partition.RPI0 boot fine. 
 https://twitter.com/ebijun/status/1161958831489896448


 --
 Jun Ebihara

From: Nick Hudson <nick.hudson@gmx.co.uk>
To: Jun Ebihara <jun@soum.co.jp>, gnats-bugs@netbsd.org
Cc: port-arm-maintainer@netbsd.org, netbsd-bugs@netbsd.org,
 gnats-admin@netbsd.org
Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
Date: Sat, 17 Aug 2019 16:04:38 +0100

 This is a multi-part message in MIME format.
 --------------5038ED79C90B2EA28EFDD354
 Content-Type: text/plain; charset=utf-8; format=flowed
 Content-Transfer-Encoding: quoted-printable

 On 15/08/2019 12:24, Jun Ebihara wrote:
 > From: skrll@NetBSD.org
 > Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
 > Date: Mon, 12 Aug 2019 10:15:37 +0000 (UTC)
 >
 >> State-Changed-Why:
 >> Does rpi0w work afte the dts import on May25 2019?
 >
 > NetBSD/earmv6hf 9.99.8 201908150100Z on RPI0W
 > cant find root partition.RPI0 boot fine.
 > https://twitter.com/ebijun/status/1161958831489896448

 I think this patch fixes rpi0w, but I can't test it.

 Nick


 --------------5038ED79C90B2EA28EFDD354
 Content-Type: text/x-patch;
  name="bcm2835-rpi.dtsi.diff"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
  filename="bcm2835-rpi.dtsi.diff"

 Index: sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm2835-rpi.dtsi
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvsroot/src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm283=
 5-rpi.dtsi,v
 retrieving revision 1.5
 diff -u -p -r1.5 bcm2835-rpi.dtsi
 =2D-- sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm2835-rpi.dtsi	25 May=
  2019 11:48:05 -0000	1.5
 +++ sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm2835-rpi.dtsi	17 Aug 2=
 019 14:59:39 -0000
 @@ -71,13 +71,13 @@
  &sdhci {
  	pinctrl-names =3D "default";
  	pinctrl-0 =3D <&emmc_gpio48>;
 -	status =3D "okay";
  	bus-width =3D <4>;
  };

  &sdhost {
  	pinctrl-names =3D "default";
  	pinctrl-0 =3D <&sdhost_gpio48>;
 +	status =3D "okay";
  	bus-width =3D <4>;
  };



 --------------5038ED79C90B2EA28EFDD354--

From: Jun Ebihara <jun@soum.co.jp>
To: nick.hudson@gmx.co.uk
Cc: gnats-bugs@netbsd.org, port-arm-maintainer@netbsd.org,
        netbsd-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
Date: Mon, 19 Aug 2019 08:40:52 +0900 (JST)

 From: Nick Hudson <nick.hudson@gmx.co.uk>
 Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
 Date: Sat, 17 Aug 2019 16:04:38 +0100

 >> NetBSD/earmv6hf 9.99.8 201908150100Z on RPI0W
 >> cant find root partition.RPI0 boot fine.
 >> https://twitter.com/ebijun/status/1161958831489896448
 > I think this patch fixes rpi0w, but I can't test it.

 Thanx nick,the patch works well on rpi0w.

 --
 Jun Ebihara

From: Nick Hudson <nick.hudson@gmx.co.uk>
To: Jun Ebihara <jun@soum.co.jp>
Cc: gnats-bugs@netbsd.org, port-arm-maintainer@netbsd.org,
 netbsd-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
Date: Tue, 20 Aug 2019 08:45:37 +0100

 On 19/08/2019 00:40, Jun Ebihara wrote:
 > From: Nick Hudson <nick.hudson@gmx.co.uk>
 > Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
 > Date: Sat, 17 Aug 2019 16:04:38 +0100
 >
 >>> NetBSD/earmv6hf 9.99.8 201908150100Z on RPI0W
 >>> cant find root partition.RPI0 boot fine.
 >>> https://twitter.com/ebijun/status/1161958831489896448
 >> I think this patch fixes rpi0w, but I can't test it.
 >
 > Thanx nick,the patch works well on rpi0w.

 Does the change also still work on rpi0?

 Thanks,
 Nick

From: Jun Ebihara <jun@soum.co.jp>
To: gnats-bugs@netbsd.org, nick.hudson@gmx.co.uk
Cc: port-arm-maintainer@netbsd.org, gnats-admin@netbsd.org,
        netbsd-bugs@netbsd.org
Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
Date: Thu, 22 Aug 2019 15:31:13 +0900 (JST)

 From: Nick Hudson <nick.hudson@gmx.co.uk>
 Subject: Re: port-arm/53284 (Support RPI3B+,RPI0W,RPI2-1.2)
 Date: Tue, 20 Aug 2019 08:05:01 +0000 (UTC)

 >  > Thanx nick,the patch works well on rpi0w.
 >  Does the change also still work on rpi0?

 works well on rpi0 and rpi0w.thanx.

 simplebus0 at armfdt0: Raspberry Pi Zero Rev 1.2
 https://github.com/ebijun/NetBSD/blob/master/dmesg/earmv6hf/RPI0

 simplebus0 at armfdt0: Raspberry Pi Zero W Rev 1.1
 https://github.com/ebijun/NetBSD/blob/master/dmesg/earmv6hf/RPI0W

 --
 Jun Ebihara

From: "Nick Hudson" <skrll@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53284 CVS commit: src/sys/external/gpl2/dts/dist/arch/arm/boot/dts
Date: Thu, 22 Aug 2019 08:32:34 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Thu Aug 22 08:32:34 UTC 2019

 Modified Files:
 	src/sys/external/gpl2/dts/dist/arch/arm/boot/dts: bcm2835-rpi.dtsi

 Log Message:
 Revert a change I made to this file a long time ago so that is now matches
 linux mainline again.  This fixes the rpi0w..

 Tested on rpi0 and rpi0w by Jun Ebihara

 PR/53284 (Support RPI3B+,RPI0W,RPI2-1.2)


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 \
     src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm2835-rpi.dtsi

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->closed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Thu, 22 Aug 2019 09:11:21 +0000
State-Changed-Why:
Reported fixed



State-Changed-From-To: closed->pending-pullups
State-Changed-By: rin@NetBSD.org
State-Changed-When: Thu, 22 Aug 2019 13:00:00 +0000
State-Changed-Why:
[pullup-9 #107]
This needs to be pulled up into netbsd-9.


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/53284 CVS commit: [netbsd-9] src/sys/external/gpl2/dts/dist/arch/arm/boot/dts
Date: Mon, 26 Aug 2019 13:36:01 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Aug 26 13:36:01 UTC 2019

 Modified Files:
 	src/sys/external/gpl2/dts/dist/arch/arm/boot/dts [netbsd-9]:
 	    bcm2835-rpi.dtsi

 Log Message:
 Pull up following revision(s) (requested by rin in ticket #107):

 	sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm2835-rpi.dtsi: revision 1.6

 Revert a change I made to this file a long time ago so that is now matches
 linux mainline again.  This fixes the rpi0w..

 Tested on rpi0 and rpi0w by Jun Ebihara

 PR/53284 (Support RPI3B+,RPI0W,RPI2-1.2)


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.5.2.1 \
     src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm2835-rpi.dtsi

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: jnemeth@NetBSD.org
State-Changed-When: Sun, 01 Sep 2019 05:51:50 +0000
State-Changed-Why:
pullup completed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.