* [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? @ 2005-08-24 9:49 Steven_cheng 2005-08-24 11:30 ` Andrew Lunn 2005-08-24 12:10 ` Gary Thomas 0 siblings, 2 replies; 10+ messages in thread From: Steven_cheng @ 2005-08-24 9:49 UTC (permalink / raw) To: eCos Discussion Dear all, I have one question about the RAM memory usage, because I found that the RAM address 0x0 -0xfcb8 is always used. The following list is presented in my environmenet: 1. ROM mode: RAM: 0x00000000-0x10000000, [0x0000fcb8-0x0ffdd000] available 2. ROMRAM mode: RAM: 0x00000000-0x10000000, [0x00042678-0x0ffdd000] available 3: RAM mode: RAM: 0x00000000-0x10000000, [0x0007ebf8-0x0ffdd000] available Anybody can tell me who use the RAM block between 0x0 and 0xfcb8 ?? Thank you~~ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? 2005-08-24 9:49 [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? Steven_cheng @ 2005-08-24 11:30 ` Andrew Lunn 2005-08-24 12:10 ` Gary Thomas 1 sibling, 0 replies; 10+ messages in thread From: Andrew Lunn @ 2005-08-24 11:30 UTC (permalink / raw) To: Steven_cheng; +Cc: eCos Discussion On Wed, Aug 24, 2005 at 05:50:54PM +0800, Steven_cheng wrote: > Dear all, > > I have one question about the RAM memory usage, because I > found that the RAM address 0x0 -0xfcb8 is always used. > > The following list is presented in my environmenet: > > 1. ROM mode: > RAM: 0x00000000-0x10000000, [0x0000fcb8-0x0ffdd000] available > > 2. ROMRAM mode: > RAM: 0x00000000-0x10000000, [0x00042678-0x0ffdd000] available > > 3: RAM mode: > RAM: 0x00000000-0x10000000, [0x0007ebf8-0x0ffdd000] available > > > Anybody can tell me who use the RAM block between 0x0 and 0xfcb8 ?? Redboot Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? 2005-08-24 9:49 [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? Steven_cheng 2005-08-24 11:30 ` Andrew Lunn @ 2005-08-24 12:10 ` Gary Thomas 2005-08-25 3:33 ` Steven_cheng 1 sibling, 1 reply; 10+ messages in thread From: Gary Thomas @ 2005-08-24 12:10 UTC (permalink / raw) To: Steven_cheng; +Cc: eCos Discussion On Wed, 2005-08-24 at 17:50 +0800, Steven_cheng wrote: > Dear all, > > I have one question about the RAM memory usage, because I > found that the RAM address 0x0 -0xfcb8 is always used. > > The following list is presented in my environmenet: > > 1. ROM mode: > RAM: 0x00000000-0x10000000, [0x0000fcb8-0x0ffdd000] available > This is the workspace (variables, etc) for RedBoot > 2. ROMRAM mode: > RAM: 0x00000000-0x10000000, [0x00042678-0x0ffdd000] available > Workspace + RedBoot code (instructions) > 3: RAM mode: > RAM: 0x00000000-0x10000000, [0x0007ebf8-0x0ffdd000] available > Workspace + RedBoot code (instructions), this time loaded at a higher address which does not conflict with what is used in ROMRAM mode. > > Anybody can tell me who use the RAM block between 0x0 and 0xfcb8 ?? > > Thank you~~ > -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? 2005-08-24 12:10 ` Gary Thomas @ 2005-08-25 3:33 ` Steven_cheng 2005-08-25 7:24 ` Andrew Lunn 2005-08-25 11:29 ` Gary Thomas 0 siblings, 2 replies; 10+ messages in thread From: Steven_cheng @ 2005-08-25 3:33 UTC (permalink / raw) To: Gary Thomas, Andrew Lunn; +Cc: eCos Discussion Dear All, Thank you for your reply! But I have a question. Can I move the RedBoot workspace to other address, because I have an application located at 0x0. I hope to empty the address 0x0 in the ROM / ROMRAM modes How can I do for it ?? Thank you~~ ----- Original Message ----- From: "Gary Thomas" <gary@mlbassoc.com> To: "Steven_cheng" <05071@alphanetworks.com> Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org> Sent: Wednesday, August 24, 2005 8:09 PM Subject: Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? > On Wed, 2005-08-24 at 17:50 +0800, Steven_cheng wrote: > > Dear all, > > > > I have one question about the RAM memory usage, because I > > found that the RAM address 0x0 -0xfcb8 is always used. > > > > The following list is presented in my environmenet: > > > > 1. ROM mode: > > RAM: 0x00000000-0x10000000, [0x0000fcb8-0x0ffdd000] available > > > > This is the workspace (variables, etc) for RedBoot > > > 2. ROMRAM mode: > > RAM: 0x00000000-0x10000000, [0x00042678-0x0ffdd000] available > > > > Workspace + RedBoot code (instructions) > > > 3: RAM mode: > > RAM: 0x00000000-0x10000000, [0x0007ebf8-0x0ffdd000] available > > > > Workspace + RedBoot code (instructions), this time loaded at a > higher address which does not conflict with what is used in > ROMRAM mode. > > > > > Anybody can tell me who use the RAM block between 0x0 and 0xfcb8 ?? > > > > Thank you~~ > > > > -- > ------------------------------------------------------------ > Gary Thomas | Consulting for the > MLB Associates | Embedded world > ------------------------------------------------------------ > > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? 2005-08-25 3:33 ` Steven_cheng @ 2005-08-25 7:24 ` Andrew Lunn 2005-08-25 7:49 ` Steven_cheng 2005-08-25 11:29 ` Gary Thomas 1 sibling, 1 reply; 10+ messages in thread From: Andrew Lunn @ 2005-08-25 7:24 UTC (permalink / raw) To: Steven_cheng; +Cc: eCos Discussion On Thu, Aug 25, 2005 at 11:34:09AM +0800, Steven_cheng wrote: > > Dear All, > > Thank you for your reply! But I have a question. > > Can I move the RedBoot workspace to other address, because I have > an application located at 0x0. I hope to empty the address 0x0 in the ROM / > ROMRAM modes > > How can I do for it ?? You need to modify the memory map. Take a look at the *ROMRAM.ldi and *ROMRAM.h for your target. These two files controls what goes where in memory. What processor is this? For ARM you however cannot free up the first 20 bytes. These are the interrupt vectors which RedBoot want to keep control of until your application gets to run. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? 2005-08-25 7:24 ` Andrew Lunn @ 2005-08-25 7:49 ` Steven_cheng 2005-08-25 8:19 ` Andrew Lunn 0 siblings, 1 reply; 10+ messages in thread From: Steven_cheng @ 2005-08-25 7:49 UTC (permalink / raw) To: Andrew Lunn; +Cc: eCos Discussion Dear Andrew, The processor of my platform is PowerPC 8245, the following are my romram.ldi and romram.h. ///////////////////// romram.ldi MEMORY { ram : ORIGIN = 0, LENGTH = 0x10000000 } SECTIONS { SECTIONS_BEGIN SECTION_vectors (ram, 0, LMA_EQ_VMA) SECTION_text (ram, 0x3400, LMA_EQ_VMA) SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata1 (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_rodata (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_gcc_except_table (ram, ALIGN (0x1), LMA_EQ_VMA) SECTION_data (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_sbss (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA) CYG_LABEL_DEFN(__heap1) = ALIGN (0x8); SECTIONS_END } ///////////////////// romram.h #define CYGMEM_REGION_ram (0) #define CYGMEM_REGION_ram_SIZE (0x10000000) #define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W) #ifndef __ASSEMBLER__ extern char CYG_LABEL_NAME (__heap1) []; #endif #define CYGMEM_SECTION_heap1 (CYG_LABEL_NAME (__heap1)) #define CYGMEM_SECTION_heap1_SIZE (0x10000000 - (size_t) CYG_LABEL_NAME (__heap1)) Questions: Q1 : How can I modify the files for memory address (0x0) emptying ?? Q2 : Where can I get the detail information about the format and meaning of ram.h /ram.ldi / ram.mlt ?? Or document ?? Q3: As above example, where is the label " __heap1" defined ?? I can't find it. Thank you ~~ Steven Cheng ----- Original Message ----- From: "Andrew Lunn" <andrew@lunn.ch> To: "Steven_cheng" <05071@alphanetworks.com> Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org> Sent: Thursday, August 25, 2005 3:22 PM Subject: Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? > On Thu, Aug 25, 2005 at 11:34:09AM +0800, Steven_cheng wrote: > > > > Dear All, > > > > Thank you for your reply! But I have a question. > > > > Can I move the RedBoot workspace to other address, because I have > > an application located at 0x0. I hope to empty the address 0x0 in the ROM / > > ROMRAM modes > > > > How can I do for it ?? > > You need to modify the memory map. Take a look at the *ROMRAM.ldi and > *ROMRAM.h for your target. These two files controls what goes where in > memory. > > What processor is this? For ARM you however cannot free up the first > 20 bytes. These are the interrupt vectors which RedBoot want to keep > control of until your application gets to run. > > Andrew > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? 2005-08-25 7:49 ` Steven_cheng @ 2005-08-25 8:19 ` Andrew Lunn 0 siblings, 0 replies; 10+ messages in thread From: Andrew Lunn @ 2005-08-25 8:19 UTC (permalink / raw) To: Steven_cheng; +Cc: eCos Discussion On Thu, Aug 25, 2005 at 03:50:42PM +0800, Steven_cheng wrote: > Dear Andrew, > > The processor of my platform is PowerPC 8245, the following are my > romram.ldi and romram.h. > > ///////////////////// romram.ldi > MEMORY > { > ram : ORIGIN = 0, LENGTH = 0x10000000 > } > > SECTIONS > { > SECTIONS_BEGIN > SECTION_vectors (ram, 0, LMA_EQ_VMA) > SECTION_text (ram, 0x3400, LMA_EQ_VMA) > SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA) > SECTION_rodata1 (ram, ALIGN (0x8), LMA_EQ_VMA) > SECTION_rodata (ram, ALIGN (0x8), LMA_EQ_VMA) > SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA) > SECTION_gcc_except_table (ram, ALIGN (0x1), LMA_EQ_VMA) > SECTION_data (ram, ALIGN (0x8), LMA_EQ_VMA) > SECTION_sbss (ram, ALIGN (0x4), LMA_EQ_VMA) > SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA) > CYG_LABEL_DEFN(__heap1) = ALIGN (0x8); > SECTIONS_END > } > > ///////////////////// romram.h > #define CYGMEM_REGION_ram (0) > #define CYGMEM_REGION_ram_SIZE (0x10000000) > #define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W) > #ifndef __ASSEMBLER__ > extern char CYG_LABEL_NAME (__heap1) []; > #endif > #define CYGMEM_SECTION_heap1 (CYG_LABEL_NAME (__heap1)) > #define CYGMEM_SECTION_heap1_SIZE (0x10000000 - (size_t) CYG_LABEL_NAME > (__heap1)) > > > Questions: > Q1 : How can I modify the files for memory address (0x0) emptying ?? > Q2 : Where can I get the detail information about the format and meaning > of ram.h /ram.ldi / ram.mlt ?? Or document ?? I don't know if there is any documentation. I've never needed any so i've not looked. > Q3: As above example, where is the label " __heap1" defined ?? I can't find > it. CYG_LABEL_DEFN defines __heap1. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? 2005-08-25 3:33 ` Steven_cheng 2005-08-25 7:24 ` Andrew Lunn @ 2005-08-25 11:29 ` Gary Thomas 2005-08-25 13:49 ` Steven_cheng 1 sibling, 1 reply; 10+ messages in thread From: Gary Thomas @ 2005-08-25 11:29 UTC (permalink / raw) To: Steven_cheng; +Cc: Andrew Lunn, eCos Discussion On Thu, 2005-08-25 at 11:34 +0800, Steven_cheng wrote: > Dear All, > > Thank you for your reply! But I have a question. > > Can I move the RedBoot workspace to other address, because I have > an application located at 0x0. I hope to empty the address 0x0 in the ROM / > ROMRAM modes > > How can I do for it ?? I don't know what platform/architecture you are using, but moving the data space (RedBoot's workspace) to another location, while possible, is probably a non-trivial job. What kind of application do you have/need at 0x0? > > Thank you~~ > > > ----- Original Message ----- > From: "Gary Thomas" <gary@mlbassoc.com> > To: "Steven_cheng" <05071@alphanetworks.com> > Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org> > Sent: Wednesday, August 24, 2005 8:09 PM > Subject: Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? > > > > On Wed, 2005-08-24 at 17:50 +0800, Steven_cheng wrote: > > > Dear all, > > > > > > I have one question about the RAM memory usage, because I > > > found that the RAM address 0x0 -0xfcb8 is always used. > > > > > > The following list is presented in my environmenet: > > > > > > 1. ROM mode: > > > RAM: 0x00000000-0x10000000, [0x0000fcb8-0x0ffdd000] available > > > > > > > This is the workspace (variables, etc) for RedBoot > > > > > 2. ROMRAM mode: > > > RAM: 0x00000000-0x10000000, [0x00042678-0x0ffdd000] available > > > > > > > Workspace + RedBoot code (instructions) > > > > > 3: RAM mode: > > > RAM: 0x00000000-0x10000000, [0x0007ebf8-0x0ffdd000] available > > > > > > > Workspace + RedBoot code (instructions), this time loaded at a > > higher address which does not conflict with what is used in > > ROMRAM mode. > > > > > > > > Anybody can tell me who use the RAM block between 0x0 and 0xfcb8 ?? > > > > > > Thank you~~ > > > > > > > -- > > ------------------------------------------------------------ > > Gary Thomas | Consulting for the > > MLB Associates | Embedded world > > ------------------------------------------------------------ > > > > > > -- > > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > > > > -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? 2005-08-25 11:29 ` Gary Thomas @ 2005-08-25 13:49 ` Steven_cheng 2005-08-25 13:54 ` Gary Thomas 0 siblings, 1 reply; 10+ messages in thread From: Steven_cheng @ 2005-08-25 13:49 UTC (permalink / raw) To: Gary Thomas; +Cc: eCos Discussion Dear Thomas, The processor of my platform is PowerPC 8245, the application is our product application, and it is made by Nucleus Plus. The application is located at 0x0, and it starts at 0x100. So we hope to use RedBoot to load this application. The application is distributed and works for a long time, and it had better no change. So how can I do for it ?? Thank you~ Steven Cheng ----- Original Message ----- From: "Gary Thomas" <gary@mlbassoc.com> To: "Steven_cheng" <05071@alphanetworks.com> Cc: "Andrew Lunn" <andrew@lunn.ch>; "eCos Discussion" <ecos-discuss@ecos.sourceware.org> Sent: Thursday, August 25, 2005 7:28 PM Subject: Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? > On Thu, 2005-08-25 at 11:34 +0800, Steven_cheng wrote: > > Dear All, > > > > Thank you for your reply! But I have a question. > > > > Can I move the RedBoot workspace to other address, because I have > > an application located at 0x0. I hope to empty the address 0x0 in the ROM / > > ROMRAM modes > > > > How can I do for it ?? > > I don't know what platform/architecture you are using, but moving the > data space (RedBoot's workspace) to another location, while possible, > is probably a non-trivial job. > > What kind of application do you have/need at 0x0? > > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? 2005-08-25 13:49 ` Steven_cheng @ 2005-08-25 13:54 ` Gary Thomas 0 siblings, 0 replies; 10+ messages in thread From: Gary Thomas @ 2005-08-25 13:54 UTC (permalink / raw) To: Steven_cheng; +Cc: eCos Discussion On Thu, 2005-08-25 at 21:50 +0800, Steven_cheng wrote: > Dear Thomas, > > The processor of my platform is PowerPC 8245, > the application is our product application, and it is made > by Nucleus Plus. The application is located at 0x0, and > it starts at 0x100. So we hope to use RedBoot to load this > application. The application is distributed and works for > a long time, and it had better no change. > > So how can I do for it ?? The simplest way would be to write a new RedBoot command to execute your code. This command would take your application image, loaded at some arbitrary location, turn off the MMU and then move the application to location 0x0 before executing it. This is quite similar to how the 'exec' function works on some of the ARM platforms. > Thank you~ > > Steven Cheng > > > ----- Original Message ----- > From: "Gary Thomas" <gary@mlbassoc.com> > To: "Steven_cheng" <05071@alphanetworks.com> > Cc: "Andrew Lunn" <andrew@lunn.ch>; "eCos Discussion" > <ecos-discuss@ecos.sourceware.org> > Sent: Thursday, August 25, 2005 7:28 PM > Subject: Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? > > > > On Thu, 2005-08-25 at 11:34 +0800, Steven_cheng wrote: > > > Dear All, > > > > > > Thank you for your reply! But I have a question. > > > > > > Can I move the RedBoot workspace to other address, because I have > > > an application located at 0x0. I hope to empty the address 0x0 in the > ROM / > > > ROMRAM modes > > > > > > How can I do for it ?? > > > > I don't know what platform/architecture you are using, but moving the > > data space (RedBoot's workspace) to another location, while possible, > > is probably a non-trivial job. > > > > What kind of application do you have/need at 0x0? > > > > > > > -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-08-25 13:54 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-08-24 9:49 [ECOS] who use the RAM block between 0x0 and 0xfcb8 ?? Steven_cheng 2005-08-24 11:30 ` Andrew Lunn 2005-08-24 12:10 ` Gary Thomas 2005-08-25 3:33 ` Steven_cheng 2005-08-25 7:24 ` Andrew Lunn 2005-08-25 7:49 ` Steven_cheng 2005-08-25 8:19 ` Andrew Lunn 2005-08-25 11:29 ` Gary Thomas 2005-08-25 13:49 ` Steven_cheng 2005-08-25 13:54 ` Gary Thomas
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).