I just noticed you are running the one for ```
soft_3rdpart-JH7110_VF2_6.1_v5.11.3
What is your current Kernel Version?
Each of these ebuilds is for a different kernel version
vf2vpudev-3.1.5.ebuild Kernel 5.15
vf2vpudev-5.11.3.ebuild Kernel 6.1
vf2vpudev-5.12.0.ebuild Kernel 6.6
The last one installs without issues on my system running Kernel 6.6.20
>>> Test phase [disabled because of RESTRICT=test]: media-video/vf2vpudev-5.12.0
>>> Install media-video/vf2vpudev-5.12.0 into /var/tmp/portage/media-video/vf2vpudev-5.12.0/image
* Installing jpu module
* Installing venc module
* Installing vdec module
>>> Completed installing media-video/vf2vpudev-5.12.0 into /var/tmp/portage/media-video/vf2vpudev-5.12.0/image
* Final size of build directory: 77108 KiB (75.3 MiB)
* Final size of installed tree: 1316 KiB ( 1.2 MiB)
strip: riscv64-unknown-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version
/lib/modules/6.6.20-starfive/extra/venc.ko
/lib/modules/6.6.20-starfive/extra/jpu.ko
/lib/modules/6.6.20-starfive/extra/vdec.ko
that’s true. But at the moment I’m reverting the switch to gcc12 back to gcc14 as the process to switch to gcc12 was not successful because some problems with atomic (failed to emerge dev-util/glslang-1.3.283.0). This whole process needs some days as a lot of things needs to be re-compiled.
When this is finished I’ll try out your hint.
But probably I’ll put my RISC-V boards aside and tinker with my Jetson Orin and AI. RISC-V is a lot of compiling, patching, try and error and still the whole ecosystem (hardware and basic operating system) seems to me still in a alpha state.
I’ll come back to RISC-V in the long and dark winter time
What we can all do to advance risc-v support on Gentoo is to try to emerge packages that currently do not have the riscv keyword and if it works then open a bug report and ask for the riscv ketwork to be added.
EG
I added >=sci-libs/clfft-2.12.2-r1 ~*
to /etc/portage/package.accept_keywords
Worked out what was needed to get it to emerge on a risc-v system and then opened this bug report 904492 – sci-libs/clfft-2.12.2-r1::science riscv support
Some little breakthrough for me. I’ve started again with andrews image and updated successfully to v23, copied required files (kernel, init image, modules, dtb, firmware) for kernel 6.6.20 from the official visionfive2 debian image and successfully integrated them to andrews image.
Now I have video output on HDMI
But when I try to use the console locally, either by UART adapter or a directly connected USB keyboard the input is sluggish and a lot of lags. SSH session works fine!
Does anyone has an idea what the reason could be? Maybe irqpoll needed or do I have to change anything in the dts file?
@martin.wozenilek
Have a look at /boot/uEnv.txt
Which .dts is the line
fdtfile=
pointing to?
is it
fdtfile=starfive/jh7110-visionfive-v2.dtb
or
the one ending in v1.3b.dtb
You may need to change it if you are running the newer kernel with the latest firmware
Check the contents of this file on the latest debian image as well if that is what your kernel is based on.
Hi Andrew! Needed to switch to the v1.3 dtb in order to boot with 6.6.20 kernel. I’ve build kernel, modules and dtb on the board itself with the official sources from starfive.
But can’t get the keyboard thing sorted. Directly after reboot on the concole the keyboard does not work reliable. Some keys behave wrong, some key stroke has to be done twice. It’s not a hardware issue, tested that already.
Can you give me a hind what to look for in the dtb? I’ve no idea
But on the other hand i’ve docker.io running on the visionfive2/gentoo system
What is the revision of your board?
Does the Keyboard behave any differently in another USB Port?
Does it show up when you run lsusb
Does the output of dmesg show any issues related to the usb devices?
Have you tried a powered USB HUB to rule out power supply issues?
Does the standard Debian image run without issues on the 6.6.20 kernel?
Did you have the same issue with the 5.15 kernel?
Are all the USB configs in this file enabled in your /usr/src/linux/.config
Can you post the output from dmesg as a file to the forum?
BTW I have a gentoo install on my VF2 that I installed by mostly following the amd64 handbook, and without extracting anything from another image. I have documented it in case it might be helpful to anybody else:
Hi Andrew! Since my emerge Firefox runs since a few days: is Chromium the better choice for the VF2 / PVR GPU / Gentoo System? Then I would change to that route.