Orange Pie Zero2 flashing and booting

1. Tools:

  • Orangepi Zero2 Allwinner H616 Development Board
  • PC
  • TF card and card reader
  • operating system image
  • SDFormatter TF card formatting tool (link: https://pan.baidu.com/s/1XgQlcTQ7xI8Im1EB8dzpbw
    extraction code: xfjs)
  • Win32Diskimager flash tool (link: https://pan.baidu.com/s/1otkgb2RjIL8UZyPtT1mAvg
    extraction code: xfjs)
  • USB to TTL, used for serial port login development board after system programming

2. Flash:

  • First use the above formatting tool SDFormatter to format the TF card into fat format.

  • Then insert the TF card into the card reader and use Win32Diskimager to burn the image.

  • Attached is the link to the image I used: https://pan.baidu.com/s/1DFJVej43-JWJVke37aW82A
    Extraction code: xfjs, you can also go to Orange Pie official download

3. Serial port login system

  • Power supply: TypeC port, which needs to be plugged into a 5V/2A or 5V/3A power adapter, especially when the development board is connected to multiple peripheral modules. Normally, a computer can be used for USB power supply, provided that multiple peripheral modules are not connected.

  • Log in:

  • Use USB to TTL module, use MobaXterm which is free and easy to use. MobaXterm link: https://pan.baidu.com/s/1s8-c5One5odvBhhpjcRpjw
    Extraction code: xfjs

  • USB to TTL connection with Orange Pie:

    a. The GND of the USB to TTL module is connected to the GND of the development board.
    b. The RX of the USB to TTL module is connected to the TX of the development board
    . c. The TX of the USB to TTL module is connected to the RX of the development board.
    Insert image description here

  • Also remember to install the driver for the USB to TTL converter tool. I use ch340.
    Insert image description here

  • Username and Password
    User: orangepi Password: orangepi
    User: root Password: orangepi
    Insert image description here

  • Network Configuration:

Command to scan surrounding WIFI hotspots nmcli dev wifi

Insert image description here

Command to access the network nmcli dev wifi connect Redmi_3DB4 password 123456789

Check the IP address ip addr show wlan0 ifconfig can also be used

Insert image description here

4.SSH login system

  • The prerequisite is to access the network and obtain the board IP address, and the system has
    an SSH server. This image comes with an SSH server, so you can log in through mobaXterm.
    Insert image description here
    Insert image description here

5. Modify the log output by the kernel

  • The official image blocks many logs. You can change the output level by modifying the orangepiEnv.txt configuration file. In this way, we can see the complete log through the serial port when booting, which is convenient for us to start and check faults sometimes.

sudo vi orangepiEnv.txt

Modify verbosity=7
debug_uart=ttyS0

Attached is the content of the original file that I modified.

verbosity=7
console=serial
disp_mode=1080p60
fb0_width=1920
fb0_height=1080
debug_uart=ttyS0
rootdev=UUID=5e4f99c9-7b9b-43cf-a44c-f4d4124cbc5a rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

Guess you like

Origin blog.csdn.net/m0_68038554/article/details/131858681