README.commands.spl 1014 B

12345678910111213141516171819202122232425262728293031
  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. SUBCOMMAND EXPORT
  4. To execute the command everything has to be in place as if bootm should be
  5. used. (kernel image, initrd-image, fdt-image etc.)
  6. export has two subcommands:
  7. atags: exports the ATAGS
  8. fdt: exports the FDT
  9. Call is:
  10. spl export <fdt|atags> [kernel_addr] [initrd_addr] [fdt_addr if fdt]
  11. TYPICAL CALL
  12. on OMAP3:
  13. nandecc hw
  14. nand read 0x82000000 0x280000 0x400000 /* Read kernel image from NAND*/
  15. spl export atags /* export ATAGS */
  16. nand erase 0x680000 0x20000 /* erase - one page */
  17. nand write 0x80000100 0x680000 0x20000 /* write the image - one page */
  18. call with FDT:
  19. nandecc hw
  20. nand read 0x82000000 0x280000 0x400000 /* Read kernel image from NAND*/
  21. tftpboot 0x80000100 devkit8000.dtb /* Read fdt */
  22. spl export fdt 0x82000000 - 0x80000100 /* export FDT */
  23. nand erase 0x680000 0x20000 /* erase - one page */
  24. nand write <adress shown by spl export> 0x680000 0x20000