* Linux 2.6.22 on ADM5120
@ 2007-10-10 20:48 Marian Jancar
0 siblings, 0 replies; only message in thread
From: Marian Jancar @ 2007-10-10 20:48 UTC (permalink / raw)
To: linux-mips; +Cc: juhosg
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-10 20:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 20:48 Linux 2.6.22 on ADM5120 Marian Jancar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.