|
|
|
<center> <h1>Khadas VIM3L</h1> </center>
|
|
|
|
|
|
|
|
VIM3L is part of the Khadas platforms and is available from [khadas.com](https://www.khadas.com/vim3) .
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
<img src="./Images/VIM3L_Bareboard_Perspective.png" width="500" height="400"/>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
Note: Wiki from [Khadas](https://docs.khadas.com/vim3l) give all documentation needed for VIM3L.
|
|
|
|
|
|
|
|
|
|
|
|
## Download Source
|
|
|
|
|
|
|
|
```
|
|
|
|
repo init -u https://android.googlesource.com/platform/manifest -b master
|
|
|
|
repo sync -j8
|
|
|
|
```
|
|
|
|
|
|
|
|
## Android Build Env instructions :
|
|
|
|
|
|
|
|
```
|
|
|
|
. ./build/envsetup.sh
|
|
|
|
lunch yukawa-userdebug|yukawa32-userdebug
|
|
|
|
make TARGET_VIM3L=true -j24
|
|
|
|
```
|
|
|
|
|
|
|
|
To use kernel 5.4 prebuilts:
|
|
|
|
```
|
|
|
|
make TARGET_VIM3L=true TARGET_USE_KERNEL=5.4 -j24
|
|
|
|
```
|
|
|
|
|
|
|
|
List of build flags:
|
|
|
|
TARGET_KERNEL_USE=5.4 : Use kernel 5.4 prebuilt
|
|
|
|
TARGET_AVB_ENABLE=true : Enable [AVB](https://source.android.com/security/verifiedboot/avb)
|
|
|
|
TARGET_USE_AB_SLOT=true : Enable [AB partitions](https://source.android.com/devices/tech/ota/ab)
|
|
|
|
TARGET_BUILTIN_EDID=true : This option allows to preload 1920x1080 EDID structure
|
|
|
|
|
|
|
|
## Flashing yukawa images
|
|
|
|
|
|
|
|
#### First time flashing method:
|
|
|
|
```
|
|
|
|
git clone https://github.com/khadas/utils.git
|
|
|
|
cd utils
|
|
|
|
export PATH="path/to/utils/aml-flash-tool/tools/linux-x86/:$PATH"
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Put VIM3L in USB MODE
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
<img src="./Images/VIM3L_Bareboard_Top.png" width="500" height="400"/>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
1- Power-on VIM3L.
|
|
|
|
2- Quickly press the `F` button 3 times in 2 seconds, then release the button.
|
|
|
|
|
|
|
|
You will see the Power-LED (Blue) blink for about 3 seconds. After the Power-LED (Blue) turns OFF, this indicates that the board is in Upgrade Mode .
|
|
|
|
|
|
|
|
#### Flash Android Bootloader
|
|
|
|
|
|
|
|
```
|
|
|
|
cd path/to/aosp/device/amlogic/yukawa/bootloader/
|
|
|
|
update write u-boot_kvim3l_noab.bin 0xfffa0000 0x10000
|
|
|
|
update run 0xfffa0000
|
|
|
|
update bl2_boot u-boot_kvim3l_noab.bin
|
|
|
|
```
|
|
|
|
|
|
|
|
U-Boot should boot and run fastboot, then:
|
|
|
|
```
|
|
|
|
fastboot oem format
|
|
|
|
fastboot flash bootloader u-boot.bin
|
|
|
|
fastboot erase bootenv
|
|
|
|
fastboot reboot
|
|
|
|
```
|
|
|
|
unplug and plug Power cable
|
|
|
|
|
|
|
|
#### Flash Android Images
|
|
|
|
|
|
|
|
* go to `out/target/product/[yukawa|yukawa32]` and launch this commands:
|
|
|
|
|
|
|
|
```
|
|
|
|
fastboot flash boot boot.img
|
|
|
|
fastboot flash super super.img
|
|
|
|
fastboot flash cache cache.img
|
|
|
|
fastboot flash userdata userdata.img
|
|
|
|
fastboot flash recovery recovery.img
|
|
|
|
fastboot flash dtbo dtbo-unsigned.img
|
|
|
|
fastboot reboot
|
|
|
|
```
|
|
|
|
|
|
|
|
## Build Kernel Source
|
|
|
|
|
|
|
|
```
|
|
|
|
mkdir repo-kernel
|
|
|
|
cd repo-kernel
|
|
|
|
# for building kernel 4.19
|
|
|
|
repo init -u https://gitlab.com/baylibre/amlogic/atv/aosp/kernel/manifest.git -b android-amlogic-bmeson-4.19
|
|
|
|
# for building kernel 5.4
|
|
|
|
repo init -u https://gitlab.com/baylibre/amlogic/atv/aosp/kernel/manifest.git -b android-amlogic-bmeson-5.4
|
|
|
|
repo sync -j8 -c
|
|
|
|
${AOSP_TOPDIR}/device/amlogic/yukawa-kernel/ BUILD_CONFIG=hikey-linaro/build.config.yukawa.aarch64 build/build.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
* [rebuild](https://gitlab.com/baylibre/amlogic/atv/aosp/device/amlogic/yukawa/-/wikis/Khadas_VIM3L#android-build-env-instructions-) and [flash your board](https://gitlab.com/baylibre/amlogic/atv/aosp/device/amlogic/yukawa/-/wikis/Khadas_VIM3L#flash-android-images) |