Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 May 2023 10:55:41 -0300
From:      Matheus <lojas@arroway.org>
To:        freebsd-arm@freebsd.org
Subject:   Re: Nanopi R5S support and build guide
Message-ID:  <C8CE78B3-EADC-4755-B53F-D2A11CFE95A9@arroway.org>
In-Reply-To: <CAGtf9xM6uFopHtp19TMd2eTp1NanCByPftbdOPWZxLiJJFBwqA@mail.gmail.com>
References:  <C7082C2C-CC9B-493B-ADEF-6606FE875A3A@arroway.org> <A428B299-872C-4FEA-AF12-56F25D9211A8@gmail.com> <CDC8B9E7-B32B-435F-B2CF-88052C360B08@arroway.org> <CAGtf9xM6uFopHtp19TMd2eTp1NanCByPftbdOPWZxLiJJFBwqA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
------EEICAKAOLJQP5UV08T1OF10ZH2LB7K
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

> On Tue, May 2, 2023 at 6:50=C3=A2=C2=80=C2=AFPM Matheus <lojas@arroway=2E=
org> wrote:
>
>>
>>
>> On May 1, 2023 1:47:12 PM GMT-03:00, "S=C3=83=C2=B8ren Schmidt" <
>> soren=2Eschmidt@gmail=2Ecom> wrote:
>> >> On 30 Apr 2023, at 23=2E44, Matheus <lojas@arroway=2Eorg> wrote:
>> >>
>> >> Hi,
>> >>
>> >> I am trying to have FreeBSD 14 running on this SBC=2E I could not fi=
nd
>> >any guides in how to build images for it=2E I found the
>> >people=2Efreebsd=2Eorg/~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=2E
>> >>
>> >> If anyone can give any hints=2E Unfortunately my dev skills are not
>> >good=2E But I can test and help build once I figure out how :)
>> >
>> >Hi Matheus
>> >
>> >The image at
>> >
>> >
>> https://people=2Efreebsd=2Eorg/~sos/ARM64/current-RK356X-images/nano5-s=
dcard=2Eimg=2Egz
>> >
>> >for the Nanopi R5S does indeed boot with both HDMI output and serial
>> >console (1500000baud)=2E
>> >
>> >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=2E
>>
>> Hi S=C3=83=C2=B8ren,
>>
>> I had really issues on sd carda=2E I got it to boot once, but I was
>> printing
>> characters on screen at one per second=2E So I rebooted and don't remem=
ber
>> why rewrote the card=2E I can't boot anymore=2E Tried different cards,
>> SanDisk
>> ultra, no luck=2E
>>
>> I can boot an 13=2E2 image from the guy at personalbsd though=2E But th=
ere I
>> have just one ethernet=2E
>> On 13=2E2 I cannot list the ethernets nics using pciconf -lv, including
>> the
>> one that works=2E Is this expected?
>
>
> Yes=2E Did you try
> https://personalbsd=2Eorg/download/Business/FreeBSD-aarch64-14=2E0-CURRE=
NT-NanoPi-R5S-20230402=2Eimg=2Exz
> ?
> This image should have support for pcie and all ethernet should work IIR=
C=2E
>
> Ganbold

Hi Ganbold,

I tried it and other 2 images and no success, including the image pointed
by Soren=2E Unfortunately I just got to boot one image from 14 but I
overwritten the sd card and can't remember which sd card and image :(

The only image I can make it boot is from 13=2E2R, and I got it installed
fine (using an EFI image from personalbsd from March 23)=2E

Will wait for the next round of images for 14=2E

Thanks,

matheus

