From owner-freebsd-arm@freebsd.org Mon Mar 2 22:56:17 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 4A8AB25D146 for ; Mon, 2 Mar 2020 22:56:17 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [195.149.99.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Wb9C4cTkz45Q5 for ; Mon, 2 Mar 2020 22:56:15 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id 022MvdNP038456 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 2 Mar 2020 23:57:39 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1583189860; bh=PEitGqCRvw3MBUR50BR1jZtdQCm2Zfan+cGjHgTI7rU=; h=Date:From:To:Cc:Subject:Reply-To; b=jlt00pinDwbqoMiYRKqIT/ZEVHdBkhn0uj55Mtfou9lk6arfu4b/PuRB9QjbIf82U h2UvDEzkG8iLa3656flhZy4hEh/8OiVf0ig+TV4g+hdQZEJtoXwGTWSWXeGd/gVOAl 5cY3DXg+lPjV8m9NP7XyrbLj7DcYPBD4AeLgCFq4= Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id 022Mu77c064481 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Mar 2020 23:56:07 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTP id 022Mu6ZO029381; Mon, 2 Mar 2020 23:56:06 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id 022Mu6TK029380; Mon, 2 Mar 2020 23:56:06 +0100 (CET) (envelope-from ticso) Date: Mon, 2 Mar 2020 23:56:06 +0100 From: Bernd Walter To: freebsd-arm@freebsd.org Cc: Bernd Walter Subject: RockPro64 with u-boot 2010.01 Message-ID: <20200302225606.GN52462@cicely7.cicely.de> Reply-To: ticso@cicely.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely7.cicely.de 12.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-Rspamd-Queue-Id: 48Wb9C4cTkz45Q5 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=jlt00pin; dmarc=none; spf=none (mx1.freebsd.org: domain of ticso@cicely7.cicely.de has no SPF policy when checking 195.149.99.3) smtp.mailfrom=ticso@cicely7.cicely.de X-Spamd-Result: default: False [-1.68 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[ticso@cicely.de]; R_DKIM_ALLOW(-0.20)[cicely.de:s=default]; NEURAL_HAM_MEDIUM(-0.87)[-0.874,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[cicely.de]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cicely.de:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.99.149.195.list.dnswl.org : 127.0.20.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:21461, ipnet:195.149.99.0/24, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.02)] 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: Mon, 02 Mar 2020 22:56:17 -0000 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? 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.