Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svistelnikoff@work-exam #27

Open
wants to merge 2 commits into
base: Vladimir.Svistelnikov
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions 04-exam/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# GL hikey960 android howto

## Sources locations

Android manifest - [email protected]:svistelnikoff/android_manifest.git ( branch gl-hikey960 )
Hikey960 BSP - [email protected]:svistelnikoff/hikey-linaro-device.git ( branch svistelnikoff@gl-hikey960-base )
Hikey960 kernel - [email protected]:svistelnikoff/hikey-linaro-kernel.git ( branch [email protected] )

Vendor specific sources
Software - [email protected]:svistelnikoff/gl-android-training-2019.git ( branch svistelnikoff@vendor-gl )

.
├── apps vendor-specific applications
│   └── gl-android-training pllcications implemented as submodule ( svistelnikoff@work-03 )
│   └── 03-Service
│   ├── GetSetService service: serves get/set random value requests, interacts with HAL
│   ├── GetterApp getter: reads value of saved random value on button click
│   └── SetterApp setter: sets new random, sends intents to control leds
├── config hal: config
├── interfaces hal: interface
│   └── ledcontrol
│   └── 1.0
│   └── default
└── sepolicy hal: policies

## Build HOWTO

Pull sources:
`$ cd ~/`
`$ mkdir hikey960`
`$ cd hikey960`
`$ repo init -u [email protected]:svistelnikoff/android_manifest.git -b gl-hikey960`
`$ repo sync -j4 -c -f`

Download and extract HDMI proprietary binaries for Hikey960 (from the project home folder):
`$ wget https://dl.google.com/dl/android/aosp/arm-hikey960-OPR-cf4e0c80.tgz`
`$ tar xzf arm-hikey960-OPR-cf4e0c80.tgz`
`$ ./extract-arm-hikey960.sh`

Build
`$ cd hikey960`
`$ . ./build/envsetup.sh`
`$ lunch hikey960-userdebug`
`$ make -j8`

## Flash firmware

Enter fastboot mode. There are two options:
- power off the board, turn ON dipswitch 1 and 3, power on the board.
- connect the board via USB and run from host machine:
`$ adb reboot bootloader`
Check if device has entered bootloader, run from host machine:
`fastboot devices`
Flash device:
`$ cd device/linaro/hikey/installer/hikey960`
`$ ./flash-all.sh`