From owner-freebsd-arm@freebsd.org Mon Jul 15 18:08:10 2019 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 3016FC0320 for ; Mon, 15 Jul 2019 18:08:10 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 990CB6F92C for ; Mon, 15 Jul 2019 18:08:09 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 18cae4a6; Mon, 15 Jul 2019 20:01:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=Qkb4R0F10KTUcuIhCE2NYjD6CdU=; b=NzBxNofozfuWl82xnzw6nhoOymFc /dw/y0CujpYLlFInFilIvqpSE7JrifbgMAeY9zA92ZYfrgYBpnjbHBR6AIC1yXLD eZgCNnv17WGXtUKyenCewraSJWe3HwhXR3IFr7Z5gJTujnqH5vPy0L6YCs3s7lde 4VOJcUuNRXqOJWU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=piA/xlDXj65LSSEq2YW4r2+9pWk6enBvC4UnT1YDvR+HW+Q43AZUqLnw yYVRZV5WFfzjsTVbz2v9c84I40eJD6AMzx2Rs/Pk12Lti4gPAhjQ+jRGjSpZuC2x dbKHJTPi0qEhEH1kNf3xla8NHoMCP6lS1/wPpDonKCbqxmm9+H4= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 24d2543f TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 15 Jul 2019 20:01:27 +0200 (CEST) Date: Mon, 15 Jul 2019 20:01:27 +0200 From: Emmanuel Vadot To: Denis Polygalov Cc: freebsd-arm@freebsd.org Subject: Re: Booting FreeBSD on Rock64 Message-Id: <20190715200127.4b649877d8baefeb5282df64@bidouilliste.com> In-Reply-To: <169de7cf-32f2-7b7b-c12e-a86a4b6a9e87@gmail.com> References: <169de7cf-32f2-7b7b-c12e-a86a4b6a9e87@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=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 990CB6F92C X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=NzBxNofo; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-0.85 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.88)[-0.877,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.93)[-0.932,0]; NEURAL_SPAM_SHORT(0.65)[0.650,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[cached: mx-backup.blih.net]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.22)[ip: (-1.23), ipnet: 212.83.160.0/19(2.66), asn: 12876(-0.29), country: FR(-0.01)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(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: Mon, 15 Jul 2019 18:08:10 -0000 On Sat, 13 Jul 2019 19:16:30 +0900 Denis Polygalov wrote: > Here is my attempt to advance this thread: > http://freebsd.1045724.x6.nabble.com/Booting-FreeBSD-on-Rock64-td6312109.html > > by using new release of ayufan's u-boot: > 2017.09-rockchip-ayufan-1063-g29843fbd42 > > and most recent FreeBSD image: > FreeBSD-13.0-CURRENT-arm64-aarch64-20190711-r349909-memstick.img > > Booting from USB drive lead to near the same infinite reset loop: > ... > Found 3 disks > Consoles: EFI console > Reading loader env vars from /efi/freebsd/loader.env > FreeBSD/arm64 EFI loader, Revision 1.1 > > Command line arguments: loader.efi > EFI version: 2.05 > EFI Firmware: Das U-boot (rev 0.00) > Console: efi (0) > Load Path: \efi\boot\bootaa64.efi > Load Device: UNKNOWN(0001,0004) > "Synchronous Abort" handler, esr 0x96000210 > ELR: fbec72c4 > LR: fbe97500 > x0 : 0000000000000000 x1 : 0000000000000000 > x2 : 0000000000000000 x3 : 0000000000000000 > x4 : 00000000fbecf890 x5 : 00000000fbec6838 > x6 : 00000000fbeea150 x7 : 0000000000000000 > x8 : 0000000000000000 x9 : 0000000000000074 > x10: 00000000fbeef8a8 x11: 0000000000000296 > x12: 0000000000000296 x13: 0000000000000000 > x14: 00000000f9f68b90 x15: 0000000000000000 > x16: 0000000000000045 x17: 0000000000000000 > x18: 0000000000000000 x19: 00000000fbee9e48 > x20: 00000000fbece8d3 x21: 0000000000000000 > x22: 0000000000000000 x23: 00000000fbeef8b0 > x24: 0000000000000000 x25: 0000000000000000 > x26: 00000000fbeeeb40 x27: 0000000020001000 > x28: 8000000000000005 x29: 00000000fbee9e00 > > Resetting CPU ... > > Notice however absence of line > "Failed to find bootable partition" > comparing to the first post in original thread. RockChip's vendor u-boot is really broken for efi booting (or maybe we do weird stuff in loader.efi but I doubt it). There have been some progress in mainline u-boot for RockChip recently but I haven't checked yet if we can use it for rock64. > As of the network boot it reaches screen > with ASCII art of the FreeBSD loader and then hangs here: > > Autoboot in 0 seconds, hit [Enter] to boot or any other key to stop > Loading kernel... > /boot/kernel/kernel text=0x93951c data=0x1914c8+0x84ab1c > syms=[0x8+0x1387f8+0x8+0x124a11] > Loading configured modules... > can't find '/boot/entropy' > Using DTB provided by EFI at 0x8200000. > / > > For the network boot I'm using the same image as for USB boot: > FreeBSD-13.0-CURRENT-arm64-aarch64-20190711-r349909-memstick.img > unpacked and served via NFS. > Can someone suggest what is going on here? > Full USB and network boot logs are attached. > > Regards, > Denis. How did you setup the boot ? Do you have tftpd running so u-boot can download the loader and the dtb ? If you don't have the dtb in $TFTPDIR/dtb/rockchip/ that might be the problem, I recall the dtb included in u-boot being incomplete. I've just booted mine after updating to r350003+c99cb2e79ed6 without a problem. -- Emmanuel Vadot