Created
May 11, 2024 08:49
-
-
Save yogo1212/2a1fa7895d189012e733e94593f939d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Can't set block device | |
# Failed to load '/boot/uEnv.txt' | |
baudrate=115200 | |
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} | |
boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootriscv64.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi | |
boot_efi_bootmgr=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr;fi | |
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf} | |
boot_prefixes=/ /boot/ | |
boot_script_dhcp=boot.scr.uimg | |
boot_scripts=boot.scr.uimg boot.scr | |
boot_syslinux_conf=extlinux/extlinux.conf | |
boot_targets=mmc0 dhcp | |
bootargs=console=ttyS0,115200 debug rootwait earlycon=sbi | |
bootcmd=run load_vf2_env;run importbootenv;run load_distro_uenv;run boot2;run distro_bootcmd | |
bootcmd_dhcp=devtype=dhcp; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00027:UNDI:003000;setenv bootp_arch 0x1b;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci; | |
bootcmd_distro=run fdt_loaddtb; run fdt_sizecheck; run set_fdt_distro; sysboot mmc ${fatbootpart} fat c0000000 ${bootdir}/${boot_syslinux_conf}; | |
bootcmd_mmc0=devnum=0; run mmc_boot | |
bootdelay=2 | |
bootdir=/boot | |
bootenv=uEnv.txt | |
bootmode=flash | |
bootpart=1:3 | |
chip_vision=UNKOWN | |
chipa_gmac_set=fdt set /soc/ethernet@16030000/ethernet-phy@0 tx_inverted_10 <0x0>;fdt set /soc/ethernet@16030000/ethernet-phy@0 tx_inverted_100 <0x0>;fdt set /soc/ethernet@16030000/ethernet-phy@0 tx_inverted_1000 <0x0>;fdt set /soc/ethernet@16030000/ethernet-phy@0 tx_delay_sel <0x9>;fdt set /soc/ethernet@16040000/ethernet-phy@1 tx_inverted_10 <0x0>;fdt set /soc/ethernet@16040000/ethernet-phy@1 tx_inverted_100 <0x0>;fdt set /soc/ethernet@16040000/ethernet-phy@1 tx_inverted_1000 <0x0>;fdt set /soc/ethernet@16040000/ethernet-phy@1 tx_delay_sel <0x9> | |
chipa_set=if test ${chip_vision} = A; then run chipa_gmac_set;fi; | |
chipa_set_linux=fdt addr ${fdt_addr_r};run visionfive2_mem_set;run chipa_set; | |
chipa_set_linux_force=fdt addr ${fdt_addr_r};run visionfive2_mem_set;run chipa_gmac_set; | |
chipa_set_uboot=fdt addr ${uboot_fdt_addr};run chipa_set; | |
chipa_set_uboot_force=fdt addr ${uboot_fdt_addr};run chipa_gmac_set; | |
devnum=1 | |
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done | |
distroloadaddr=0xb0000000 | |
efi_dtb_prefixes=/ /dtb/ /dtb/current/ | |
eth0addr=6c:cf:39:00:75:6d | |
eth1addr=6c:cf:39:00:75:6e | |
ethaddr=6c:cf:39:00:75:6d | |
ext4bootenv=ext4load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootenv} | |
fatbootpart=1:2 | |
fdt_addr_r=0x46000000 | |
fdt_high=0xffffffffffffffff | |
fdt_loaddtb=fatload mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile}; fdt addr ${fdt_addr_r}; | |
fdt_sizecheck=fatsize mmc ${fatbootpart} ${bootdir}/dtbs/${fdtfile}; | |
fdtaddr=fffc6aa0 | |
fdtcontroladdr=fffc6aa0 | |
fdtfile=starfive/starfive_visionfive2.dtb | |
importbootenv=echo Importing environment from mmc${devnum} ...; env import -t ${loadaddr} ${filesize} | |
initrd_high=0xffffffffffffffff | |
ipaddr=192.168.120.230 | |
kernel_addr_r=0x40200000 | |
load_distro_uenv=fatload mmc ${fatbootpart} ${distroloadaddr} ${bootdir}/${bootenv}; env import ${distroloadaddr} 17c; | |
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile} | |
load_vf2_env=fatload mmc ${bootpart} ${loadaddr} ${testenv} | |
loadaddr=0xa0000000 | |
loadbootenv=fatload mmc ${bootpart} ${loadaddr} ${bootenv} | |
memory_addr=40000000 | |
memory_size=200000000 | |
mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi | |
mmcbootenv=run scan_mmc_dev; setenv bootpart ${devnum}:${mmcpart}; if mmc rescan; then run loadbootenv && run importbootenv; run ext4bootenv && run importbootenv; if test -n $uenvcmd; then echo Running uenvcmd ...; run uenvcmd; fi; fi | |
mmcpart=3 | |
netmask=255.255.255.0 | |
partitions=name=loader1,start=17K,size=1M,type=${type_guid_gpt_loader1};name=loader2,size=4MB,type=${type_guid_gpt_loader2};name=system,size=-,bootable,type=${type_guid_gpt_system}; | |
preboot=run chipa_set_uboot;run mmcbootenv | |
pxefile_addr_r=0x45900000 | |
ramdisk_addr_r=0x46100000 | |
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi; | |
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done; setenv devplist | |
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;run boot_efi_bootmgr;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootriscv64.efi; then echo Found EFI removable media binary efi/boot/bootriscv64.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile | |
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi | |
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done | |
scan_mmc_dev=if test ${bootmode} = flash; then if mmc dev ${devnum}; then echo found device ${devnum};else setenv devnum 0;mmc dev 0;fi; fi; echo bootmode ${bootmode} device ${devnum}; | |
scan_sf_for_scripts=${devtype} read ${scriptaddr} ${script_offset_f} ${script_size_f}; source ${scriptaddr}; echo SCRIPT FAILED: continuing... | |
script_offset_f=0x1fff000 | |
script_size_f=0x1000 | |
scriptaddr=0x43900000 | |
serial#=STAR64V1-2310-D008E000-0000000b | |
set_fdt_distro=if test ${chip_vision} = A; then if test ${memory_size} = 200000000; then run chipa_gmac_set;run visionfive2_mem_set;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};else run chipa_gmac_set;run visionfive2_mem_set;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};fi;else run visionfive2_mem_set;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};fi; | |
sf_boot=if sf probe ${busnum}; then devtype=sf; run scan_sf_for_scripts; fi | |
stderr=serial@10000000 | |
stdin=serial@10000000 | |
stdout=serial@10000000 | |
testenv=vf2_uEnv.txt # is non-existent | |
type_guid_gpt_loader1=5B193300-FC78-40CD-8002-E86C45580B47 | |
type_guid_gpt_loader2=2E54B353-1271-4842-806F-E436D6AF6985 | |
type_guid_gpt_system=0FC63DAF-8483-4772-8E79-3D69D8477DE4 | |
uboot_fdt_addr=0xfffc6aa0 | |
ver=U-Boot 2021.10 (Jan 19 2023 - 04:09:41 +0800) | |
visionfive2_mem_set=fdt memory ${memory_addr} ${memory_size}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment