Jump to content

lampra

Members
  • Posts

    169
  • Joined

  • Last visited

Posts posted by lampra

  1.  

    12 hours ago, balbes150 said:

    Do you have a model with 4 GB of RAM ?

    Yes

    12 hours ago, balbes150 said:

    Can you show the output of the "free -m"

    It seems that the image is no loger accecible after copying the ssh keys to it and reboot/poweroff 2-3 times.

    Yesterday I was able to login from the pc with the copied keys but not from any other pc with password. Today I am not able to login at all anymore.

    Though, I saw yesterday that it was reporting 7,9 GB after login which should be ~4 GB

  2. 12 hours ago, balbes150 said:

    Show the UART log of the system EDGE startup "as is"

    It seems that I was suffering of a bad sd card. I used a different card and also the EDGE image boots fine

    Spoiler
    U-Boot SPL 2021.10 (Dec 25 2022 - 20:59:18 +0800)
    DDR version: dc2e84f0.
    Trying to boot from SPI
    
    OpenSBI v1.0
       ____                    _____ ____ _____
      / __ \                  / ____|  _ \_   _|
     | |  | |_ __   ___ _ __ | (___ | |_) || |
     | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
     | |__| | |_) |  __/ | | |____) | |_) || |_
      \____/| .__/ \___|_| |_|_____/|____/_____|
            | |
            |_|
    
    Platform Name             : StarFive VisionFive V2
    Platform Features         : medeleg
    Platform HART Count       : 5
    Platform IPI Device       : aclint-mswi
    Platform Timer Device     : aclint-mtimer @ 4000000Hz
    Platform Console Device   : uart8250
    Platform HSM Device       : ---
    Platform Reboot Device    : ---
    Platform Shutdown Device  : ---
    Firmware Base             : 0x40000000
    Firmware Size             : 360 KB
    Runtime SBI Version       : 0.3
    
    Domain0 Name              : root
    Domain0 Boot HART         : 1
    Domain0 HARTs             : 0*,1*,2*,3*,4*
    Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
    Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
    Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
    Domain0 Next Address      : 0x0000000040200000
    Domain0 Next Arg1         : 0x0000000042200000
    Domain0 Next Mode         : S-mode
    Domain0 SysReset          : yes
    
    Boot HART ID              : 1
    Boot HART Domain          : root
    Boot HART Priv Version    : v1.11
    Boot HART Base ISA        : rv64imafdcbx
    Boot HART ISA Extensions  : none
    Boot HART PMP Count       : 8
    Boot HART PMP Granularity : 4096
    Boot HART PMP Address Bits: 34
    Boot HART MHPM Count      : 2
    Boot HART MIDELEG         : 0x0000000000000222
    Boot HART MEDELEG         : 0x000000000000b109
    
    
    U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800), Build: jenkins-github_visionfive2-4
    
    CPU:   rv64imacu
    Model: StarFive VisionFive V2
    DRAM:  4 GiB
    MMC:   sdio0@16010000: 0, sdio1@16020000: 1
    Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
    OK
    StarFive EEPROM format v2
    
    --------EEPROM INFO--------
    Vendor : StarFive Technology Co., Ltd.
    Product full SN: VF7110B1-2253-D004E000-40000126
    data version: 0x2
    PCB revision: 0xb2
    BOM revision: A
    Ethernet MAC0 address: 6c:cf:39:00:2c:99
    Ethernet MAC1 address: 6c:cf:39:00:2c:9a
    --------EEPROM INFO--------
    
    In:    serial@10000000
    Out:   serial@10000000
    Err:   serial@10000000
    Model: StarFive VisionFive V2
    Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
    switch to partitions #0, OK
    mmc1 is current device
    found device 1
    bootmode flash device 1
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    58 bytes read in 5 ms (10.7 KiB/s)
    Importing environment from mmc1 ...
    ** Invalid partition 2 **
    Couldn't find partition mmc 1:2
    Can't set block device
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    Hit any key to stop autoboot:  0 
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    Importing environment from mmc1 ...
    ** Invalid partition 2 **
    Couldn't find partition mmc 1:2
    Can't set block device
    ## Warning: defaulting to text format
    ## Error: "boot2" not defined
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found /boot/extlinux/extlinux.conf
    Retrieving file: /boot/extlinux/extlinux.conf
    333 bytes read in 7 ms (45.9 KiB/s)
    1:	Armbian
    Retrieving file: /boot/uInitrd
    19211267 bytes read in 862 ms (21.3 MiB/s)
    Retrieving file: /boot/Image
    8804604 bytes read in 399 ms (21 MiB/s)
    append: root=UUID=8a0f434c-861d-4d66-9c7b-81586159a09b console=ttyS0,115200n8 earlycon=sbi rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consoles
    Retrieving file: /boot/dtb/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
    35521 bytes read in 12 ms (2.8 MiB/s)
       Uncompressing Kernel Image
    ## Loading init Ramdisk from Legacy Image at 46100000 ...
       Image Name:   uInitrd
       Image Type:   RISC-V Linux RAMDisk Image (gzip compressed)
       Data Size:    19211203 Bytes = 18.3 MiB
       Load Address: 00000000
       Entry Point:  00000000
       Verifying Checksum ... OK
    ## Flattened Device Tree blob at 46000000
       Booting using the fdt blob at 0x46000000
       Using Device Tree in place at 0000000046000000, end 000000004600bac0
    
    Starting kernel ...

     

     

  3. 4 hours ago, balbes150 said:

    show the UART startup log after that

    I did the update of uboot.

    Here is the output of the update:

    Spoiler
    U-Boot SPL 2021.10 (Dec 25 2022 - 20:59:18 +0800)
    DDR version: dc2e84f0.
    Trying to boot from SPI
    
    OpenSBI v1.0
       ____                    _____ ____ _____
      / __ \                  / ____|  _ \_   _|
     | |  | |_ __   ___ _ __ | (___ | |_) || |
     | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
     | |__| | |_) |  __/ | | |____) | |_) || |_
      \____/| .__/ \___|_| |_|_____/|____/_____|
            | |
            |_|
    
    Platform Name             : StarFive VisionFive V2
    Platform Features         : medeleg
    Platform HART Count       : 5
    Platform IPI Device       : aclint-mswi
    Platform Timer Device     : aclint-mtimer @ 4000000Hz
    Platform Console Device   : uart8250
    Platform HSM Device       : ---
    Platform Reboot Device    : ---
    Platform Shutdown Device  : ---
    Firmware Base             : 0x40000000
    Firmware Size             : 360 KB
    Runtime SBI Version       : 0.3
    
    Domain0 Name              : root
    Domain0 Boot HART         : 1
    Domain0 HARTs             : 0*,1*,2*,3*,4*
    Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
    Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
    Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
    Domain0 Next Address      : 0x0000000040200000
    Domain0 Next Arg1         : 0x0000000042200000
    Domain0 Next Mode         : S-mode
    Domain0 SysReset          : yes
    
    Boot HART ID              : 1
    Boot HART Domain          : root
    Boot HART Priv Version    : v1.11
    Boot HART Base ISA        : rv64imafdcbx
    Boot HART ISA Extensions  : none
    Boot HART PMP Count       : 8
    Boot HART PMP Granularity : 4096
    Boot HART PMP Address Bits: 34
    Boot HART MHPM Count      : 2
    Boot HART MIDELEG         : 0x0000000000000222
    Boot HART MEDELEG         : 0x000000000000b109
    
    
    U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800), Build: jenkins-github_visionfive2-4
    
    CPU:   rv64imacu
    Model: StarFive VisionFive V2
    DRAM:  4 GiB
    MMC:   sdio0@16010000: 0, sdio1@16020000: 1
    Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
    *** Warning - bad CRC, using default environment
    
    StarFive EEPROM format v2
    
    --------EEPROM INFO--------
    Vendor : StarFive Technology Co., Ltd.
    Product full SN: VF7110B1-XXXX-XXXXXXXX-XXXXXXXXX
    data version: 0x2
    PCB revision: 0xb2
    BOM revision: A
    Ethernet MAC0 address: 6c:XX:XX:XX:XX:XX
    Ethernet MAC1 address: 6c:XX:XX:XX:XX:XX
    --------EEPROM INFO--------
    
    In:    serial@10000000
    Out:   serial@10000000
    Err:   serial@10000000
    Model: StarFive VisionFive V2
    Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
    switch to partitions #0, OK
    mmc1 is current device
    found device 1
    bootmode flash device 1
    230 bytes read in 3 ms (74.2 KiB/s)
    Importing environment from mmc1 ...
    Can't set block device
    Can't set block device
    Can't set block device
    Running uenvcmd ...
    Saving Environment to SPIFlash... Erasing SPI flash...Writing to SPI flash...done
    OK
    Hit any key to stop autoboot:  0 
    Failed to load 'vf2_uEnv.txt'
    Importing environment from mmc1 ...
    Failed to load '/boot/uEnv.txt'
    ## Warning: defaulting to text format
    ## Error: "boot2" not defined
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    libfdt fdt_check_header(): FDT_ERR_BADMAGIC
    Card did not respond to voltage select! : -110
    No EFI system partition
    ethernet@16030000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    phy_startup() failed: -110FAILED: -110ethernet@16040000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    phy_startup() failed: -110FAILED: -110ethernet@16030000 Waiting for PHY auto negotiation to complete....... done
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    DHCP client bound to address 192.168.10.42 (4270 ms)
    *** Warning: no boot file name; using 'C0A80A2A.img'
    Using ethernet@16030000 device
    TFTP from server 192.168.10.1; our IP address is 192.168.10.42
    Filename 'C0A80A2A.img'.
    Load address: 0x40200000
    Loading: *
    TFTP server died; starting again

     

     

    I then tested Armbian_23.06_Starfive2_sid_edge_6.5.0.img which is not booting

    Spoiler
    ==================================
    U-Boot SPL 2021.10 (Dec 25 2022 - 20:59:18 +0800)
    DDR version: dc2e84f0.
    Trying to boot from SPI
    
    OpenSBI v1.0
       ____                    _____ ____ _____
      / __ \                  / ____|  _ \_   _|
     | |  | |_ __   ___ _ __ | (___ | |_) || |
     | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
     | |__| | |_) |  __/ | | |____) | |_) || |_
      \____/| .__/ \___|_| |_|_____/|____/_____|
            | |
            |_|
    
    Platform Name             : StarFive VisionFive V2
    Platform Features         : medeleg
    Platform HART Count       : 5
    Platform IPI Device       : aclint-mswi
    Platform Timer Device     : aclint-mtimer @ 4000000Hz
    Platform Console Device   : uart8250
    Platform HSM Device       : ---
    Platform Reboot Device    : ---
    Platform Shutdown Device  : ---
    Firmware Base             : 0x40000000
    Firmware Size             : 360 KB
    Runtime SBI Version       : 0.3
    
    Domain0 Name              : root
    Domain0 Boot HART         : 1
    Domain0 HARTs             : 0*,1*,2*,3*,4*
    Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
    Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
    Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
    Domain0 Next Address      : 0x0000000040200000
    Domain0 Next Arg1         : 0x0000000042200000
    Domain0 Next Mode         : S-mode
    Domain0 SysReset          : yes
    
    Boot HART ID              : 1
    Boot HART Domain          : root
    Boot HART Priv Version    : v1.11
    Boot HART Base ISA        : rv64imafdcbx
    Boot HART ISA Extensions  : none
    Boot HART PMP Count       : 8
    Boot HART PMP Granularity : 4096
    Boot HART PMP Address Bits: 34
    Boot HART MHPM Count      : 2
    Boot HART MIDELEG         : 0x0000000000000222
    Boot HART MEDELEG         : 0x000000000000b109
    
    
    U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800), Build: jenkins-github_visionfive2-4
    
    CPU:   rv64imacu
    Model: StarFive VisionFive V2
    DRAM:  4 GiB
    MMC:   sdio0@16010000: 0, sdio1@16020000: 1
    Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
    OK
    StarFive EEPROM format v2
    
    --------EEPROM INFO--------
    Vendor : StarFive Technology Co., Ltd.
    Product full SN: VF7110B1-2253-D004E000-40000126
    data version: 0x2
    PCB revision: 0xb2
    BOM revision: A
    Ethernet MAC0 address: 6c:cf:39:00:2c:99
    Ethernet MAC1 address: 6c:cf:39:00:2c:9a
    --------EEPROM INFO--------
    
    In:    serial@10000000
    Out:   serial@10000000
    Err:   serial@10000000
    Model: StarFive VisionFive V2
    Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
    switch to partitions #0, OK
    mmc1 is current device
    found device 1
    bootmode flash device 1
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    ** Invalid partition 1 **
    Couldn't find partition mmc 1:1
    Can't set block device
    ** Invalid partition 2 **
    Couldn't find partition mmc 1:2
    Can't set block device
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    Hit any key to stop autoboot:  0 
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    Importing environment from mmc1 ...
    ** Invalid partition 2 **
    Couldn't find partition mmc 1:2
    Can't set block device
    ## Warning: defaulting to text format
    ## Error: "boot2" not defined
    switch to partitions #0, OK
    mmc1 is current device
    ** Invalid partition 1 **
    Couldn't find partition mmc 1:1
    ethernet@16030000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    phy_startup() failed: -110FAILED: -110ethernet@16040000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    phy_startup() failed: -110FAILED: -110ethernet@16030000 Waiting for PHY auto negotiation to complete.. done
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    DHCP client bound to address 192.168.10.42 (3766 ms)
    *** Warning: no boot file name; using 'C0A80A2A.img'
    Using ethernet@16030000 device
    TFTP from server 192.168.10.1; our IP address is 192.168.10.42
    Filename 'C0A80A2A.img'.
    Load address: 0x40200000
    Loading: *
    TFTP server died; starting again
    StarFive # printenv
    b_part=1 2 3
    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=B
    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:2c:99
    eth1addr=6c:cf:39:00:2c:9a
    ethact=ethernet@16030000
    ethaddr=6c:cf:39:00:2c:99
    ext4bootenv=for b_p in ${b_part}; do if ext4load mmc ${devnum}:${b_p} ${loadaddr} ${bootdir}/${bootenv}; then run importbootenv; fi; done;
    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=fffc7080
    fdtcontroladdr=fffc7080
    fdtfile=starfive/jh7110-pine64-star64.dtb
    fileaddr=a0000000
    filesize=e6
    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=100000000
    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#=VF7110B1-2253-D004E000-40000126
    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;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};fi;else if test ${memory_size} = 200000000; then run visionfive2_mem_set;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};fi;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
    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=0xfffc7080
    ver=U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800)
    visionfive2_mem_set=fdt memory ${memory_addr} ${memory_size};
    Environment size: 7372/
    65532 bytes
    StarFive # 

     

     

    The legacy image Armbian_23.06_Starfive2_sid_legacy_5.15.115.img boots fine

    https://paste.armbian.com/yajunefiza

    Spoiler
    U-Boot SPL 2021.10 (Dec 25 2022 - 20:59:18 +0800)
    DDR version: dc2e84f0.
    Trying to boot from SPI
    
    OpenSBI v1.0
       ____                    _____ ____ _____
      / __ \                  / ____|  _ \_   _|
     | |  | |_ __   ___ _ __ | (___ | |_) || |
     | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
     | |__| | |_) |  __/ | | |____) | |_) || |_
      \____/| .__/ \___|_| |_|_____/|____/_____|
            | |
            |_|
    
    Platform Name             : StarFive VisionFive V2
    Platform Features         : medeleg
    Platform HART Count       : 5
    Platform IPI Device       : aclint-mswi
    Platform Timer Device     : aclint-mtimer @ 4000000Hz
    Platform Console Device   : uart8250
    Platform HSM Device       : ---
    Platform Reboot Device    : ---
    Platform Shutdown Device  : ---
    Firmware Base             : 0x40000000
    Firmware Size             : 360 KB
    Runtime SBI Version       : 0.3
    
    Domain0 Name              : root
    Domain0 Boot HART         : 1
    Domain0 HARTs             : 0*,1*,2*,3*,4*
    Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
    Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
    Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
    Domain0 Next Address      : 0x0000000040200000
    Domain0 Next Arg1         : 0x0000000042200000
    Domain0 Next Mode         : S-mode
    Domain0 SysReset          : yes
    
    Boot HART ID              : 1
    Boot HART Domain          : root
    Boot HART Priv Version    : v1.11
    Boot HART Base ISA        : rv64imafdcbx
    Boot HART ISA Extensions  : none
    Boot HART PMP Count       : 8
    Boot HART PMP Granularity : 4096
    Boot HART PMP Address Bits: 34
    Boot HART MHPM Count      : 2
    Boot HART MIDELEG         : 0x0000000000000222
    Boot HART MEDELEG         : 0x000000000000b109
    
    
    U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800), Build: jenkins-github_visionfive2-4
    
    CPU:   rv64imacu
    Model: StarFive VisionFive V2
    DRAM:  4 GiB
    MMC:   sdio0@16010000: 0, sdio1@16020000: 1
    Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
    OK
    StarFive EEPROM format v2
    
    --------EEPROM INFO--------
    Vendor : StarFive Technology Co., Ltd.
    Product full SN: VF7110B1-2253-D004E000-40000126
    data version: 0x2
    PCB revision: 0xb2
    BOM revision: A
    Ethernet MAC0 address: 6c:cf:39:00:2c:99
    Ethernet MAC1 address: 6c:cf:39:00:2c:9a
    --------EEPROM INFO--------
    
    In:    serial@10000000
    Out:   serial@10000000
    Err:   serial@10000000
    Model: StarFive VisionFive V2
    Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
    switch to partitions #0, OK
    mmc1 is current device
    found device 1
    bootmode flash device 1
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    58 bytes read in 5 ms (10.7 KiB/s)
    Importing environment from mmc1 ...
    ** Invalid partition 2 **
    Couldn't find partition mmc 1:2
    Can't set block device
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    Hit any key to stop autoboot:  0 
    
    StarFive # printenv
    b_part=1 2 3
    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=B
    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:2c:99
    eth1addr=6c:cf:39:00:2c:9a
    ethaddr=6c:cf:39:00:2c:99
    ext4bootenv=for b_p in ${b_part}; do if ext4load mmc ${devnum}:${b_p} ${loadaddr} ${bootdir}/${bootenv}; then run importbootenv; fi; done;
    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=fffc7080
    fdtcontroladdr=fffc7080
    fdtfile=starfive/jh7110-pine64-star64.dtb
    fileaddr=a0000000
    filesize=3a
    importbootenv=echo Importing environment from mmc${devnum} ...; env import -t ${loadaddr} ${filesize}
    initrd_high=0xffffffffffffffff
    ipaddr=192.168.120.230
    kernel_addr_r=0x40200000
    kernel_comp_addr_r=0x90000000
    kernel_comp_size=0x10000000
    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=100000000
    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#=VF7110B1-2253-D004E000-40000126
    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;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};fi;else if test ${memory_size} = 200000000; then run visionfive2_mem_set;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};fi;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
    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=0xfffc7080
    ver=U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800)
    visionfive2_mem_set=fdt memory ${memory_addr} ${memory_size};
    
    Environment size: 7405/65532 bytes
    StarFive # 

     

     

  4. On 8/18/2023 at 2:16 PM, balbes150 said:

    if you have a UART, show the output at startup without updating. If your system starts without installing an update, then it is not necessary to use it. If it does not start, perform an update.

    @balbes150

    VisionFive 2 ver 1.3b bootloader v 3.0.4.

    I tested the two images below, and they do not boot.

    Let me know if you need any other output from uboot before I update.

     

    Armbian_23.06_Starfive2_sid_edge_6.5.0.img

    Spoiler
    U-Boot SPL 2021.10 (Dec 25 2022 - 20:59:18 +0800)
    DDR version: dc2e84f0.
    Trying to boot from SPI
    
    OpenSBI v1.0
       ____                    _____ ____ _____
      / __ \                  / ____|  _ \_   _|
     | |  | |_ __   ___ _ __ | (___ | |_) || |
     | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
     | |__| | |_) |  __/ | | |____) | |_) || |_
      \____/| .__/ \___|_| |_|_____/|____/_____|
            | |
            |_|
    
    Platform Name             : StarFive VisionFive V2
    Platform Features         : medeleg
    Platform HART Count       : 5
    Platform IPI Device       : aclint-mswi
    Platform Timer Device     : aclint-mtimer @ 4000000Hz
    Platform Console Device   : uart8250
    Platform HSM Device       : ---
    Platform Reboot Device    : ---
    Platform Shutdown Device  : ---
    Firmware Base             : 0x40000000
    Firmware Size             : 360 KB
    Runtime SBI Version       : 0.3
    
    Domain0 Name              : root
    Domain0 Boot HART         : 3
    Domain0 HARTs             : 0*,1*,2*,3*,4*
    Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
    Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
    Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
    Domain0 Next Address      : 0x0000000040200000
    Domain0 Next Arg1         : 0x0000000042200000
    Domain0 Next Mode         : S-mode
    Domain0 SysReset          : yes
    
    Boot HART ID              : 3
    Boot HART Domain          : root
    Boot HART Priv Version    : v1.11
    Boot HART Base ISA        : rv64imafdcbx
    Boot HART ISA Extensions  : none
    Boot HART PMP Count       : 8
    Boot HART PMP Granularity : 4096
    Boot HART PMP Address Bits: 34
    Boot HART MHPM Count      : 2
    Boot HART MIDELEG         : 0x0000000000000222
    Boot HART MEDELEG         : 0x000000000000b109
    
    
    U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800), Build: jenkins-github_visionfive2-4
    
    CPU:   rv64imacu
    Model: StarFive VisionFive V2
    DRAM:  4 GiB
    MMC:   sdio0@16010000: 0, sdio1@16020000: 1
    Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
    *** Warning - bad CRC, using default environment
    
    StarFive EEPROM format v2
    
    --------EEPROM INFO--------
    Vendor : StarFive Technology Co., Ltd.
    Product full SN: VF7110B1-2253-D004E000-40000126
    data version: 0x2
    PCB revision: 0xb2
    BOM revision: A
    Ethernet MAC0 address: 6c:cf:39:00:2c:99
    Ethernet MAC1 address: 6c:cf:39:00:2c:9a
    --------EEPROM INFO--------
    
    In:    serial@10000000
    Out:   serial@10000000
    Err:   serial@10000000
    Model: StarFive VisionFive V2
    Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
    switch to partitions #0, OK
    mmc1 is current device
    found device 1
    bootmode flash device 1
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    Hit any key to stop autoboot:  0 
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    Importing environment from mmc1 ...
    ## Warning: Input data exceeds 1048576 bytes - truncated
    ## Info: input data size = 1048578 = 0x100002
    ** Invalid partition 2 **
    Couldn't find partition mmc 1:2
    Can't set block device
    ## Warning: defaulting to text format
    ## Error: "boot2" not defined
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found /boot/extlinux/extlinux.conf
    Retrieving file: /boot/extlinux/extlinux.conf
    333 bytes read in 3 ms (108.4 KiB/s)
    1:	Armbian
    Retrieving file: /boot/uInitrd
    19211267 bytes read in 810 ms (22.6 MiB/s)
    Retrieving file: /boot/Image
    8804604 bytes read in 373 ms (22.5 MiB/s)
    append: root=UUID=8a0f434c-861d-4d66-9c7b-81586159a09b console=ttyS0,115200n8 earlycon=sbi rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consoles
    Retrieving file: /boot/dtb/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
    35521 bytes read in 7 ms (4.8 MiB/s)
    kernel_comp_addr_r or kernel_comp_size is not provided!
    SCRIPT FAILED: continuing...
    Card did not respond to voltage select! : -110
    No EFI system partition
    ethernet@16030000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    phy_startup() failed: -110FAILED: -110ethernet@16040000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    phy_startup() failed: -110FAILED: -110BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    DHCP client bound to address 192.168.10.42 (4271 ms)
    Using ethernet@16030000 device
    TFTP from server 192.168.10.1; our IP address is 192.168.10.42
    Filename '/boot/extlinux/extlinux.conf'.
    Load address: 0x40200000
    Loading: *
    TFTP server died; starting again
    StarFive # printenv
    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=root=UUID=8a0f434c-861d-4d66-9c7b-81586159a09b console=ttyS0,115200n8 earlycon=sbi rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consoles
    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
    bootfile=/boot/extlinux/extlinux.conf
    bootfstype=ext4
    bootmode=flash
    bootpart=1:3
    chip_vision=B
    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:2c:99
    eth1addr=6c:cf:39:00:2c:9a
    ethact=ethernet@16030000
    ethaddr=6c:cf:39:00:2c:99
    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=46000000
    fdtcontroladdr=fffc7080
    fdtfile=starfive/starfive_visionfive2.dtb
    fileaddr=46000000
    filesize=8ac1
    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=100000000
    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#=VF7110B1-2253-D004E000-40000126
    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;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};fi;else if test ${memory_size} = 200000000; then run visionfive2_mem_set;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};fi;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
    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=0xfffc7080
    ver=U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800)
    visionfive2_mem_set=fdt memory ${memory_addr} ${memory_size};
    
    Environment size: 7498/65532 bytes
    StarFive # 

     

     

    Armbian_23.06_Starfive2_sid_legacy_5.15.115.img

    Spoiler
    Boot SPL 2021.10 (Dec 25 2022 - 20:59:18 +0800)
    DDR version: dc2e84f0.
    Trying to boot from SPI
    
    OpenSBI v1.0
       ____                    _____ ____ _____
      / __ \                  / ____|  _ \_   _|
     | |  | |_ __   ___ _ __ | (___ | |_) || |
     | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
     | |__| | |_) |  __/ | | |____) | |_) || |_
      \____/| .__/ \___|_| |_|_____/|____/_____|
            | |
            |_|
    
    Platform Name             : StarFive VisionFive V2
    Platform Features         : medeleg
    Platform HART Count       : 5
    Platform IPI Device       : aclint-mswi
    Platform Timer Device     : aclint-mtimer @ 4000000Hz
    Platform Console Device   : uart8250
    Platform HSM Device       : ---
    Platform Reboot Device    : ---
    Platform Shutdown Device  : ---
    Firmware Base             : 0x40000000
    Firmware Size             : 360 KB
    Runtime SBI Version       : 0.3
    
    Domain0 Name              : root
    Domain0 Boot HART         : 1
    Domain0 HARTs             : 0*,1*,2*,3*,4*
    Domain0 Region00          : 0x0000000002000000-0x000000000200ffff (I)
    Domain0 Region01          : 0x0000000040000000-0x000000004007ffff ()
    Domain0 Region02          : 0x0000000000000000-0xffffffffffffffff (R,W,X)
    Domain0 Next Address      : 0x0000000040200000
    Domain0 Next Arg1         : 0x0000000042200000
    Domain0 Next Mode         : S-mode
    Domain0 SysReset          : yes
    
    Boot HART ID              : 1
    Boot HART Domain          : root
    Boot HART Priv Version    : v1.11
    Boot HART Base ISA        : rv64imafdcbx
    Boot HART ISA Extensions  : none
    Boot HART PMP Count       : 8
    Boot HART PMP Granularity : 4096
    Boot HART PMP Address Bits: 34
    Boot HART MHPM Count      : 2
    Boot HART MIDELEG         : 0x0000000000000222
    Boot HART MEDELEG         : 0x000000000000b109
    
    
    U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800), Build: jenkins-github_visionfive2-4
    
    CPU:   rv64imacu
    Model: StarFive VisionFive V2
    DRAM:  4 GiB
    MMC:   sdio0@16010000: 0, sdio1@16020000: 1
    Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
    *** Warning - bad CRC, using default environment
    
    StarFive EEPROM format v2
    
    --------EEPROM INFO--------
    Vendor : StarFive Technology Co., Ltd.
    Product full SN: VF7110B1-2253-D004E000-40000126
    data version: 0x2
    PCB revision: 0xb2
    BOM revision: A
    Ethernet MAC0 address: 6c:cf:39:00:2c:99
    Ethernet MAC1 address: 6c:cf:39:00:2c:9a
    --------EEPROM INFO--------
    
    In:    serial@10000000
    Out:   serial@10000000
    Err:   serial@10000000
    Model: StarFive VisionFive V2
    Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
    switch to partitions #0, OK
    mmc1 is current device
    found device 1
    bootmode flash device 1
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    Hit any key to stop autoboot:  0 
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    Importing environment from mmc1 ...
    ## Warning: Input data exceeds 1048576 bytes - truncated
    ## Info: input data size = 1048578 = 0x100002
    ** Invalid partition 2 **
    Couldn't find partition mmc 1:2
    Can't set block device
    ## Warning: defaulting to text format
    ## Error: "boot2" not defined
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found /boot/extlinux/extlinux.conf
    Retrieving file: /boot/extlinux/extlinux.conf
    332 bytes read in 4 ms (81.1 KiB/s)
    1:	Armbian
    Retrieving file: /boot/uInitrd
    24114599 bytes read in 1085 ms (21.2 MiB/s)
    Retrieving file: /boot/Image
    8085096 bytes read in 365 ms (21.1 MiB/s)
    append: root=UUID=942a6a1e-96d9-4567-a0bf-b50f21eef831 console=ttyS0,115200n8 console=tty0 earlycon=sbi rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consoles
    Retrieving file: /boot/dtb/starfive/jh7110-visionfive-v2.dtb
    49983 bytes read in 8 ms (6 MiB/s)
    kernel_comp_addr_r or kernel_comp_size is not provided!
    SCRIPT FAILED: continuing...
    Card did not respond to voltage select! : -110
    No EFI system partition
    ethernet@16030000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    phy_startup() failed: -110FAILED: -110ethernet@16040000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    phy_startup() failed: -110FAILED: -110BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    DHCP client bound to address 192.168.10.42 (1763 ms)
    Using ethernet@16030000 device
    TFTP from server 192.168.10.1; our IP address is 192.168.10.42
    Filename '/boot/extlinux/extlinux.conf'.
    Load address: 0x40200000
    Loading: *
    TFTP server died; starting again
    StarFive # 
    StarFive # boot
    ** Invalid partition 3 **
    Couldn't find partition mmc 1:3
    Can't set block device
    Importing environment from mmc1 ...
    ** Invalid partition 2 **
    Couldn't find partition mmc 1:2
    Can't set block device
    ## Warning: defaulting to text format
    ## Error: "boot2" not defined
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    Found /boot/extlinux/extlinux.conf
    Retrieving file: /boot/extlinux/extlinux.conf
    332 bytes read in 4 ms (81.1 KiB/s)
    1:	Armbian
    Retrieving file: /boot/uInitrd
    24114599 bytes read in 1086 ms (21.2 MiB/s)
    Retrieving file: /boot/Image
    8085096 bytes read in 364 ms (21.2 MiB/s)
    append: root=UUID=942a6a1e-96d9-4567-a0bf-b50f21eef831 console=ttyS0,115200n8 console=tty0 earlycon=sbi rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consoles
    Retrieving file: /boot/dtb/starfive/jh7110-visionfive-v2.dtb
    49983 bytes read in 8 ms (6 MiB/s)
    kernel_comp_addr_r or kernel_comp_size is not provided!
    SCRIPT FAILED: continuing...
    BOOTP broadcast 1
    DHCP client bound to address 192.168.10.42 (7 ms)
    Using ethernet@16030000 device
    TFTP from server 192.168.10.1; our IP address is 192.168.10.42
    Filename 'boot.scr.uimg'.
    Load address: 0x43900000
    Loading: *
    TFTP server died; starting again
    BOOTP broadcast 1
    DHCP client bound to address 192.168.10.42 (7 ms)
    Using ethernet@16030000 device
    TFTP from server 192.168.10.1; our IP address is 192.168.10.42
    Filename 'boot.scr.uimg'.
    Load address: 0x40200000
    Loading: *
    TFTP server died; starting again
    StarFive # printenv
    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=root=UUID=942a6a1e-96d9-4567-a0bf-b50f21eef831 console=ttyS0,115200n8 console=tty0 earlycon=sbi rw no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 splash plymouth.ignore-serial-consoles
    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
    bootfile=boot.scr.uimg
    bootfstype=ext4
    bootmode=flash
    bootpart=1:3
    chip_vision=B
    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:2c:99
    eth1addr=6c:cf:39:00:2c:9a
    ethact=ethernet@16030000
    ethaddr=6c:cf:39:00:2c:99
    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=46000000
    fdtcontroladdr=fffc7080
    fdtfile=starfive/starfive_visionfive2.dtb
    fileaddr=46000000
    filesize=c33f
    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=100000000
    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#=VF7110B1-2253-D004E000-40000126
    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;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};fi;else if test ${memory_size} = 200000000; then run visionfive2_mem_set;fatwrite mmc ${fatbootpart} ${fdt_addr_r} ${bootdir}/dtbs/${fdtfile} ${filesize};fi;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
    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=0xfffc7080
    ver=U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800)
    visionfive2_mem_set=fdt memory ${memory_addr} ${memory_size};
    
    Environment size: 7496/65532 bytes
    StarFive # 

     

     

     

  5. On 6/28/2022 at 7:59 AM, gyrex said:

    Does this mean that I'll have to build the kernel and compile from scratch?

    I am not sure as I do not follow the development at the moment.

    Before going for a full build, for a non-productive machine, I would start by editing the dts (there is an armbian-config tool for that).

    Then the driver might exist in the full firmware package (check it in the github rerpo).

    If not, then I would try to build the driver, or I would go for a full build as mentioned by Werner

  6. I am posting at this topic as per the download page instructions. If a new topic is needed, please split

     

    I want to try Armbian on an old Intel Atom Z3735F (Mele PCG03) with burned emmc, and I am wondering if the Generic Intel / AMD image will boot from usb. Z3735F uses 32b efi with 64b processor. With my previous tests, I was able to install only debian from the net image. The other images (installers) as well as Ubuntu installers could not identify & install 32bit efi.

     

    PS: It seems that (probably due to burned emmc) POST is failing at boot (even if I disable emmc from BIOS), so I can't boot without a monitor attached (though I could boot headless windows10 with the emmc). Any hint or pointers how to deal with this in order to boot linux without monitor?

  7. My understanding from a user point of view is that if one needs to boot from media other than sd card, she/he needs to back up the uboot environment and then flash a firmware according to CPU and DDR (analog to the named trusted firmware supplementary files provided by openwrt here).

    SD card images (with different .dtb for v5 and v7)  will probably have boot parameters set in boot.scr which a user may override.

     

    So I would propose, with the permission of @Pali, to include his two previous posts in the download page. Then, firmware files would be the only thing missing.

     

    As I see (please correct me if I am wrong) the default environment supports distroboot.

    Just one question; what is preventing armbian from being able to support distroboot (other than lack of resources) so that a user does not have to tweak the uboot environment in order to boot from sata?

  8. 15 hours ago, ManoftheSea said:

    I believe the instructions for u-boot haven't changed.  Do you have a specific suggestion?

    Here are the instructions from the download page (https://www.armbian.com/espressobin/):

    "Version 7 EspressoBIN (identifiable by sata power connection instead of molex) has ethernet ports in the reverse order.  This can be fixed by passing the espressobin-v7.dtb in the boot script at /boot/boot.cmd"


    Does this still hold, or there is one uboot now that may identify different versions of the board and memory?

    "manual flashing to latest u-boot is mandatory! Download the right boot flash for your board: 512,1G,2G, number of RAM chips (if your board is older than a few months it has two RAM chips – one on each side of the PCB opposite to each other. Recent 1GB models have only one chip at the bottom) and appropriate memory speeds. You can obtain numbers from the current boot prompt. Also choose right memory: ddr3 are for V3-V5 EspressoBin’s (i.e. V5, 1g-2cs) and ddr4 images are for v7 EspressoBin’s. Insert ‘ddr3’ or ‘ddr4’ into the bubt command string. Copy this flash-image-ddr3/ddr4-MEM-RAM_CHIPS-CPU_DDR.bin to your FAT formatted USB key, plug it into USB3.0 port and execute from u-boot prompt:"


    Is this mandatory now? If yes, the download page does not redirect correctly

    "In case you experience instability reflash boot loader with lower CPU speed values!"


    Probably not relevant anymore?

    "Updated u-boot needs new default boot environment and new boot script (overwrite the one on your /boot media – needed only if you upgrade from < v5.59). This is what you need to copy/paste into u-boot prompt:"


    Probably not relevant anymore?


    The rest seem to be still relevant.
     

    "Boot priority with this script is: 1. USB, 2. SATA, 3. SD card, 4. eMMC
    If you manage to crash your SPI flash, get appropriate files and proceed with one of the rescue options: SATA, UART,
    UART console is broken on legacy kernel 4.14.y
    if you need USB2 port on your mPCI slot (for Bluetooth or 4G/LTE modems) you need to move both jumpers near to the USB2 port. Position for this function is: away from the port."

     

  9. 1 minute ago, cw73 said:

    However I am rather scared to remove and re-install the BSP. I do not see it in the repository any more (despite apt-cache search returns something).

    You could revisit this after the upgrade to Bullseye if needed.

    I had to do this after an upgrade on a running system. Turns out nothing scary happened. 

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines