All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] ## Application terminated, rc = 0x1
Date: Thu, 24 Sep 2015 07:55:26 +0200	[thread overview]
Message-ID: <20150924055526.0F0B1380905@gemini.denx.de> (raw)
In-Reply-To: <5c515fb3b2f956768d10d2e2c2e9402e@rbg.informatik.tu-darmstadt.de>

Dear ba_f,

In message <5c515fb3b2f956768d10d2e2c2e9402e@rbg.informatik.tu-darmstadt.de> you wrote:
> 
> But the kernel crushes pretty early with the following u-boot output:
> 
> ## Starting application at 0x01000000 ...
> ## Application terminated, rc = 0x1

This is NOT a crash.  The program terminates normally with a return
code of 1.

> What may cause "Application terminated, rc = 0x1"?

Something that takes the same effect as "return(1)" from your main()
function, resp. an "exit(1)" from other parts of the code.

> I don't think it is a regular code exit, like main(){ return 1; }.

But yes, it is.  From the line

	## Application terminated, rc = 0x1

you can see that the program returned normally to U-Boot, and U-Boot
continues running (unless your code destroyed any of the U-Boot
execution environment).

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
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
I express preference for a chronological  sequence  of  events  which
precludes a violence.   - Terry Pratchett, _The Dark Side of the Sun_

  parent reply	other threads:[~2015-09-24  5:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-22 16:22 [U-Boot] ## Application terminated, rc = 0x1 ba_f
2015-09-23 23:23 ` Nable
2015-09-24  5:55 ` Wolfgang Denk [this message]
2015-09-29 13:49   ` ba_f
2015-09-29 16:13     ` Wolfgang Denk
2015-09-29 16:15     ` [U-Boot] "go" does not work for uImage - was: " Wolfgang Denk
2015-10-08 13:56       ` [U-Boot] U-Boot version issue ba_f
2015-10-09 13:02         ` Simon Glass
2015-10-09 13:22           ` Michal Simek
2015-10-12 13:52           ` ba_f

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=20150924055526.0F0B1380905@gemini.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 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.