xref: /OK3568_Linux_fs/u-boot/doc/README.commands.spl (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunThe spl command is used to export a boot parameter image to RAM. Later
2*4882a593Smuzhiyunit may implement more functions connected to the SPL.
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSUBCOMMAND EXPORT
5*4882a593SmuzhiyunTo execute the command everything has to be in place as if bootm should be
6*4882a593Smuzhiyunused. (kernel image, initrd-image, fdt-image etc.)
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunexport has two subcommands:
9*4882a593Smuzhiyun	atags: exports the ATAGS
10*4882a593Smuzhiyun	fdt: exports the FDT
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunCall is:
13*4882a593Smuzhiyunspl export <fdt|atags> [kernel_addr] [initrd_addr] [fdt_addr if fdt]
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunTYPICAL CALL
17*4882a593Smuzhiyun
18*4882a593Smuzhiyunon OMAP3:
19*4882a593Smuzhiyunnandecc hw
20*4882a593Smuzhiyunnand read 0x82000000 0x280000 0x400000 	/* Read kernel image from NAND*/
21*4882a593Smuzhiyunspl export atags 			/* export ATAGS */
22*4882a593Smuzhiyunnand erase 0x680000 0x20000		/* erase - one page */
23*4882a593Smuzhiyunnand write 0x80000100 0x680000 0x20000	/* write the image - one page */
24*4882a593Smuzhiyun
25*4882a593Smuzhiyuncall with FDT:
26*4882a593Smuzhiyunnandecc hw
27*4882a593Smuzhiyunnand read 0x82000000 0x280000 0x400000 	/* Read kernel image from NAND*/
28*4882a593Smuzhiyuntftpboot 0x80000100 devkit8000.dtb /* Read fdt */
29*4882a593Smuzhiyunspl export fdt 0x82000000 - 0x80000100	/* export FDT */
30*4882a593Smuzhiyunnand erase 0x680000 0x20000		/* erase - one page */
31*4882a593Smuzhiyunnand write <adress shown by spl export> 0x680000 0x20000
32