linux0.11源码在线阅读,linux0.11

这篇博客介绍了如何在Linux、MacOSX和Windows上构建和调试旧版Linux内核0.11。在Linux上,你需要设置Debian、Ubuntu或Mint环境,安装必要的工具如gcc、gdb和qemu。在MacOSX中,你需要安装交叉编译器、qemu和gdb,并手动编译gdb以获得i386-elf-gdb。对于Windows部分,步骤未提供。
摘要由CSDN通过智能技术生成

Linux-0.11

The old Linux kernel source ver 0.11 which has been tested under modern Linux, Mac OSX and Windows.

##1. Build on Linux

##1.1. Linux Setup

a linux distribution: debian , ubuntu and mint are recommended

some tools: gcc gdb qemu

a linux-0.11 hardware image file: hdc-0.11.img, please download it from http://www.oldlinux.org, or http://mirror.lzu.edu.cn/os/oldlinux.org/, ant put it in the root directory.

##1.2. hack 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.

$ gdb tools/system

(gdb) target remote :1234

(gdb) b main

(gdb) c

##2. Build on Mac OS X

##2.1. Mac OS X Setup

install cross compiler gcc and binutils

install qemu

install gdb. you need download the gdb source and compile it to use gdb because port doesn't provide i386-elf-gdb, or you can use the pre-compiled gdb in the tools directory.

a linux-0.11 hardware image file: hdc-0.11.img

$ sudo port install qemu

$ sudo port install i386-elf-binutils i386-elf-gcc

optional

$ wget ftp://ftp.gnu.org/gnu/gdb/gdb-7.4.tar.bz2

$ tar -xzvf gdb-7.4.tar.bz2

$ cd gdb-7.4

$ ./configure --target=i386-elf

$ make

##2.2. hack linux-0.11

same as section 1.2

##3. Build on Windows

todo...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值