>>
>> I have little understanding of the arch, so my progress is much slow=2E
>> I got some dmesg from OpenBSD people where the nics show in ifconfig=2E
>> But
>> I couldn't get mine to behave this way=2E I can install though, using U=
SB
>> nic=2E
>> I will try to buy a new sd card from the good list you pointed=2E
>> Another thing, I got the feeling that when I dd'ed the image using the
>> SD
>> card slot on the notebook it worked and when was through usb adapter di=
d
>> not=2E Does it make sense? Using Linux mint as host for this=2E
>> Thanks so much for the answer and help,
>>
>> Matheus
>>
>>
>> >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 (an=
d
>> >not even in linux where our DTS files are fetched from)=2E
>> >However the EDK2 boot loader provided (and used in above image) on
>> >
>> >https://people=2Efreebsd=2Eorg/~sos/ARM64/EDK2-RK356X/NANOPI-R5S_EFI=
=2Eitb=C3=AF=C2=BF=C2=BC
>> >NANOPI-R5S_EFI
>> >File =C3=82=C2=B7 1,7 MB
>> >
>> >does hand over the =C3=A2=C2=80=C2=9Cright=C3=A2=C2=80=C2=9D DTB file =
if you want to experiment=2E
>> >
>> >If you need the used DTS file and build guidance let me know in privat=
e
>> >mail=2E=2E=2E
>> >
>> >--
>> >S=C3=83=C2=B8ren Schmidt
>> >sos@deepcore=2Edk / sos@freebsd=2Eorg
>> >"So much code to hack, so little time"
>>
>> ---
>> "We will call you Cygnus,
>> the God of balance you shall be=2E"
>>
>>
>


--=20
"We will call you Cygnus,
the God of balance you shall be=2E"
---
"We will call you Cygnus,
the God of balance you shall be=2E"
------EEICAKAOLJQP5UV08T1OF10ZH2LB7K
Content-Type: text/html;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

&gt; On Tue, May 2, 2023 at 6:50=C3=A2=C2=80=C2=AFPM Matheus &lt;lojas@arro=
way=2Eorg&gt; wrote:<br>&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On May 1, =
2023 1:47:12 PM GMT-03:00, "S=C3=83=C2=B8ren Schmidt" &lt;<br>&gt;&gt; sore=
n=2Eschmidt@gmail=2Ecom&gt; wrote:<br>&gt;&gt; &gt;&gt; On 30 Apr 2023, at =
23=2E44, Matheus &lt;lojas@arroway=2Eorg&gt; wrote:<br>&gt;&gt; &gt;&gt;<br=
>&gt;&gt; &gt;&gt; Hi,<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; I am tryin=
g to have FreeBSD 14 running on this SBC=2E I could not find<br>&gt;&gt; &g=
t;any guides in how to build images for it=2E I found the<br>&gt;&gt; &gt;p=
eople=2Efreebsd=2Eorg/~sos/ site that has some images, and one for it, but<=
br>&gt;&gt; &gt;that seldom boots my board, and when it did, there was no c=
onsole over<br>&gt;&gt; &gt;serial or vga=2E<br>&gt;&gt; &gt;&gt;<br>&gt;&g=
t; &gt;&gt; If anyone can give any hints=2E Unfortunately my dev skills are=
 not<br>&gt;&gt; &gt;good=2E But I can test and help build once I figure ou=
t how :)<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;Hi Matheus<br>&gt;&gt; &gt;<br>&g=
t;&gt; &gt;The image at<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; <a hr=
ef=3D"https://people=2Efreebsd=2Eorg/~sos/ARM64/current-RK356X-images/nano5=
-sdcard=2Eimg=2Egz">https://people=2Efreebsd=2Eorg/~sos/ARM64/current-RK356=
X-images/nano5-sdcard=2Eimg=2Egz</a><br>&gt;&gt; &gt;<br>&gt;&gt; &gt;for t=
he Nanopi R5S does indeed boot with both HDMI output and serial<br>&gt;&gt;=
 &gt;console (1500000baud)=2E<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;The boot loa=
