[meta-xilinx] boot picozed from QSPI

Nathan Rossi nathan at nathanrossi.com
Wed Apr 13 02:33:01 PDT 2016


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
}

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