mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
- `risc-v`: rework RichNeese's boards, reduce families, move tweaks to boards - `risc-v`/`starfive`: `CONFIG_MOTORCOMM_PHY=m` for the onboard Ethernet - `risc-v`/`starfive`: use mainline kernel 6.1.y, with StarFive's rebased patches against `v6.1.5` - from https://github.com/starfive-tech/linux/commits/visionfive - contention point: `1022-soc-sifive-ccache-Add-StarFive-JH71x0-support.patch` which I merged half-assed, need review/fixes? - `risc-v`/`starfive`: update kernel config, sans changes - `risc-v`/`starfive`: switch from `grub` to `extlinux` - `risc-v`/`starfive`: new `starfive` family with their (vendor) kernel Co-authored-by: Richard Neese <r.neese@gmail.com>
35 lines
935 B
Plaintext
35 lines
935 B
Plaintext
# RISC-V Pine64 Star64
|
|
BOARD_NAME="Star64"
|
|
BOARDFAMILY="starfive2"
|
|
KERNEL_TARGET="edge"
|
|
BOOT_FDT_FILE="starfive/jh7110-star64-pine64.dtb"
|
|
SRC_EXTLINUX="yes"
|
|
SRC_CMDLINE="console=ttyS0,115200n8 console=tty0 earlycon=sbi rootflags=data=writeback stmmaceth=chain_mode:1 rw"
|
|
BOOTCONFIG=none
|
|
|
|
function post_family_tweaks__star64_uenv() {
|
|
# rpardini: uEnv.txt is needed to re-enable distroboot-like behaviour on the board's SPI u-boot
|
|
display_alert "$BOARD" "creating uEnv.txt" "info"
|
|
cat <<- UENV_SCRIPT_HEADER > "${SDCARD}/boot/uEnv.txt"
|
|
fdt_high=0xffffffffffffffff
|
|
initrd_high=0xffffffffffffffff
|
|
|
|
kernel_addr_r=0x44000000
|
|
kernel_comp_addr_r=0x90000000
|
|
kernel_comp_size=0x10000000
|
|
|
|
fdt_addr_r=0x48000000
|
|
ramdisk_addr_r=0x48100000
|
|
|
|
# Move distro to first boot to speed up booting
|
|
boot_targets=distro mmc1 dhcp
|
|
|
|
distro_bootpart=1
|
|
|
|
# Fix missing bootcmd
|
|
bootcmd=run bootcmd_distro
|
|
UENV_SCRIPT_HEADER
|
|
|
|
return 0
|
|
}
|