Dear Team, Can You please Guide me .
I am trying to compile an external Module .
i get an Error . I have attached the Error Log, the module.c file and the Make
file.
Platform : Fedora 16
Linux 2.6.23
ltib-mpc8641hpcn-20080117.
Could you Please guide me. I have an insight that the Linux kernel has not been
extracted properly as the error says that its not able to find the O/p
directory . The Path which is mentioned in the makfile.modpost. How can i
update the file or add the Folder /config/auto.conf.
Please guide.
Thanks and Regard's
Hrishikesh
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");
static int hello_init(void)
{
printk(KERN_ALERT "Hello, world\n");
return 0;
}
static void hello_exit(void)
{
printk(KERN_ALERT "Goodbye, cruel world\n");
}
module_init(hello_init);
module_exit(hello_exit);
Makefile
Description: Binary data
I have installed the LTIB toolchain on Fedora 16.
I am trying to add an Module in the Kernel using LTIB, Seeking your help.
Please help me in solving the Problem and Correct the Process.
1. ./ltib -m prep -p kernel [decompressing the Kernel].
2. ./ltib -m shell [Entering in shell mode ]
3. I have created a folder under the directory /ltib/rpm/BUILD/test
4. Copied two files in the folder .c and Makefile attached herewith.
5. Now Cd to /ltib/rpm/BUILD/test
6. make V=1 ARCH=ppc
After Executing this command i get Error.
Error Log :
[Admin@localhost ~]$ cd
/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117/
[Admin@localhost ltib-mpc8641hpcn-20080117]$ pwd
/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117
[Admin@localhost ltib-mpc8641hpcn-20080117]$ ./ltib -m shell
Entering ltib shell mode, type 'exit' to quit
LTIB> pwd
/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117
LTIB> cd rpm/BUILD/test/
LTIB> make V=1 ARCH=ppc
make -C ../linux-2.6.23
M=/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117/rpm/BUILD/test
make[1]: Entering directory
`/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117/rpm/BUILD/linux-2.6.23'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are
missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it.";
\
echo; \
/bin/false)
ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
mkdir -p
/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117/rpm/BUILD/test/.tmp_versions
rm -f
/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117/rpm/BUILD/test/.tmp_versions/*
WARNING: Symbol version dump
/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117/rpm/BUILD/linux-2.6.23/Module.symvers
is missing; modules will have no dependencies and modversions.
make -f scripts/Makefile.build
obj=/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117/rpm/BUILD/test
Building modules, stage 2.
make -f
/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117/rpm/BUILD/linux-2.6.23/scripts/Makefile.modpost
/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117/rpm/BUILD/linux-2.6.23/scripts/Makefile.modpost:42:
include/config/auto.conf: No such file or directory
make[2]: *** No rule to make target `include/config/auto.conf'. Stop.
make[1]: *** [modules] Error 2
make[1]: Leaving directory
`/home/Admin/Document/MPC8641d/Install/ltib-mpc8641hpcn-20080117/rpm/BUILD/linux-2.6.23'
make: *** [default] Error 2
LTIB>
_______________________________________________ LTIB home page: http://ltib.org Ltib mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/ltib
