All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marian Jancar <m.jancar@satca.net>
To: linux-mips@linux-mips.org
Cc: juhosg@openwrt.org
Subject: Linux 2.6.22 on ADM5120
Date: Wed, 10 Oct 2007 22:48:20 +0200	[thread overview]
Message-ID: <470D3A94.9090401@satca.net> (raw)

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

                 reply	other threads:[~2007-10-10 20:53 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=470D3A94.9090401@satca.net \
    --to=m.jancar@satca.net \
    --cc=juhosg@openwrt.org \
    --cc=linux-mips@linux-mips.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 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.