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

Use mainstream modules #7

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
54 changes: 54 additions & 0 deletions packages/linux-drivers/RTL8188EU-AML/package.mk
@@ -0,0 +1,54 @@
################################################################################
# This file is part of LibreELEC - https://LibreELEC.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################

PKG_NAME="RTL8188EU-AML"
PKG_VERSION="dc79a58"
PKG_REV="1"
PKG_ARCH="arm aarch64"
PKG_LICENSE="GPL"
# amlogic: PKG_SITE="http://openlinux.amlogic.com:8000/download/ARM/wifi/"
PKG_SITE="https://github.com/tomatotech/mmallow_hardware_wifi_realtek_drivers_8188eu"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_SOURCE_DIR="mmallow_hardware_wifi_realtek_drivers_8188eu-$PKG_VERSION*"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_NEED_UNPACK="$LINUX_DEPENDS"
PKG_PRIORITY="optional"
PKG_SECTION="driver"
PKG_SHORTDESC="Amlogic RTL8188EU Linux 3.x driver"
PKG_LONGDESC="RTL8188EU-AML: Realtek RTL8188EU Linux 3.x driver used in some devices based on Amlogic SoCs"

PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

pre_make_target() {
unset LDFLAGS
}

make_target() {
cd rtl8xxx_EU
make V=1 \
ARCH=$TARGET_KERNEL_ARCH \
KSRC=$(kernel_path) \
CROSS_COMPILE=$TARGET_PREFIX \
CONFIG_POWER_SAVING=n
}

makeinstall_target() {
mkdir -p $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
cp *.ko $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
}
@@ -0,0 +1,19 @@
--- a/rtl8xxx_EU/Makefile
+++ b/rtl8xxx_EU/Makefile
@@ -1,5 +1,6 @@
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
EXTRA_CFLAGS += -O1
+EXTRA_CFLAGS += -fgnu89-inline
#EXTRA_CFLAGS += -O3
#EXTRA_CFLAGS += -Wall
#EXTRA_CFLAGS += -Wextra
@@ -1288,7 +1289,7 @@

