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 15:21:08 -0700 (MST) [thread overview]
Message-ID: <1415658068088-195488.post@n7.nabble.com> (raw)
In-Reply-To: <1415652312700-195451.post@n7.nabble.com>
So I am having another issue probably more related to computer science
fundamentals.
I have a global variable boot_dev defined in my board file like so...
I define boot_device in arch/arm/include/asm/arch-mx5/sys_proto.h like this?
Now, boot_dev returns the correct value in checkboard(), but returns 0 when
called from any other function.
board_early_init_f() ? we set boot_dev
checkboard() ? we print it and works fine, prints 6 (SD_BOOT)
board_init() ? prints 0 here
board_late_init() - prints 0 here
So?boot_dev is not set anywhere else except board_early_init_f(), then it
prints ok in checkboard(), but then it gets set to 0 somehow. Anyone know
why this could be? Checkboard() runs from flash and the others run from RAM.
Can that have something to do with it?
--
View this message in context: http://u-boot.10912.n7.nabble.com/porting-u-boot-MMU-question-tp194761p195488.html
Sent from the U-Boot mailing list archive at Nabble.com.
next prev parent reply other threads:[~2014-11-10 22:21 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
2014-11-10 22:21 ` DaveKucharczyk [this message]
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=1415658068088-195488.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