linux-mips
[Top] [All Lists]

Linux 2.6.22 on ADM5120

To: linux-mips@linux-mips.org
Subject: Linux 2.6.22 on ADM5120
From: Marian Jancar <m.jancar@satca.net>
Date: Wed, 10 Oct 2007 22:48:20 +0200
Cc: juhosg@openwrt.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.5 (X11/20070719)
Hi,

I'm trying to boot current Linux kernel with patches from OpenWRT on
an Infineon Easy5120-RT but without the LZMA loader. Hence I
mimic what patches from
http://nano.gmxhome.de/linux-2.6.17.11-adm5120-patch.diff.gz
and
http://www.student.tue.nl/Q/t.f.a.wilms/adm5120/files/linux-2.6.12-rc1-adm.diff

(I have verified myself that the later boots, as also the 2.6.22 with
the LZMA does) do - use 0x80002000 as LOADDADD instead of 0x80001000, and
fill to 0x6d8 + jump to kernel_entry in head.S, but the resulting vmlinuz
doesn't boot. There is some info at
http://www.linux-mips.org/wiki/Adm5120#Linux_Support

diff -urNdp linux-2.6.22.9-vanilla/arch/mips/Makefile 
linux-2.6.22.9/arch/mips/Makefile
--- linux-2.6.22.9-vanilla/arch/mips/Makefile   2007-09-26 20:03:01.000000000 
+0200
+++ linux-2.6.22.9/arch/mips/Makefile   2007-10-10 20:44:24.000000000 +0200
@@ -165,6 +165,13 @@ cflags-$(CONFIG_MACH_JAZZ) += -Iinclude/
 load-$(CONFIG_MACH_JAZZ)       += 0xffffffff80080000

 #
+# ADMtek 5120
+#
+
+core-$(CONFIG_MIPS_ADM5120)    += arch/mips/adm5120/
+load-$(CONFIG_MIPS_ADM5120)    += 0xffffffff80002000
+
+#
 # Common Alchemy Au1x00 stuff
 #
 core-$(CONFIG_SOC_AU1X00)      += arch/mips/au1000/common/


diff -urNdp linux-2.6.22.9-vanilla/arch/mips/kernel/head.S 
linux-2.6.22.9/arch/mips/kernel/head.S
--- linux-2.6.22.9-vanilla/arch/mips/kernel/head.S      2007-09-26 
20:03:01.000000000 +0200
+++ linux-2.6.22.9/arch/mips/kernel/head.S      2007-10-10 20:44:24.000000000 
+0200
@@ -134,6 +134,11 @@
         * Necessary for machines which link their kernels at KSEG0.
         */
        .fill   0x400
+#ifdef CONFIG_MIPS_ADM5120
+       /* ADM5120 bootloader jumps to 0x6d8 */
+       .fill   0x2d8
+       j kernel_entry
+#endif

 EXPORT(stext)                                  # used for profiling
 EXPORT(_stext)


Any clues what I am missing or what I do wrong?

Marian

<Prev in Thread] Current Thread [Next in Thread>
  • Linux 2.6.22 on ADM5120, Marian Jancar <=