How to compile kernel modules

I’m trying to port alpine linux based on image of
duo-buildroot-sdk-v2 milkv-duo256m-musl-riscv64-sd

i found that i might need more kernel modules to use it properly, so i want to add more kernel modules, how can i do that?
i tried using /proc/config.gz from the image with linux_5.10 source but didn’t work

i’m using this kernel instead of mainline kernel because of camera support

let me know if i can get camera working on mainline(for example, by using externally built modules)

1 Like

You can certainly add kernel modules easily by modifying the *_defconfig file.
/duo-buildroot-sdk/build/boards/$CHIP_SEGMENT/$CONFIG/linux/*milkv*_defconfig

The problem with duo-buildroot-sdk-v2 right now, is that I can’t get it to build. :pensive:

1 Like

so i was able to build kernel support for duo256m, attached is the arm64 version of the firmware, you will need to use menuconfig_kernel to enable the required modules such as uvc support as mentioned over here

after making the changes, copying the .config file as shown in the above guide, and building the image you will have the image with required usb camera support.
and for anyone who want the file can download it from here.
link

1 Like