From owner-freebsd-arm@freebsd.org Thu Aug 6 15:50:30 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5A23A3A593C for ; Thu, 6 Aug 2020 15:50:30 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BMtHT38g7z4H1t for ; Thu, 6 Aug 2020 15:50:29 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1596729025; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HkX3nLtDzBx5gQw9ysWHv4V+F5iCCHGN21U/GEuSV+s=; b=V7BKVcDcyl+if/moFPTWpWC3wj/mKQH25m3+mJNa8cffMsYeYlHyZVhl6f/+rbXFAtQZJ8 IekwH5k8ROUwbxQXbKItT4GDN25bhsu8UJSHRCApJTknCC5gbAhlWJLxAeIY2m80viFtqL qYUiXvjywXZrUREqeavqImyvXXb9yjo= Received: from amy.home (lfbn-idf2-1-1138-237.w90-92.abo.wanadoo.fr [90.92.20.237]) by mx.blih.net (OpenSMTPD) with ESMTPSA id d76610cb (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 6 Aug 2020 15:50:25 +0000 (UTC) Date: Thu, 6 Aug 2020 17:50:25 +0200 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: "Bjoern A. Zeeb" , freebsd-arm Subject: Re: RockPro64 with latest image fails to boot? Message-Id: <20200806175025.a5393429d345555f20bf46b7@bidouilliste.com> In-Reply-To: <4C2C6C34-C60A-4FD3-8180-5F54BB5FA931@gmail.com> References: <20200801185716.a1c5a2972fdcf3a05902f256@bidouilliste.com> <010E3738-FB70-4A58-82A6-391252EB7A4B@gmail.com> <3D9B8A33-D537-4B21-B0BD-5E550A2294D7@gmail.com> <20200806121314.7b877e777f518db36c69f8a4@bidouilliste.com> <1B879FDB-31EA-4C53-90E3-E30CE51DF55D@gmail.com> <20200806135146.913617530d4e17ebcf133fb9@bidouilliste.com> <20200806172749.2a893ce8a73616728b46cacf@bidouilliste.com> <4C2C6C34-C60A-4FD3-8180-5F54BB5FA931@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4BMtHT38g7z4H1t X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=V7BKVcDc; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-2.39 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx:c]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-0.98)[-0.984]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-0.89)[-0.893]; NEURAL_HAM_MEDIUM(-1.01)[-1.015]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2020 15:50:30 -0000 On Thu, 6 Aug 2020 17:44:43 +0200 S=F8ren Schmidt wrote: >=20 >=20 > > On 6 Aug 2020, at 17.27, Emmanuel Vadot wrote: > >=20 > > On Thu, 6 Aug 2020 17:19:41 +0200 > > S=F8ren Schmidt wrote: > >=20 > >>=20 > >>> On 6 Aug 2020, at 13.51, Emmanuel Vadot wrote: > >>>>=20 > >>>>=20 > >>>> However, it also fails with my previously good -current release, so = that points pretty squarely at u-boot 2020.07. I?ll try to go back to 2020.= 04 (plus patches to find 4G etc). > >>>=20 > >>> What patches are you talking about ? > >>=20 > >> With the stock 2020.04 from ports I had to apply this patch manually t= o get u-boot to find all 4G?s of memory: > >>=20 > >=20 > > That shouldn't be needed, I know I don't need it (same with others > > that have the boards and tested the latest image). > > So it's clear that your problem is DRAM related (which can explain the > > random freeeze or panic), but that doesn't really explain why you don't > > have problems with NetBSD, which version of u-boot are they using ? >=20 > They use a custom version of eyufan?s u-boot an old 2019 something.. >=20 > > P.S.: That would have been good to start your recent mails by saying > > that you needed a patch for u-boot ... >=20 > I don?t need them for 2020.07 that finds 4G just fine on the rockpro64 bu= t they where needed for 2020.04 (found them on the u-boot homepage back whe= n, its a known problem fixed in .07). It's not in 2020.07 (see https://github.com/u-boot/u-boot/blob/master/arch/arm/dts/rk3399-sdram-lpdd= r4-100.dtsi) so maybe some changes made the dram controller finding all the 4GiB but it's not correctly initialized. > -- > S=F8ren Schmidt > sos@deepcore.dk / sos@freebsd.org > "So much code to hack, so little time" >=20 >=20 >=20 --=20 Emmanuel Vadot