?????????????м???????????£?????????make menuconfig????????????google?£???????????????ncurses???????????????

????make menuconfig?????????????????????:

????http://ftp.gnu.org/pub/gnu/ncurses/

?????汾?????????????????5.5??汾???????????????????????2005????ubuntu 5.1???????????????????????????????????

???????menuconfig???????????????????????Kernel hacking??????潫Compile the kernel with debug info??Compile the kernel with frame pointers????????????????????????????涼??????????????????????????????Щ?????????????????????????????????????-g??

???????make -j4 bzImage??????-j???????????????????????cpu?м???????????????????????????????????????????-j4??

???????С?????????????????????????????????ɡ???????

???????qemu?????????

??????????????

dmee@localhost:~$qemu -s -S -kernle linux-2.6.11.12/arch/i386/boot/bzImage
?????????
-s: qemu????1234????gdb?????????
-S: ??qemu?????????????gdb??????
-kernel: ???bzImage??·??

???????????????????????????????Щ???????????????qemu?????????????о???????????????

??????????????????????????????????????
dmee@localhost:~/linux-2.6.11.12$ gdb vmlinux

???????????????

(gdb) target remote localhost:1234
Remote debugging using localhost:1234
[New Thread 1]
0x0000fff0 in ?? ()
warning: shared library handler failed to enable breakpoint
(gdb)

????????????????????£?

(gdb) b start_kernel
Breakpoint 1 at 0xc030e537: file init/main.c?? line 417.
(gdb) c
Continuing.

Breakpoint 1?? start_kernel () at init/main.c:417
417     {
(gdb) n
425          page_address_init();
(gdb)

????ok???????????Щ???????????????????????????