Thanks a lot to everybody,

so the main problem was that I need to reuse the qemu nand image from nokia
adding your staff instread of creating a new blank one.

It worked fine now ! Now I was able to boot a PR1.1 maemo 5 image on qemu
and create a bigger qemu meego image to install packages on it!

Ramon

2010/5/13 Sylvia Liu <sylviaonly...@gmail.com>

> Hi Toni,
>
> Thanks for your reply.
> But I don't know how to extract bootloader from the N900 nand image.
> Could you please provide more info.?
>
>
>
> Besides that, I got another idea:
>  Maybe I can replace the rootfs part in the N900 nand image with my ubiimg.
>  So I do the following things:
>
> --- Use qflasher to do the replace, the command is as follow:
> $ cat create-n900-qemu
> #!/bin/bash
> qflasher -v -n pagesize=2048,pagesperblock=64,numblocks=2048 -r $1 -y r -o
> $2
>
> --- Here is the trace:
> $ cp meego_qemu_nand.img my.img
> $ ./create-n900-qemu meego-1.0-arm-n900-201005051503.ubiimg my.img
> not writing config partition to output
> nand flash size is 256MB (2048 bytes/page, 64 pages/block, 2048 blocks)
> setup ubifs for pages 2304-131072
> wrote rootfs (169MB, 86720 pages) in blocks 36-1390
> erasing remainder of rootfs partition
> erased ubifs in blocks 1391-2047
> oob area total size is 8MB
> finishing up...
>
> Seems OK, right?
> But I cannot start "my.img", some error come out when starting by command:
> $qemu-system-arm -M n900 -mtdblock my.img -serial stdio -clock unix
>
> --- logs:
> [    3.587951] UBIFS error (pid 1): ubifs_get_sb: cannot open
> "ubi0:rootfs", error -19
> [    3.589263] VFS: Cannot open root device "ubi0:rootfs" or
> unknown-block(0,0)
> [    3.589630] Please append a correct "root=" boot option; here are
> the available partitions:
> [    3.590759] Kernel panic - not syncing: VFS: Unable to mount root
> fs on unknown-block(0,0)
>
> Can you give some advices on this?
> Thanks!
>
>
> On Thu, May 13, 2010 at 11:34 AM, Toni Nikkanen <t...@tuug.fi> wrote:
> > On Thu, May 13, 2010 at 10:51:42AM +0800, Sylvia Liu wrote:
> >> Hi,
> >>
> >> I found this link might be helpful for you.
> >> http://lists.meego.com/pipermail/meego-dev/2010-April/001433.html
> >>
> >> I am also trying to create a qemu nand image for N900.
> >> As I understand, an image with the following partition should be
> >> created if you want it run on N900.
> >>
> >>  Loader 128kB
> >>  config   384kB
> >>  log        256kB
> >>  kernel   2048kB
> >>  initfs      2048kB
> >>  rootfs    257280kB
> >>
> >> Now I can get the kernel img (zImage-arm-n900)
> >> and rootfs img (meego-codedrop-arm-n900-201003311614.ubiimg) from web.
> >> But I don't know where to get the loader file and initfs file.
> >>
> >> As I assumed that we need all those four files to create the a nand
> image.
> >> Am I right?
> >
> >
> > You can extract the loader and other parts from the MeeGo N900 QEMU nand
> image that is distributed by Nokia:
> > http://wiki.meego.com/ARM/Meego_on_Qemu
> >
> >
> >
> >
> >
>



-- 
Ramon a.k.a bloodbare
_______________________________________________
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev

Reply via email to