From owner-freebsd-arm@freebsd.org Thu Jul 12 14:26:22 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3EF5F103EBB4 for ; Thu, 12 Jul 2018 14:26:22 +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 88F0C941EE; Thu, 12 Jul 2018 14:26:21 +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 a92e029c; Thu, 12 Jul 2018 16:26:20 +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=UdISs71RObyu6Xgoac6LWr/roRA=; b=asj1qAofofUdX9KZAUoaPSSDjYcV OW89VAKCXBM8pNibfXev23OpzbSkucL+LXHFWxrjknRpkDhoR04wxFN/JeWpwvW/ SsHTmBfgtemZY0bKHLDlAtMElqvAqTJ8IWeRBb8NAk8ODeIE8ZYw5DdS7OXZlG3/ 4gnNQwaBpXoQqlI= 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=ktD96oP66i0KzUefloPeQ2xGmglRkDWx13GY3UWmYMItHa3JOnNH1tBq hXPx9785ibWiRlKYDxeh1Uk0l5uzhOyEv091Ejq5ZoysEynhwJO9fEJYbs7ZPnqS Yq15U9GDQZL8WT9UbzuVA9kcTVclLIngY30DtgWol2M6xmtE/9k= 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 fdf32810 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 12 Jul 2018 16:26:20 +0200 (CEST) Date: Thu, 12 Jul 2018 16:26:19 +0200 From: Emmanuel Vadot To: Ian Lepore Cc: Greg V , freebsd-arm@freebsd.org Subject: Re: Netbooting ROCK64 Message-Id: <20180712162619.c2946e4ec262319e0c0ebb7b@bidouilliste.com> In-Reply-To: <1531404460.66719.26.camel@freebsd.org> References: <1531333209.1596.0@hraggstad.unrelenting.technology> <20180712120405.a16a2733473400e899f34d2f@bidouilliste.com> <1531392570.1456.0@hraggstad.unrelenting.technology> <20180712160051.ab6447bad4d97395552c3a5d@bidouilliste.com> <1531404460.66719.26.camel@freebsd.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2018 14:26:22 -0000 On Thu, 12 Jul 2018 08:07:40 -0600 Ian Lepore wrote: > On Thu, 2018-07-12 at 16:00 +0200, Emmanuel Vadot wrote: > > > env set bootargs boot.nfsroot.server=3D${serverip}=A0 > > > boot.nfsroot.path=3D comconsole_speed=3D${baudrate} > > > tftpboot ${kernel_addr_r} loader.efi > > > bootefi ${kernel_addr_r} ${fdtcontroladdr} > >=20 > > =A0I've never used nfs with loader like this, do you control the dhcp ? > > =A0If so just set the correct rootpath in it and in uboot just do : > > =A0setenv boot_targets dhcp > > =A0saveenv >=20 > This is really not a good enough answer. =A0Many people have dhcp, not > nearly as many have easy access to control the config of that dhcp > server. Yes and it seems to work with rpi3. But u-boot on rpi is using 2018.03, not 2017.09 like on Rock64. I want to be sure that his setup is working. > It MUST be possible to set tftp and/or nfs boot parms from some > persisent config on the system being booted, or we just don't have a > viable netboot solution. >=20 > Pre-efi, all you had to do for netbooting was >=20 > =A0 setenv loaderdev net > =A0 setenv rootpath serverip:/path/to/rootfs > =A0 boot >=20 > It sure would be nice if we could maintain that level of simplicity > with efi uboot. >=20 > -- Ian --=20 Emmanuel Vadot