Add wifi drivers & U-boot workaround

This commit is contained in:
mason 2023-03-30 15:19:43 +00:00
parent c9c2c894de
commit 16253a014a
No known key found for this signature in database
GPG key ID: 84D9278A11FA112B
6 changed files with 45 additions and 3 deletions

View file

@ -0,0 +1,28 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="RTL8188EU"
PKG_VERSION="96ecc776167a15cc7df4efc4f721ba5784c55c85"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/lwfinger/rtl8188eu"
PKG_URL="https://github.com/lwfinger/rtl8188eu/archive/${PKG_VERSION}.tar.gz"
PKG_LONGDESC="Realtek RTL81xxEU Linux 3.x driver"
PKG_IS_KERNEL_PKG="yes"
pre_make_target() {
unset LDFLAGS
}
make_target() {
make modules \
ARCH=${TARGET_KERNEL_ARCH} \
KSRC=$(kernel_path) \
CROSS_COMPILE=${TARGET_KERNEL_PREFIX} \
CONFIG_POWER_SAVING=n
}
makeinstall_target() {
mkdir -p ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
cp *.ko ${INSTALL}/$(get_full_module_dir)/${PKG_NAME}
}

View file

@ -10,10 +10,13 @@ case "${PKG_SOC}" in
echo "uboot: encrypting u-boot.bin with fip..."
cp -av build/u-boot.bin ${FIP_DIR}/
cd ${FIP_DIR}
./build-fip.sh ${BOOT_FIP} u-boot.bin ${INSTALL}/usr/share/bootloader/
./build-fip.sh ${BOOT_FIP} u-boot.bin ${INSTALL}/usr/share/bootloader/fip
;;
esac
#Install a precombiled u-boot.bin until we can fix buildroot.
cp -rf ${PKG_DIR}/bin/u-boot.bin ${INSTALL}/usr/share/bootloader/
if [ "${BOOT_INI}" == true ]
then
echo "boot: create boot.ini..."

View file

@ -11,3 +11,12 @@ SPLASH_LOADER="plymouth"
# GPIOS
DEVICE_TEMP_SENSOR="/sys/devices/virtual/thermal/thermal_zone*/temp"
# FREQ Governors
CPU_FREQ=("/sys/devices/system/cpu/cpufreq/policy0" "/sys/devices/system/cpu/cpufreq/policy4")
GPU_FREQ="/sys/devices/platform/ff9a0000.gpu/devfreq/ff9a0000.gpu"
DMC_FREQ="/sys/devices/platform/dmc/devfreq/dmc"
# Affinity
SLOW_CORES="taskset -c 0-3"
FAST_CORES="taskset -c 4-5"

View file

@ -70,7 +70,7 @@
WINDOWMANAGER="weston"
# kernel serial console
EXTRA_CMDLINE="rootwait quiet console=ttyAML0,115200n8 console=tty0 no_console_suspend fsck.repair=yes net.ifnames=0 consoleblank=0 fbcon=rotate:3"
EXTRA_CMDLINE="rootwait quiet console=ttyAML0,115200n8 console=tty0 no_console_suspend net.ifnames=0 consoleblank=0 fbcon=rotate:3"
# additional packages to install
ADDITIONAL_PACKAGES=" emulators gamesupport"
@ -84,7 +84,8 @@
# for a list of additional drivers see packages/linux-drivers
# Space separated list is supported,
# e.g. ADDITIONAL_DRIVERS="DRIVER1 DRIVER2"
ADDITIONAL_DRIVERS="RTL8812AU RTL8821AU RTL8821CU RTL88x2BU RTL8188EU"
# build and install driver addons (yes / no)
DRIVER_ADDONS_SUPPORT="no"

Binary file not shown.

View file

@ -58,6 +58,7 @@ make_target() {
makeinstall_target() {
mkdir -p ${INSTALL}/usr/share/bootloader
mkdir -p ${INSTALL}/usr/share/bootloader/fip
# Only install u-boot.img et al when building a board specific image
if [ -n "${UBOOT_CONFIG}" ]; then
find_file_path bootloader/install && . ${FOUND_PATH}