der (EDK2 in FDT mode) is very picky on SD card quality<br>&gt;&gt; &gt;tho=
ugh from experience, I works for me with Sandisk Ultra / Extreme<br>&gt;&gt=
; &gt;cards but not with Samsung and cheap noname SD cards YMMV=2E<br>&gt;&=
gt;<br>&gt;&gt; Hi S=C3=83=C2=B8ren,<br>&gt;&gt;<br>&gt;&gt; I had really i=
ssues on sd carda=2E I got it to boot once, but I was<br>&gt;&gt; printing<=
br>&gt;&gt; characters on screen at one per second=2E So I rebooted and don=
't remember<br>&gt;&gt; why rewrote the card=2E I can't boot anymore=2E Tri=
ed different cards,<br>&gt;&gt; SanDisk<br>&gt;&gt; ultra, no luck=2E<br>&g=
t;&gt;<br>&gt;&gt; I can boot an 13=2E2 image from the guy at personalbsd t=
hough=2E But there I<br>&gt;&gt; have just one ethernet=2E<br>&gt;&gt; On 1=
3=2E2 I cannot list the ethernets nics using pciconf -lv, including<br>&gt;=
&gt; the<br>&gt;&gt; one that works=2E Is this expected?<br>&gt;<br>&gt;<br=
>&gt; Yes=2E Did you try<br>&gt; <a href=3D"https://personalbsd=2Eorg/downl=
oad/Business/FreeBSD-aarch64-14=2E0-CURRENT-NanoPi-R5S-20230402=2Eimg=2Exz"=
>https://personalbsd=2Eorg/download/Business/FreeBSD-aarch64-14=2E0-CURRENT=
-NanoPi-R5S-20230402=2Eimg=2Exz</a><br>&gt; ?<br>&gt; This image should hav=
e support for pcie and all ethernet should work IIRC=2E<br>&gt;<br>&gt; Gan=
bold<br><br>Hi Ganbold,<br><br>I tried it and other 2 images and no success=
, including the image pointed<br>by Soren=2E Unfortunately I just got to bo=
ot one image from 14 but I<br>overwritten the sd card and can't remember wh=
ich sd card and image :(<br><br>The only image I can make it boot is from 1=
3=2E2R, and I got it installed<br>fine (using an EFI image from personalbsd=
 from March 23)=2E<br><br>Will wait for the next round of images for 14=2E<=
br><br>Thanks,<br><br>matheus<br><br>&gt;&gt;<br>&gt;&gt; I have little und=
erstanding of the arch, so my progress is much slow=2E<br>&gt;&gt; I got so=
me dmesg from OpenBSD people where the nics show in ifconfig=2E<br>&gt;&gt;=
 But<br>&gt;&gt; I couldn't get mine to behave this way=2E I can install th=
ough, using USB<br>&gt;&gt; nic=2E<br>&gt;&gt; I will try to buy a new sd c=
ard from the good list you pointed=2E<br>&gt;&gt; Another thing, I got the =
feeling that when I dd'ed the image using the<br>&gt;&gt; SD<br>&gt;&gt; ca=
rd slot on the notebook it worked and when was through usb adapter did<br>&=
gt;&gt; not=2E Does it make sense? Using Linux mint as host for this=2E<br>=
&gt;&gt; Thanks so much for the answer and help,<br>&gt;&gt;<br>&gt;&gt; Ma=
theus<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; &gt;You can build a stock ARM64 g=
eneric kernel and most things will be<br>&gt;&gt; &gt;usable, however as Ga=
nbold wrote the DTS files is not in there yet (and<br>&gt;&gt; &gt;not even=
 in linux where our DTS files are fetched from)=2E<br>&gt;&gt; &gt;However =
the EDK2 boot loader provided (and used in above image) on<br>&gt;&gt; &gt;=
<br>&gt;&gt; &gt;https://people=2Efreebsd=2Eorg/~sos/ARM64/EDK2-RK356X/NANO=
PI-R5S_EFI=2Eitb=C3=AF=C2=BF=C2=BC<br>&gt;&gt; &gt;NANOPI-R5S_EFI<br>&gt;&g=
t; &gt;File =C3=82=C2=B7 1,7 MB<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;does hand =
over the =C3=A2=C2=80=C2=9Cright=C3=A2=C2=80=C2=9D DTB file if you want to =
experiment=2E<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;If you need the used DTS fil=
e and build guidance let me know in private<br>&gt;&gt; &gt;mail=2E=2E=2E<b=
r>&gt;&gt; &gt;<br>&gt;&gt; &gt;--<br>&gt;&gt; &gt;S=C3=83=C2=B8ren Schmidt=
<br>&gt;&gt; &gt;sos@deepcore=2Edk / sos@freebsd=2Eorg<br>&gt;&gt; &gt;"So =
much code to hack, so little time"<br>&gt;&gt;<br>&gt;&gt; ---<br>&gt;&gt; =
"We will call you Cygnus,<br>&gt;&gt; the God of balance you shall be=2E"<b=
r>&gt;&gt;<br>&gt;&gt;<br>&gt;<br><br><br>-- <br>"We will call you Cygnus,<=
br>the God of balance you shall be=2E"<hr>"We will call you Cygnus,<br>the =
God of balance you shall be=2E"
------EEICAKAOLJQP5UV08T1OF10ZH2LB7K--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C8CE78B3-EADC-4755-B53F-D2A11CFE95A9>