All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Uboot application problem
@ 2010-04-26  8:21 robin
  0 siblings, 0 replies; 4+ messages in thread
From: robin @ 2010-04-26  8:21 UTC (permalink / raw)
  To: u-boot

Hi,

I have a couple of custom application for uboot.
I am able to build and run the application individually 
If i power up the board and run the first application, It executes
without powering off the board if i load second application to same
location, the system hangs.
Both the application has been compiled for same location 0x80000000.
i have tested both application seperately, both are fine.
But when i execute one after another without power off, then system
hangs.
i compiled one application for 0x80000000 and another for 0x81000000
then both application executes without requiring reboot.
i am using the below lds file for applications.

Can some one suggest if it is a stack issue or some other issue.
i had defined usrstack area in my application and verified it using map
file.
but after execution of application i check that area, its not at all
modified,
its 0xFFFFFFFF, i think its using uboot's stack area not the one defined
by my application.
what is causing this behavior and how to resolve it ?

Regards,
Robin


=========================================
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(main)

MEMORY
{
        ram      : o = 0x80000000, l = 256k
        usrstack : o = 0x83000000, l = 64k
}

SECTIONS
{

  /* Code and Constants */
  .text :
    {
    . = 0x00;

      __text_start = .;
      *.o(.text)
      *.o(.strings)
      *.o(.rodata)
      *.o(.rodata.*)
      *.o(.comment)
      *.o(.debug*)
      *(.rodata.*)
      *(.rodata)
       *(.eh_frame)
       . = ALIGN(32);
      __text_end = .;
    } > ram
  /* Initialized data */
  .init :
    {
     . = ALIGN(32);
      __data_start = .;
       . = ALIGN(32);
      *(.data)
      *(.glue_7)
      *(.glue_7t)
      . = ALIGN(32);
      __data_end = .;
      . = ALIGN(32);
    } > ram

  .bss :
    {
      __bss_start = .;
      *(.bss)
      *(COMMON)
      . = ALIGN(32);
      __bss_end = .;
    } > ram

  /* Application stack */
  .stack :
    {
      __stack_start = .;
      *(.stack)
      __stack_end = .;
      . = ALIGN(32);
    } > usrstack
}
                       

------------------------------------------------------------------------------- 
DISCLAIMER: This e-mail and any attachment (s) is for authorised use by the
intended recipient (s) only. It may contain proprietary material, confidential
information and/or be subject to the legal privilege of iWave Systems
Technologies Private Limited. If you have received this message in error,
please notify the originator immediately. If you are not the intended
recipient, you are notified that you are strictly prohibited from retaining,
using, copying, alerting or disclosing the content of this message. Thank you
for your co-operation. 
------------------------------------------------------------------------------

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

* [U-Boot] Uboot application problem
@ 2010-04-28  5:06 robin
  2010-04-28  5:29 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: robin @ 2010-04-28  5:06 UTC (permalink / raw)
  To: u-boot

Hi,

I have a couple of custom application for uboot.
I am able to build and run the application individually 
If i power up the board and run the first application, It executes
without powering off the board if i load second application to same
location, the system hangs.
Both the application has been compiled for same location 0x80000000.
i have tested both application seperately, both are fine.
But when i execute one after another without power off, then system
hangs.
i compiled one application for 0x80000000 and another for 0x81000000
then both application executes without requiring reboot.
i am using the below lds file for applications.

Can some one suggest if it is a stack issue or some other issue.
i had defined usrstack area in my application and verified it using map
file.
but after execution of application i check that area, its not at all
modified,
its 0xFFFFFFFF, i think its using uboot's stack area not the one defined
by my application.
what is causing this behavior and how to resolve it ?

Regards,
Robin


=========================================
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(main)

MEMORY
{
        ram      : o = 0x80000000, l = 256k
        usrstack : o = 0x83000000, l = 64k
}

SECTIONS
{

  /* Code and Constants */
  .text :
    {
    . = 0x00;

      __text_start = .;
      *.o(.text)
      *.o(.strings)
      *.o(.rodata)
      *.o(.rodata.*)
      *.o(.comment)
      *.o(.debug*)
      *(.rodata.*)
      *(.rodata)
       *(.eh_frame)
       . = ALIGN(32);
      __text_end = .;
    } > ram
  /* Initialized data */
  .init :
    {
     . = ALIGN(32);
      __data_start = .;
       . = ALIGN(32);
      *(.data)
      *(.glue_7)
      *(.glue_7t)
      . = ALIGN(32);
      __data_end = .;
      . = ALIGN(32);
    } > ram

  .bss :
    {
      __bss_start = .;
      *(.bss)
      *(COMMON)
      . = ALIGN(32);
      __bss_end = .;
    } > ram

  /* Application stack */
  .stack :
    {
      __stack_start = .;
      *(.stack)
      __stack_end = .;
      . = ALIGN(32);
    } > usrstack
}
                       

------------------------------------------------------------------------------- 
DISCLAIMER: This e-mail and any attachment (s) is for authorised use by the
intended recipient (s) only. It may contain proprietary material, confidential
information and/or be subject to the legal privilege of iWave Systems
Technologies Private Limited. If you have received this message in error,
please notify the originator immediately. If you are not the intended
recipient, you are notified that you are strictly prohibited from retaining,
using, copying, alerting or disclosing the content of this message. Thank you
for your co-operation. 
------------------------------------------------------------------------------

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

* [U-Boot] Uboot application problem
  2010-04-28  5:06 [U-Boot] Uboot application problem robin
@ 2010-04-28  5:29 ` Wolfgang Denk
       [not found]   ` <1272433162.2567.4.camel@ubuntu-desktop>
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2010-04-28  5:29 UTC (permalink / raw)
  To: u-boot

Dear robin,

In message <1272431200.2567.0.camel@ubuntu-desktop> you wrote:
> 
> I have a couple of custom application for uboot.
> I am able to build and run the application individually 
> If i power up the board and run the first application, It executes
> without powering off the board if i load second application to same
> location, the system hangs.

Maybe caches are not flushed as needed. Which exact version of U-Boot
is this? And which exact board configuration?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Q: How do you spell "onomatopoeia"?
A: The way it sounds.

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

* [U-Boot] Uboot application problem
       [not found]   ` <1272433162.2567.4.camel@ubuntu-desktop>
@ 2010-04-28  7:20     ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2010-04-28  7:20 UTC (permalink / raw)
  To: u-boot

Dear robin,

please keep the mailing list on Cc:

Also, please do not top post / full quote - make sure to read
http://www.netmeister.org/news/learn2quote.html


In message <1272433162.2567.4.camel@ubuntu-desktop> you wrote:
> 
> I am making use of u-boot 1.3.3
> and i am using the omap3530 based board (Beagleboard).

U-Boot 1.3.3 is very old. A _lot_ has been changed since. Please
update and use recent code instead.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Teenagers are people who express a burning desire to be different by
dressing exactly alike.
There are some strings. They're just not attached.

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

end of thread, other threads:[~2010-04-28  7:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-28  5:06 [U-Boot] Uboot application problem robin
2010-04-28  5:29 ` Wolfgang Denk
     [not found]   ` <1272433162.2567.4.camel@ubuntu-desktop>
2010-04-28  7:20     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2010-04-26  8:21 robin

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.