Dear Simon Schwarz, Am 17.06.2011 um 12:03 schrieb Simon Schwarz:
> Hi list, > > 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(); > > 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. > > Just before the call to nand_get_flash_type() is a call to > nand_set_defaults(chip, busw) which IMHO should be responsible to set > the function-pointers. But this function tests for non-zero value -> > garbage is non-zero. so is this uninitialized? Why don't you set this to an explicit value (e.g. zero) just before going into the nand_init() chain. Where is your 'struct nand_chip' instance located (in .bss, in .data)? regards Andreas Bießmann _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

