[U-Boot] [PATCH 0/3] Fixes for topic-miami and topic-miamiplus board

Three patches to fix these issues: - Network support in u-boot is only useful on the topic-miamiplus board - DFU boot does not work, missing DFU_RAM config - QSPI boot did not work because of wrong kernel_size environment
Mike Looijmans (3): topic_miami_defconfig: Remove NFS and NET support topic_miami(plus) defconfig: Enable DFU RAM support configs/topic_miami.h: Correct kernel_size in default environment
configs/topic_miami_defconfig | 6 ++++-- configs/topic_miamiplus_defconfig | 1 + include/configs/topic_miami.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-)

On the miami board, ethernet is accessed via logic. To use it, one would have to program logic first and then set up the rgmii conversion block as well. Not likely to ever be used, so disable network support by default to save some space. --- configs/topic_miami_defconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configs/topic_miami_defconfig b/configs/topic_miami_defconfig index fce7daa..ddc7462 100644 --- a/configs/topic_miami_defconfig +++ b/configs/topic_miami_defconfig @@ -4,6 +4,7 @@ CONFIG_SYS_CONFIG_NAME="topic_miami" CONFIG_ARCH_ZYNQ=y CONFIG_BOOT_INIT_FILE="board/topic/zynq/zynq-topic-miami/ps7_regs.txt" CONFIG_DEFAULT_DEVICE_TREE="zynq-topic-miami" +CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTDELAY=0 CONFIG_SYS_NO_FLASH=y # CONFIG_DISPLAY_CPUINFO is not set @@ -19,12 +20,13 @@ CONFIG_CMD_USB=y CONFIG_CMD_DFU=y CONFIG_CMD_GPIO=y # CONFIG_CMD_SETEXPR is not set +# CONFIG_CMD_NET is not set +# CONFIG_CMD_NFS is not set CONFIG_CMD_CACHE=y CONFIG_CMD_EXT4=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_OF_EMBED=y -CONFIG_OF_BOARD_SETUP=y CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_ZYNQ_SDHCI=y CONFIG_MMC_SDHCI=y @@ -32,7 +34,6 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y CONFIG_SPI_FLASH_STMICRO=y # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set -# CONFIG_NETDEVICES is not set CONFIG_DEBUG_UART=y CONFIG_DEBUG_UART_ZYNQ=y CONFIG_DEBUG_UART_BASE=0xe0000000

Allow sending firmware to RAM. Without this, the DFU support was not of much use.
Signed-off-by: Mike Looijmans mike.looijmans@topic.nl --- configs/topic_miami_defconfig | 1 + configs/topic_miamiplus_defconfig | 1 + 2 files changed, 2 insertions(+)
diff --git a/configs/topic_miami_defconfig b/configs/topic_miami_defconfig index ddc7462..13453e4 100644 --- a/configs/topic_miami_defconfig +++ b/configs/topic_miami_defconfig @@ -28,6 +28,7 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_OF_EMBED=y CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_DFU_RAM=y CONFIG_ZYNQ_SDHCI=y CONFIG_MMC_SDHCI=y CONFIG_SPI_FLASH=y diff --git a/configs/topic_miamiplus_defconfig b/configs/topic_miamiplus_defconfig index dded3bb..3cc7377 100644 --- a/configs/topic_miamiplus_defconfig +++ b/configs/topic_miamiplus_defconfig @@ -26,6 +26,7 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_OF_EMBED=y CONFIG_OF_BOARD_SETUP=y CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_DFU_RAM=y CONFIG_ZYNQ_SDHCI=y CONFIG_MMC_SDHCI=y CONFIG_SPI_FLASH=y

