From nobody Mon May 01 16:47:12 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q98JZ10syz48l1h for ; Mon, 1 May 2023 16:47:26 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q98JY5gXVz41rl for ; Mon, 1 May 2023 16:47:25 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f19a80a330so15075345e9.2 for ; Mon, 01 May 2023 09:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682959644; x=1685551644; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=MER8srqqsi0Rnw1RWe2Q1sZmVxzvsq3CytFLObxoOTc=; b=Gtjg7O1J8BKVCzYDaORSUqdN/JdyX/6gRrua26j7CgW8+vZj7YRbmQMu9M+HL2nEYF vf9AH/pA0mblLZETwjLOhKpjSL8q15qPvlOLWI5IOlNdpjxcekSPFecQ9WG1k788xgHf owUQsxk398SWFa3Yqz9r3F2EqqFPWuTcnNQGP4tt2k87YSfhcFdw840x0MQDdgd1ugLE uR80Sl8NkeOWWGUP1xQ2pWn01M6HvimSXYKvaC9jMFvsOPQGdW8VSlFiMM1L2zNV0eyF zoZ3doDgj7aDAoLSttvGHU1s6OjOf0sOwU62Gmu/Hz1RSS4jRqeOWrjLV23ai3L+VzJQ IN9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682959644; x=1685551644; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MER8srqqsi0Rnw1RWe2Q1sZmVxzvsq3CytFLObxoOTc=; b=bFIHXiWJF2hUmLe+sX6FUKEcCQGBwSJRlBko0xFUxqlAeaNes4p/LJt3j9qrmu5Ds6 zbQFd5l3XzutY73aVQ0B8kpu642oZ6XifUC9ZKGvly1pyNMB1HyTTMv1bMQKcylTuP+n ZH0VB0ll0PevZ3s1Md+35u0fdREwA0385L9Q3jzo7STM1ZljUT9YCpd28UjobaSeKKI9 Pi2l+ipfkp76R5RlR/Xs2LVOM9doyL22juanx/MS6w1XcHoGb/9+7ThZP2vi7koIWxRI z/h6YbdqJczbdLLGRUNNoliEdp5mMMwzF4oRISjVIkc1YPD6NV5q5bTwvZvf3esj99Ul qFuw== X-Gm-Message-State: AC+VfDxc2uqOqNyQgjSIBsRhozikZx+aXx+4Q+FlzTOC24a+SKiaZDmy 4rTVj5AlMNttxC6XjjHwxRuqOIRePzX5IA== X-Google-Smtp-Source: ACHHUZ43J5RlpmhN2CfS6F2uUW2sBsOdFKUahvcvqQEcod/1ciXHr73ATEyMJ57AolyP9BbKE+In7A== X-Received: by 2002:a5d:4a89:0:b0:306:2d28:d556 with SMTP id o9-20020a5d4a89000000b003062d28d556mr2472942wrq.34.1682959644009; Mon, 01 May 2023 09:47:24 -0700 (PDT) Received: from smtpclient.apple ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id e8-20020adfdbc8000000b003047d5b8817sm19646365wrj.80.2023.05.01.09.47.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 May 2023 09:47:23 -0700 (PDT) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_73C69236-D40D-43C4-AAB8-7C0C0EFF5989" List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: Nanopi R5S support and build guide Date: Mon, 1 May 2023 18:47:12 +0200 In-Reply-To: Cc: "freebsd-arm@freebsd.org" To: Matheus References: X-Mailer: Apple Mail (2.3731.500.231) X-Rspamd-Queue-Id: 4Q98JY5gXVz41rl X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_73C69236-D40D-43C4-AAB8-7C0C0EFF5989 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 30 Apr 2023, at 23.44, Matheus wrote: >=20 > Hi, >=20 > I am trying to have FreeBSD 14 running on this SBC. I could not find = any guides in how to build images for it. I found the = people.freebsd.org/~sos/ site that has some images, and one for it, but = that seldom boots my board, and when it did, there was no console over = serial or vga. >=20 > If anyone can give any hints. Unfortunately my dev skills are not = good. But I can test and help build once I figure out how :) Hi Matheus The image at = https://people.freebsd.org/~sos/ARM64/current-RK356X-images/nano5-sdcard.i= mg.gz for the Nanopi R5S does indeed boot with both HDMI output and serial = console (1500000baud). The boot loader (EDK2 in FDT mode) is very picky on SD card quality = though from experience, I works for me with Sandisk Ultra / Extreme = cards but not with Samsung and cheap noname SD cards YMMV. You can build a stock ARM64 generic kernel and most things will be = usable, however as Ganbold wrote the DTS files is not in there yet (and = not even in linux where our DTS files are fetched from). However the EDK2 boot loader provided (and used in above image) on=20 https://people.freebsd.org/~sos/ARM64/EDK2-RK356X/NANOPI-R5S_EFI.itb=EF=BF= =BC=09 NANOPI-R5S_EFI File =C2=B7 1,7 MB does hand over the =E2=80=9Cright=E2=80=9D DTB file if you want to = experiment. If you need the used DTS file and build guidance let me know in private = mail... -- S=C3=B8ren Schmidt sos@deepcore.dk / sos@freebsd.org "So much code to hack, so little time" --Apple-Mail=_73C69236-D40D-43C4-AAB8-7C0C0EFF5989 Content-Type: multipart/related; type="text/html"; boundary="Apple-Mail=_729D9769-0090-412E-8CE7-99F17248EDD8" --Apple-Mail=_729D9769-0090-412E-8CE7-99F17248EDD8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On 30 Apr 2023, at 23.44, Matheus = <lojas@arroway.org> wrote:

Hi,

I am trying to have = FreeBSD 14 running on this SBC. I could not find any guides in how to = build images for it. I found the people.freebsd.org/~sos/ site that has = some images, and one for it, but that seldom boots my board, and when it = did, there was no console over serial or vga.

If anyone can give = any hints. Unfortunately my dev skills are not good. But I can test and = help build once I figure out how :)

Hi = Matheus

The image at


for the Nanopi = R5S does indeed boot with both HDMI output and serial console = (1500000baud).

The boot loader = (EDK2 in FDT mode) is very picky on SD card quality though from = experience, I works for me with Sandisk Ultra / Extreme cards but not = with Samsung and cheap noname SD cards YMMV.

You can build a = stock ARM64 generic kernel and most things will be usable, however as = Ganbold wrote the DTS files is not in there yet (and not even in linux = where our DTS files are fetched from).
However the EDK2 = boot loader provided (and used in above image) on 


does hand over = the =E2=80=9Cright=E2=80=9D DTB file if you want to = experiment.

If you need the = used DTS file and build guidance let me know in private = mail...

--
S=C3=B8ren = Schmidt
sos@deepcore.dk / sos@freebsd.org
"So much code to hack, = so little time"

= --Apple-Mail=_729D9769-0090-412E-8CE7-99F17248EDD8 Content-Transfer-Encoding: base64 Content-Disposition: inline; filename=preview.png Content-Type: image/png; x-unix-mode=0666; name="preview.png" Content-Id: iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR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