blob: ecfd3ca9ee589a0f76a15bc580391c2d79c8cf68 [file] [log] [blame]
Simon Schwarz1648a372012-03-15 04:01:34 +00001The spl command is used to export a boot parameter image to RAM. Later
2it may implement more functions connected to the SPL.
3
4SUBCOMMAND EXPORT
5To execute the command everything has to be in place as if bootm should be
6used. (kernel image, initrd-image, fdt-image etc.)
7
8export has two subcommands:
9 atags: exports the ATAGS
10 fdt: exports the FDT
11
12Call is:
Robert P. J. Day1cc0a9f2016-05-04 04:47:31 -040013spl export <fdt|atags> [kernel_addr] [initrd_addr] [fdt_addr if fdt]
Simon Schwarz1648a372012-03-15 04:01:34 +000014
15
16TYPICAL CALL
17
18on OMAP3:
19nandecc hw
Wolfgang Denk0cf207e2021-09-27 17:42:39 +020020nand read 0x82000000 0x280000 0x400000 /* Read kernel image from NAND*/
21spl export atags /* export ATAGS */
Simon Schwarz1648a372012-03-15 04:01:34 +000022nand erase 0x680000 0x20000 /* erase - one page */
23nand write 0x80000100 0x680000 0x20000 /* write the image - one page */
24
25call with FDT:
26nandecc hw
Wolfgang Denk0cf207e2021-09-27 17:42:39 +020027nand read 0x82000000 0x280000 0x400000 /* Read kernel image from NAND*/
Simon Schwarz1648a372012-03-15 04:01:34 +000028tftpboot 0x80000100 devkit8000.dtb /* Read fdt */
29spl export fdt 0x82000000 - 0x80000100 /* export FDT */
30nand erase 0x680000 0x20000 /* erase - one page */
31nand write <adress shown by spl export> 0x680000 0x20000