From: DaveKucharczyk Date: Mon, 10 Nov 2014 15:21:08 -0700 (MST) Subject: [U-Boot] porting u-boot, few final questions In-Reply-To: <1415652312700-195451.post@n7.nabble.com> References: <1415207802518-194767.post@n7.nabble.com> <545A90D3.7030607@denx.de> <1415304221761-194989.post@n7.nabble.com> <1415632455656-195399.post@n7.nabble.com> <20141110154744.0F12438230A@gemini.denx.de> <5460FBE0.3070506@mail.bg> <1415652312700-195451.post@n7.nabble.com> Message-ID: <1415658068088-195488.post@n7.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.