mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-16 04:01:31 +00:00
This patch adds StarFive JH7100 main support, including Starlight and EVB support, ported from StarFive HiFive_U-Boot REPO. The original authors are Bo Li <bo.li@starfivetech.com> JieQin Chen <Jessica.Chen@starfivetech.com> Huan Feng <huan.feng@starfivetech.com> Jack Zhu <jack.zhu@starfivetech.com> Jianlong Huang <jianlong.huang@starfivetech.com> Ke Zhu <ke.zhu@starfivetech.com> Micheal Zhu <michael.zhu@starfivetech.com> Samin Guo <samin.guo@starfivetech.com> Yanhong Wang <yanhong.wang@starfivetech.com> Yiming Li <yiming.li@starfivetech.com> Note: 1, disable BTRFS(will trigger a link error with *some* RV64 GCC) But RV64 GCC on Fedora works well with enabling BTRFS. BTRFS will select ZSTD which will trigger a link error with *some* RV64 GCC: --- riscv64-unknown-linux-gnu-ld.bfd: /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clzsi2.o): can't link double-float modules with soft-float modules riscv64-unknown-linux-gnu-ld.bfd: failed to merge target specific data of file /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clzsi2.o) riscv64-unknown-linux-gnu-ld.bfd: /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clz.o): can't link double-float modules with soft-float modules riscv64-unknown-linux-gnu-ld.bfd: failed to merge target specific data of file /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clz.o) make: *** [Makefile:1787: u-boot] Error 1 --- 2, enable OF_SEPARATE: This is required so that openSBI can add itself to /reserved-memory, and let EFI know about it. By Andreas Schwab <schwab@suse.de> 3, Set default fdtfile name By Andreas Schwab <schwab@suse.de>
60 lines
998 B
Text
60 lines
998 B
Text
if TARGET_STARFIVE_JH7100
|
|
|
|
config SYS_CPU
|
|
default "fu740"
|
|
|
|
config SYS_BOARD
|
|
default "jh7100"
|
|
|
|
config SYS_VENDOR
|
|
default "starfive"
|
|
|
|
config SYS_SOC
|
|
default "jh7100"
|
|
|
|
config SYS_CONFIG_NAME
|
|
default "starfive-jh7100"
|
|
|
|
config ENV_SIZE
|
|
default 0x2000 if ENV_IS_IN_SPI_FLASH
|
|
|
|
config ENV_OFFSET
|
|
default 0xf00000 if ENV_IS_IN_SPI_FLASH
|
|
|
|
config SYS_TEXT_BASE
|
|
default 0x80200000 if SPL
|
|
default 0x80000000 if !RISCV_SMODE
|
|
default 0x80200000 if RISCV_SMODE
|
|
|
|
config SPL_TEXT_BASE
|
|
default 0x08000000
|
|
|
|
config SPL_OPENSBI_LOAD_ADDR
|
|
default 0x80000000
|
|
|
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
|
def_bool y
|
|
select SIFIVE_FU740
|
|
imply CMD_DHCP
|
|
imply CMD_EXT2
|
|
imply CMD_EXT4
|
|
imply CMD_FAT
|
|
imply CMD_FS_GENERIC
|
|
imply CMD_GPT
|
|
imply PARTITION_TYPE_GUID
|
|
imply CMD_NET
|
|
imply CMD_PING
|
|
imply CMD_SF
|
|
imply DOS_PARTITION
|
|
imply EFI_PARTITION
|
|
imply IP_DYN
|
|
imply ISO_PARTITION
|
|
imply PHY_LIB
|
|
imply PHY_MSCC
|
|
imply SPI_FLASH
|
|
imply SPI_FLASH_ISSI
|
|
imply SYSRESET
|
|
imply SYSRESET_GPIO
|
|
imply CMD_DHCP
|
|
|
|
endif
|