linux read txt,linux内核学习-readme.txt

Linux kl release 2.6.xxerne

they tell you what this is all about, explain how to install the

kernel, and what to do if something goes wrong.

WHAT IS LINUX?

关于linux的简介

ON WHAT HARDWARE DOES IT RUN?

Linux was first developed for 386/486-based PCs,These days it also

runs on ARMs, DEC Alphas, SUN Sparcs, M68000 machines (like Atari and

Amiga), MIPS and PowerPC, and others.

机器硬件平台

DOCUMENTATION

1. from Linux FTP site

2. Documentation/ subdirectory

See Documentation/00-INDEX for a list of what

is contained in each file

3. Documentation/DocBook/ subdirectory: contains several guides for

kernel developers and users,After installation, "make psdocs", "make pdfdocs", or "make htmldocs"

will render the documentation in the requested format.

关于内核的参考文档

INSTALLING the kernel:

1. put the kernel tarball in a directory where you have permissions (eg. your home directory) and

unpack it:

gzip -cd linux-2.6.XX.tar.gz | tar xvf -

解压源文件

2. Make sure you have no stale .o files and dependencies lying around:

cd linux

make mrproper

You should now have the sources correctly installed.

清旧的编译文件

3. BUILD directory for the kernel:

When compiling the kernel all output files will per default be

stored together with the kernel source code.

Using the option "make O=output/dir" allow you to specify an alternate

place for the output files (including .config).

Example:

kernel source code: /usr/src/linux-2.6.N

build directory:  /home/name/build/kernel

To configure and build the kernel use:

cd /usr/src/linux-2.6.N

(1)make O=/home/name/build/kernel menuconfig

(2)make O=/home/name/build/kernel

(3)sudo make O=/home/name/build/kernel modules_install install

Please note: If the 'O=output/dir' option is used then it must be

used for all invocations of make.

SOFTWARE REQUIREMENTS:

Compiling and running the 2.6.xx kernels requires up-to-date

versions of various software packages.  Consult Documentation/Changes

for the minimum version numbers required

(1)CONFIGURING the kernel:

"make menuconfig"  Text based color menus, radiolists & dialogs.

"make xconfig"     X windows (Qt) based configuration tool.

"make gconfig"     X windows (Gtk) based configuration tool.

"make oldconfig"   Default all questions based on the contents of

your existing ./.config file.   which will

only ask you for the answers to new questions.

(2)COMPILING the kernel:

Do a "make" to create a compressed kernel p_w_picpath

(3)boot your new kernel

If you boot Linux from the hard drive, chances are you use LILO which

uses the kernel p_w_picpath as specified in the file /etc/lilo.conf.

Reinstalling LILO is usually a matter of running /sbin/lilo.

You may wish to edit /etc/lilo.conf to specify an entry for your

old kernel p_w_picpath (say, /vmlinux.old) in case the new one does not work

IF SOMETHING GOES WRONG

1.- If you have problems that seem to be due to kernel bugs, please check

the file MAINTAINERS to see if there is a particular person associated

with the part of the kernel that you are having trouble with

2.Alternately, you can use gdb on a running kernel.

do "gdb vmlinux /proc/kcore". You can now use all the usual gdb commands

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值