summaryrefslogtreecommitdiffstats
blob: ad64515d38dd69689cd83b507f05f7f75e15bc47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * TECHNOLOGY AND SOFTWARE PUBLICLY AVAILABLE
 *
 * Copyright (c) 2016, Texas Instruments Incorporated.
 *
 * All rights reserved.
 *
 */

#==========================================================================
# SGX Binaries
#==========================================================================

sgx.tgz a set of binaries built for SGX544.

[DDK Version]
    1.14/4081762
[DDK commit ID]
    2a3afec gralloc: Dont translate formats on video encoder usage
[Branch]
    android/1.14/4081762_k4.4_M
[Kernel modules built against]
    Kernel Version: 4.4.y with CONFIG_MODVERSIONS=y
[Build type]
    release (export BUILD=release)

#===========================================================================
#   Building SGX Kernel Modules
#===========================================================================
SGX kernel modules source is located in sgx_src/eurasia_km/

Make sure kernel is built before building modules

# cd ANDROID_ROOT/device/ti/proprietary-open/jacinto6/sgx_src/eurasia_km/eurasiacon/build/linux2/omap_android/
# export ANDROID_ROOT=path_to_android_fs_source
# export KERNELDIR=path_to_kernel_source
# export CROSS_COMPILE=$ANDROID_ROOT/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
# export KERNEL_CROSS_COMPILE=$ANDROID_ROOT/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
# export ARCH=arm
# export PATH=<path to kernel toolchain>:$PATH

To build for Jacinto6/AM57x (SGX 544 multi core):
# make TARGET_PRODUCT="jacinto6evm" BUILD=release
# make TARGET_PRODUCT="am57xevm" BUILD=release

Once the .ko is built, install it onto device (/system/lib/modules)

# cd ANDROID_ROOT/device/ti/proprietary-open/jacinto6/sgx_src/eurasia_km/eurasiacon/binary2_omap_android_release/target/
# adb push pvrsrvkm.ko /system/lib/modules/

If you build the kernel module, it is highly advisable to replace the binaries
in your device with the ones in sgx.tgz to avoid incompatibility.

Reboot device.