mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-06 05:04:26 +00:00
2d06361a11
Enable DFU tftp support for firmware update. Fill dfu_ram_tftp variable to have command present for showing how to use it. boot FIT image has been created from below fragment. Key part is that type of image has to be firmware. Also based on experiment load property is completely ignored and base addresses are taken from dfu_alt_info variable. $ cat update_uboot.its /dts-v1/; / { description = "Automatic U-Boot update"; #address-cells = <1>; images { Image { description = "Kernel"; data = /incbin/("/tftpboot/Image"); compression = "none"; arch = "arm64"; type = "firmware"; os = "linux"; load = <0x80000>; entry = <0x80000>; hash-1 { algo = "sha1"; }; }; system.dtb { description = "DTB"; data = /incbin/("/tftpboot/system.dtb"); compression = "none"; arch = "arm64"; type = "firmware"; load = <0>; hash-1 { algo = "sha1"; }; }; }; }; $ mkimage -f update_uboot.its /tftpboot/boot When U-Boot starts get IP address and server IP. dhcp setenv serverip 192.168.0.105 And then run prepared command. run dfu_ram_tftp Signed-off-by: Michal Simek <michal.simek@xilinx.com>
149 lines
4 KiB
Text
149 lines
4 KiB
Text
CONFIG_ARM=y
|
|
CONFIG_POSITION_INDEPENDENT=y
|
|
CONFIG_ARCH_ZYNQMP=y
|
|
CONFIG_SYS_TEXT_BASE=0x8000000
|
|
CONFIG_SYS_MALLOC_F_LEN=0x8000
|
|
CONFIG_DM_GPIO=y
|
|
CONFIG_SPL=y
|
|
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
|
CONFIG_SPL_SPI_SUPPORT=y
|
|
CONFIG_ZYNQMP_USB=y
|
|
CONFIG_DEFAULT_DEVICE_TREE="zynqmp-zcu100-revC"
|
|
CONFIG_AHCI=y
|
|
CONFIG_DISTRO_DEFAULTS=y
|
|
CONFIG_FIT=y
|
|
CONFIG_FIT_VERBOSE=y
|
|
CONFIG_SPL_LOAD_FIT=y
|
|
CONFIG_SPL_LOAD_FIT_ADDRESS=0x10000000
|
|
CONFIG_USE_PREBOOT=y
|
|
# CONFIG_DISPLAY_CPUINFO is not set
|
|
CONFIG_BOARD_EARLY_INIT_F=y
|
|
CONFIG_BOARD_EARLY_INIT_R=y
|
|
CONFIG_SPL_OS_BOOT=y
|
|
CONFIG_SPL_RAM_SUPPORT=y
|
|
CONFIG_SPL_RAM_DEVICE=y
|
|
CONFIG_SPL_SPI_LOAD=y
|
|
CONFIG_SPL_ATF=y
|
|
CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y
|
|
CONFIG_CMD_BOOTMENU=y
|
|
CONFIG_CMD_THOR_DOWNLOAD=y
|
|
CONFIG_CMD_MEMTEST=y
|
|
CONFIG_SYS_ALT_MEMTEST=y
|
|
CONFIG_SYS_MEMTEST_START=0x00000000
|
|
CONFIG_SYS_MEMTEST_END=0x00001000
|
|
CONFIG_CMD_BIND=y
|
|
CONFIG_CMD_CLK=y
|
|
CONFIG_CMD_DFU=y
|
|
CONFIG_CMD_FPGA_LOADBP=y
|
|
CONFIG_CMD_FPGA_LOADP=y
|
|
CONFIG_CMD_FPGA_LOAD_SECURE=y
|
|
CONFIG_CMD_GPIO=y
|
|
CONFIG_CMD_GPT=y
|
|
CONFIG_CMD_I2C=y
|
|
CONFIG_CMD_MMC=y
|
|
CONFIG_CMD_MTD=y
|
|
CONFIG_CMD_NAND_LOCK_UNLOCK=y
|
|
CONFIG_CMD_POWEROFF=y
|
|
CONFIG_CMD_SDRAM=y
|
|
CONFIG_CMD_SPI=y
|
|
CONFIG_CMD_USB=y
|
|
CONFIG_CMD_USB_MASS_STORAGE=y
|
|
CONFIG_CMD_TFTPPUT=y
|
|
CONFIG_CMD_TIME=y
|
|
CONFIG_CMD_TIMER=y
|
|
CONFIG_CMD_EXT4_WRITE=y
|
|
CONFIG_CMD_MTDPARTS=y
|
|
CONFIG_CMD_MTDPARTS_SPREAD=y
|
|
CONFIG_CMD_MTDPARTS_SHOW_NET_SIZES=y
|
|
CONFIG_CMD_UBI=y
|
|
CONFIG_SPL_OF_CONTROL=y
|
|
CONFIG_OF_LIST="avnet-ultra96-rev1 zynqmp-a2197-revA zynqmp-e-a2197-00-revA zynqmp-g-a2197-00-revA zynqmp-m-a2197-01-revA zynqmp-m-a2197-02-revA zynqmp-m-a2197-03-revA zynqmp-p-a2197-00-revA zynqmp-zc1232-revA zynqmp-zc1254-revA zynqmp-zc1751-xm015-dc1 zynqmp-zc1751-xm016-dc2 zynqmp-zc1751-xm017-dc3 zynqmp-zc1751-xm018-dc4 zynqmp-zc1751-xm019-dc5 zynqmp-zcu100-revC zynqmp-zcu102-rev1.1 zynqmp-zcu102-rev1.0 zynqmp-zcu102-revA zynqmp-zcu102-revB zynqmp-zcu104-revA zynqmp-zcu104-revC zynqmp-zcu106-revA zynqmp-zcu111-revA zynqmp-zcu1275-revA zynqmp-zcu1275-revB zynqmp-zcu1285-revA zynqmp-zcu208-revA zynqmp-zcu216-revA zynqmp-topic-miamimp-xilinx-xdp-v1r1"
|
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
|
CONFIG_NET_RANDOM_ETHADDR=y
|
|
CONFIG_NETCONSOLE=y
|
|
CONFIG_SPL_DM=y
|
|
CONFIG_SPL_DM_SEQ_ALIAS=y
|
|
CONFIG_SCSI_AHCI=y
|
|
CONFIG_SATA_CEVA=y
|
|
CONFIG_CLK_ZYNQMP=y
|
|
CONFIG_DFU_TFTP=y
|
|
CONFIG_DFU_RAM=y
|
|
CONFIG_USB_FUNCTION_FASTBOOT=y
|
|
CONFIG_FASTBOOT_FLASH=y
|
|
CONFIG_FASTBOOT_FLASH_MMC_DEV=0
|
|
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y
|
|
CONFIG_FPGA_XILINX=y
|
|
CONFIG_FPGA_ZYNQMPPL=y
|
|
CONFIG_GPIO_HOG=y
|
|
CONFIG_XILINX_GPIO=y
|
|
CONFIG_DM_PCA953X=y
|
|
CONFIG_DM_I2C=y
|
|
CONFIG_SYS_I2C_CADENCE=y
|
|
CONFIG_I2C_MUX=y
|
|
CONFIG_I2C_MUX_PCA954x=y
|
|
CONFIG_LED=y
|
|
CONFIG_L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SPI=y
|
|
CONFIG_ZYNQMP_GQSPI=y
|
|
CONFIG_USB=y
|
|
CONFIG_USB_XHCI_HCD=y
|
|
CONFIG_USB_XHCI_DWC3=y
|
|
CONFIG_USB_DWC3=y
|
|
CONFIG_USB_DWC3_GENERIC=y
|
|
CONFIG_USB_ULPI_VIEWPORT=y
|
|
CONFIG_USB_ULPI=y
|
|
CONFIG_USB_GADGET=y
|
|
CONFIG_USB_GADGET_MANUFACTURER="Xilinx"
|
|
CONFIG_USB_GADGET_VENDOR_NUM=0x03FD
|
|
CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
|
CONFIG_USB_FUNCTION_THOR=y
|
|
CONFIG_USB_ETHER=y
|
|
CONFIG_USB_ETH_CDC=y
|
|
CONFIG_USB_HOST_ETHER=y
|
|
CONFIG_USB_ETHER_ASIX=y
|
|
CONFIG_WDT=y
|
|
CONFIG_WDT_CDNS=y
|
|
CONFIG_PANIC_HANG=y
|
|
CONFIG_SPL_GZIP=y
|
|
CONFIG_OF_LIBFDT_OVERLAY=y
|
|
CONFIG_EFI_LOADER_BOUNCE_BUFFER=y
|