linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* how to change bss section address in u-boot.lds file
@ 2016-05-26 12:01 Rama Chandra
  2016-05-26 20:28 ` Segher Boessenkool
  0 siblings, 1 reply; 2+ messages in thread
From: Rama Chandra @ 2016-05-26 12:01 UTC (permalink / raw)
  To: linuxppc-dev, eldk

[-- Attachment #1: Type: text/plain, Size: 1650 bytes --]

Hai,
I am using IBM PPC440GX board.In arch/powerpc/cpu/ppc4xx/u-boot.lds i am
changing the values of resetvector and BSS addresses but it is not changing
Presently i am changed


#if (RESET_VECTOR_ADDRESS == 0xfffffff0)
  . |= 44780000;
#endif
#endif /* CONFIG_SPL */

  __bss_start = .;
  .bss (NOLOAD)       :

Actually Below detalis i am using in MULTI. But those  are not changing in
Uboot.
MEMORY {
    Flash_memory  : ORIGIN = 0xfffBC000, LENGTH = 0x7000
    Flash_memory_start : ORIGIN = 0xFFFFF000, LENGTH = 0x0FDF
    reset_init :            ORIGIN = 0xFFFFFFF0, LENGTH = 0x0010
    ram_main  :            ORIGIN = 0x44780000, LENGTH = 1M
}

DEFAULTS {

    heap_reserve = 32k
    stack_reserve = 32K

}
SECTIONS
{
    .PPC.EMB.sdata0                    ABS : > Flash_memory
    .PPC.EMB.sbss0                            CLEAR ABS : > .
    .vectors :> Flash_memory_start
    .control                   : {*(.control)}       > Flash_memory_start
    .prefetch    : {*(.prefetch)} >  .
    .reset_vec               : {*(.reset_vec)} > reset_init
        .text               : > Flash_memory
    .vletext     : > .
    .syscall     : > .
    .secinfo     : > .
    .rodata     : > .
    .textprefetch     : {*(.textprefetch)} > .
    .sdata2     : > ram_main
    .fixaddr   : > .
    .fixtype : > .

    .sdabase              ALIGN(16) : > ram_main
    .sdata : > ram_main
    .sbss : > .
    .data : > .
    .bss   : > .
    .heap                  ALIGN(16) PAD(heap_reserve)  : > .
    .stack                 ALIGN(16) PAD(stack_reserve) : > .

     INTR_VECTOR_START = ADDR(.vectors);
}

-- 
Thanks & Regards,
RamaChandra PC
+918892147159.

[-- Attachment #2: Type: text/html, Size: 4430 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to change bss section address in u-boot.lds file
  2016-05-26 12:01 how to change bss section address in u-boot.lds file Rama Chandra
@ 2016-05-26 20:28 ` Segher Boessenkool
  0 siblings, 0 replies; 2+ messages in thread
From: Segher Boessenkool @ 2016-05-26 20:28 UTC (permalink / raw)
  To: Rama Chandra; +Cc: linuxppc-dev, eldk

On Thu, May 26, 2016 at 05:31:08PM +0530, Rama Chandra wrote:
> Hai,
> I am using IBM PPC440GX board.In arch/powerpc/cpu/ppc4xx/u-boot.lds i am
> changing the values of resetvector and BSS addresses but it is not changing
> Presently i am changed
> 
> 
> #if (RESET_VECTOR_ADDRESS == 0xfffffff0)
>   . |= 44780000;

It looks like you forgot "0x" here.


Segher

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-26 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-26 12:01 how to change bss section address in u-boot.lds file Rama Chandra
2016-05-26 20:28 ` Segher Boessenkool

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 NNTP newsgroup(s).