diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-07-10 08:43:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-07-10 08:43:51 +0000 |
commit | 27ea6a1b2d5cc34dacb736717e766c2b15118485 (patch) | |
tree | c4b1f16fbda856a1250c9523446fc8c67315e570 /HACKING | |
parent | Take no chances with PATH, use our env-update (diff) | |
download | baselayout-27ea6a1b2d5cc34dacb736717e766c2b15118485.tar.gz baselayout-27ea6a1b2d5cc34dacb736717e766c2b15118485.tar.bz2 baselayout-27ea6a1b2d5cc34dacb736717e766c2b15118485.zip |
document qemu hacking
svn path=/trunk/; revision=2758
Diffstat (limited to 'HACKING')
-rw-r--r-- | HACKING | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/HACKING b/HACKING new file mode 100644 index 00000000..116a07cd --- /dev/null +++ b/HACKING @@ -0,0 +1,27 @@ +------------ + QEMU NOTES +------------ + +Since the qemu docs blow, I'll make some quick notes here for how to get a +system running for baselayout testing. + +- create rootfs (feel free to tweak 500M): + $ dd if=/dev/zero of=root.img bs=1M count=500M + $ mke2fs -F -j root.img +- install Gentoo stage3: + $ mkdir loop + $ mount -o loop root.img loop + $ sudo tar pjxf stage3-x86.tar.bz2 -C loop + $ sudo chroot loop + <all you really need to configure is like /etc/fstab> + /dev/hda / ext3 noatime 0 1 + $ umount loop +- create an x86 kernel from a vanilla tarball: + - make sure you enable serial console support + - you shouldn't need any modifications, just grab a recent vanilla +- run qemu: + $ qemu \ + -hda root.img \ + -append "root=/dev/hda console=ttyS0" \ + -kernel your-compiled-vmlinux \ + -nographic |