Re: Nanopi R5S support and build guide

Matheus <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
> On Tue, May 2, 2023 at 6:50 PM Matheus <[email protected]> wrote:
>
>>
>>
>> On May 1, 2023 1:47:12 PM GMT-03:00, "Søren Schmidt" <
>> [email protected]> wrote:
>> >> On 30 Apr 2023, at 23.44, Matheus <[email protected]> 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øren,
>>
>> 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 remember
>> why rewrote the card. I can't boot anymore. Tried different cards,
>> SanDisk
>> 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-NanoPi-R5S-20230402.img.xz
> ?
> This image should have support for pcie and all ethernet should work IIRC.
>
> Ganbold

Hi Ganbold,

I tried it and other 2 images and no success, including the image pointed
by Soren. 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.2R, and I got it installed
fine (using an EFI image from personalbsd from March 23).

Will wait for the next round of images for 14.

Thanks,

matheus

>>
>> 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
>> >NANOPI-R5S_EFI
>> >File · 1,7 MB
>> >
>> >does hand over the “right” DTB file if you want to experiment.
>> >
>> >If you need the used DTS file and build guidance let me know in private
>> >mail...
>> >
>> >--
>> >Søren Schmidt
>> >[email protected] / [email protected]
>> >"So much code to hack, so little time"
>>
>> ---
>> "We will call you Cygnus,
>> the God of balance you shall be."
>>
>>
>


-- 
"We will call you Cygnus,
the God of balance you shall be."
---
"We will call you Cygnus,
the God of balance you shall be."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.