Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 May 2023 18:47:12 +0200
From:      =?utf-8?Q?S=C3=B8ren_Schmidt?= <soren.schmidt@gmail.com>
To:        Matheus <lojas@arroway.org>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@FreeBSD.org>
Subject:   Re: Nanopi R5S support and build guide
Message-ID:  <A428B299-872C-4FEA-AF12-56F25D9211A8@gmail.com>
In-Reply-To: <C7082C2C-CC9B-493B-ADEF-6606FE875A3A@arroway.org>
References:  <C7082C2C-CC9B-493B-ADEF-6606FE875A3A@arroway.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <lojas@arroway.org> 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

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;"><blockquote =
type=3D"cite"><div>On 30 Apr 2023, at 23.44, Matheus =
&lt;lojas@arroway.org&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div>Hi,<br><br>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.<br><br>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 :)<br></div></blockquote><div>
<meta charset=3D"UTF-8"><div dir=3D"auto" style=3D"text-align: start; =
text-indent: 0px; overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><div style=3D"caret-color: rgb(0, 0, 0); =
color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; =
white-space: normal; word-spacing: 0px; text-decoration: none; =
-webkit-text-stroke-width: 0px;"><br></div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; =
text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: 0px;">Hi =
Matheus</div><div style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0); letter-spacing: normal; text-transform: none; white-space: normal; =
word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: =
0px;"><br></div><div style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, =
0, 0); letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; text-decoration: none; =
-webkit-text-stroke-width: 0px;">The image at</div><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: =
normal; text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: 0px;"><br></div><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: =
normal; text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: 0px;"><a =
href=3D"https://people.freebsd.org/~sos/ARM64/current-RK356X-images/nano5-=
sdcard.img.gz" style=3D"caret-color: rgb(255, 255, =
255);">https://people.freebsd.org/~sos/ARM64/current-RK356X-images/nano5-s=
dcard.img.gz</a></div><div style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; text-decoration: none; =
-webkit-text-stroke-width: 0px;"><br></div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; =
text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: 0px;">for the Nanopi =
R5S does indeed boot with both HDMI output and serial console =
(1500000baud).</div><div style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; text-decoration: none; =
-webkit-text-stroke-width: 0px;"><br></div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; =
text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: 0px;">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.</div><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: =
normal; text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: 0px;"><br></div><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: =
normal; text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: 0px;">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).</div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; =
text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: 0px;">However the EDK2 =
boot loader provided (and used in above image) on&nbsp;</div><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: =
normal; text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: =
0px;"><br></div><div><div style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; text-decoration: none; =
-webkit-text-stroke-width: 0px; display: block;"><div =
style=3D"-webkit-user-select: all; -webkit-user-drag: element; display: =
inline-block;" class=3D"apple-rich-link" draggable=3D"true" role=3D"link" =
data-url=3D"https://people.freebsd.org/~sos/ARM64/EDK2-RK356X/NANOPI-R5S_E=
FI.itb"><a style=3D"border-radius:10px;font-family:-apple-system, =
Helvetica, Arial, =
sans-serif;display:block;-webkit-user-select:none;width:300px;user-select:=
none;-webkit-user-modify:read-only;user-modify:read-only;overflow:hidden;t=
ext-decoration:none;" class=3D"lp-rich-link" rel=3D"nofollow" =
href=3D"https://people.freebsd.org/~sos/ARM64/EDK2-RK356X/NANOPI-R5S_EFI.i=
tb" dir=3D"ltr" role=3D"button" draggable=3D"false" width=3D"300"><table =
style=3D"table-layout:fixed;border-collapse:collapse;width:300px;backgroun=
d-color:#E5E6E9;font-family:-apple-system, Helvetica, Arial, =
sans-serif;" class=3D"lp-rich-link-emailBaseTable" cellpadding=3D"0" =
cellspacing=3D"0" border=3D"0" width=3D"300"><tbody><tr><td =
vertical-align=3D"center"><table bgcolor=3D"#E5E6E9" cellpadding=3D"0" =
cellspacing=3D"0" width=3D"300" style=3D"font-family:-apple-system, =
Helvetica, Arial, =
sans-serif;table-layout:fixed;background-color:rgba(229, 230, 233, 1);" =
class=3D"lp-rich-link-captionBar"><tbody><tr><td style=3D"padding:6px =
-4px 6px 12px;" class=3D"lp-rich-link-captionBar-leftIconItem" =
width=3D"36"><a rel=3D"nofollow" =
href=3D"https://people.freebsd.org/~sos/ARM64/EDK2-RK356X/NANOPI-R5S_EFI.i=
tb" draggable=3D"false"><img style=3D"pointer-events:none =
!important;display:inline-block;width:36px;height:36px;" width=3D"36" =
height=3D"36" draggable=3D"false" =
class=3D"lp-rich-link-captionBar-leftIcon" alt=3D"preview.png" =
src=3D"cid:F801C668-3B2F-4486-9A96-002BA9BF413D"></a></td><td =
style=3D"padding:8px 0px 8px 0px;" =
class=3D"lp-rich-link-captionBar-textStackItem"><div =
style=3D"max-width:100%;margin:0px 16px 0px 16px;overflow:hidden;" =
class=3D"lp-rich-link-captionBar-textStack"><div =
style=3D"word-wrap:break-word;font-weight:500;font-size:12px;overflow:hidd=
en;text-overflow:ellipsis;text-align:left;" =
class=3D"lp-rich-link-captionBar-textStack-topCaption-leading"><a =
rel=3D"nofollow" =
href=3D"https://people.freebsd.org/~sos/ARM64/EDK2-RK356X/NANOPI-R5S_EFI.i=
tb" style=3D"text-decoration: none" draggable=3D"false"><font =
color=3D"#272727" style=3D"color: rgba(0, 0, 0, =
0.847059);">NANOPI-R5S_EFI</font></a></div><div =
style=3D"word-wrap:break-word;font-weight:400;font-size:11px;overflow:hidd=
en;text-overflow:ellipsis;text-align:left;" =
class=3D"lp-rich-link-captionBar-textStack-bottomCaption-leading"><a =
rel=3D"nofollow" =
href=3D"https://people.freebsd.org/~sos/ARM64/EDK2-RK356X/NANOPI-R5S_EFI.i=
tb" style=3D"text-decoration: none" draggable=3D"false"><font =
color=3D"#808080" style=3D"color: rgba(0, 0, 0, 0.498039);">File =C2=B7 =
1,7 =
MB</font></a></div></div></td></tr></tbody></table></td></tr></tbody></tab=
le></a></div></div><font color=3D"#000000"><span style=3D"caret-color: =
rgb(0, 0, 0);"></span></font></div><div style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; =
white-space: normal; word-spacing: 0px; text-decoration: none; =
-webkit-text-stroke-width: 0px;"><br></div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; =
text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: 0px;">does hand over =
the =E2=80=9Cright=E2=80=9D DTB file if you want to =
experiment.</div><div style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, =
0, 0); letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; text-decoration: none; =
-webkit-text-stroke-width: 0px;"><br></div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; =
text-transform: none; white-space: normal; word-spacing: 0px; =
text-decoration: none; -webkit-text-stroke-width: 0px;">If you need the =
used DTS file and build guidance let me know in private =
mail...</div><div style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0); letter-spacing: normal; text-transform: none; white-space: normal; =
word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: =
0px;"><br></div><div style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, =
0, 0); letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; text-decoration: none; =
-webkit-text-stroke-width: 0px;">--<br>S=C3=B8ren =
Schmidt<br>sos@deepcore.dk / sos@freebsd.org<br>"So much code to hack, =
so little time"</div></div></div><br></body></html>=

--Apple-Mail=_729D9769-0090-412E-8CE7-99F17248EDD8
Content-Transfer-Encoding: base64
Content-Disposition: inline;
	filename=preview.png
Content-Type: image/png;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QkiNPFKNdBxDBOLq3JarV6lHKF65ivj0cwYtE/5bMnaF3bgpRKFav+
LRP3TMyDzH/DKg4brk4ggv+SrBgx1x4ggJWjcSqzcAx/AH/H2pgSKdsEAAAAAElFTkSuQmCC
--Apple-Mail=_729D9769-0090-412E-8CE7-99F17248EDD8--

--Apple-Mail=_73C69236-D40D-43C4-AAB8-7C0C0EFF5989--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A428B299-872C-4FEA-AF12-56F25D9211A8>