Re: How to configure Linux kernel source tree hierarchy




lovecreatesbea...@xxxxxxxxx wrote:

miline wrote:
lovecreatesbea...@xxxxxxxxx wrote:
miline wrote:
<snip>
1. Untar the kernel tarball or go to the linux kernel tree if you have
already done that
2. make menuconfig. ( Set your hardware drivers/filesystems)
There were errors after I did this. I created /usr/src/linux and
unpacked the kernel source package there.
What errors?

Thank you for the kind help.

There are many errors for make menuconfig[1], following are some of
them. Perhaps I did not install one library for the text style menu,
and got those error message. I can invoke the $ base-config on Debian
Linux, it's a text style menu application. Last time, when I did the
kernel upgrade from 2.4 to 2.6 on Debian, I also can not execute $ make
menuconfig. I executed $ make config to achieve that upgrade. (But now
I even get errors on $ make config[2]!)

Try "make xconfig"
[1] error message from $ make menuconfig
---quoting---
debian-jhl:/usr/src/linux# make menuconfig
...
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:31:20: curses.h: No such file or
directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:128: error: syntax error before
"use_colors"
...
scripts/kconfig/lxdialog/checklist.c:288: error: `KEY_LEFT' undeclared
(first use in this function)
scripts/kconfig/lxdialog/checklist.c:289: error: `KEY_RIGHT' undeclared
(first use in this function)
make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2
---quoting ends---

[2] error message from $ make config
---quoting---
include/asm/processor.h: In function `cpuid':
include/asm/processor.h:152: internal compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
make[2]: *** [fs/nfs/read.o] Error 1
make[1]: *** [fs/nfs] Error 2
make: *** [fs] Error 2
---quoting ends---

It seems your gcc has some problem. Try upgrading it or post this
problem to GCC list.

$ kernelversion
2.4
$ cd linux-2.6.16/linux-2.6.16/
$ make config
$ make
Which architecture do you have?

I use the Intel Pentium 4 CPU. Do I answer the question?

debian-31r1a-i386

debian-jhl:/usr/src/linux# arch
i686
debian-jhl:/usr/src/linux#

.



Relevant Pages