Stefan Roese | 887e2ec | 2006-09-07 11:51:23 +0200 | [diff] [blame^] | 1 | ----------------------------- |
| 2 | NAND boot on PPC440 platforms |
| 3 | ----------------------------- |
| 4 | |
| 5 | This document describes the U-Boot NAND boot feature as it |
| 6 | is implemented for the AMCC Sequoia (PPC440EPx) board. |
| 7 | |
| 8 | The PPC440EP(x)/GR(x) cpu's can boot directly from NAND FLASH, |
| 9 | completely without NOR FLASH. This can be done by using the NAND |
| 10 | boot feature of the 440 NAND flash controller (NDFC). |
| 11 | |
| 12 | Here a short desciption of the different boot stages: |
| 13 | |
| 14 | a) IPL (Initial Program Loader, integrated inside CPU) |
| 15 | ------------------------------------------------------ |
| 16 | Will load first 4k from NAND (SPL) into cache and execute it from there. |
| 17 | |
| 18 | b) SPL (Secondary Program Loader) |
| 19 | --------------------------------- |
| 20 | Will load special U-Boot version (NUB) from NAND and execute it. This SPL |
| 21 | has to fit into 4kByte. It sets up the CPU and configures the SDRAM |
| 22 | controller and the NAND controller so that the special U-Boot image can be |
| 23 | loaded from NAND to SDRAM. |
| 24 | This special image is build in the directory "nand_spl". |
| 25 | |
| 26 | c) NUB (NAND U-Boot) |
| 27 | -------------------- |
| 28 | This NAND U-Boot (NUB) is a special U-Boot version which can be started |
| 29 | from RAM. Therefore it mustn't (re-)configure the SDRAM controller. |
| 30 | |
| 31 | On 440EPx the SPL is copied to internal SRAM before the NAND controller |
| 32 | is set up. While still running from cache, I experienced problems accessing |
| 33 | the NAND controller. |
| 34 | |
| 35 | |
| 36 | September 07 2006, Stefan Roese <sr@denx.de> |