[RFC 4/5] MIPS: qemu-malta: add board label

Antony Pavlov antonynpavlov at gmail.com
Wed Dec 19 16:29:54 EST 2012


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 at 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




More information about the barebox mailing list