Hi,
I'm using iMX6S-EVK with kernel version 4.9.88. I'm writing some simple kernel driver. I also download kernel linux 4.9.88. But when I compile, I got this error:
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.
WARNING: Symbol version dump ./Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/user1/Desktop/exploringBB/extras/kernel/gpio_test/gpio_test.o
In file included from <command-line>:0:0:
././include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
compilation terminated.
This is my Makefile:
KERNEL ?= /home/user1/Desktop/linux
ARCH ?= arm
CROSS_COMPILE ?= arm-linux-gnueabihf-
obj-m+=hello.o
all:
make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) M=$(PWD) modules
clean:
make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL) M=$(PWD) clean
I execute this command to build:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
Did I missing something ? What should I do now ?
Thank you so much,
Toan