Skip to content

Commit

Permalink
[board] support load bl31 for t527
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Feb 2, 2024
1 parent 2605f32 commit d772af8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions board/lt527x/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ set(APP_COMMON_SOURCE
${CMAKE_CURRENT_SOURCE_DIR}/start.S
${CMAKE_CURRENT_SOURCE_DIR}/board.c
${CMAKE_CURRENT_SOURCE_DIR}/eabi_compat.c
${CMAKE_CURRENT_SOURCE_DIR}/payloads/init_dram_bin.c
)

add_subdirectory(hello_world)
Expand Down
1 change: 0 additions & 1 deletion board/lt527x/init_dram/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

add_syterkit_app(init_dram
main.c
${CMAKE_CURRENT_SOURCE_DIR}/../payloads/init_dram_bin.c
)
4 changes: 2 additions & 2 deletions board/lt527x/syter_boot/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <sys-sdhci.h>
#include <uart.h>

#define CONFIG_BL31_FILENAME "monitor.fex"
#define CONFIG_BL31_FILENAME "bl31.bin"
#define CONFIG_BL31_LOAD_ADDR (0x48000000)

#define CONFIG_DTB_FILENAME "sunxi.fex"
Expand All @@ -46,7 +46,7 @@

#define CONFIG_SDMMC_SPEED_TEST_SIZE 1024// (unit: 512B sectors)

#define CONFIG_DEFAULT_BOOTDELAY 3
#define CONFIG_DEFAULT_BOOTDELAY 0

#define CONFIG_HEAP_BASE (0x40800000)
#define CONFIG_HEAP_SIZE (16 * 1024 * 1024)
Expand Down
10 changes: 5 additions & 5 deletions cmake/board/lt527x.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(CONFIG_CHIP_DCACHE True)
add_definitions(-DCONFIG_CHIP_SUN55IW3 -DCONFIG_CHIP_DCACHE)

set(CONFIG_USE_DRAM_PAYLOAD True)
set(CONFIG_USE_PREBUILT_DRAM_PAYLOAD True)
set(CONFIG_USE_PREBUILT_DRAM_PAYLOAD False)
set(CONFIG_USE_DRAM_PAYLOAD_SOURCE_PATH "${CMAKE_SOURCE_DIR}/payloads/sun55iw3_libdram")
set(CONFIG_USE_DRAM_PAYLOAD_BIN_PATH "${CONFIG_USE_DRAM_PAYLOAD_SOURCE_PATH}/output/ddr.bin")
set(CONFIG_USE_DRAM_PAYLOAD_FILE_PATH "${CMAKE_SOURCE_DIR}/board/lt527x/payloads/init_dram_bin.c")
Expand All @@ -30,11 +30,11 @@ set(CMAKE_COMMON_FLAGS "-nostdlib -Os -mcpu=cortex-a55")
set(CMAKE_C_DISABLE_WARN_FLAGS "-Wno-int-to-pointer-cast -Wno-implicit-function-declaration -Wno-discarded-qualifiers")
set(CMAKE_CXX_DISABLE_WARN_FLAGS "-Wno-int-to-pointer-cast")

set(ARCH_BIN_START_ADDRESS "0x00044000")
set(ARCH_BIN_SRAM_LENGTH "96K")
set(ARCH_BIN_START_ADDRESS "0x00020000")
set(ARCH_BIN_SRAM_LENGTH "128K")

set(ARCH_FEL_START_ADDRESS "0x0004c000")
set(ARCH_FEL_SRAM_LENGTH "80K")
set(ARCH_FEL_START_ADDRESS "0x00020000")
set(ARCH_FEL_SRAM_LENGTH "128K")

if(NOT CONFIG_USE_PREBUILT_DRAM_PAYLOAD)
# Create an external project and build it
Expand Down

0 comments on commit d772af8

Please sign in to comment.