- Pandora Handheld PC / GW-450S【手裏剣】ドライバ -
GW-450S【手裏剣】 の Linux 対応ドライバを Pandora 用にコンパイルします。
[クロスコンパイラ]% mkdir ~/pandora-3.2 % cd ~/pandora-3.2 % git clone -b pandora-3.2 git://git.openpandora.org/pandora-kernel.git .
% setenv ARCH arm % setenv CROSS_COMPILE ~/pandora-dev/arm-2011.09/bin/arm-none-linux-gnueabi- % make omap3_pandora_defconfig % make uImage
% unzip gw-450s_driver_linux_v424.zip % cd gw-450s_driver_linux_v424 % unzip RTL8811AU_linux_v4.2.4_9533.20131209.zip % cd RTL8811AU_linux_v4.2.4_9533.20131209 % cd driver % tar xf rtl8811AU_linux_v4.2.4_9533.20131209.tar.gz % cd rtl8811AU_linux_v4.2.4_9533.20131209
*** os_dep/linux/usb_intf.c.ORIG --- os_dep/linux/usb_intf.c *************** *** 314,319 **** --- 314,320 ---- {USB_DEVICE(0x2001, 0x3314),.driver_info = RTL8821}, /* D-Link - Cameo */ {USB_DEVICE(0x2001, 0x3318),.driver_info = RTL8821}, /* D-Link - Cameo */ {USB_DEVICE(0x0E66, 0x0023),.driver_info = RTL8821}, /* HAWKING - Edimax */ + {USB_DEVICE(0x2019, 0xAB32),.driver_info = RTL8821}, /* Planex - Abocom */ #endif #ifdef CONFIG_RTL8192E
*** Makefile.ORIG --- Makefile *************** *** 52,58 **** CONFIG_LOAD_PHY_PARA_FROM_FILE = y CONFIG_ODM_ADAPTIVITY = n ! CONFIG_PLATFORM_I386_PC = y CONFIG_PLATFORM_ANDROID_X86 = n CONFIG_PLATFORM_JB_X86 = n CONFIG_PLATFORM_ARM_S3C2K4 = n --- 52,59 ---- CONFIG_LOAD_PHY_PARA_FROM_FILE = y CONFIG_ODM_ADAPTIVITY = n ! CONFIG_PLATFORM_ARM_PANDORA = y ! CONFIG_PLATFORM_I386_PC = n CONFIG_PLATFORM_ANDROID_X86 = n CONFIG_PLATFORM_JB_X86 = n CONFIG_PLATFORM_ARM_S3C2K4 = n *************** *** 702,707 **** --- 703,717 ---- EXTRA_CFLAGS += -DCONFIG_MMC_PM_KEEP_POWER endif + ifeq ($(CONFIG_PLATFORM_ARM_PANDORA), y) + EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN + ARCH := arm + CROSS_COMPILE := $(HOME)/pandora-dev/arm-2011.09/bin/arm-none-linux-gnueabi- + KVER := 3.2.78 + KSRC := $(HOME)/pandora-3.2 + endif + + ifeq ($(CONFIG_PLATFORM_I386_PC), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN SUBARCH := $(shell uname -m | sed -e s/i.86/i386/)
*** include/autoconf.h.ORIG --- include/autoconf.h *************** *** 377,385 **** /* * Debug Related Config */ ! #define DBG 1 ! #define CONFIG_DEBUG /* DBG_871X, etc... */ //#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */ #define CONFIG_PROC_DEBUG --- 377,385 ---- /* * Debug Related Config */ ! #define DBG 0 ! //#define CONFIG_DEBUG /* DBG_871X, etc... */ //#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */ #define CONFIG_PROC_DEBUG
% make
$ sudo cp 8821au.ko /lib/modules/3.2.78/kernel/drivers/net/wireless/ $ sudo /sbin/depmod -a
Ubuntu x86_64 でクロスコンパイルしたバイナリです。
**** お約束ですが、このバイナリは無保証です。 ****
**** ご自身の判断、責任のもとご使用してください。 ****
This page is written in Japanese.
(c) Sano Yukihiko