Hello there,
Im trying to compiled the kernel version but ends up failed. This is the steps taken by me, i followed the official documentation for visionfive 2 board as well as this tutorial by HonestQiao 星光2之USB无线网卡使用教程【新增RTL8832AU WiFi6双频无线网卡】.
1: Flashing sd card
i downloaded the image from this onedrive located inside the sd folder and flash it to my sd card using balena etcher, all works well.
-
After flashing the card, i insert the sd card into the visionfive 2 board and turned it on, seems well also.
-
Extend partition on SD Card
This part also seems to work well.
-
Install packages
I used the above commands to install the packages. The output however i forgot to scerenshot. -
Prepare Environment
After done installing the packages, i straight go to the tutorial by HonestQiao to compile and install the kernel.
From the commands above, i got this output:
-
Compile basic kernel
From the commands above, i got the output more or less like HonetsQiao’s output but longer, about 45min. However i didnt capture the result.
Next is i follow this commands:
time make CROSS_COMPILE=riscv64-linux-gnu- ARCH=riscv -j4
make CROSS_COMPILE=riscv64-linux-gnu- ARCH=riscv INSTALL_PATH=~/repos/compiled/ zinstall -j4
ls -lh arch/riscv/boot/Image.gz arch/riscv/boot/dts/starfive/jh7110-visionfive-v2*.dtb ~/repos/compiled/
Here is my output:
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/
to get this output:
this is the content inside my arch/riscv/boot/dts/starfive:
i replaced some of the commands following the naming convention of the files inside my board.
and lastly, after editing the /boot/extlinux/extlinux.conf as below:
or
(Note: first image is first try and second image is second try)
and restarting to install the kernel, here is what shown on screen:
first try:
second try:
(Note: for second try my tree /boot/dtbs/new/ looks like below)
What did i do wrong? The reason i build the kernel is to install a third party wifi dongle (D-Link), the steps provided above by nugu53 but i still couldnt manage to do it. Can anyone please help me please…