zoukankan      html  css  js  c++  java
  • Ubuntu编译运行 Linux-0.00

    http://oldlinux.org/Linux.old/bochs/ 下载 Linux0.00 源码 linux-0.00-050613.zip, 并解压:

    解压 linux-0.00-rh9.tar.gz:

    得到这三个文件:

    修改 head.s,在最开始添加 .code32,否则会出现“Error: invalid instruction suffix for...”等错误:

    修改 Makefile,在head.o:下面一行添加 as --32 -o head.o head.s(注意前面要使用TAB,不能用空格),否则会出现“ld: i386:x86-64 architecture of input file `head.o' is incompatible with i386 output”错误:

    使用make编译,生成Image文件:

    新建linux-0.00.bxrc文件,内容如下:

    romimage: file=/usr/share/bochs/BIOS-bochs-latest
    megs: 16
    vgaromimage: file=/usr/share/vgabios/vgabios.bin
    floppya: 1_44="Image", status=inserted
    boot: a
    log: bochsout.txt
    vga_update_interval: 300000
    keyboard_serial_delay: 200
    keyboard_paste_delay: 100000
    mouse: enabled=0
    private_colormap: enabled=0
    fullscreen: enabled=0
    screenmode: name="sample"
    

    保存后,使用bochs运行:

    bochs -f linux-0.00.bxrc
    

    bochs 安装见 https://www.cnblogs.com/raina/p/13212177.html

    出现黑屏后,输入c并回车继续:

    运行结果如图:

  • 相关阅读:
    论语言思维的差异
    lua经典问题
    跳槽的故事
    未来一年计划
    腾讯面试题 找重复的数
    nodejs学习
    node记录
    mysql 常用总结
    ubuntu 服务器搭建汇总
    ubuntu下安装golang
  • 原文地址:https://www.cnblogs.com/raina/p/13259928.html
Copyright © 2011-2022 走看看