Skip to content

AE350 support SMP boot from flash

Andes u-boot 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 0 repliesNew
  2. v45 patches 0 repliesSuperseded
  3. v34 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches0 repliesSuperseded
v14 patches0 repliesSuperseded

Changes in v5 from the cover letter

- New patch

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6riscv: Introduce CONFIG_XIP to support booting from flasharch/riscv/Kconfig arch/riscv/cpu/cpu.c arch/riscv/cpu/start.S +3 more+21 -00 replies
2/6riscv: configs: Support AE350 SMP booting from flash flowconfigs/ae350_rv32_xip_defconfig configs/ae350_rv64_xip_defconfig+75 -00 replies
3/6riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabledarch/riscv/cpu/cpu.c arch/riscv/cpu/start.S+4 -00 replies
4/6riscv: configs: AE350 will use CONFIG_OF_PRIOR_STAGE when boots from ramconfigs/ae350_rv32_defconfig configs/ae350_rv64_defconfig+2 -20 replies
5/6riscv: configs: AE350 will use CONFIG_OF_SEPARATE when boots from flashboard/AndesTech/ax25-ae350/ax25-ae350.c configs/ae350_rv32_xip_defconfig configs/ae350_rv64_xip_defconfig +1 more+3 -70 replies
6/6riscv: configs: add ae350_rv[32|64]_xip_defconfig to MAINTAINERSboard/AndesTech/ax25-ae350/MAINTAINERS+2 -04 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchLukas AuerBin Meng
1/6R-b R-b
2/6R-b R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [U-Boot] [PATCH v5 0/6] AE350 support SMP boot from flash

From: Rick Chen <[email protected]>

In current RISC-V SMP flow, AE350 will encounter the the write failure problem since hart_lottery and available_harts_lock was not in ram address but in flash address when booing from flash.

This patch can help to fix the failure problem when AE350 was booting from flash by disabling this two features.

Changes in v5:
- New patch

	[PATCH v5 6/6] riscv: configs: add ae350_rv[32|64]_xip_defconfig to MAINTAINERS
	It will fix Travis failure item :
	https://travis-ci.org/rickchen36/u-boot-riscv/jobs/529605196

Changes in v4:
- Use CONFIG_OF_SEPARATE instead of CONFIG_OF_BOARD in ae350_rv32_xip_defconfig and ae350_rv64_xip_defconfig.
- Remove prior_stage_fdt_address in board_fdt_blob_setup.
- Modify CONFIG_SYS_FDT_BASE as flash address.

Changes in v3:
- Modify CONFIG_XIP descriptions
- Use #ifdef CONFIG_OF_PRIOR_STAGE to replace # if CONFIG_IS_ENABLED(OF_PRIOR_STAGE)
- Recovery some blank lines
- Add CONFIG_SF_DEFAULT_MODE=0x0 in ae350_rv32_xip_defconfig and ae350_rv64_xip_defconfig
- #ifdef CONFIG_OF_PRIOR_STAGE shall also surround SREG s1, 0(t0)
- Modify CONFIG_SYS_FDT_BASE from 0x000f0000 as 0x800f0000 in ax25-ae350.h

Changes in v2:
- Fix some typos
- Also surround the declaration of prior_stage_fdt_address in arch/riscv/cpu/cpu.c with OF_PRIOR_STAGE
- Use CONFIP_XIP to replace CONFIG_HART_LOTTERY and CONFIG_AVAILABLE_HARTS

Rick Chen (6):
riscv: Introduce CONFIG_XIP to support booting from flash
riscv: configs: Support AE350 SMP booting from flash flow
riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE
is enabled
riscv: configs: AE350 will use CONFIG_OF_PRIOR_STAGE when boots from
ram
riscv: configs: AE350 will use CONFIG_OF_SEPARATE when boots from
flash
riscv: configs: add ae350_rv[32|64]_xip_defconfig to MAINTAINERS

 arch/riscv/Kconfig                      |  7 ++++++
 arch/riscv/cpu/cpu.c                    |  4 ++++
 arch/riscv/cpu/start.S                  |  8 +++++++
 arch/riscv/include/asm/global_data.h    |  2 ++
 arch/riscv/lib/asm-offsets.c            |  2 ++
 arch/riscv/lib/smp.c                    |  2 ++
 board/AndesTech/ax25-ae350/MAINTAINERS  |  2 ++
 board/AndesTech/ax25-ae350/ax25-ae350.c |  4 ----
 configs/ae350_rv32_defconfig            |  2 +-
 configs/ae350_rv32_xip_defconfig        | 37 ++++++++++++++++++++++++++++++++
 configs/ae350_rv64_defconfig            |  2 +-
 configs/ae350_rv64_xip_defconfig        | 38 +++++++++++++++++++++++++++++++++
 include/configs/ax25-ae350.h            |  2 +-
 13 files changed, 105 insertions(+), 7 deletions(-)
 create mode 100644 configs/ae350_rv32_xip_defconfig
 create mode 100644 configs/ae350_rv64_xip_defconfig
Signature · 1 line
2.7.4