Orangpi image burning

Orange Pi Image Burning

Preparation

Windows system or ubuntu system
If it is a windows system, you need to prepare Win32DiskImager, xshell and diskgenues

mirror download

1: Download from Orange Pi official website:

Orange Pi mirror download address

2: Download from Armbian official website:

Mine is Orange Pi R1, Portal: Orange Pi R1 armbian
Portal for other models: armbian Official Site

Image burning

1. Image burning under windows system

1: Unzip the downloaded compressed package to get the .img image file

The image I downloaded is: Armbian_5.90_Orangepi-r1_Ubuntu_bionic_next_4.19.57.7z
and decompressed to get:
insert image description here

2: Clear the partition of the SD card to burn the image file

The new SD card has not been used for any operation (such as storing files), so it does not need to be formatted.

For the used SD card, you need to clear the partition first. You can install the diskgenues software and use this software to clear the partition.

After clearing the partition, remember to click the upper left corner to save the changes, otherwise diskgenues will not do any operation on sd

Then create a partition and format it, all the space is allocated to one partition, and the image will be automatically repartitioned.
insert image description here
insert image description here
insert image description here

2: burn image

To open Win32DiskImager,
first click the folder icon, select the img file we just extracted, and then pay attention to the devices behind, select the sd drive letter, do not choose the wrong one, otherwise it may cause data loss on your other hard drives, then click write to write the image to the sd card After the writing is completed, insert the Raspberry Pi, and power on to boot into
the
insert image description here
system

2. Image burning under ubuntu system

1: One-pass operation to mount the sd card to ubuntu

See my other blog for specific operations, so I won’t go into details here. Portal: Make Raspberry Pi/Orange Pi (orangepi) SD card backup image_Raspberry Pi System Backup and Restore

2: Unzip the file you just downloaded

sudo apt-get install p7zip-full
sudo p7zip -d Armbian_5.90_Orangepi-r1_Ubuntu_bionic_next_4.19.57.7z

insert image description here
insert image description here

2:Copying the image to the SD card

Check the mount point of the sd card

df -h

insert image description here

sudo dd bs=4M if=Armbian_5.90_Orangepi-r1_Ubuntu_bionic_next_4.19.57.img of=/dev/sdc conv=fsync

insert image description here
Wait for burning to complete

3. Configure the system network card to facilitate ssh login

1. A network cable to play with orangepi

After the burning is completed, put it back into the Orange Pi and you can start it, but don’t worry, I don’t have a screen, so I can only play it through a network cable. First use
df -h to check the mount point
insert image description here
cd into the system partition in the memory card

cd /media/fang/fcdb2453-1bc9-4fd4-a467-883c6d0b6064/etc/network/
sudo cp interfaces interfaces.save
sudo vim interfaces

insert image description here
Add the following lines at the end:

auto eth0
iface eth0 inet static
address 192.168.2.111
netmask 255.255.255.0
#gateway 192.168.2.1

auto eth1
iface eth1 inet static
address 192.168.0.111
netmask 255.255.255.0
#gateway 192.168.0.1

Then ESC and then wq to save and exit, insert the sd card into the Orange Pi, and connect the orangepi to the computer network port through a network cable
insert image description here

! !


insert image description here
insert image description here
insert image description here
insert image description here


insert image description here
insert image description here

insert image description here

ssh [email protected]
insert image description here insert image description here

insert image description here

insert image description here
insert image description here

2. A data cable to play with orangepi

Or you can play it through the data cable.
In fact, you use the USB Gadget driver to simulate the USB-OTG as a wired network card. The settings required before are relatively cumbersome. Fortunately, the new version of the Orangepi kernel does not require additional patches and can be enabled directly. In addition, the virtual network card is basically the same as the wired network card. Unlike the serial port, only one terminal can be opened. Methods as below:

# 修改boot分区里的config.txt文件,在新一行增加如下内容
dtoverlay=dwc2
# 修改boot分区里的cmdline.txt文件,在rootwait后面增加如下内容,注意每个参数之间空格分开,且都是在同一行
modules-load=dwc2,g_ether

Create a text file in the root directory of the boot partition, then rename it to ssh, pay attention to remove the .txt suffix, and then you can start ssh login.

Connect one end of the MicroUSB data cable to the orangepi USB interface and the other end to the computer. After a while, you will hear a "click" sound. At this time, the computer will install the relevant driver and display a new network card. We use remote management software such as Xshell or Putty, fill in orangepi.local for the server (host), port 22, user name root, password orangepi, and then use SSH to log in and control orangepi.

Guess you like

Origin blog.csdn.net/Running_free/article/details/103031212