下载2.6.25.8的内核
制作内核树
1009 tar xvfj linux-2.6.25.8.tar.bz2
1011 ln -sv /data/software/linux-2.6.25.8 /usr/src/linux
为新内核定义头文件
1012 cd /usr/src/linux/
1015 cd linux/
1017 cd include/
1020 pushd /usr/include/
1022 mv asm asm-old
1023 mv linux linux-old
1024 mv net net-old
1025 mv scsi scsi-old
1027 ln -sv /usr/src/linux/include/asm-x86 /usr/include/asm
1033 ln -sv /usr/src/linux/include/xen /usr/include/xen
1034 ln -sv /usr/src/linux/include/net /usr/include/net
1035 ln -sv /usr/src/linux/include/scsi /usr/include/scsi
1036 ln -sv /usr/src/linux/include/linux /usr/include/linux
1039 ln -sv /usr/src/linux/include/acpi /usr/include/acpi
1040 ln -sv /usr/src/linux/include/crypto /usr/include/cryto
1041 ln -sv /usr/src/linux/include/keys /usr/include/keys
1042 ln -sv /usr/src/linux/include/math-emu /usr/include/math-emu
1043 ln -sv /usr/src/linux/include/media /usr/include/media
1044 ln -sv /usr/src/linux/include/mtd /usr/include/mtd
1045 ln -sv /usr/src/linux/include/pcmcia /usr/include/pcmcia
1046 ln -sv /usr/src/linux/include/rdma /usr/include/rdma
1047 ln -sv /usr/src/linux/include/rxrpc /usr/include/rxrpc
1048 ln -sv /usr/src/linux/include/sound /usr/include/sound
1049 ln -sv /usr/src/linux/include/video /usr/include/video
更新系统的模块加载列表
1051 mkdir /etc/efeng
1052 mv /etc/modprobe.conf /etc/efeng/modprobe.conf
1066 tar xvfz module-init-tools-3.2.2.tar.bz2
1069 tar xvfj module-init-tools-3.2.2.tar.bz2
1076 mv module-init-tools-3.2.2 module-init-tools
1077 cd module-init-tools
1081 ./configure
1082 make links
1083 make
1113 make install
1118 ./generate-modprobe.conf /etc/modprobe.conf
对内核树进行配置
1124 cd /usr/src/linux/
1126 make menuconfig
修改系统原有的磁盘库配置文件,去掉标签
fdisk -l
df -h
vi /etc/fstab.conf
如下:
#LABEL=/1 / ext3 defaults 1 1
#LABEL=/data /data ext3 defaults 1 2
/dev/sda1 / ext3 defaults 1 1
/dev/sda3 /data ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
#LABEL=SWAP-sda2 swap swap defaults 0 0
/dev/sda2 swap swap defaults 0 0
编译
make bzImage
make modules
make
安装
make modules_install
make install
阅读(1740) | 评论(2) | 转发(0) |