qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] diskimage HOWTO
@ 2009-08-24  5:39 Bai Shuwei
  2009-08-24  7:48 ` Kevin Wolf
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Bai Shuwei @ 2009-08-24  5:39 UTC (permalink / raw)
  To: buildroot, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1561 bytes --]

Hi, All:
  I want to build a test enviroment with QEMU and buildroot. But I don't
know how to build the diskimage which same as linux-0.2.img offered by
BUILD-ROOT. I build the diskimage following the
   buildroot-2009.05/docs/README.diskimage<http://192.168.1.102/crosscopile/buildroot-2009.05/docs/README.diskimage>,
but failure.

   The bellow is my process.

   # dd if=/dev/zero of=img bs=4096 count=16384
   # echo -e "n\np\n1\n\nw\n" | fdisk -C 16065 -H 255 -S 63 ./img
   # losetup -o 512 /dev/loop0 img
   # mkfs.ext2 -m0 -Lslash /dev/loop0
   # mount -oloop,rw /dev/loop0 fs/
   # cp -a ../root/* fs/
..root is the filesystem built by BUILD-ROOT and the bzImage has been copied
into root/boot/, grub.lst has been created too.
  # umount fs/
  # losetup -d /dev/loop0
  # losetup /dev/loop0 img
  # grub --device-map=/dev/null
grub> device (hd0) img
device (hd0) img
grub> geometry (hd0) 16065 255 63
geometry (hd0) 16065 255 63
drive 0x80: C/H/S = 16065/255/63, The number of sectors = 258084225, img
   Partition num: 0,  Filesystem type unknown, partition type 0x83
grub> root (hd0,0)
root (hd0,0)
 Filesystem type unknown, partition type 0x83
grub> setup (hd0)
setup (hd0)

*Error 17: Cannot mount selected partition*
I don't know why it is error. Gald if you can help or give me some document
on it.

Best Regards!

Bai SHuwei






-- 
Love other people, as same as love yourself!
Don't think all the time, do it by your hands!

Personal URL: http://dslab.lzu.edu.cn:8080/members/baishw/
E-Mail: baishuwei@gmail.com or baishuwei@dslab.lzu.edu.cn

[-- Attachment #2: Type: text/html, Size: 2178 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-09-11 11:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-24  5:39 [Qemu-devel] diskimage HOWTO Bai Shuwei
2009-08-24  7:48 ` Kevin Wolf
2009-08-24  8:30   ` Bai Shuwei
2009-08-24 17:04   ` Mulyadi Santosa
2009-08-25  3:55     ` Bai Shuwei
2009-08-25  5:03       ` Mulyadi Santosa
2009-08-25  7:06     ` Kevin Wolf
2009-08-25  7:32       ` Mulyadi Santosa
2009-08-25  7:37         ` Kevin Wolf
2009-08-25  7:41           ` Mulyadi Santosa
2009-08-25  8:48             ` Bai Shuwei
2009-08-25  7:28   ` Laurent Vivier
2009-08-24 18:13 ` [Qemu-devel] Re: [Buildroot] " Steve Calfee
2009-09-11  9:32 ` [Qemu-devel] " Richard W.M. Jones
     [not found]   ` <87ab11vhza.fsf@macbook.be.48ers.dk>
2009-09-11 11:38     ` Richard W.M. Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).