[U-Boot] [PATCH 8/9][v2] armv8: ls1012a: Add support of ls1012aqds board

Alexander Graf agraf at suse.de
Thu May 12 08:25:52 CEST 2016



Am 12.05.2016 um 07:49 schrieb Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>:

>> -----Original Message-----
>> From: Alexander Graf [mailto:agraf at suse.de]
>> Sent: Thursday, May 12, 2016 3:37 AM
>> To: york sun; Prabhakar Kushwaha; u-boot at lists.denx.de
>> Cc: Pratiyush Srivastava; Abhimanyu Saini
>> Subject: Re: [U-Boot] [PATCH 8/9][v2] armv8: ls1012a: Add support of
>> ls1012aqds board
>> 
>> 
>> 
>>> On 11.05.16 17:59, York Sun wrote:
>>>> On 05/11/2016 12:30 AM, Prabhakar Kushwaha wrote:
>>>> QorIQ LS1012A Development System (LS1012AQDS) is a high-performance
>>>> development platform, with a complete debugging environment.
>>>> The LS1012AQDS board supports the QorIQ LS1012A processor and is
>>>> optimized to support the high-bandwidth DDR3L memory and a full
>>>> complement of high-speed SerDes ports.
>>>> 
>>>> Signed-off-by: Calvin Johnson <calvin.johnson at nxp.com>
>>>> Signed-off-by: Pratiyush Mohan Srivastava
>>>> <pratiyush.srivastava at nxp.com>
>>>> Signed-off-by: Abhimanyu Saini <abhimanyu.saini at nxp.com>
>>>> Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>
>>>> ---
>> 
>> [...]
>> 
>>>> +/* Initial environment variables */
>>>> +#define CONFIG_EXTRA_ENV_SETTINGS        \
>>>> +    "initrd_high=0xffffffff\0"        \
>>>> +    "verify=no\0"                \
>>>> +    "hwconfig=fsl_ddr:bank_intlv=auto\0"    \
>>>> +    "loadaddr=0x80100000\0"            \
>>>> +    "kernel_addr=0x100000\0"        \
>>>> +    "ramdisk_addr=0x800000\0"        \
>>>> +    "ramdisk_size=0x2000000\0"        \
>>>> +    "fdt_high=0xffffffffffffffff\0"        \
>>>> +    "initrd_high=0xffffffffffffffff\0"    \
>>>> +    "kernel_start=0xa00000\0"        \
>>>> +    "kernel_load=0xa0000000\0"        \
>>>> +    "kernel_size=0x2800000\0"        \
>>>> +    "console=ttyAMA0,38400n8\0"
>>>> +
>>>> +#define CONFIG_BOOTARGS        "console=ttyS0,115200
>> root=/dev/ram0 " \
>>>> +                "earlycon=uart8250,mmio,0x21c0500"
>>>> +#define CONFIG_BOOTCOMMAND        "sf probe 0:0; sf read
>> $kernel_load "\
>>>> +                    "$kernel_start $kernel_size && "\
>> 
>> Is SPI Flash the only boot method envisioned for these system?
> 
> 
> SPI flash is only boot source in LS1012A
> 
>> If not, wouldn't it make sense to make use of the distro boot framework?
> 
> Will it be possible to share more details on this. 

It's a set of script templates for the default environment that allow you to scan through a number of boot media for potential boot files.

With that in place, it's possible to boot a generic OS distribution without special requirements to adjust it specifically for your board:

  http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.distro;h=e1b72161521fa8728fde85955ef102b81e19ae22;hb=HEAD


> It can be used for other SoC having more than one boot-source

With distro boot you could for example host a generic Linux distribution on an SD card, loading its kernel and initrd from there through standardized files and paths.

Alex




More information about the U-Boot mailing list