Kernel configuration is invalid

hi, i'm trying to build a package, a kernel module that i add to the build but i get this error and i have no idea were look for.

make[3]: Entering directory '/home/ciccio/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.146'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\

It would help to know which package you are trying to build.
Did you make a kernel before you tried building your own module?

make menuconfig
make target/linux/{clean, compile}
make package/WhatEverYouAreBuilding/compile

If you never used the toolchain before to build anything (I expect other errors but to be sure)
do a simple:

make menuconfig (to select the correct target at least)
make V=s (V=s is optional, but since you are getting errors it might indicate better what you are missing)

once a full image could be build (or at least the kernel) your toolchain should be working properly and we can investigate what else might be wrong with the package you are trying to build.

ok i'm trying to build mt7663 wireless drivers.
i found this repo but it just do not compile.

@MeIsReallyBa do you have any hint?

Since you are trying to build a proprietary vendor driver, I suggest you ask help via Mediatek.

The MT7663 is supported in the open source (and fully included in mainline kernel) MT76 drivers that come with OpenWrt.

1 Like

mt7613be radio are so bad under mt76 that sometime freeze the router when you edit settings.the device is useless

this is really bad m7603 wireless n, 2,4 ghz mtk drivers is much faster than mt7663 mt76 5ghz. i can't believe that.