From: "andrzej zaborowski" <balrogg@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [4215] Nokia N800 machine support (ARM).
Date: Fri, 18 Apr 2008 01:03:28 +0200 [thread overview]
Message-ID: <fb249edb0804171603k7c5ed858g6e89b5fc34a00ae5@mail.gmail.com> (raw)
In-Reply-To: <fu8dmn$q3l$1@ger.gmane.org>
On 17/04/2008, consul <void@aleksoft.net> wrote:
> I'm getting an error when executing
> qemu-system-arm -M n800 -kernel c:\test\zImage -m 130 ...
> mipid_reset: Display off
> omap_l4ta_write: Bad register 0x6800a078
These messages are only diagnostic and are happily ignored by qemu
(but there should be more of them). If you don't want them, redirect
stderr as with "2> /dev/null".
As metioned in http://lists.gnu.org/archive/html/qemu-devel/2008-04/msg00282.html,
for the moment you'll need the patch to make use of the OMAP2
emulation. After you apply the patch:
The firmware kernel is very quiet, so if it's unable to mount the
initfs, it'll hang at the blank screen. A kernel built from sources
will dump logs on the third serial port. To boot Linux you'll need to
provide the kernel and a flash image with at least two of the five
partitions present on it. The flash is supplied with "-mtdblock
filename" and the file should be of 276824064 bytes (256 MB of data +
OOB data at the end). You'll need to have the initfs and the rootfs
present in this image, and for Maemo also the "config" partition (not
my fault). Poky (pokylinux.org) boots fine with just the stock initfs
+ Poky rootfs.
To get the config partition from a device you simply need to do
# cat /dev/mtdblock1 > somefile
and copy that file over. Redistribution of such image should be
legal, but I don't know for sure (since it only contains some
settings).
To write the partition images to the flash image use:
$ dd if=config.image of=mtd.image bs=2048 conv=notrunc seek=64
$ dd if=initfs.jffs2 of=mtd.image bs=2048 conv=notrunc seek=1280
$ dd if=rootfs.jffs2 of=mtd.image bs=2048 conv=notrunc seek=2304
This will obviously leave the OOB data invalid, but the stock Nokia
kernel doesn't seem to care because of hardware ECC.
>
> zImage is the firmware kernel.
> On both Windows and Linux hosts I get the same error and the VM hangs.
>
> Am I missing something? What command line do you use?
$ arm-softmmu/qemu-system-arm -M n800 -m 130 -mtdblock mtdblock -sd
card -show-cursor -serial vc -serial vc -serial stdio -kernel
nokia/linux-h/arch/arm/boot/zImage -usb -s -snapshot
Regards,
next prev parent reply other threads:[~2008-04-17 23:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-14 21:57 [Qemu-devel] [4215] Nokia N800 machine support (ARM) Andrzej Zaborowski
2008-04-15 8:00 ` [Qemu-devel] " John R. Hogerhuis
2008-04-17 21:58 ` andrzej zaborowski
2008-04-17 20:59 ` consul
2008-04-17 23:03 ` andrzej zaborowski [this message]
2008-04-18 3:43 ` Anderson Lizardo
2008-04-18 12:13 ` andrzej zaborowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fb249edb0804171603k7c5ed858g6e89b5fc34a00ae5@mail.gmail.com \
--to=balrogg@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).