running mini2440 SD card image in Qemu

Piyush
Hello guys

I am planning to load the mini2440 kernel and the rootfs in the Qemu
through the SD card image and I am almost done but I am having problem in
the following steps which is suggested in the blog over here:

http://code.google.com/p/mini2440/wiki/QEmuSDCardImage


Let me give my problems one by one.


1. sudo mkfs.vfat /dev/mapper/nbd0p1 

when I run this command I get the following as output:

mkfs.vfat 2.11 (12 Mar 2005)
unable to get drive geometry, using default 255/63

So is it ok

2.sudo mount /dev/mapper/nbd0p2 ./disk 

when I run this command I get the following error as output:

piyush@piyush-desktop:~$ sudo mount /dev/mapper/nbd0p2 ./disk
mount: mount point ./disk does not exist

So it means that the mount point does not exist and than I first ran the
command sudo mkdir /disk  and than mounted it .

But my question is that is this ok what I did that is I made the directory
and than mounted your  /dev/mapper/nbd0p2  in it  and yeah I run the
command as follows " /dev/mapper/nbd0p2 /disk"  and not as "
/dev/mapper/nbd0p2 ./disk "  .

Here I have one doubt why the author have referred to ./disk , does it
something related to hidden directory.

and not it should be like this " /dev/mapper/nbd0p2  /disk " instead of "
/dev/mapper/nbd0p2  ./disk "  .

So I want the explanation about it.


3. mkdir -p disk/boot 

why I have to make the boot folder inside the disk folder even if we get
the boot folder automatically when I unzipped the "
emdebian-grip-090306-armel-lenny-installed.tar.bz2 " in the disk folder ,
so cant I use that boot folder.


4. sudo mount /dev/mapper/nbd0p1 ./disk/boot 

I ran this command after I unzipped the "
mdebian-grip-090306-armel-lenny-installed.tar.bz2 " in the disk folder , so
am I right or wrong .

5. sudo umount disk/boot disk   and  sudo nbd-client -d /deb/nbd0 


after that the partitions are unmounted and shut down the nbd-client , so
is this ok , because it seems to me a little bit confusing as unmounting
the partitions and shutting down the nbd-client how come we can boot from
the SD image , is not it similar to the process that you just unmount or
remove the SD card image from your mini2440 board and than try to boot it .


So these are all my questions related to the last part of blog i.e. "
Installing the file system " , and I want you guys who have done it before
to please shed light in this in as explanatory way as possible as you
people have explained me lots of thing several times in a very good manner
, so I am hoping the same this time also.


Thanks

Piyush Pandey