Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rockpi4/install"

(Step 3: Boot device into maskrom mode)
(Installation)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
  
== Installation ==
 
Choose and install an operation system on your ROCK Pi 4. To appropriately follow this installation guide you will need to:
 
* Choose an installation method
 
* Download necessary files
 
* Choose host machine
 
* Follow flashing instructions
 
  
=== Methods of Installation ===
 
In most cases, you will be presented with two options when installing your new operating system onto your ROCK Pi 4:
 
* eMMC USB upgrade Method
 
** The firmware will be downloaded from the USB to the ROCK Pi 4 on board eMMC storage
 
* Running on SD Card Method
 
** The firmware will be written on a SD Card  that will lately be inserted  onto ROCK Pi 4.
 
Each Method has its own benefits and requires different levels of experience.
 
  
==== eMMC USB upgrade Method ====
+
ROCK Pi supports different storage media for installation, they have different IO read/write speed. Choose one to install:
[http://opensource.rock-chips.com/wiki_Rockusb Rockusb] is a custom USB protocal from Rockchip supported by ROCK Pi 4 and can be used for firmware installation(USB to eMMC). This method applies to advanced users who are most familiar with command line tools or modified/custom source code and need to download such updates to the board for testing/execution.
+
  
===== This method requires the following hardware: =====
+
* [[rockpi4/install/microSD | Install on microSD card]]
* ROCK Pi 4 board with power supply
+
* [[rockpi4/install/eMMC | Install on eMMC module]]
* Host machine (Linux/Mac)
+
* [[rockpi4/install/USB | Install on USB drive]]
* USB Type-A to Type-A cable
+
* [[rockpi4/install/NVME | Install on M.2 NVME SSD]]
* USB serial to TTL cable(not required to perform flash)
+
* USB Mouse and/or keyboard (not required to perform flash)
+
* HDMI Monitor with full size HDMI cable (not required to perform flash)
+
* Ethernet cable (not required to perform flash)
+
 
+
===== Go to the [[rockpi4/downloads | Downloads]] to get your system =====
+
 
+
===== Choose host machine =====
+
 
+
* Linux
+
====== Step 1: Make sure rkdeveloptool is set up on host computer ======
+
 
+
To build rkdeveloptool on a debain based Linux distribution, follow the instruction below:
+
 
+
Install build dependecy:
+
  sudo apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf
+
 
+
Clone the source code and build:
+
  git clone https://github.com/rockchip-linux/rkdeveloptool
+
  cd rkdeveloptool
+
  autoreconf -i
+
  ./configure
+
  make
+
 
+
Now you have rkdeveloptool executable at the current directory.
+
  sudo cp rkdeveloptool /usr/local/bin/
+
 
+
====== Step 2: [[rockpi4/downloads | Downloads]] all necessary images ======
+
For ROCK Pi 4, there are two version of system images, Android and Debian. The system image names have the specified words, like android and debian. And all the system images names are marked with xxx_gpt.img.
+
 
+
====== Step 3: Boot device into maskrom mode ======
+
 
+
1. Insert eMMC Module into eMMC to uSD card converter board. Insert the converter board into uSD Card Reader, which connects to host
+
Linux OS.
+
 
+
2. Use the command to erase the eMMC device
+
  $ sudo dd if=/dev/zero of=/dev/sdx bs=1M count=100
+
 
+
3. Insert the eMMC onto the socket on board.
+
 
+
4. Power on ROCK Pi 4.
+
 
+
5. Plug the ROCK Pi 4 to Linux Desktop with USB type A to type A cable. On the host PC, command, lsusb, should show the following VID/PID if the board is in maskrom mode: Bus 001 Device 003: ID 2207:330c
+
 
+
====== Step 4: Flash images onto ROCK Pi 4 eMMC and reboot ======
+
 
+
When you choose the format of xxx-gpt.img, you should follow the steps:
+
  $ rkdeveloptool db rk3399_loader_xxx.bin
+
  $ rkdeveloptool wl 0 xxx_gpt..img
+
  $ rkdeveloptool rd
+
 
+
Now you reboot the new image on eMMC.
+
 
+
* Mac
+
 
+
==== Running on SD Card Method ====
+
 
+
Running on SD card method allows you to place a microSD card into a ROCK Pi 4 to automatically boot and run.
+
 
+
===== This method required the following hardware =====
+
* ROCK Pi 4 board with power supply
+
* Host machine (Linux/Mac/Windows)
+
* MicroSD card with 8GB or larger of storage
+
* USB Mouse and/or keyboard
+
* HDMI Monitor with full size HDMI cable
+
* Ethernet cable
+
 
+
===== Go to the [[rockpi4/downloads | Downloads]] to get your system =====
+
 
+
===== Choose host machine =====
+
 
+
The host machine type includes Linux, Mac, Windows. But this solution doesn't support  flashing images in xxx-rkupdate.img format.
+
 
+
====== Step 1: Make sure etcher is set up on host computer ======
+
 
+
Download the flash tool, etcher, from [[rockpi4/downloads | Downloads]]. Choose the right version for your host operation system. Here we operate on host Ubuntu 16.04.
+
 
+
After download the package, unpack it.
+
 
+
====== Step 2: [[rockpi4/downloads | Downloads]] all necessary images ======
+
 
+
For ROCK Pi 4, there are two version of system images, Android and Debian. The system image names have the specified words, like android and debian. And all the system images names are marked with xxx_gpt.img.
+
 
+
====== Step 3: Flash the image into uSD  Card ======
+
 
+
1. Insert the uSD Card into uSD Card Reader, which connects to host computer.
+
 
+
2. Run the application, for example,  by executing the command on Ubuntu 16.04:
+
 
+
  $ /bin/bash etcher-etcher-electron-1.4.5-x86_64.AppImage
+
 
+
3. In the etcher window, we click button Select image.
+
 
+
[[File:linux_etcher_select_image.png]]
+
 
+
4. In the etcher window, we click button Select Drive.
+
 
+
[[File:linux_etcher_select_driver.png]]
+
 
+
5. In the etcher window, we click button Flash.
+
 
+
[[File:linux_etcher_select_flash_button.png]]
+
 
+
6. In the etcher window, it shows us Flash Complete!
+
 
+
[[File:linux_etcher_show_complete.png]]
+
 
+
7. Insert uSD Card into the socket on board.
+
 
+
8. Connect the ROCK Pi 4 to your display with the HDMI cable. Ensure that the source for the display is switched to the HDMI port you are using.
+
 
+
9. Connect the USB keyboard and mouse.
+
 
+
10. Connect the power supply to the ROCK Pi 4. The board will begin to immediately.
+

Revision as of 06:29, 22 November 2018



ROCK Pi supports different storage media for installation, they have different IO read/write speed. Choose one to install: