From owner-freebsd-arm@freebsd.org Thu Jul 18 12:58:44 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 B85FBA86F1 for ; Thu, 18 Jul 2019 12:58:44 +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 A57E188ED3 for ; Thu, 18 Jul 2019 12:58:43 +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 0fdea701; Thu, 18 Jul 2019 14:58:41 +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=lGorLiRlH5VQ2NbzCZtZJAd1sIY=; b=JCiyRuvsppXVgNwY5Qv12eq0ATKn 9iNCeXyr+ofk/DK5fWKO01Xlh6lZ0LOKUq00MtUaCSioAzIP1fHCDMZPaxg5GAPD BW8urFacAcqA/FLRcSZpaG9e5krUlxoeZYtjkK2EQTLe+uKVd25m0r1nNI+urWB1 HFddHILSRclYBe8= 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=tob+V6J/020etiIn4aE/eznLKGhJZrDmljMpk96WwGKO2cwz1hklFEmT AE0A+Nk+OJq/tB5tgSeM8Oem/vjg2ozQv6pvmyHC3mqrd+YWMDzP4cqHDnq7EJS4 iaiErmhufEQ/7OVb+mI/FyRtUTFvBZmqUXRfk8Cc0/JtGyr3r+0= Received: from knuckles.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 2347b746 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 18 Jul 2019 14:58:41 +0200 (CEST) Date: Thu, 18 Jul 2019 14:58:40 +0200 From: Emmanuel Vadot To: Denis Polygalov Cc: freebsd-arm@freebsd.org Subject: Re: Booting FreeBSD on Rock64 Message-Id: <20190718145840.c4487d2174930374300a0d7d@bidouilliste.com> In-Reply-To: <878b15d5-92a5-5137-121c-5a5038323857@gmail.com> References: <169de7cf-32f2-7b7b-c12e-a86a4b6a9e87@gmail.com> <20190715200127.4b649877d8baefeb5282df64@bidouilliste.com> <878b15d5-92a5-5137-121c-5a5038323857@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: A57E188ED3 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=JCiyRuvs; 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 [-1.40 / 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.13)[-0.134,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.97)[-0.968,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mx-backup.blih.net]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.62)[-0.615,0]; 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.23)[ip: (-1.20), ipnet: 212.83.160.0/19(2.65), 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: Thu, 18 Jul 2019 12:58:44 -0000 On Thu, 18 Jul 2019 21:51:43 +0900 Denis Polygalov wrote: > > On 16/07/2019 3:01 am, Emmanuel Vadot wrote: > > How did you setup the boot ? > > download u-boot-flash-spi-rock64.img.xz from here: > https://github.com/ayufan-rock64/linux-u-boot/releases > and flash it. Remove the microSD card. > Setup tftp server and nfs servers. > Reset the board, interrupt u-boot and switch to manual mode. > Then type in terminal: > dhcp > tftpboot ${kernel_addr_r} boot/loader.efi > tftpboot ${fdt_addr_r} boot/dtb/rockchip/rk3399-rockpro64.dtb You need to 'fdt addr ${fdt_addr_r}' here iirc > bootefi ${kernel_addr_r} ${fdt_addr_r} > > > > Do you have tftpd running so u-boot can download the loader and the > > dtb ? > > yes, I do and I can see in the tftp server logs that both > boot/loader.efi > and boot/dtb/rockchip/rk3399-rockpro64.dtb > are downloaded successfully. > > > 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'm using dtb that is included into the > FreeBSD-13.0-CURRENT-arm64-aarch64-20190711-r349909-memstick.img > > > > I've just booted mine after updating to r350003+c99cb2e79ed6 > > without a problem. > > > > Well, I don't see image of this release on the FreeBSD.org server. > I guess you mean you compile it from source by yourself? > > > On 16/07/2019 4:49 am, Peter Jeremy wrote: > >> I'm running a Rock64 with > >> U-Boot SPL 2017.09-rockchip-ayufan-1035-gd646df03ac (Oct 26 2018 - 08:35:43) > >> and booting FreeBSD diskless. > > I tried this old 1035 u-boot. No luck, same problem. > > Regards, > Denis. -- Emmanuel Vadot