-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vladimir Svistelnikov <[email protected]>
- Loading branch information
1 parent
2fcd7cf
commit 0282ac5
Showing
15 changed files
with
75 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,58 @@ | ||
# gl-android-training-2019 | ||
Android system general course by GlobalLogic Kharkiv, 2019 | ||
# 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` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
hidl_package_root { | ||
name: "vendor.gl", | ||
path: "vendor/gl/interfaces" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ value: 2901 | |
mode: 0775 | ||
user: AID_VENDOR_LEDCONTROL | ||
group: AID_VENDOR_LEDCONTROL | ||
caps: 0 | ||
caps: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
PRODUCT_PACKAGES += GetSetService | ||
PRODUCT_PACKAGES += GetterApp | ||
PRODUCT_PACKAGES += SetterApp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ interface ILedControl { | |
terminate() generates (int32_t result); | ||
|
||
|
||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ cc_binary { | |
"liblog", | ||
"[email protected]", | ||
], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ enum Leds : uint8_t { | |
LED_2, | ||
LED_3, | ||
LED_4, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
<instance>default</instance> | ||
</interface> | ||
</hal> | ||
</manifest> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters