| 1 | |
| 2 | This is the source code of the NAND Secondary Program Loader (SPL). |
| 3 | The NAND SPL itself will be first loaded by the IPL (Initial Program Loader) |
| 4 | inside the CPU, then it loads the kernel image from NAND into RAM and |
| 5 | starts the kernel from RAM. |
| 6 | |
| 7 | To build the NAND SPL, follow next steps: |
| 8 | |
| 9 | $ cd src/ |
| 10 | $ make |
| 11 | |
| 12 | And you will get a binary file called n-boot.bin. |
| 13 | |
| 14 | Before building the SPL, you should open config.h and check the |
| 15 | configuration is correct for your system. |
| 16 | |
| 17 | For JZ4730, the n-boot.bin must be less than 4KB. |
| 18 | |
| 19 | For JZ4740, the n-boot.bin must be less than 8KB. |
| 20 | |
| 21 | The platform definitions were declared in include/jz47xx_board.h. |
| 22 | Please check and modify it according to your system. |
| 23 | |