首页| 行业标准| 论文文档| 电子资料| 图纸模型
购买积分 购买会员 激活码充值

您现在的位置是:团子下载站 > 其他 > 做个迷你型linux内核

做个迷你型linux内核

  • 资源大小:0.09 MB
  • 上传时间:2021-12-02
  • 下载次数:0次
  • 浏览次数:30次
  • 资源积分:1积分
  • 标      签: Linux 内核

资 源 简 介

hda1----新装的 RH9   hdc1----64M 的硬盘,生成的小型 linux 就装在这个盘上,还未分区格式化。   环境:ms 的虚拟机 5.1 版。   先重新编译内核,把不需要的全部去掉,这样模块也只有几 M 了。编译后生成了   内核:vmlinuz-2.4.20-8custom   initrd:initrd-2.4.20-8custom.img(这个没用到,在 GRUB 中使用它反而不能启动了,   提示要加 init 内核参数。)   可加载模块:/lib/modules/2.4.20-8custom   fdisk /dev/hdc 分区,并激活,保存后退出。   mkext2fs /dev/hdc1   mkdir /mnt/hd2   mount /dev/hdc1 /mnt/hd2   mkdir /mnt/hd2/boot/grub -p   cp /boot/vmlinuz.2.4.20-8custom /mnt/hd2/boot/ -a   cp /boot/initrd.2.4.20-8custom /mnt/hd2/boot/ -a   cp /boot/grub/stage? /mnt/hd2/boot/grub/ -a   cp /boot/grub/grub.conf /mnt/hd2/boot/grub/ -a   cp /boot/grub/e2fs_stage1_5 /mnt/hd2/boot/grub/ -a   然后运行:grub   root (hdc1,0)   setup (hdc)   quit
VIP VIP