<SOLVED> compile kernel module error message

kreutpet

Member
Mar 15, 2020
13
1
8
46
found a beta version 1.6beta which was posted on kernel mailing list.
this version compiled.

----------------

hi ,
recently bought a pcie serial card with AX99100_SP_PP_SPI_Linux_Driver_v1.5.0_Source from here driver
i followed the instruction and installed the kernel sources and build-essential but end up in below error message.
Any hint how to resolve that

make
rm -f *.mod.c *.o *.ko .*.cmd *.symvers
make -C /lib/modules/5.3.18-3-pve/build/ SUBDIRS= modules
make[1]: Verzeichnis „/usr/src/linux-headers-5.3.18-3-pve“ wird betreten
scripts/kconfig/conf --syncconfig Kconfig
Kconfig:36: can't open file "Documentation/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:73: syncconfig] Fehler 1
make[2]: *** [Makefile:589: syncconfig] Fehler 2
make[1]: *** [Makefile:705: include/config/auto.conf.cmd] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-5.3.18-3-pve“ wird verlassen
make: *** [Makefile:37: default] Fehler 2

thx
 
Last edited:
Hi I believe I had the same issue. I noticed it shows solved in the title. Were you able to figure out the issue with:

scripts/kconfig/conf --syncconfig Kconfig
Kconfig:36: can't open file "Documentation/Kconfig"


I posted earlier this week and was reached out by and admin for help.

Thanks
 
i could not solve the issue within the build process for the version 1.5.0
i started to search and found a 1.6.0 beta version of the driver and then i was able to install the driver
 
just update proxmox and again issue comes up with new kernel
installed the headers for pve-headers-5.4.44-1-pve

no getting error

scripts/kconfig/conf --syncconfig Kconfig
Kconfig:36: can't open file "Documentation/Kconfig"

On the the old kernel 5.4.18 then 1.6.0 beta driver compiled sucessfully
I loaded the beta from here https://linuxlists.cc/l/1/linux-kernel/t/3357170/asix_ax99100_serial_driver_in_kernel_

the 1.5.0 version is available on the vendor web page
https://www.asix.com.tw/FrootAttach/driver/AX99100_SP_PP_SPI_Linux_Driver_v1.5.0_Source.tar.bz2

Is this driver issue or do i have problem with build environment?
Do I need to install the kernel Documentation ?
 
Last edited:
Hi,

I also have a AX99100 serial card which i want to use. But, I am not that familiar with compiling drivers..

I updated to the latest Kernel, also installed linux headers
Code:
 apt-get install linux-headers-6.5.13-3

I tried to compile the driver from the CD which was supplied with the extension card. Tried to do a make, but no luck:
Code:
root@pve:~/AX99100_SP_PP_SPI_LINUX_Driver_v1.4.0_Source# make
rm -f *.mod.c *.o *.ko .*.cmd *.symvers
make -C /lib/modules/6.5.13-3-pve/build/  SUBDIRS=/root/AX99100_SP_PP_SPI_LINUX_Driver_v1.4.0_Source modules
make[1]: Entering directory '/usr/src/linux-headers-6.5.13-3-pve'
  SYNC    include/config/auto.conf.cmd
Kconfig:34: can't open file "Documentation/Kconfig"
make[4]: *** [scripts/kconfig/Makefile:77: syncconfig] Error 1
make[3]: *** [Makefile:708: syncconfig] Error 2
/usr/src/linux-headers-6.5.13-3-pve/Makefile:786: include/config/auto.conf.cmd: No such file or directory
make[2]: *** [/usr/src/linux-headers-6.5.13-3-pve/Makefile:809: include/config/auto.conf.cmd] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.13-3-pve'
make: *** [Makefile:37: default] Error 2

Next try was to get the latest driver from ASIX.com. I am not sure, but there is an additional "x" letter now in the file name. But also wasnt able to compile
Code:
root@pve:~/AX99100x_SP_PP_SPI_Linux_Driver_v2.1.0_Source# make
rm -f *.mod.c *.o *.ko .*.cmd *.symvers
make -C /lib/modules/6.5.13-3-pve/build/  M=/root/AX99100x_SP_PP_SPI_Linux_Driver_v2.1.0_Source modules
make[1]: Entering directory '/usr/src/linux-headers-6.5.13-3-pve'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make[2]: *** [/usr/src/linux-headers-6.5.13-3-pve/Makefile:817: include/config/auto.conf] Error 1
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.13-3-pve'
make: *** [Makefile:57: default] Error 2

Last try, sources from the manufacturer of the card (Version updated to 1.8 instead of 1.4 from the CD). Output the same like the source from the Chip manufacturer
Code:
root@pve:~/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source# make
rm -f *.mod.c *.o *.ko .*.cmd *.symvers
make -C /lib/modules/6.5.13-3-pve/build/  M=/root/AX99100_SP_PP_SPI_Linux_Driver_v1.8.0_Source modules
make[1]: Entering directory '/usr/src/linux-headers-6.5.13-3-pve'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make[2]: *** [/usr/src/linux-headers-6.5.13-3-pve/Makefile:817: include/config/auto.conf] Error 1
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.13-3-pve'
make: *** [Makefile:41: default] Error 2

Edit: Strange, include/config/auto.conf is there in the folder /usr/src/linux-headers-6.5.13-3-pve, but it says that it is missing?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!