From nobody Tue May 02 12:48:39 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 4Q9fz01bfKz48xMw for ; Tue, 2 May 2023 12:49:00 +0000 (UTC) (envelope-from lojas@arroway.org) Received: from hobbes.arroway.org (hobbes.arroway.org [173.199.118.77]) by mx1.freebsd.org (Postfix) with ESMTP id 4Q9fyz1s0gz3xNp for ; Tue, 2 May 2023 12:48:59 +0000 (UTC) (envelope-from lojas@arroway.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of lojas@arroway.org designates 173.199.118.77 as permitted sender) smtp.mailfrom=lojas@arroway.org; dmarc=none Received: from [10.15.253.193] (unknown [191.247.23.31]) by hobbes.arroway.org (Postfix) with ESMTPA id 1D66E14D1C2 for ; Tue, 2 May 2023 09:48:57 -0300 (-03) Date: Tue, 02 May 2023 09:48:39 -0300 User-Agent: K-9 Mail for Android In-Reply-To: References: 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Nanopi R5S support and build guide To: freebsd-arm@freebsd.org From: Matheus Message-ID: <3ECD87D6-C4CB-4566-A251-4FEF8F8DF044@arroway.org> X-Spamd-Result: default: False [-1.04 / 15.00]; NEURAL_HAM_MEDIUM(-0.66)[-0.664]; NEURAL_HAM_SHORT(-0.58)[-0.577]; NEURAL_SPAM_LONG(0.40)[0.401]; R_SPF_ALLOW(-0.20)[+a:c]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:20473, ipnet:173.199.116.0/22, country:US]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DMARC_NA(0.00)[arroway.org]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4Q9fyz1s0gz3xNp X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N On May 2, 2023 7:54:28 AM GMT-03:00, Ganbold Tsagaankhuu wrote: >On Tue, May 2, 2023 at 6:50=E2=80=AFPM Matheus wrot= e: > >> >> >> On May 1, 2023 1:47:12 PM GMT-03:00, "S=C3=B8ren Schmidt" < >> soren=2Eschmidt@gmail=2Ecom> wrote: >> >> On 30 Apr 2023, at 23=2E44, Matheus wrote: >> >> >> >> Hi, >> >> >> >> I am trying to have FreeBSD 14 running on this SBC=2E I could not >find >> >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-sdc= ard=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=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 >remember >> 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 >there 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-CURREN= T-NanoPi-R5S-20230402=2Eimg=2Exz >? >This image should have support for pcie and all ethernet should work >IIRC=2E > >Ganbold Hi Ganbold,=20 Now you got me=2E I can't tell if this or the image S=C3=B8ren pointed got= me to boot and be super slow on the kernel load=2E I will try both later a= t home=2E=20 Thanks,=20 Matheus=20 >> >> 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 >USB >> 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 >did >> 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 >(and >> >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=2Ei= tb=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 exp= eriment=2E >> > >> >If you need the used DTS file and build guidance let me know in >private >> >mail=2E=2E=2E >> > >> >-- >> >S=C3=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" >> >> --- "We will call you Cygnus, the God of balance you shall be=2E"