
pá 26. 4. 2019 v 6:59 odesílatel Philip Balister philip@balister.org napsal:
On 04/25/2019 05:30 PM, Michal Simek wrote:
On 17. 04. 19 19:46, Philip Balister wrote:
Signed-off-by: Philip Balister philip@opensdr.com
include/configs/zynq_minized.h | 54 ++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 include/configs/zynq_minized.h
diff --git a/include/configs/zynq_minized.h
b/include/configs/zynq_minized.h
new file mode 100644 index 0000000000..6d89e3da29 --- /dev/null +++ b/include/configs/zynq_minized.h @@ -0,0 +1,54 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/*
- (C) Copyright 2019 Philip Balister philip@balister.org.
- Configuration settings for the MiniZed board
- See zynq-common.h for Zynq common configs
- */
+#ifndef __CONFIG_ZYNQ_MINIZED_H +#define __CONFIG_ZYNQ_MINIZED_H
+#define CONFIG_EXTRA_ENV_SETTINGS \
- "fit_image=fitImage\0" \
- "bit_file=fpga.bit\0" \
- "load_addr=0x2000000\0" \
- "fit_size=0x800000\0" \
- "flash_off=0x100000\0" \
- "nor_flash_off=0xE2100000\0" \
- "fdt_high=0x20000000\0" \
- "initrd_high=0x20000000\0" \
- "loadbootenv_addr=0x2000000\0" \
- "fdt_addr_r=0x1f00000\0" \
- "kernel_addr_r=0x2000000\0" \
- "ramdisk_addr_r=0x3100000\0" \
- "bootenv=uEnv.txt\0" \
- "bootenv_dev=mmc\0" \
- "qspiboot=echo Copying FIT from QSPI to RAM... (Not Yet) \0" \
- "mmcboot= " \
"echo Copying fpga.bit from MMC and loading FPGA... && " \
"load mmc 0:1 ${load_addr} /boot/${bit_file} && " \
"fpga loadb 0 ${load_addr} ${filesize} && " \
"echo Copying FIT from MMC to RAM... && " \
"load mmc 0:1 ${load_addr} /boot/${fit_image} && " \
"setenv bootargs root=/dev/mmcblk1p1 rootwait && " \
"bootm ${load_addr}\0" \
- "usbboot=if usb start; then " \
"echo Copying fpga.bit from USB and loading FPGA... && " \
"load usb 0 ${load_addr} /boot/${bit_file} && " \
"fpga loadb 0 ${load_addr} ${filesize} && " \
"echo Copying FIT from USB to RAM... && " \
"load usb 0 ${load_addr} /boot/${fit_image} && " \
"setenv bootargs root=/dev/sda1 rootwait && " \
"bootm ${load_addr}; fi\0" \
- "usbrecover=if usb start; then " \
"echo Copying fpga.bit from USB and loading FPGA... && " \
"load usb 0 ${load_addr} ${bit_file} && " \
"fpga loadb 0 ${load_addr} ${filesize} && " \
"echo Copying FIT from USB to RAM... && " \
"load usb 0 ${load_addr} ${fit_image} && " \
"bootm ${load_addr}; fi\0"
+#include <configs/zynq-common.h>
+#endif /* __CONFIG_ZYNQ_MINIZED_H */
We are moving towards distro boot that's why if this can't be done via distro boot then it should be extended. sd/mmc boot mode is handled there properly that's why I have strong doubts that this is really necessary.
Are there any good distro boot examples or write ups? Basically, I am trying to make it easy for people to work with the minized. Well at least easy for me :)
Take a look at this. https://github.com/Xilinx/u-boot-xlnx/tree/master/board/xilinx/bootscripts There are also other bootscripts for other boards.
M
--- w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs