
Dear Stefano Babic,
On 19.11.2012 10:11, Stefano Babic wrote:
Simple howto to add support to a board for booting the kernel from SPL ("Falcon" mode).
Signed-off-by: Stefano Babic sbabic@denx.de
despite a small change
Acked-by: Andreas Bießmann andreas.devel@googlemail.com
Changes in v3:
- parameter initrd_addr was removed in V2 (Andreas Biessmann)
- added patch to fix help usage for spl export (Andreas Biessmann)
- Added empty lines (Otavio Salvador)
- add a more exhaustive description explaining that spl export does not save into media (Lukasz Majewski).
Changes in v2:
- spelling, language fixes (Andreas Biessman)
- rewrite some unclear sentences
- drop CONFIG_SPL_OS_BOOT_KEY
- make example with twister more exhaustive
<snip>
+Configuration +---------------------------- +CONFIG_CMD_SPL Enable the "spl export" command.
The command "spl export" is then available in U-Boot
mode
+CONFIG_SPL_OS_BOOT Activate Falcon Mode.
A board should implement the following functions:
+CONFIG_SYS_SPL_ARGS_ADDR Address in RAM where the parameters must be
copied by SPL.
In most cases, it is <start_of_ram> + 0x100
+CONFIG_SYS_NAND_SPL_KERNEL_OFFS Offset in NAND where the kernel is stored
+CONFIG_CMD_SPL_NAND_OFS Offset in NAND where the parameters area was saved.
+CONFIG_CMD_SPL_WRITE_SIZE Size of the parameters area to be copied
+Function that a board must implement +------------------------------------
+void spl_board_prepare_for_linux(void) : optional
- Called from SPL before starting the kernel
+spl_start_uboot() : required
Returns "0" if SPL starts the kernel, "1" if U-Boot
must be started.
shouldn't we reorder that thing here (move CONFIG_SPL_OS_BOOT down to the functions)?
Best regards
Andreas Bießmann