From owner-freebsd-arm@freebsd.org Sat Aug 11 20:48:44 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 ED30F1079342 for ; Sat, 11 Aug 2018 20:48:43 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from hraggstad.unrelenting.technology (hraggstad.unrelenting.technology [71.19.146.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hraggstad.unrelenting.technology", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6DF1890D25 for ; Sat, 11 Aug 2018 20:48:43 +0000 (UTC) (envelope-from greg@unrelenting.technology) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=unrelenting.technology; h=date:from:subject:to:message-id; s=default; bh=iOvyXXLK/U0vge+W9OQGd54zcAR9HCQFMpswp2/aJjM=; b=BUMa1HlfNBG0wvjT3QZDUWFyas7ifUxgJ9SvFp/KnS5SdpkFWnOxqPFKFrG0oLCh6Nn/8DqUJMk/wUhmKVbYhJiHCrbIXAR6P6rE/QxTJiuf5urAF0ZXuyp6PqaGvJkalbRzD6ez/llbpwNan3nC/DPTZ8R3JW8rrVk34YtullI= Received: by hraggstad.unrelenting.technology (OpenSMTPD) with ESMTPSA id 3c96ca4f TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 11 Aug 2018 20:48:38 +0000 (UTC) Date: Sat, 11 Aug 2018 23:48:40 +0300 From: Greg V Subject: Re: Rockchip RK3399 (ROCKPro64) boots to multiuser To: Ganbold Tsagaankhuu Cc: freebsd-arm Message-Id: <1534020520.35460.1@hraggstad.unrelenting.technology> In-Reply-To: References: <1533577708.4175.0@hraggstad.unrelenting.technology> X-Mailer: geary/0.12.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed 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: Sat, 11 Aug 2018 20:48:44 -0000 On Sat, Aug 11, 2018 at 3:09 PM, Ganbold Tsagaankhuu wrote: > > > On Tue, Aug 7, 2018 at 1:48 AM, Greg V > wrote: >> Hi, >> >> I managed to boot FreeBSD on the Rockchip RK3399 SoC (Pine64 >> ROCKPro64 board): >> >> https://gist.github.com/myfreeweb/5f5b9e56f9a0fd1d63a46c34886f5ad1 >> > > Very nice. I have NanoPC-T4 board and will test your patch. > Did you try to load kernel via tftp at u-boot prompt? like: > > tftpboot 0x02000000 kernel.bin, go 0x02000000 > > Does it work for you that way? kernel.bin?? EFI has always been the way to go with aarch64 (and I think it's even recommended on armv7/6 too). I do it like this: env set serverip 192.168.1.2 env set bootargs boot.nfsroot.server=${serverip} boot.nfsroot.path=/some/path comconsole_speed=${baudrate} tftpboot ${kernel_addr_r} loader.efi tftpboot ${fdt_addr_r} dtb/rockchip/rk3328-rock64.dtb bootefi ${kernel_addr_r} ${fdt_addr_r} But the more-automated way (fully configured by dhcp) should work too, at least if you don't have dhcp and tftp on different servers