The kernel partition in QSPI is 0x440000 large, not 0x400000. Fix this in the environment, otherwise the kernel will fail to boot if it occupies more space.
Signed-off-by: Mike Looijmans mike.looijmans@topic.nl --- include/configs/topic_miami.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/topic_miami.h b/include/configs/topic_miami.h index 3b0fa29..42cfbb0 100644 --- a/include/configs/topic_miami.h +++ b/include/configs/topic_miami.h @@ -110,7 +110,7 @@ "bootscript=autorun.scr\0" \ "loadbit_addr=0x100000\0" \ "loadbootenv_addr=0x2000000\0" \ - "kernel_size=0x400000\0" \ + "kernel_size=0x440000\0" \ "devicetree_size=0x10000\0" \ "boot_size=0xF00000\0" \ "fdt_high=0x20000000\0" \

Hi,
On 17.1.2017 09:54, Mike Looijmans wrote:
Three patches to fix these issues:
- Network support in u-boot is only useful on the topic-miamiplus board
- DFU boot does not work, missing DFU_RAM config
- QSPI boot did not work because of wrong kernel_size environment
Mike Looijmans (3): topic_miami_defconfig: Remove NFS and NET support topic_miami(plus) defconfig: Enable DFU RAM support configs/topic_miami.h: Correct kernel_size in default environment
configs/topic_miami_defconfig | 6 ++++-- configs/topic_miamiplus_defconfig | 1 + include/configs/topic_miami.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-)
can you please rebase on the latest Tom's branch?
I have problem to apply these patches. Only 3/3 has no issue.
Thanks, Michal

Three patches to fix these issues: - Network support in u-boot is only useful on the topic-miamiplus board - DFU boot does not work, missing DFU_RAM config - QSPI boot did not work because of wrong kernel_size environment
v2: Rebased on current master
Mike Looijmans (3): topic_miami_defconfig: Remove NFS and NET support topic_miami(plus) defconfig: Enable DFU RAM support configs/topic_miami.h: Correct kernel_size in default environment
configs/topic_miami_defconfig | 6 ++++-- configs/topic_miamiplus_defconfig | 1 + include/configs/topic_miami.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-)

On the miami board, ethernet is accessed via logic. To use it, one would have to program logic first and then set up the rgmii conversion block as well. Not likely to ever be used, so disable network support by default to save some space. --- configs/topic_miami_defconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configs/topic_miami_defconfig b/configs/topic_miami_defconfig index 086c147..261a530 100644 --- a/configs/topic_miami_defconfig +++ b/configs/topic_miami_defconfig @@ -5,6 +5,7 @@ CONFIG_ARCH_ZYNQ=y CONFIG_BOOT_INIT_FILE="board/topic/zynq/zynq-topic-miami/ps7_regs.txt" CONFIG_SYS_TEXT_BASE=0x4000000 CONFIG_DEFAULT_DEVICE_TREE="zynq-topic-miami" +CONFIG_OF_BOARD_SETUP=y CONFIG_BOOTDELAY=0 CONFIG_SYS_NO_FLASH=y # CONFIG_DISPLAY_CPUINFO is not set @@ -20,12 +21,13 @@ CONFIG_CMD_USB=y CONFIG_CMD_DFU=y CONFIG_CMD_GPIO=y # CONFIG_CMD_SETEXPR is not set +# CONFIG_CMD_NET is not set +# CONFIG_CMD_NFS is not set CONFIG_CMD_CACHE=y CONFIG_CMD_EXT4=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_OF_EMBED=y -CONFIG_OF_BOARD_SETUP=y CONFIG_SPL_DM_SEQ_ALIAS=y CONFIG_ZYNQ_SDHCI=y CONFIG_MMC_SDHCI=y @@ -33,7 +35,6 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y CONFIG_SPI_FLASH_STMICRO=y # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set -# CONFIG_NETDEVICES is not set CONFIG_DEBUG_UART=y CONFIG_DEBUG_UART_ZYNQ=y CONFIG_DEBUG_UART_BASE=0xe0000000

