From nobody Tue May 02 10:54:28 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 4Q9cR64f6Dz48qsH for ; Tue, 2 May 2023 10:54:42 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (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 4Q9cR62Hs3z3jKW for ; Tue, 2 May 2023 10:54:42 +0000 (UTC) (envelope-from ganbold@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-33131d7a26eso2114825ab.0 for ; Tue, 02 May 2023 03:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683024881; x=1685616881; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2Rn2uq+EDPUBBeIaBhJXBGazolFa9w5CQNogUlIfKaA=; b=k2q7+qTjILUSxDdgYYWP7BW/nmyin1GldA/Ij5/pjq4FCQWIVjkVMfQl5l56YlsRk7 0dwc71fpkDwJ77D1ar6bJkJghtEuPKD0V++p91FXY1j8p5V7x8fHZ3Kva6QhPIL+6kuh EzFQs8O4xpsZKygR0EG/Ru2T9WLyXFa3b9iZ5NQETP2CElxvhqtMiPgbg2PONWy6EpXv AQ7U7KopfO0e7kYnvhQmKx9JCeY7OWwon0vJjobHujsLpfkTfSVZkSXHUtNE0xyQTuH/ phxZTUA9zpHOXq8WSAvQ07CWpgR4Tc2bkWjT+iAmIYhw8WdRYl07x7/pQGXYqGxb6E1n 8xQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683024881; x=1685616881; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2Rn2uq+EDPUBBeIaBhJXBGazolFa9w5CQNogUlIfKaA=; b=U1vzskuYy/uVgO+iSTUn4ENJr8Z1OM0Ws8dJE/OBK9mL848hYPE/GrI5JXhnBkNYrl Uz1ZHs22QMIrb7/OC4HWuRptdWFhFuJ1PfHkP+Gbv0aE9Gr3urE0dMLDdw4Tc6WkENIx 7mDclEj8OUo1K7F0+yqwdWhGducMscBZVv8dKnEDnMetx43iEOht4YZLt3d5qZPB0bE7 DwHN5vYCg+iVz1abJfiPIxmT3XKereseFIoB0C1rX0WLqH1PleQnxcnftOD9+4vT6lJI MWGqheGjrjJRS1xLY8pAH3ZtnBa8ym7z+vGGHuOl9iiG3npt+/38l8EYZhGBUuCUHvTe Jjlg== X-Gm-Message-State: AC+VfDwhyVl57ENJuuFkEoJSqkY5AXPObjjPQ9zz2D4YCPnf1U319C7u OLOOdqlljvIbrZkWPgtRfa+cTzDNPfRW18VcNf8= X-Google-Smtp-Source: ACHHUZ5m3BLkQ2aRSEAtuvtbijbPoQjxyr/T9oDF6FVWnwd7qDz6xbdmOjsDpEAHwzTfVROrJ1bfYm34IiDWInnQ9BE= X-Received: by 2002:a92:c90e:0:b0:32a:85f7:eaa6 with SMTP id t14-20020a92c90e000000b0032a85f7eaa6mr12021744ilp.6.1683024880687; Tue, 02 May 2023 03:54:40 -0700 (PDT) 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 References: In-Reply-To: From: Ganbold Tsagaankhuu Date: Tue, 2 May 2023 18:54:28 +0800 Message-ID: Subject: Re: Nanopi R5S support and build guide To: Matheus Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="00000000000029603505fab3c46d" X-Rspamd-Queue-Id: 4Q9cR62Hs3z3jKW X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --00000000000029603505fab3c46d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 2, 2023 at 6:50=E2=80=AFPM Matheus wrote: > > > On May 1, 2023 1:47:12 PM GMT-03:00, "S=C3=B8ren Schmidt" < > soren.schmidt@gmail.com> wrote: > >> On 30 Apr 2023, at 23.44, Matheus 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 > > > > > https://people.freebsd.org/~sos/ARM64/current-RK356X-images/nano5-sdcard.= img.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. > > Hi S=C3=B8ren, > > I had really issues on sd carda. I got it to boot once, but I was printin= g > characters on screen at one per second. So I rebooted and don't remember > why rewrote the card. I can't boot anymore. Tried different cards, SanDis= k > ultra, no luck. > > I can boot an 13.2 image from the guy at personalbsd though. But there I > have just one ethernet. > On 13.2 I cannot list the ethernets nics using pciconf -lv, including the > one that works. Is this expected? Yes. Did you try https://personalbsd.org/download/Business/FreeBSD-aarch64-14.0-CURRENT-Nano= Pi-R5S-20230402.img.xz ? This image should have support for pcie and all ethernet should work IIRC. Ganbold > > I have little understanding of the arch, so my progress is much slow. > I got some dmesg from OpenBSD people where the nics show in ifconfig. But > I couldn't get mine to behave this way. I can install though, using USB > nic. > I will try to buy a new sd card from the good list you pointed. > 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 did > not. Does it make sense? Using Linux mint as host for this. > 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 (and > >not even in linux where our DTS files are fetched from). > >However the EDK2 boot loader provided (and used in above image) on > > > >https://people.freebsd.org/~sos/ARM64/EDK2-RK356X/NANOPI-R5S_EFI.itb=EF= =BF=BC > >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 exper= iment. > > > >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" > > --- > "We will call you Cygnus, > the God of balance you shall be." > > --00000000000029603505fab3c46d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, May 2, 2023 at 6:50=E2=80=AFP= M Matheus <lojas@arroway.org>= ; wrote:


On May 1, 2023 1:47:12 PM GMT-03:00, "S=C3=B8ren Schmidt" <soren.schmidt@gma= il.com> wrote:
>> 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 fi= nd
>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<= br> >serial or vga.
>>
>> If anyone can give any hints. Unfortunately my dev skills are not<= br> >good. But I can test and help build once I figure out how :)
>
>Hi Matheus
>
>The image at
>
>https://people.fr= eebsd.org/~sos/ARM64/current-RK356X-images/nano5-sdcard.img.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.

Hi S=C3=B8ren,

I had really issues on sd carda. I got it to boot once, but I was printing = characters on screen at one per second. So I rebooted and don't remembe= r why rewrote the card. I can't boot anymore. Tried different cards, Sa= nDisk ultra, no luck.

I can boot an 13.2 image from the guy at personalbsd though. But there I ha= ve just one ethernet.
On 13.2 I cannot list the ethernets nics using pciconf -lv, including the o= ne that works. Is this expected?

This image should have support for pcie and all ethernet should = work IIRC.

Ganbold

=C2=A0=

I have little understanding of the arch, so my progress is much slow.
I got some dmesg from OpenBSD people where the nics show in ifconfig. But I= couldn't get mine to behave this way. I can install though, using USB = nic.
I will try to buy a new sd card from the good list you pointed.
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 did= not. Does it make sense? Using Linux mint as host for this.
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 (and=
>not even in linux where our DTS files are fetched from).
>However the EDK2 boot loader provided (and used in above image) on
>
>https://people.freebsd.org/~= sos/ARM64/EDK2-RK356X/NANOPI-R5S_EFI.itb=EF=BF=BC=C2=A0
>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 expe= riment.
>
>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"

---
"We will call you Cygnus,
the God of balance you shall be."

--00000000000029603505fab3c46d--