Hello Everyone!
Did some lurking here as well as some other places before posting my question here because I am really stuck. I am hoping to get some help/advice on how to proceed on this problem. I'm posting because from everything I have been able to find, this board is as "plug and play" as it gets under FreeBSD so I was eager to give RISCV a try. Apologies if this should have gone in "other architectures" but since its not giving a display I thought it might be more relevant here.
My reference for doing this install was this site: https://wiki.freebsd.org/riscv/HiFiveUnmatched
I am using 14.2 RELEASE
Because my hard drive had been used in a previous (arm) FreeBSD install, this board tried to boot from it (edit- I didn't try to use the arm code. I wanted a fresh install via memstick) so I followed the "Manually Booting from FreeBSD" section. I get no display whatsoever from the board, however I am able to see things in the serial terminal and get BSD installed with no issues.
Looking at dmesg I see the following lines:
So from what I can gather it sees the card but obviously no driver. Following the handbook in section 5.3 table 1 and cross-checking the database I think I need the graphics/drm-kmod package and then use the radeonkms module adding a line in /etc/rc.conf. When trying to use
and when I choose Y it bombs out with the following message:
Ok fine, so trying
Ok whatever, so
Okay, maybe try a
Am I even barking up the right tree trying to get this installed when handbook section 5.3 really pertains to a GUI instead of command line?
I'm really stumped on this. One of the reasons I wanted to give this particular board a try was because it seemed that it was the most mature of the RISCV boards out there even though RISCV is Tier2. It seemed like it would be a fun way to get a BSD install going. I dont know what Im missing in the instructions to get display output. FWIW the SD card that comes with it does indeed boot to a graphics screen with xfce but its not FreeBSD which is what I would prefer since I've played with it on and off since 4.4 and I only briefly touched "the other operating system" in the mid 1990s.
Any thoughts/advice on this would be greatly appreciated. Hopefully its something like a low level driver that can be fixed by making a new uboot SD card or something and the reference wiki I used is (slightly) out of date on this. Should I try version 13.X since the youtube videos I've seen of this board running FreeBSD were on 13.X?
A huge thank you to everyone who read through this slog and is willing to lend a hand.
Did some lurking here as well as some other places before posting my question here because I am really stuck. I am hoping to get some help/advice on how to proceed on this problem. I'm posting because from everything I have been able to find, this board is as "plug and play" as it gets under FreeBSD so I was eager to give RISCV a try. Apologies if this should have gone in "other architectures" but since its not giving a display I thought it might be more relevant here.
My reference for doing this install was this site: https://wiki.freebsd.org/riscv/HiFiveUnmatched
I am using 14.2 RELEASE
Because my hard drive had been used in a previous (arm) FreeBSD install, this board tried to boot from it (edit- I didn't try to use the arm code. I wanted a fresh install via memstick) so I followed the "Manually Booting from FreeBSD" section. I get no display whatsoever from the board, however I am able to see things in the serial terminal and get BSD installed with no issues.
Looking at dmesg I see the following lines:
Code:
pci7: <PCI bus> on pcib7
vgapci0: <VGA-compatible display> at device 0.0 on pci7
pci7: <multimedia, HDA> at device 0.1 (no driver attached)
pkg I get:
Code:
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]:
Code:
pkg: Error: Authentication error
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
make install from ports-mgmt/pkg bombed out after partially compiling, but restarting the make for whatever reason got farther than it ever did before and seemed to make, so I cant duplicate the error. However, it ended with this:
Code:
===> Checking if pkg is already installed
===> pkg-1.21.3 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of pkg
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1
Stop.
make: stopped in /usr/ports/ports-mgmt/pkg
Ok whatever, so
pkg works now, so let's hit a pkg install drm-kmod only to get:
Code:
Updating FreeBSD repository catalogue...
pkg: An error occured while fetching package
pkg: An error occured while fetching package
repository FreeBSD has no meta file, using default settings
pkg: An error occured while fetching package
pkg: An error occured while fetching package
pkg: An error occured while fetching package
pkg: An error occured while fetching package
Unable to update repository FreeBSD
Error updating repositories!
Okay, maybe try a
make install from graphics/drm-kmod? Nope...
Code:
===> drm-kmod-20220907_3 not supported for this configuration.
*** Error code 1
Stop.
make: stopped in /usr/ports/graphics/drm-kmod
Am I even barking up the right tree trying to get this installed when handbook section 5.3 really pertains to a GUI instead of command line?
I'm really stumped on this. One of the reasons I wanted to give this particular board a try was because it seemed that it was the most mature of the RISCV boards out there even though RISCV is Tier2. It seemed like it would be a fun way to get a BSD install going. I dont know what Im missing in the instructions to get display output. FWIW the SD card that comes with it does indeed boot to a graphics screen with xfce but its not FreeBSD which is what I would prefer since I've played with it on and off since 4.4 and I only briefly touched "the other operating system" in the mid 1990s.
Any thoughts/advice on this would be greatly appreciated. Hopefully its something like a low level driver that can be fixed by making a new uboot SD card or something and the reference wiki I used is (slightly) out of date on this. Should I try version 13.X since the youtube videos I've seen of this board running FreeBSD were on 13.X?
A huge thank you to everyone who read through this slog and is willing to lend a hand.