在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):run/linux0.11开源软件地址(OpenSource Url):https://github.com/run/linux0.11开源编程语言(OpenSource Language):C 79.0%开源软件介绍(OpenSource Introduction):Decompress the img file
========= Original README ======= linux-0.11 development environment(linux-based)
NOTE: you can download the whole dev environment from http://mirror.lzu.edu.cn/software/linux-0.11/linux-0.11-for-gcc4.3.2.tar.gz Here is just the source code of linux-0.11 for gcc 4.3.2.
and you'd better install tools/calltree, tools/tree2dotx yourself: just copy them to /usr/bin, of course, you'd compile calltree at first.
get help from the main Makefile of linux-0.11 and star to hack it. $ cd linux-0.11 $ make help // get help $ make // compile $ make start // boot it on qemu $ make debug // debug it via qemu & gdb, you'd start gdb to connect it. $ make tags // create the tag file from the source code $ make cscope // create the cscope index database from the source code NOTE! there is a calltree in tools/, which can help you to analyze the source code via printing the calling tree of some indicated functions. compile $ cd tools/calltree-2.3 install $ sudo cp ./calltree/OBJ/i686-linux-cc/calltree /usr/bin use $ calltree // just type calltree and get the help
start the kernel with qemu, which will listening on port 1234 $ cd linux-0.11 $ make debug open a new terminal, start gdb and connect the gdbstub in qemu $ gdb linux-0.11/tools/system (gdb) break main (gdb) target remote localhost:1234 (gdb) s // si:assembly instruction, s|n: c statement(s will enter into subfunc) (gdb) ... References & Links [1] http://oss.lzu.edu.cn/blog/article.php?tid_1693.html [2] http://oss.lzu.edu.cn/modules/newbb/viewtopic.php?topic_id=1403&forum=35 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论