[U-Boot] [PATCH v3 1/3] Add README for the "Falcon" mode

Stefano Babic sbabic at denx.de
Mon Nov 19 11:37:35 CET 2012


On 19/11/2012 11:21, Andreas Bießmann wrote:
> 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 at denx.de>
> 
> despite a small change
> 
> Acked-by: Andreas Bießmann <andreas.devel at 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)?
> 

arghh..right, I missed this change - I will do in V4.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list