From: DaveKucharczyk <david.kucharczyk@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] porting u-boot, few final questions
Date: Mon, 10 Nov 2014 13:45:12 -0700 (MST) [thread overview]
Message-ID: <1415652312700-195451.post@n7.nabble.com> (raw)
In-Reply-To: <5460FBE0.3070506@mail.bg>
Update: my board_late_init() function wasn?t working because I defined
BOARD_LATE_INIT instead of CONFIG_BOARD_LATE_INIT. Doh!
Since arch/arm/lib/board.c file is being removed, and when
CONFIG_SYS_GENERIC_BOARD is defined, we are now using?
common/board_f.c (for pre-relocation init)
common/board_r.c (for post-relocation init)
So my board file sequence is (in order of calling sequence according to the
above two files)?
1. board_early_init_f() ? needed to setup my uart, otherwise early output is
missed
2. checkboard() ? print board info - still in flash
3. board_init() ? says chipselects should be setup here ? we are running
from RAM now
4. initr_env() is called here
5. board_late_init() -
Nikolay, appears you are correct, initr_env must be called first in order to
use setenv. That?s why setenv didn?t work in board_early_init_f or
checkboard or board_init.
Fabio, your change worked when I use setenv in misc_init_r and helped me
debug some issues. Thanks guys.
Is there a doc or a good read that explains which init functions are
necessary for what? Or which ones should be used for ?proper? design?
I?m sure I?ll be back with more questions real soon. :)
--
View this message in context: http://u-boot.10912.n7.nabble.com/porting-u-boot-MMU-question-tp194761p195451.html
Sent from the U-Boot mailing list archive at Nabble.com.
next prev parent reply other threads:[~2014-11-10 20:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 16:36 [U-Boot] porting u-boot, MMU question DaveKucharczyk
2014-11-05 16:58 ` Stefano Babic
2014-11-05 17:16 ` DaveKucharczyk
2014-11-05 21:04 ` Stefano Babic
2014-11-05 21:24 ` Otavio Salvador
2014-11-06 20:03 ` DaveKucharczyk
2014-11-10 15:14 ` [U-Boot] porting u-boot, few final questions DaveKucharczyk
2014-11-10 15:30 ` Fabio Estevam
2014-11-10 15:47 ` Wolfgang Denk
2014-11-10 16:04 ` Fabio Estevam
2014-11-10 17:54 ` Nikolay Dimitrov
2014-11-10 20:45 ` DaveKucharczyk [this message]
2014-11-10 22:21 ` DaveKucharczyk
2014-11-11 17:39 ` DaveKucharczyk
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=1415652312700-195451.post@n7.nabble.com \
--to=david.kucharczyk@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox