0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

アセンブラAdvent Calendar 2019

Day 10

grubでkernel起動 その3

Last updated at Posted at 2019-12-06

#概要

grubが入ったフロッピーイメージでkernelの様なものを起動する。
xv6をgrubから起動してみた。

#閃きのイメージ

xv6もmultiboot_header持ってるから、起動できるんじゃね。

#開発環境

debian 6.0.7 sqeeze
grub 0.96

#フロッピーイメージにコピーする。

$ mount -t vfat -o loop fd.img /mnt
$ cp kernelmamfs /mnt/boot/xv6.elf
$ umount /mnt

#qemuで実行。

$ qemu -fda fd.img -smp 2 -m 256 -serial mon:stdio 

#grubでブート。

$ root (fd0)
$ kernel /boot/xv6.elf
$ boot

#結果

Screenshot3.png

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?