[meta-xilinx] mainline u-boot on zedboard
gmane at reliableembeddedsystems.com
gmane at reliableembeddedsystems.com
Tue Jan 12 10:17:34 PST 2016
Hi,
On 2016-01-11 02:08, Nathan Rossi wrote:
> uEnv.txt is something that is only in u-boot-xlnx. I do not believe it
> will make an appearance as the default environment in mainline, this
> is because the FIT format is much more complete and relies less on
> magic environment configuration. In the future I was intending on
> having meta-xilinx generate fit images (using wic) which would include
> the main image components in a single binary and u-boot would just
> load the default configuration.
You mean that everything like kernel/fdt/fpga.bin/rootfs would be part
of the fit image?
How would you be able to support a setup where kernel/fdt/fpga.bin are
loaded from tftp and the rootfs from nfs with a mainline u-boot then?
This is my (and most likely not only my) preferred development setup for
all the boards I have lying around. Like this it's very easy to access
my boards remotely and change everything (except for the boot loader)
without needing manual intervention if I screw up things;)
>
> As for saveenv and general environment stored in flash support. The
> QSPI driver was only added to mainline u-boot within the past few
> months as such the surrounding setup still has to be completed.
>
> You will need to modify zynq-common.h to enable it.
>
> diff --git a/include/configs/zynq-common.h
> b/include/configs/zynq-common.h
> index 0ab6083..a844062 100644
> --- a/include/configs/zynq-common.h
> +++ b/include/configs/zynq-common.h
> @@ -199,6 +199,8 @@
> #ifndef CONFIG_ENV_IS_NOWHERE
> # ifndef CONFIG_SYS_NO_FLASH
> # define CONFIG_ENV_IS_IN_FLASH
> +# elif defined(CONFIG_ZYNQ_QSPI)
> +# define CONFIG_ENV_IS_IN_SPI_FLASH
> # elif defined(CONFIG_SYS_NO_FLASH)
> # define CONFIG_ENV_IS_NOWHERE
> # endif
>
> This will use the QSPI flash if available for storing the environment.
> After this saveenv/etc. will work. I quickly tested on a Zybo (I don't
> have a Zedboard) and it works quite well albeit slowing the boot a bit
> (~1 second or so).
I would not mind about that.
Unfortunately I am currently on the road and my Zedboard is not yet in
my lab (where you or me could access it remotely). Hopefully next week
I'll have some time and play with it.
Regards,
Robert
More information about the meta-xilinx
mailing list