Simon Schwarz | af775a0 | 2012-03-15 04:01:34 +0000 | [diff] [blame] | 1 | The spl command is used to export a boot parameter image to RAM. Later |
| 2 | it may implement more functions connected to the SPL. |
| 3 | |
| 4 | SUBCOMMAND EXPORT |
| 5 | To execute the command everything has to be in place as if bootm should be |
| 6 | used. (kernel image, initrd-image, fdt-image etc.) |
| 7 | |
| 8 | export has two subcommands: |
| 9 | atags: exports the ATAGS |
| 10 | fdt: exports the FDT |
| 11 | |
| 12 | Call is: |
Robert P. J. Day | 8c60f92 | 2016-05-04 04:47:31 -0400 | [diff] [blame] | 13 | spl export <fdt|atags> [kernel_addr] [initrd_addr] [fdt_addr if fdt] |
Simon Schwarz | af775a0 | 2012-03-15 04:01:34 +0000 | [diff] [blame] | 14 | |
| 15 | |
| 16 | TYPICAL CALL |
| 17 | |
| 18 | on OMAP3: |
| 19 | nandecc hw |
Wolfgang Denk | 62fb2b4 | 2021-09-27 17:42:39 +0200 | [diff] [blame] | 20 | nand read 0x82000000 0x280000 0x400000 /* Read kernel image from NAND*/ |
| 21 | spl export atags /* export ATAGS */ |
Simon Schwarz | af775a0 | 2012-03-15 04:01:34 +0000 | [diff] [blame] | 22 | nand erase 0x680000 0x20000 /* erase - one page */ |
| 23 | nand write 0x80000100 0x680000 0x20000 /* write the image - one page */ |
| 24 | |
| 25 | call with FDT: |
| 26 | nandecc hw |
Wolfgang Denk | 62fb2b4 | 2021-09-27 17:42:39 +0200 | [diff] [blame] | 27 | nand read 0x82000000 0x280000 0x400000 /* Read kernel image from NAND*/ |
Simon Schwarz | af775a0 | 2012-03-15 04:01:34 +0000 | [diff] [blame] | 28 | tftpboot 0x80000100 devkit8000.dtb /* Read fdt */ |
| 29 | spl export fdt 0x82000000 - 0x80000100 /* export FDT */ |
| 30 | nand erase 0x680000 0x20000 /* erase - one page */ |
| 31 | nand write <adress shown by spl export> 0x680000 0x20000 |