From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28363 invoked by alias); 19 Nov 2003 06:55:32 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 28348 invoked from network); 19 Nov 2003 06:55:29 -0000 Received: from unknown (HELO mxic.com.tw) (203.66.160.36) by sources.redhat.com with SMTP; 19 Nov 2003 06:55:29 -0000 Received: by mxic.com.tw; id OAA12037; Wed, 19 Nov 2003 14:55:23 +0800 (CST) Received: from unknown(192.168.1.11) by mxsrv.mxic.com.tw via smap (V5.5) id xmak08406; Wed, 19 Nov 03 14:54:57 +0800 Received: from TWMAIL01.MXIC.COM.TW (twmail01.mxic.com.tw [192.168.11.4]) by mxmailbk.mxic.com.tw (8.9.3/8.8.7) with ESMTP id OAA02598 for ; Wed, 19 Nov 2003 14:31:13 +0800 From: RandyLin@mxic.com.tw To: ecos-discuss@sources.redhat.com Message-ID: Date: Wed, 19 Nov 2003 06:55:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Subject: Re: [ECOS] ROMRAM mode for Samsung SNDS redboot? X-SW-Source: 2003-11/txt/msg00236.txt.bz2 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 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