昉·星光 2连接到网络

本节提供将昉·星光 2连接到网络和进入U-Boot终端的步骤。

  1. 将USB转串口转换器的跳线连接到昉·星光 240-Pin GPIO Header的Debug pin上。下图为示例:

    1. 连接昉·星光 240-Pin GPIO Header的Debug Pin
  2. 将串口波特率设置为115200 bps。
  3. 昉·星光 2接上网线和电源线。
  4. 启动昉·星光 2,您将看到以下启动信息:
    U-Boot SPL 2021.10 (Oct 31 2022 - 12:11:37 +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 (Oct 31 2022 - 12:11:37 +0800), Build: 
     jenkins-VF2_515_Branch_SDK_Release-10
    CPU: rv64imacu
    Model: StarFive VisionFive V2
    DRAM: 8 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: VF7110A1-2243-D008E000-00000001
    data version: 0x2
    PCB revision: 0xa1
    BOM revision: A
    Ethernet MAC0 address: 6c:cf:39:00:14:5b
    Ethernet MAC1 address: 6c:cf:39:00:14:5c
    --------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
    Failed to load 'uEnv.txt'
    Can't set block device
    Hit any key to stop autoboot: 0 
    StarFive #
  5. 按任意键停止,进入U-Boot终端。