From owner-freebsd-arm@freebsd.org Tue Mar 3 13:19:44 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 0C9D626F6FC for ; Tue, 3 Mar 2020 13:19:44 +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) server-signature RSA-PSS (4096 bits) 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 48WyKT6Sv5z4K7j for ; Tue, 3 Mar 2020 13:19:41 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1583241573; 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=4LfOAQpzXNtHSZ7gJGsMnNdbwlKCRTySOC3LMI0JlAo=; b=JMUCQ3n20YQVh4tWf5kVCkh+k9qVqDHx8g8XbdSmZaQhwWig/PYD1JWL+hlztIT0asPmva hAE4O7y/K2eG3Hu5K+ONVUvEL/R4I6/UO73xP0scBN5A2bEdor0MAfX+Xj3QXDfyC/D18Z H6o+UWebEOwU+e8YWBK0bExhrR2Qh5A= Received: from skull.home.blih.net (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 6fb432d0 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 3 Mar 2020 13:19:33 +0000 (UTC) Date: Tue, 3 Mar 2020 14:19:31 +0100 From: Emmanuel Vadot To: ticso@cicely.de Cc: Bernd Walter , freebsd-arm@freebsd.org Subject: Re: RockPro64 with u-boot 2010.01 Message-Id: <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> In-Reply-To: <20200302225606.GN52462@cicely7.cicely.de> References: <20200302225606.GN52462@cicely7.cicely.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48WyKT6Sv5z4K7j X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=JMUCQ3n2; 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 [-3.74 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.24)[ip: (-8.46), ipnet: 212.83.128.0/19(1.97), asn: 12876(0.30), country: FR(0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 13:19:44 -0000 Hi Bernd, On Mon, 2 Mar 2020 23:56:06 +0100 Bernd Walter wrote: > I'm trying to use the newer u-boot version, but failed. > Reason is that my 4G board only probes to 2G RAM with 2019.10. > According to that link it was during the 2010.01 release candidates: > http://u-boot.10912.n7.nabble.com/rockchip-rk3399-TPL-rockpro64-Wrong-memory-size-detected-td382441.html > > I naively tried the following: > Index: u-boot-master/distinfo > =================================================================== > --- u-boot-master/distinfo (revision 527638) > +++ u-boot-master/distinfo (working copy) > @@ -1,6 +1,8 @@ > TIMESTAMP = 1573202420 > SHA256 (u-boot/u-boot-2019.10.tar.bz2) = 8d6d6070739522dd236cba7055b8736bfe92b4fac0ea18ad809829ca79667014 > SIZE (u-boot/u-boot-2019.10.tar.bz2) = 14214608 > +SHA256 (u-boot/u-boot-2020.01.tar.bz2) = aa453c603208b1b27bd03525775a7f79b443adec577fdc6e8f06974025a135f1 > +SIZE (u-boot/u-boot-2020.01.tar.bz2) = 14716125 > SHA256 (u-boot/939129/raw) = 2a4ebf283aec8e74ec77b3cb071c6883f73807454ca94fea78361c7391187b97 > SIZE (u-boot/939129/raw) = 310 > SHA256 (u-boot/1036621/raw) = 28dbd66d14fab9dc782ce091d3c132a226b8425f6503c329ee8a7031b79b52f7 > Index: u-boot-rockpro64/Makefile > =================================================================== > --- u-boot-rockpro64/Makefile (revision 527638) > +++ u-boot-rockpro64/Makefile (working copy) > @@ -2,6 +2,7 @@ > > MASTERDIR= ${.CURDIR}/../u-boot-master > > +UBOOT_VERSION?= 2020.01 > MODEL= rockpro64 > BOARD_CONFIG= rockpro64-rk3399_defconfig > FAMILY= rk3399 > > It build, but fails to boot: > U-Boot TPL 2020.01 (Mar 02 2020 - 23:33:30) > Channel 0: LPDDR4, 50MHz > BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB > Channel 1: LPDDR4, 50MHz > BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB > 256B stride > 256B stride > lpddr4_set_rate: change freq to 400000000 mhz 0, 1 > lpddr4_set_rate: change freq to 800000000 mhz 1, 0 > Trying to boot from BOOTROM > Returning to boot ROM... > > U-Boot SPL 2020.01 (Mar 02 2020 - 23:33:30 +0100) > Trying to boot from MMC1 > > > That's it - no further output. > Are there any other known traps when using a new u-boot version, > or does it have to be debugged the hard way? You need to update ATF (sysutils/atf-master) to the master branch. They didn't released a new version which is why I didn't update the u-boot ports to 2020.01 yet. I hope that they release a version before the next u-boot release (2020.04) otherwise I'll just update it to a snapshot that works. Or you could locally patch with https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244491 I told phk@ that I won't include this patch in the source tree as probably more code is required. > I've left the first 10MB space untouched by partitions, since the u-boot > get's written starting at 8MB offset. > Geom name: da0 > modified: false > state: OK > fwheads: 255 > fwsectors: 63 > last: 62333951 > first: 63 > entries: 4 > scheme: MBR > Providers: > 1. Name: da0s1 > Mediasize: 52428800 (50M) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 10485760 > Mode: r0w0e0 > efimedia: HD(1,MBR,00000000,0x5000,0x19000) > attrib: active > rawtype: 12 > length: 52428800 > offset: 10485760 > type: fat32lba > index: 1 > end: 122879 > start: 20480 > 2. Name: da0s2 > Mediasize: 31851544576 (30G) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 62914560 > Mode: r0w0e0 > efimedia: HD(2,MBR,00000000,0x1e000,0x3b54000) > rawtype: 165 > length: 31851544576 > offset: 62914560 > type: freebsd > index: 2 > end: 62332927 > start: 122880 > Consumers: > 1. Name: da0 > Mediasize: 31914983424 (30G) > Sectorsize: 512 > Mode: r0w0e0 > > -- > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- Emmanuel Vadot