ifeq ($(CONFIG_PLATFORM_AML), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -fno-pic
-EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DCONFIG_CONCURRENT_MODE
+EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211
EXTRA_CFLAGS += -DCONFIG_P2P_IPS -DRTW_USE_CFG80211_STA_EVENT
EXTRA_CFLAGS += -DCONFIG_LPS_SLOW_TRANSITION
EXTRA_CFLAGS += -DCONFIG_RADIO_WORK

@@ -0,0 +1,11 @@
--- a/rtl8xxx_EU/include/rtw_mlme_ext.h
+++ b/rtl8xxx_EU/include/rtw_mlme_ext.h
@@ -27,7 +27,7 @@
// So, this driver tried to extend the dwell time for each scanning channel.
// This will increase the chance to receive the probe response from SoftAP.

-#define SURVEY_TO (100)
+#define SURVEY_TO (150)
#define REAUTH_TO (300) //(50)
#define REASSOC_TO (300) //(50)
//#define DISCONNECT_TO (3000)
54 changes: 54 additions & 0 deletions packages/linux-drivers/RTL8189ES-AML/package.mk
@@ -0,0 +1,54 @@
################################################################################
# This file is part of LibreELEC - https://LibreELEC.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################

PKG_NAME="RTL8189ES-AML"
PKG_VERSION="0bce591"
PKG_REV="1"
PKG_ARCH="arm aarch64"
PKG_LICENSE="GPL"
# amlogic: PKG_SITE="http://openlinux.amlogic.com:8000/download/ARM/wifi/"
PKG_SITE="https://github.com/tomatotech/mmallow_hardware_wifi_realtek_drivers_8189es"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_SOURCE_DIR="mmallow_hardware_wifi_realtek_drivers_8189es-$PKG_VERSION*"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_NEED_UNPACK="$LINUX_DEPENDS"
PKG_PRIORITY="optional"
PKG_SECTION="driver"
PKG_SHORTDESC="Amlogic rtl8189ES Linux 3.x driver"
PKG_LONGDESC="RTL8189ES-AML: Realtek rtl8189ES Linux 3.x driver used in some devices based on Amlogic SoCs"

PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

pre_make_target() {
unset LDFLAGS
}

make_target() {
cd rtl8189ES
make V=1 \
ARCH=$TARGET_KERNEL_ARCH \
KSRC=$(kernel_path) \
CROSS_COMPILE=$TARGET_PREFIX \
CONFIG_POWER_SAVING=n
}

makeinstall_target() {
mkdir -p $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
cp *.ko $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
}
@@ -0,0 +1,18 @@
--- a/rtl8189ES/Makefile
+++ b/rtl8189ES/Makefile
@@ -1,5 +1,6 @@
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
EXTRA_CFLAGS += -O1
+EXTRA_CFLAGS += -fgnu89-inline
#EXTRA_CFLAGS += -O3
#EXTRA_CFLAGS += -Wall
#EXTRA_CFLAGS += -Wextra
@@ -1138,7 +1139,7 @@

ifeq ($(CONFIG_PLATFORM_AML), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -fno-pic
-EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DCONFIG_CONCURRENT_MODE
+EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211
EXTRA_CFLAGS += -DCONFIG_P2P_IPS -DRTW_USE_CFG80211_STA_EVENT
EXTRA_CFLAGS += -DCONFIG_RADIO_WORK
#ARCH := arm
@@ -0,0 +1,11 @@
--- a/rtl8189ES/include/autoconf.h
+++ b/rtl8189ES/include/autoconf.h
@@ -249,7 +249,7 @@
*/
#define DBG 1

-#define CONFIG_DEBUG /* DBG_871X, etc... */
+//#define CONFIG_DEBUG /* DBG_871X, etc... */
//#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */

#define CONFIG_PROC_DEBUG
@@ -0,0 +1,11 @@
--- a/rtl8189ES/include/rtw_mlme_ext.h
+++ b/rtl8189ES/include/rtw_mlme_ext.h
@@ -27,7 +27,7 @@
// So, this driver tried to extend the dwell time for each scanning channel.
// This will increase the chance to receive the probe response from SoftAP.

-#define SURVEY_TO (100)
+#define SURVEY_TO (150)
#define REAUTH_TO (300) //(50)
#define REASSOC_TO (300) //(50)
//#define DISCONNECT_TO (3000)
53 changes: 53 additions & 0 deletions packages/linux-drivers/RTL8189FS-AML/package.mk
@@ -0,0 +1,53 @@
################################################################################
# This file is part of LibreELEC - https://LibreELEC.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################

PKG_NAME="RTL8189FS-AML"
PKG_VERSION="f6e757e"
PKG_REV="1"
PKG_ARCH="arm aarch64"
PKG_LICENSE="GPL"
# amlogic: PKG_SITE="http://openlinux.amlogic.com:8000/download/ARM/wifi/"
PKG_SITE="https://github.com/CGarces/RTL8189FS"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_SOURCE_DIR="rtl8189FS-$PKG_VERSION*"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_NEED_UNPACK="$LINUX_DEPENDS"
PKG_PRIORITY="optional"
PKG_SECTION="driver"
PKG_SHORTDESC="Amlogic RTL8189FS Linux 3.x driver"
PKG_LONGDESC="RTL8189FS-AML: Realtek RTL8189FS Linux 3.x driver used in some devices based on Amlogic SoCs"

PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

pre_make_target() {
unset LDFLAGS
}

make_target() {
make V=1 \
ARCH=$TARGET_KERNEL_ARCH \
KSRC=$(kernel_path) \
CROSS_COMPILE=$TARGET_PREFIX \
CONFIG_POWER_SAVING=n
}

makeinstall_target() {
mkdir -p $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
cp *.ko $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
}
53 changes: 53 additions & 0 deletions packages/linux-drivers/RTL8723BS-AML/package.mk
@@ -0,0 +1,53 @@
################################################################################
# This file is part of LibreELEC - https://LibreELEC.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################

PKG_NAME="RTL8723BS-AML"
PKG_VERSION="2574ac7"
PKG_REV="1"
PKG_ARCH="arm aarch64"
PKG_LICENSE="GPL"
# amlogic: PKG_SITE="http://openlinux.amlogic.com:8000/download/ARM/wifi/"
PKG_SITE="https://github.com/CGarces/RTL8723BS"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_SOURCE_DIR="rtl8723BS-$PKG_VERSION*"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_NEED_UNPACK="$LINUX_DEPENDS"
PKG_PRIORITY="optional"
PKG_SECTION="driver"
PKG_SHORTDESC="Amlogic RTL8723BS Linux 3.x driver"
PKG_LONGDESC="RTL8723BS-AML: Realtek RTL8723BS Linux 3.x driver used in some devices based on Amlogic SoCs"

PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

pre_make_target() {
unset LDFLAGS
}

make_target() {
make V=1 \
ARCH=$TARGET_KERNEL_ARCH \
KSRC=$(kernel_path) \
CROSS_COMPILE=$TARGET_PREFIX \
CONFIG_POWER_SAVING=n
}

makeinstall_target() {
mkdir -p $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
cp *.ko $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
}
53 changes: 53 additions & 0 deletions packages/linux-drivers/RTL8822BU-AML/package.mk
@@ -0,0 +1,53 @@
################################################################################
# This file is part of LibreELEC - https://LibreELEC.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################

PKG_NAME="RTL8822BU-AML"
PKG_VERSION="92fcd6e"
PKG_REV="1"
PKG_ARCH="arm aarch64"
PKG_LICENSE="GPL"
# amlogic: PKG_SITE="http://openlinux.amlogic.com:8000/download/ARM/wifi/"
PKG_SITE="https://github.com/CGarces/RTL8822BU"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_SOURCE_DIR="rtl8822BU-$PKG_VERSION*"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_NEED_UNPACK="$LINUX_DEPENDS"
PKG_PRIORITY="optional"
PKG_SECTION="driver"
PKG_SHORTDESC="Amlogic RTL8822BU Linux 3.x driver"
PKG_LONGDESC="RTL8822BU-AML: Realtek RTL8822BU Linux 3.x driver used in some devices based on Amlogic SoCs"

PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

pre_make_target() {
unset LDFLAGS
}

make_target() {
make V=1 \
ARCH=$TARGET_KERNEL_ARCH \
KSRC=$(kernel_path) \
CROSS_COMPILE=$TARGET_PREFIX \
CONFIG_POWER_SAVING=n
}

makeinstall_target() {
mkdir -p $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
cp *.ko $INSTALL/lib/modules/$(get_module_dir)/$PKG_NAME
}
6 changes: 6 additions & 0 deletions projects/S905/options
Expand Up @@ -149,6 +149,7 @@
KERNEL_NAME="kernel.img"

# set the addon dirs
<<<<<<< HEAD
case $TARGET_ARCH in
arm)
ADDON_PATH="$ADDON_VERSION/WeTek_Play/$TARGET_ARCH"
Expand All @@ -160,6 +161,11 @@
ADDON_URL="$ADDON_SERVER_URL/$ADDON_PATH"
;;
esac
=======
ADDON_SERVER_URL="https://raw.github.com/wrxtasy/LibreELEC.tv.7.0/LE-7.0.Addons"
ADDON_PATH="addons/$ADDON_VERSION/Odroid_C2/$TARGET_ARCH"
ADDON_URL="$ADDON_SERVER_URL/$ADDON_PATH"
>>>>>>> Add RTL8189ES to external packages

# OEM packages for OEM's (yes / no)
OEM_SUPPORT="yes"
Expand Down