From: Andrew May <acmay@acmay.homeip.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] PPC 405 board
Date: Fri, 29 Jun 2007 08:41:43 -0700 [thread overview]
Message-ID: <20070629084143.62578343@localhost.localdomain> (raw)
I starting trying the qemu PPC system emulation for the 405 boards and
ran into an issue with where the board info pointer is located in
memory. The first Linux MMU entry only covers the first few megs of RAM
and the current code puts the bdloc at the very top of memory. And when
the kernel tries to copy the data it fails.
So this little patch just moves the location down into the first 16
Meg, like U-boot does. And I am able to boot the kernel after that.
Index: ppc405_uc.c
===================================================================
RCS file: /sources/qemu/qemu/hw/ppc405_uc.c,v
retrieving revision 1.4
diff -u -r1.4 ppc405_uc.c
--- ppc405_uc.c 8 Jun 2007 16:45:23 -0000 1.4
+++ ppc405_uc.c 29 Jun 2007 15:39:56 -0000
@@ -74,8 +74,8 @@
ram_addr_t bdloc;
int i, n;
- /* We put the bd structure at the top of memory */
- bdloc = bd->bi_memsize - sizeof(struct ppc4xx_bd_info_t);
+ /* We put the bd structure at the top of 16 Meg of memory */
+ bdloc = (16 << 20) - sizeof(struct ppc4xx_bd_info_t);
stl_raw(phys_ram_base + bdloc + 0x00, bd->bi_memstart);
stl_raw(phys_ram_base + bdloc + 0x04, bd->bi_memsize);
stl_raw(phys_ram_base + bdloc + 0x08, bd->bi_flashstart);
reply other threads:[~2007-06-29 15:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20070629084143.62578343@localhost.localdomain \
--to=acmay@acmay.homeip.net \
--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).