[meta-xilinx] boot picozed from QSPI

Richard Cagley rcagley at gmail.com
Wed Apr 13 08:17:03 PDT 2016


On Wed, Apr 13, 2016 at 2:33 AM, Nathan Rossi <nathan at nathanrossi.com> wrote:
> On Wed, Apr 13, 2016 at 9:24 AM, Richard Cagley <rcagley at gmail.com> wrote:
>> I'm on branch Jethro. I'm trying to place u-boot and my kernel in QSPI
>> and then use the emmc for the filesystem.
>>
>> There are three u-boot config parameters I'd like to define to
>> facilitate QSPI booting:
>> #define CONFIG_SYS_NO_FLASH
>> #define CONFIG_ZYNQ_QSPI
>> #define CONFIG_ENV_OFFSET       0x630000
>>
>> Is there a way to set these without making a full blown patch?
>
> I don't think there is an easy way to change those defines in u-boot
> without modifying the code.
>
> An alternative is you could use some text manipulation from an append
> recipe. E.g. using sed/awk/etc. A useful feature of the bitbake task
> setup is you can append to a task based on an override, so something
> like this would work well:
>
> do_configure_prepend_picozed-zynq7 {
> sed -i 's/#define.*CONFIG_ENV_OFFSET.*/#define CONFIG_ENV_OFFSET
> 0x630000/g' ${S}/include/common/zynq-common.h
> }
>

Ah, that's a good idea.
thanks

> Regards,
> Nathan
>
>> --
>> _______________________________________________
>> meta-xilinx mailing list
>> meta-xilinx at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-xilinx



More information about the meta-xilinx mailing list