public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: RandyLin@mxic.com.tw
To: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] ROMRAM mode for Samsung SNDS redboot?
Date: Wed, 19 Nov 2003 06:55:00 -0000	[thread overview]
Message-ID: <OF375C400E.6D1EE2C2-ON48256E01.001E9D88-48256E01.0025A265@MXIC.COM.TW> (raw)


Thanks for the "hal_platform_setup.h", it works!




On Mittwoch, 19. November 2003 02:22, RandyLin@mxic.com.tw wrote:
> I have redboot rom mode on SNDS, but I can't find the
> mlt_arm_snds_romram.ldi or .h
> No one done this before?
> Can anyone give me suggestion, or lead me to some document?

I have made ROMRAM version for our new platform "ARM Industrial Module"
which is based on the snds hal and which we will contribute back soon.

Maybe you could make the same for the snds platform, but the problem is
the RAM version of snds is starting at 0x20000 and there is not enough
place for RedBoot (at least with network) executed from RAM. That
means the RAM ldi file has to be changed too.

This is the difference of the ramrom ldi file to the ram ldi file:

 diff -u5 -p -N mlt_arm_aim711_romram.ldi
../../../../snds/current/include/pkgconf/mlt_arm_snds_ram.ldi
--- mlt_arm_aim711_romram.ldi   Fri Oct 17 13:20:13 2003
+++ ../../../../snds/current/include/pkgconf/mlt_arm_snds_ram.ldi       Mon

Sep 29 17:16:19 2003
@@ -4,18 +4,18 @@

 #include <cyg/infra/cyg_type.inc>

 MEMORY
 {
-    ram : ORIGIN = 0x000000, LENGTH = 0x00800000
+    ram : ORIGIN = 0x000000, LENGTH = 0x01000000
 }

 SECTIONS
 {
     SECTIONS_BEGIN
-    SECTION_fixed_vectors (ram, 0x20, LMA_EQ_VMA)
-    SECTION_rom_vectors (ram, 0x1000, LMA_EQ_VMA)
+    SECTION_fixed_vectors (ram, 0x200, LMA_EQ_VMA)
+    SECTION_rom_vectors (ram, 0x00020000, LMA_EQ_VMA)
     SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_rodata (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_rodata1 (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA)

Additionally I have attached the hal_platform_setup.h file of the AIM
hal, which includes the relocating of the text segment. I haven't made
a diff, because it would be confusing to read because I have changed
a big part of it from being a "#define" macro to an assembler macro,
so it is the same code but would be shown as difference because of the
";\" at the end of the line.







-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

             reply	other threads:[~2003-11-19  6:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-19  6:55 RandyLin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-18  1:24 RandyLin
2003-11-18  9:31 ` Roland Caßebohm

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=OF375C400E.6D1EE2C2-ON48256E01.001E9D88-48256E01.0025A265@MXIC.COM.TW \
    --to=randylin@mxic.com.tw \
    --cc=ecos-discuss@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).