This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim4:install-os:install-os-into-emmc-via-usb-tool [2022/07/01 04:48] nick |
products:sbc:vim4:install-os:install-os-into-emmc-via-usb-tool [2023/06/05 09:29] (current) nick |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Install OS into eMMC ====== | + | {{indexmenu_n> |
- | All VIM series boards have **onboard eMMC storage**, so you can install the **OS** into the **eMMC** using the **USB upgrade tool**. | ||
- | < | + | ====== VIM4 Install |
- | * Preparation | + | ===== Install on Windows PC ===== |
- | - Dowload the [[dl> | + | |
- | - Description of the USB Upgrade Tool's directory contents: | + | |
- | - Description of the `burn tool` directory contents: | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
+ | ==== Preparation ==== | ||
+ | Dowload the [[dl> | ||
- | ## Installation | + | ==== Install USB Drivers |
+ | |||
+ | - Goto directory '' | ||
+ | - Goto directory '' | ||
+ | ==== Install the OS ==== | ||
+ | - Goto '' | ||
+ | - Click '' | ||
+ | - Connect your board to your PC with a USB-C cable (the board will power on automatically). | ||
+ | - Put your board into [[boot-into-upgrade-mode | Upgrade Mode]]. | ||
+ | - If you have correctlyperformed steps 3 and 4, your PC will automatically discover your board as an attached USB-device. | ||
+ | - Now what you need to do is to click the '' | ||
- | **Driver Installation** | + | {{products: |
- | 1. Enter the `Driver-VIM4` directory, install `dpscat.exe`. The installation process is quick, and there is no GUI display. | ||
- | 2. Install `dpinst64.exe`. After the installation is successful, you can burn the firmware. | ||
- | **Make sure the driver is installed correctly, then follow the steps below to upgrade:** | + | <WRAP info> |
- | 1. Enter the `burn tool` directory, open `VIM4.exe`, click `Setup-->Load Image`, then choose an [image](https:// | + | * Click the '' |
- | 2. Connect your board to your PC with a USB-C data cable (the board will power on automatically). | + | * An [[products: |
- | 3. Put your board into [Upgrade Mode](boot_into_upgrade_mode.html). | + | |
- | 4. If you have performed steps 2 and 3 correctly, | + | |
- | Now all you need to do is to click the `Start` button and wait for burning to complete: | + | </WRAP> |
- | ![Image of USB_Upgrade_Tool_Interface_v217](/linux/ | + | |
+ | ===== Install on Ubuntu PC ===== | ||
- | <note info> | + | <WRAP important > |
+ | Tools were only verified to function properly on Ubuntu. No guarantees were made for other Linux distributions! | ||
+ | </WRAP> | ||
- | * To interrupt burning, click the `Stop` button, then close the USB Upgrade Tool. Note that the eMMC may already have been completely erased if you went past the 15% mark | + | ==== Preparation ==== |
- | * An [External Power Supply](ExtraPowerInput.html) may be required in cases where your PC cannot provide enough electrical power for the burning process | + | |
- | * If your system is a 32-bit system, please select `dpinst32.exe` when installing the driver | + | |
- | </ | + | Install the dependencies. |
- | + | ```shell | |
- | <tabbox Install on Ubuntu> | + | |
- | + | ||
- | <note warn> | + | |
- | + | ||
- | Tools were verified to function properly on Ubuntu only, we make no guarantees for other Linux distributions! | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | ## Preparation | + | |
- | + | ||
- | ```bash | + | |
$ sudo apt-get install libusb-dev git parted | $ sudo apt-get install libusb-dev git parted | ||
``` | ``` | ||
- | ## Download | + | ==== Download |
- | Image burning tool for Ubuntu | + | /*is on Khadas GitHub*/ [[kg>utils|Flash tools for Ubuntu/Linux]]. |
- | ```bash | + | ```shell |
$ git clone https:// | $ git clone https:// | ||
``` | ``` | ||
+ | |||
Or just pull it (if you have already cloned this repository). | Or just pull it (if you have already cloned this repository). | ||
- | ```bash | + | ```shell |
$ cd / | $ cd / | ||
$ git pull | $ git pull | ||
``` | ``` | ||
- | ## Install | + | ==== Install |
You need to install USB rules and create some links. | You need to install USB rules and create some links. | ||
- | ```bash | + | ```shell |
$ cd / | $ cd / | ||
$ sudo ./INSTALL | $ sudo ./INSTALL | ||
Line 83: | Line 75: | ||
You will see this print-out if it was successful. | You will see this print-out if it was successful. | ||
- | ```bash | + | ```txt |
Installing Amlogic flash-tool... | Installing Amlogic flash-tool... | ||
Line 111: | Line 103: | ||
Done! | Done! | ||
``` | ``` | ||
- | {% note warn Note %} | ||
+ | <wrap important > | ||
Root privilege is required. | Root privilege is required. | ||
+ | </ | ||
- | {% endnote %} | + | ==== Check the USB Driver ==== |
- | ## Check the USB Driver | ||
- | You must now place your board into `Upgrade Mode`. See [how to enter upgrade mode](BootIntoUpgradeMode.html). | + | You must now [[boot-into-upgrade-mode| put your board into Upgrade Mode]]. |
- | Check to see if Ubuntu has detected your board as an attached USB-device. | + | |
- | ```bash | + | Check to see if Ubuntu has detected your board as an attached USB device. |
+ | |||
+ | ```shell | ||
$ lsusb | grep Amlogic | $ lsusb | grep Amlogic | ||
- | BUS 002 Device | + | Bus 003 Device |
``` | ``` | ||
+ | |||
The message above means that your board is connected and recogized by Ubuntu. | The message above means that your board is connected and recogized by Ubuntu. | ||
- | ## Install the System on Ubuntu | + | ==== Install the OS ==== |
+ | <tabbox VIM1> | ||
- | ```bash | + | ```shell |
- | $ aml-burn-tool -i / | + | $ burn-tool |
``` | ``` | ||
- | You will see these teminal logs if successful. | + | <tabbox VIM2> |
- | ```bash | + | ```shell |
- | Rebooting the board ........[OK] | + | $ burn-tool |
- | Unpacking image [OK] | + | |
- | Initializing ddr ........[OK] | + | |
- | Running u-boot ........[OK] | + | |
- | Create partitions [OK] | + | |
- | Writing device tree [OK] | + | |
- | Writing bootloader [OK] | + | |
- | Wiping | + | |
- | Wiping | + | |
- | Writing boot partition [OK] | + | |
- | Writing data partition [OK] | + | |
- | Writing logo partition [OK] | + | |
- | Writing system partition [OK] | + | |
- | Do you want to reset the board? y/n [n]? y | + | |
- | Resetting board [OK] | + | |
``` | ``` | ||
- | ```bash | + | <tabbox VIM3/3L> |
- | $ aml-burn-tool -b VIM4 -i / | + | |
+ | ```shell | ||
+ | $ burn-tool | ||
``` | ``` | ||
+ | <tabbox VIM4> | ||
- | For more information please refer to [docs](https:// | + | ```shell |
+ | $ burn-tool -v aml -b VIM4 -i /path/to/image | ||
+ | ``` | ||
- | ## Uninstall Burning Tool | + | <tabbox VIM1S> |
- | ```bash | + | ```shell |
- | $ cd /path/to/utils | + | $ burn-tool -v aml -b VIM1S -i /path/to/image |
- | $ sudo ./UNINSTALL | + | |
``` | ``` | ||
+ | </ | ||
+ | You will see these teminal logs if successful. | ||
- | ## See Also | + | ```txt |
- | * [Boot into Upgrade Mode](BootIntoUpgradeMode.html) | + | Burning image ' |
+ | next try index 3, current opt arg vim4-ubuntu-22.04-server-linux-5.4-fenix-1.0.11-220620-emmc-develop.img | ||
+ | MSG[TLS]pkg path vim4-ubuntu-22.04-server-linux-5.4-fenix-1.0.11-220620-emmc-develop.img | ||
+ | MSG[TLS]exe run path:/ | ||
+ | MSG[FLW]Aml_flow_init version V1.1-trunk Nov 1 2019! | ||
+ | MSG[FLW]Tooltype 3 | ||
+ | DBG[FLW]ok in load lib AmlImagePack.so | ||
+ | MSG[FLW]OK leave Aml_flow_init | ||
+ | |||
+ | ... | ||
+ | |||
+ | MSG[TLS][105660110991160c00000000]LMsg[usbFlw]cmd[oem mwrite 0x1cefb normal store _aml_dtb] | ||
+ | MSG[TLS][105660110991160c00000000]LMsg[usbFlw][MWrite] finsihed | ||
+ | MSG[TLS]UI: | ||
+ | MSG[TLS][105660110991160c00000000]LMsg[usbFlw]cmd[oem verify sha1sum 799ab7772f6dc4d78d9612916910b589e63df481] | ||
+ | MSG[TLS]UI: | ||
+ | MSG[TLS][105660110991160c00000000]LMsg[usbFlw]cmd[oem mwrite 0x319000 normal store bootloader] | ||
+ | MSG[TLS][105660110991160c00000000]LMsg[usbFlw][MWrite] finsihed | ||
+ | MSG[TLS]UI: | ||
+ | MSG[TLS][105660110991160c00000000]LMsg[usbFlw]cmd[oem verify sha1sum f5ab1b260d5153161fed73a7baca58330c105863] | ||
+ | MSG[TLS][105660110991160c00000000]LMsg[usbFlw]cmd[oem save_setting] | ||
+ | MSG[TLS][105660110991160c00000000]burn successful^_^ | ||
+ | Time elapsed: 3 minute(s). | ||
+ | Done! | ||
+ | |||
+ | ``` | ||
+ | |||
+ | For more information please refer to [[https:// | ||
+ | |||
+ | ==== Uninstall the Flash Tool ==== | ||
+ | |||
+ | ```shell | ||
+ | $ cd / | ||
+ | $ sudo ./ | ||
+ | ``` | ||
- | </ |