From owner-freebsd-arm@freebsd.org Mon Feb 4 11:01:10 2019 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 9C3E514C73A2 for ; Mon, 4 Feb 2019 11:01:10 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 50E4480CD5 for ; Mon, 4 Feb 2019 11:01:06 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp59-167-167-3.static.internode.on.net [59.167.167.3]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id x14B0tFv091938 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Feb 2019 22:01:01 +1100 (AEDT) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id x14B0orC002125 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 4 Feb 2019 22:00:50 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id x14B0o13002124; Mon, 4 Feb 2019 22:00:50 +1100 (AEDT) (envelope-from peter) Date: Mon, 4 Feb 2019 22:00:50 +1100 From: Peter Jeremy To: Ganbold Tsagaankhuu Cc: "freebsd-arm@freebsd.org" Subject: Re: Booting FreeBSD on Rock64 Message-ID: <20190204110049.GB78675@server.rulingia.com> References: <20190203012316.GA77009@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lEGEL1/lMxI0MVQ2" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.11.1 (2018-12-01) 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, 04 Feb 2019 11:01:10 -0000 --lEGEL1/lMxI0MVQ2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-Feb-03 12:40:45 +0800, Ganbold Tsagaankhuu wrot= e: >On Sun, Feb 3, 2019 at 11:46 AM Peter Jeremy wrote: > >> I'm trying to boot FreeBSD from a USB stick on my Rock64 and running into >> problems. I've looked through the web and haven't gotten anywhere. It >> boots Ubuntu 18.04.1 off an MMC so the board itself is OK. =2E.. >Did you try to boot from network? I hadn't because setting up a diskless/netboot environment is a lot more fiddly and the posting I'd found suggested that the Rock64 was especially fiddly. >You can stop at u-boot prompt when >appears "Hit any key to stop autoboot:". Sometimes it is hard to press any >key at this moment. I just hold one hand on the spacebar and push the reset button with the other hand. >You can set bootdelay to something not 0. > >Then you can do something like: > >setenv ipaddr 192.168.111.2 >env set serverip 192.168.111.1 >env set bootargs boot.nfsroot.server=3D${serverip} >boot.nfsroot.path=3D/var/arm64 comconsole_speed=3D${baudrate} >tftpboot ${kernel_addr_r} loader.efi >tftpboot ${fdt_addr_r} rk3399-rockpro64.dtb >bootefi ${kernel_addr_r} ${fdt_addr_r} That leaves off all the server side steps: * Unpack the memstick image (or similar) into a filesystem and NFS export it with maproot=3Droot for the Rock64 address * Edit the etc/fstab in the exported filesystem and update the root mountpo= int to match the NFS-exported root. * Setup a tftp server and copy loader.efi and rk3399-rockpro64.dtb from the root filesystem into /tftpboot * Optionally reconfigure your DHCP server to have the appropriate filename, next-server and root-path config. * Ensure the Rock64 is connected via GigE because it doesn't work reliably on FastEthernet (it appears to hang and stop sending NFS requests). Having worked through all that, I did actually manage to boot into the installer before running out of time. --=20 Peter Jeremy --lEGEL1/lMxI0MVQ2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAlxYG2FfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzR5JA/8Cq2p67vtAgweOPk6eqwluq+Vqoq8ZtFX11rp69iSp/9nNZJMnqLY37vc Gx3KwpvP25QAxKHsuCXw87KfrQKXihOPiUyuD+a8Mh5NUfdghW+dhH9k1tRqcpZU 3PrMwrNJxlOYjgHWArCbpeo8Ahdo23bkSOFziNjpsGLoxdChxU3tUsO8tcusgNgK cKwIebS62fEw98A8lyBSLki6VGC7zCgkc6eW8a0wANNbHj8+4v+EMgPlFDw955wD DEIExlNCyOUrHp2iHA6zxQCEAi664J+u7gUQzkth88oJH1QW7Tk+JhTeye0Twwgh 5CCdZ4mfdRlUvlGwOFvZaPtYUMjSi9rfCPVD9r6cqx6PphiGu1gz6uKFP9buNRqS F9cTIaNebmc5JxNkrFf4mOYHEueWDd4dfmj5u6FfYZ707gP6cxqkDjcJgAC0rJSr lTWl8XGM71o9FDzET8srrZAT+BRXdCBgzwQZxc3AJ2IjH3cqJhJSoTY5querYg9E O4bOaW9BmgHEOUJ3cdTaM5tAWeg/DYa91qrsDvPAkdk4h+ERmQrjrYAO1Y//sDE5 cCTYFum1jy9SBSEFVHXvmDDi37LLlWNUE4PKot9R1VplhrW3i9QcxJ+z13WyETcN 0n0o9xFo2M74W42KK9l6VOqfQZR6utU6pYs7xxTyH1aL62P1eS0= =U0oo -----END PGP SIGNATURE----- --lEGEL1/lMxI0MVQ2--