Hello there,
Im trying to compile a new kernel for my brand new visionfive 2 board but ends up failed. This is the steps i taken to install the kernel, i followed the official documentation for visionfive 2 board as well as this tutorial by HonestQiao 星光2之USB无线网卡使用教程【新增RTL8832AU WiFi6双频无线网卡】.
i downloaded the image from this onedrive (debian.starfivetech.com) located inside the sd folder and flash it to my sd card using balena etcher, all works well. I use two version of the os which is 202311 (first try) and 202405 (second try) which both failed.
After flashing the card, i insert the sd card into the visionfive 2 board and turned it on, seems well also.
I used the above commands to install the packages. The output however i forgot to screenshot but it seems to work well.
Prepare Environment
After done installing the packages, i straight go to the tutorial by HonestQiao to which firstly ask me to prepare the environment by installing useful resources/tools.
As you can see here, the output is quite different from HonestQiao’s one.
But i still proceed with the next command:
sudo mkdir /boot/boot/dtbs/new
sudo mkdir /boot/boot/dtbs/new/starfive
sudo cp arch/riscv/boot/dts/starfive/jh7110-visionfive-v2*.dtb /boot/boot/dtbs/new/starfive/
sudo cp -r arch/riscv/boot/dts/starfive/vf2-overlay /boot/boot/dtbs/new/starfive/
sudo cp ~/repos/compiled/vmlinuz-5.15.0_for_HonestQiao /boot/boot/vmlinuz-5.15.0_for_HonestQiao
tree /boot/boot/dtbs/new/
For the /boot/boot/dtbs/new, so sorry i put it wrong. I copy paste directly from the tutorial by HonestQiao, i actually used “sudo mkdir /boot/dtbs/new” command
Hello there, its been quite some time. Just found some free time to do this. So, I followed your suggestion to remove the initrd line from extlinux.conf. like picture below:
I also copied some more dtb files from the downloaded linux folder from Github (GitHub - starfive-tech/linux) to /boot/dtbs/new/starfive following the content inside the existing /boot/dtbs/5.15.0/starfive:
I think its quite complicated to build the new kernel and install it. Is there a possible way to install 3rd party WIFI module, specifically for RTL8822bu (D-Link DWA-182) without installing new kernel? maybe used the existing kernel?
Am I understanding correctly, that you are compiling the kernel ON the Visionfive 2? If so, I’d like to point out, that the guide you’re following seems to be on cross compiling the kernel from a non-riscv PC. That onto itself shouldn’t be an issue (i think), but maybe the guide makes the implicit assumption that you are not on a riscv device somewhere, that leads to an issue.
I’m sorry, I cannot verify that for myself, as I (sadly) cannot read Chinese.
I’m only doing it because I want to use a 3rd party Wi-Fi dongle [RTL8822bu (D-Link DWA-182) on the VisionFive 2 board itself as I didn’t manage to get the official WIFI dongle. Do you have any idea on doing it other than cross compiling the kernel?
You can actually translate the page to English for better understanding. Right click on the page and select translate to English (that’s what I did), and it will look something like this:
Sadly, Firefox does not have that nifty translation feature, and Google Translate’s dedicated page translator reports the page as private…
As for how to do this (if you’re not cross compiling), the steps are usually
make menuconfig to configure
make to compile the kernel
sudo make modules_install to install the modules
sudo make install to install the kernel
regenerate the initramfs with something like dracut or mkinitcpio
adjust the extlinux.conf file
But I assume this doesn’t really help you much as that is probably what the guide told you to do. Going through the guide, I did notice he’s likely running on the VF2 aswell (by the honestqiao@starfive bash prompt), so my original guess is likely not an issue…