From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sughosh Ganu Date: Sat, 18 Jun 2011 00:57:08 +0530 Subject: [U-Boot] OMAP3: NAND init problems In-Reply-To: References: Message-ID: <20110617192707.GA17494@Hardy> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de hi, On Fri Jun 17, 2011 at 12:03:31PM +0200, Simon Schwarz wrote: > I'am trying to get the NAND-flash to work in my OMAP3 SPL. I > essentially call these functions after the base init: > gpmc_init(); > nand_init(); I guess this is the same as nand_spl. Do you use nand_boot.c in the spl code. This file has the nand_chip object declared as a local variable on the stack, and not bss. > But in nand_init() the cpu jumps somewhere in memory. I tracked that > down to nand_get_flash_type() to the call chip->select_chip(mtd, 0); > Some digging shows that the select_chip function pointer isn't > initialized -> just garbage. If you check the nand_boot function in the nand_boot.c, it calls board_nand_init, and not nand_init, so i guess you are using a different path here. -sughosh