[openfirmware] r1506 - cpu/x86/pc/emu

svn at openfirmware.info svn at openfirmware.info
Wed Nov 25 21:56:16 CET 2009


Author: wmb
Date: 2009-11-25 21:56:15 +0100 (Wed, 25 Nov 2009)
New Revision: 1506

Added:
   cpu/x86/pc/emu/makefs.sh
Log:
Checked in script for creating a filesystem image for use with QEMU.







Added: cpu/x86/pc/emu/makefs.sh
===================================================================
--- cpu/x86/pc/emu/makefs.sh	                        (rev 0)
+++ cpu/x86/pc/emu/makefs.sh	2009-11-25 20:56:15 UTC (rev 1506)
@@ -0,0 +1,12 @@
+#!/bin/sh
+dd if=/dev/zero of=filesystem.img bs=512 seek=20K count=1
+/sbin/mke2fs -F filesystem.img
+dd if=filesystem.img of=fs.img bs=512 seek=1
+rm filesystem.img
+/sbin/sfdisk -L -uS -C 5 -H 128 -S 32 fs.img <<EOF
+,,L,*
+;
+;
+;
+EOF
+sudo mount -o loop,offset=512 fs.img mnt




More information about the openfirmware mailing list