Allow sending firmware to RAM. Without this, the DFU support was not of much use.
Signed-off-by: Mike Looijmans mike.looijmans@topic.nl --- configs/topic_miami_defconfig | 1 + configs/topic_miamiplus_defconfig | 1 + 2 files changed, 2 insertions(+)
diff --git a/configs/topic_miami_defconfig b/configs/topic_miami_defconfig index 261a530..22a6cb9 100644 --- a/configs/topic_miami_defconfig +++ b/configs/topic_miami_defconfig @@ -29,6 +29,7 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_OF_EMBED=y CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_DFU_RAM=y CONFIG_ZYNQ_SDHCI=y CONFIG_MMC_SDHCI=y CONFIG_SPI_FLASH=y diff --git a/configs/topic_miamiplus_defconfig b/configs/topic_miamiplus_defconfig index a641b78..fa0212a 100644 --- a/configs/topic_miamiplus_defconfig +++ b/configs/topic_miamiplus_defconfig @@ -27,6 +27,7 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_OF_EMBED=y CONFIG_OF_BOARD_SETUP=y CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_DFU_RAM=y CONFIG_ZYNQ_SDHCI=y CONFIG_MMC_SDHCI=y CONFIG_SPI_FLASH=y

The kernel partition in QSPI is 0x440000 large, not 0x400000. Fix this in the environment, otherwise the kernel will fail to boot if it occupies more space.
Signed-off-by: Mike Looijmans mike.looijmans@topic.nl --- include/configs/topic_miami.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/topic_miami.h b/include/configs/topic_miami.h index 3b0fa29..42cfbb0 100644 --- a/include/configs/topic_miami.h +++ b/include/configs/topic_miami.h @@ -110,7 +110,7 @@ "bootscript=autorun.scr\0" \ "loadbit_addr=0x100000\0" \ "loadbootenv_addr=0x2000000\0" \ - "kernel_size=0x400000\0" \ + "kernel_size=0x440000\0" \ "devicetree_size=0x10000\0" \ "boot_size=0xF00000\0" \ "fdt_high=0x20000000\0" \

On 17.1.2017 15:28, Mike Looijmans wrote:
Three patches to fix these issues:
- Network support in u-boot is only useful on the topic-miamiplus board
- DFU boot does not work, missing DFU_RAM config
- QSPI boot did not work because of wrong kernel_size environment
v2: Rebased on current master
Mike Looijmans (3): topic_miami_defconfig: Remove NFS and NET support topic_miami(plus) defconfig: Enable DFU RAM support configs/topic_miami.h: Correct kernel_size in default environment
configs/topic_miami_defconfig | 6 ++++-- configs/topic_miamiplus_defconfig | 1 + include/configs/topic_miami.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-)
I have fixed some issues when I was applying it but it is merged now.
Thanks, Michal

On 17-01-17 15:15, Michal Simek wrote:
Hi,
On 17.1.2017 09:54, Mike Looijmans wrote:
Three patches to fix these issues:
- Network support in u-boot is only useful on the topic-miamiplus board
- DFU boot does not work, missing DFU_RAM config
- QSPI boot did not work because of wrong kernel_size environment
Mike Looijmans (3): topic_miami_defconfig: Remove NFS and NET support topic_miami(plus) defconfig: Enable DFU RAM support configs/topic_miami.h: Correct kernel_size in default environment
configs/topic_miami_defconfig | 6 ++++-- configs/topic_miamiplus_defconfig | 1 + include/configs/topic_miami.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-)
can you please rebase on the latest Tom's branch?
I have problem to apply these patches. Only 3/3 has no issue.
Indeed. I'll rebase on current master and send a v2.
Kind regards,
Mike Looijmans System Expert
TOPIC Products Materiaalweg 4, NL-5681 RJ Best Postbus 440, NL-5680 AK Best Telefoon: +31 (0) 499 33 69 79 E-mail: mike.looijmans@topicproducts.com Website: www.topicproducts.com
Please consider the environment before printing this e-mail
participants (2)
-
Michal Simek
-
Mike Looijmans