mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [RFC 4/5] MIPS: qemu-malta: add board label
Date: Thu, 20 Dec 2012 01:29:54 +0400	[thread overview]
Message-ID: <1355952595-1432-5-git-send-email-antonynpavlov@gmail.com> (raw)
In-Reply-To: <1355952595-1432-1-git-send-email-antonynpavlov@gmail.com>

Put special Board ID at the start of bootrom (as qemu does).

The linux kernel use this board ID to determine
the MIPS board family and version, so we need this
Board ID to run linux kernel successfully.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 .../boards/qemu-malta/include/board/board_pbl_start.h    |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h b/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h
index 5b06770..a6c55c7 100644
--- a/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h
+++ b/arch/mips/boards/qemu-malta/include/board/board_pbl_start.h
@@ -23,6 +23,20 @@
 	.set	push
 	.set	noreorder
 
+	b       __start
+	 nop
+
+	/*
+	   MIPS_REVISION_REG located at 0x1fc00010
+	   see the MIPS_REVISION_CORID macro in linux kernel sources
+	   set up it to 0x420 (Malta Board with CoreLV) as qemu does
+	*/
+	.org    0x10
+	.word   0x00000420
+
+	.align 4
+__start:
+
 	mips_disable_interrupts
 
 	/* cpu specific setup ... */
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2012-12-19 21:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-19 21:29 [RFC 0/5] add ELF support Antony Pavlov
2012-12-19 21:29 ` [RFC 1/5] resource: add create_resource() helper function Antony Pavlov
2012-12-19 21:29 ` [RFC 2/5] bootm: add very basic ELF support (stolen from kexec) Antony Pavlov
2012-12-21  7:49   ` Sascha Hauer
     [not found]     ` <CAA4bVAGk02KAHJH6mOfzoa0-5C=P7_7ADEMtg9jXPSk-Fr5UVw@mail.gmail.com>
2012-12-21 10:59       ` Antony Pavlov
2012-12-19 21:29 ` [RFC 3/5] MIPS: add ELF support Antony Pavlov
2012-12-21  7:53   ` Sascha Hauer
     [not found]     ` <CAA4bVAGki1VfbFXNRpMj+-pcM70W_yZvMCFhDGgbpKAXE6Taag@mail.gmail.com>
2012-12-21 11:00       ` Fwd: " Antony Pavlov
2012-12-19 21:29 ` Antony Pavlov [this message]
2012-12-19 21:29 ` [RFC 5/5] MIPS: qemu-malta: add YAMON-style GT64120 memory map Antony Pavlov

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=1355952595-1432-5-git-send-email-antonynpavlov@gmail.com \
    --to=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.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