mirror of
https://github.com/Opvolger/Opvolger.git
synced 2025-04-19 03:24:58 -04:00
updates
This commit is contained in:
parent
4be2f49e3a
commit
b279ddff39
3 changed files with 78 additions and 1 deletions
|
@ -4,6 +4,22 @@
|
|||
# https://doc-en.rvspace.org/VisionFive2/SWTRM/VisionFive2_SW_TRM/compiling_the_u-boot%20-%20vf2.html
|
||||
# https://docs.banana-pi.org/en/BPI-F3/GettingStarted_BPI-F3#_install_image_to_emmc_2
|
||||
|
||||
Kernel 6.6+ needs firmware
|
||||
- https://gitee.com/bianbu-linux/buildroot-ext/blob/bl-v1.0.y/board/spacemit/k1/target_overlay/lib/firmware/esos.elf
|
||||
- https://dev.to/luzero/bringing-up-bpi-f3-part-3-101h
|
||||
|
||||
|
||||
```boot.cmd
|
||||
usb start
|
||||
ramdisk_addr_r=0x21000000
|
||||
fdt_addr_r=0x31000000
|
||||
load usb 0:1 ${kernel_addr_r} /6.6/Image.gz
|
||||
load usb 0:1 ${fdt_addr_r} /6.6/m1-x_milkv-jupiter.dtb
|
||||
load mmc 0:5 ${ramdisk_addr_r} /initrd.img-6.6.36
|
||||
setenv bootargs 'console=ttyS0,115200 root=/dev/mmcblk0p7 rootfstype=ext4 rootwait rw earlycon clk_ignore_unused loglevel=7 radeon.pcie_gen2=0 swiotlb=131072 stmmaceth=chain_mode:1 selinux=0'
|
||||
booti $kernel_addr_r $ramdisk_addr_r:$filesize $fdt_addr_r
|
||||
```
|
||||
|
||||
U-Boot
|
||||
|
||||
```bash
|
||||
|
@ -48,7 +64,6 @@ sudo dd if=opensbi/build/platform/generic/firmware/fw_dynamic.bin of=/dev/sdb3
|
|||
sudo dd if=uboot-2022.10/u-boot.itb of=/dev/sdb4
|
||||
```
|
||||
|
||||
|
||||
My ATI Radeon 5000 GPU won't work on the Milk-V Jupiter.
|
||||
|
||||
I have a working openSUSE Tumbleweed 20240825 on my StarFive VisionFive 2 and an ATI Redeon 5000. (Custom kernel).
|
||||
|
|
6
starfiveVisionFive2/make-boot-payload/.gitignore
vendored
Normal file
6
starfiveVisionFive2/make-boot-payload/.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
u-boot/**
|
||||
opensbi/**
|
||||
tools/**
|
||||
*.bin
|
||||
*.out
|
||||
*.itb
|
56
starfiveVisionFive2/make-boot-payload/Makefile
Normal file
56
starfiveVisionFive2/make-boot-payload/Makefile
Normal file
|
@ -0,0 +1,56 @@
|
|||
# Build U-Boot for StarFive VisionFive 2
|
||||
# inspirated on https://github.com/xypron/visionfive2-u-boot-build/blob/main/Makefile
|
||||
# and https://github.com/u-boot/u-boot/blob/master/doc/board/starfive/visionfive2.rst
|
||||
.POSIX:
|
||||
|
||||
TAG_U_BOOT=v2024.07
|
||||
TAG_OBENSBI=v1.5.1
|
||||
|
||||
NPROC=${shell nproc}
|
||||
MK_ARCH="${shell uname -m}"
|
||||
ifeq ("riscv64", $(MK_ARCH))
|
||||
undefine CROSS_COMPILE
|
||||
else
|
||||
export CROSS_COMPILE=riscv64-linux-gnu-
|
||||
endif
|
||||
undefine MK_ARCH
|
||||
|
||||
all:
|
||||
make u-boot.bin
|
||||
|
||||
opensbi-git:
|
||||
cd opensbi && git reset --hard $(TAG_OBENSBI) || git clone -v https://github.com/riscv-software-src/opensbi.git
|
||||
|
||||
u-boot-git:
|
||||
cd u-boot && git reset --hard $(TAG_U_BOOT) || git clone -v https://github.com/u-boot/u-boot.git
|
||||
|
||||
u-boot.bin: u-boot-git fw_payload.bin
|
||||
echo $(CROSS_COMPILE)
|
||||
cd u-boot && make distclean
|
||||
cd u-boot && git reset --hard $(TAG_U_BOOT)
|
||||
cd u-boot && make starfive_visionfive2_defconfig
|
||||
cd u-boot && make OPENSBI=../opensbi/build/platform/generic/firmware/fw_payload.bin CONFIG_DEFAULT_FDT_FILE=starfive/jh7110-starfive-visionfive-2-v1.3b.dtb -j $(NPROC)
|
||||
cp u-boot/spl/u-boot-spl.bin.normal.out .
|
||||
cp u-boot/u-boot.itb .
|
||||
|
||||
fw_payload.bin: opensbi-git
|
||||
cd opensbi && make clean
|
||||
cd opensbi && git reset --hard $(TAG_OBENSBI)
|
||||
cd opensbi && make -j $(NPROC) \
|
||||
PLATFORM=generic \
|
||||
FW_OPTIONS=0 \
|
||||
FW_TEXT_START=0x40000000
|
||||
|
||||
clean:
|
||||
rm -f u-boot-spl.bin.normal.out u-boot.itb
|
||||
|
||||
|
||||
# sudo sgdisk --clear \
|
||||
# --set-alignment=2 \
|
||||
# --new=1:4096:8191 --change-name=1:spl --typecode=1:2E54B353-1271-4842-806F-E436D6AF6985\
|
||||
# --new=2:8192:16383 --change-name=2:uboot --typecode=2:BC13C2FF-59E6-4262-A352-B275FD6F7172 \
|
||||
# --new=3:16384:1654784 --change-name=3:system --typecode=3:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 \
|
||||
# /dev/sdb
|
||||
|
||||
# sudo dd if=u-boot-spl.bin.normal.out of=/dev/sdb1
|
||||
# sudo dd if=u-boot.itb of=/dev/sdb2
|
Loading…
Add table
Reference in a new issue