Jump to content

Unable to build kernel scripts


ega

Recommended Posts

Hi guys,

 

Yesterday I updated my Orange PI PC with build 5.10. I want to build custom wifi driver using dkms. Dkms requires kernel scripts but scripts build fails with following error:

root@orangepipc:/usr/src/linux-headers-3.4.112-sun8i# make scripts
scripts/kconfig/conf --silentoldconfig Kconfig
fs/Kconfig:287: can't open file "fs/fs_compat.kconfig"
/usr/src/linux-headers-3.4.112-sun8i/scripts/kconfig/Makefile:33: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/usr/src/linux-headers-3.4.112-sun8i/Makefile:493: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'scripts'.  Stop.

File "fs/fs_compat.kconfig" doesn't exist.

Link to comment
Share on other sites

For my purposes worked this workaround:

 

1)

in file linux-headers-3.4.112-sun8i/fs/Kconfig comment out lines

#107: source "fs/fatfs/Kconfig"

and

#287: source "fs/fs_compat.kconfig"

 

2)

in file linux-headers-3.4.112-sun8i/fs/Makefile comment out lines

#76: obj-$(CONFIG_FATFS_FS)        += fatfs/

 

3)

in linux-headers-3.4.112-sun8i folder execute

make scripts

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines