You are not logged in.
compiling the thunderbolt module fails when i compile my kernel with localmodconfig. i'm getting following error:
time BUILDDIR=/tmp/makepkg makepkg -si
...
using config: '.config'
uvc config not found!!
thunderbolt config not found!!
...
i found this thread which led me to replace "thunderbolt" with "usb4" in /home/user/.config/modprobed.db
but now i'm getting:
time BUILDDIR=/tmp/makepkg2 makepkg -si
...
using config: '.config'
uvc config not found!!
usb4 config not found!!
...
what am i missing here?
Last edited by espritlibre (2023-06-03 18:13:01)
Offline
TIPS
o As upstream kernel code changes, new modules become available or are removed. It is recommended to boot into a distro default kernel and invoke modprobed-db in store mode to capture any new modules that have become available on new major kernel releases.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
thanks for the tip graysky! i just booted linux from the repo and removed thunderbolt from the modprobed.db
modprobed-db store
...
New module(s) detected:
thunderbolt
...
added usb4 to modprobed.db and tried to build a vanilla kernel with localmodconfig
...
using config: '.config'
thunderbolt config not found!!
usb4 config not found!!
...
Last edited by espritlibre (2023-05-13 17:35:37)
Offline
While booted into the distro kernel, make sure you have your device recognized by the kernel then run modprobed-db s to refresh the database. Now when you build your custom kernel, it should be built in.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
thanks for your patience graysky, like you said it should be built in, but it's not. i'm not sure why the usb4 module option isn't working.
EDIT:
it seems like it's being worked on link
Last edited by espritlibre (2023-05-14 18:24:24)
Offline
i'm posting this for everybody who might stumble about this issue...
the patch in the link didn't work for me in PKGBUILD so i made this, just create this file copy it in the folder containing the PKGBUILD and put it in your PKGBUILD "source" array before "config", run updpkgsums like usual and build the package and the thunderbolt module will be built. (Steven Rostedt is the original creator of this patch)
thunderbolt.patch
-------------------------------------------------------------------------------------------
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index 3387ad7..d51cd7a 100755
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -317,7 +317,7 @@ foreach my $makefile (@makefiles) {
$_ = convert_vars($_, %make_vars);
# collect objects after obj-$(CONFIG_FOO_BAR)
- if (/obj-\$\((CONFIG_[^\)]*)\)\s*[+:]?=\s*(.*)/) {
+ if (/obj-\$[({](CONFIG_[^})]*)[)}]\s*[+:]?=\s*(.*)/) {
$var = $1;
$objs = $2;
Last edited by espritlibre (2023-06-03 18:33:09)
Offline