[U-Boot] Adding NAND Boot to uboot

Hello,
I am relatively new to uboot development and was wondering if someone can give me some pointers. I am trying to configure uboot to bootup from NAND on CS0 on an MPC8536 platform. I am trying to disable the FLASH CFI driver (No NOR flash on the board ) and add support for the FSM NAND flash controller on the 8536. Thus far I have written the NAND flash driver but I am having some issues disabling the NOR driver. From by board.h file I tried just commenting out the lines:
CFG_FLASH_CFI_DRIVER CFG_FLASH_CFI
and added the line:
CFG_NO_FLASH
but I get compile errors. How do I tell uboot to disable the FLASH CFI driver, for instance if I want to load uboot into ram and run from ram?
Fahd Abidi Sr. Field Application Engineer Ultimate Solutions, Inc. ================================================================ Your Single Source for Professional Development Tools and Embedded Solutions Ph: 978-455-3383 x255 Fx: 978-926-3091 Email: fabidi@ultsol.com Visit: http://www.ultsol.com http://www.ultsol.com/

On Wed, Dec 10, 2008 at 11:37:10AM -0500, Fahd Abidi wrote:
I am relatively new to uboot development and was wondering if someone can give me some pointers. I am trying to configure uboot to bootup from NAND on CS0 on an MPC8536 platform.
This isn't yet supported, at least in mainline (the BSP u-boot may have support; I'm not sure).
I am trying to disable the FLASH CFI driver (No NOR flash on the board ) and add support for the FSM NAND flash controller on the 8536. Thus far I have written the NAND flash driver
There's already a NAND driver, in drivers/mtd/nand/fsl_elbc_nand.c and nand_spl/nand_boot_fsl_elbc.c. See the MPC8536DS config for how to enable it.
but I am having some issues disabling the NOR driver. From by board.h file I tried just commenting out the lines:
CFG_FLASH_CFI_DRIVER CFG_FLASH_CFI
and added the line:
CFG_NO_FLASH
but I get compile errors.
What errors?
-Scott
participants (2)
-
Fahd Abidi
-
Scott Wood