Wednesday, June 29, 2016

Need help / information about porting a driver to s5

I am trying to compile driver for rtl8812au on my android. I have been researching for weeks and haven't gotten very far.

My first question is if it is possible to do?

I am rooted, The source for the driver comes with the android.mk and boardconfig.mk

I just have no clue what I am missing..

I've tried to put it in a jni folder, tried to do a makefile, and tried to jump through hoops to no avail.

model SM-G900-V
ANDROID 5.0 (I know that the driver is made for kk)
BASEBAND G900VVRUBOK3
KERNEL 3.4.0




SDK packages
● hardware/realtek/*
Folder to store config files, private code from Realtek.

● hardware/libhardware_legacy/wifi/Android.mk Reference codes for applying wifi_realtek.c

※ For wpa_supplicant_8_kk_4.4_rtw_r10450.20140220.tar.gz or newer version,
see wpa_supplicant_hostapd folder of our SW release package or consult our contact window.

Introduction
This document provides a simple guide to help engineers to apply Realtek Wi-Fi solution onto their
Android KK 4.4 system. For now, we have supported the following two scenarios:

● STA/AP – Switch between STA mode and AP mode
● (STA+P2P)/AP – Switch between STA+P2P(Wi-Fi Direct) concurrent mode and AP mode

To port Realtek Wi-Fi driver onto Android 4.4 platform, you can go through the following guide with
reference codes within our driver package's realtek_wifi_SDK_for_android_KK_4.4_20140117.tar.g z.

Because Android's SDK may differ from platform to platform, our reference codes may not be applied
on every platform without modifications. You should check if our reference code is suitable for you
to use.

In this document, ANDROID_SDK is the path of top folder of the target Android SDK; this term is
used in the following paragraphs.

1. Copy Necessary Files into SDK
After unzipping realtek_wifi_SDK_for_android_KK_4.4_20140117.tar.g z, copy the following folder into
ANDROID_SDK/hardware/ folder:
● hardware/realtek

2. Platform Related Files
2.1. BoardConfig.mk
To apply Realtek Wi-Fi solution onto your Android KK system, you need to define some compile-time
variables in BoardConfig.mk of your platform. In general, the BoardConfig.mk file is located in:
ANDROID_SDK /device/<soc_vendor_name>/<board_name>/ Take TI panda board for example:
ANDROID_SDK /device/ ti/panda/ BoardConfig.mk Please define the following compile-time variables
below:


from xda-developers http://ift.tt/299f2RN
via IFTTT

No comments:

Post a Comment