Linux?????????????????qemu??
???????????? ???????[ 2013/3/29 11:04:43 ] ????????
?????????????м???????????£?????????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???????????Щ???????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11