Raspberri Pi 2 incm TP-Link T4U

Pagina: 1
Acties:

  • flipkipse
  • Registratie: Mei 2010
  • Laatst online: 17-08 21:59
Onlangs heb ik een raspberry pi 2 inc met een TP-Link T4U aangeschaft.

Nu probeer ik de volgende driver te compileren voor de Pi2 kernel version (3.18.7-7+):
repository

gebasseert op de adafruit-kernel-o-matic builder heb ik de volgende commando's op een ubuntu machine uitgevoerd:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
REPO_ROOT="/kernel_repos/"
MOD_DIR=`mktemp -d`
PKG_TMP=`mktemp -d`
TOOLS_DIR="/opt/rpi_tools"
FIRMWARE_DIR="/opt/rpi_firmware"
DEBIAN_DIR="/opt/rpi_debian"
NUM_CPUS=`nproc`
GIT_REPO="raspberrypi/linux"
V1_DIR="${REPO_ROOT}${GIT_REPO}/v1"
V2_DIR="${REPO_ROOT}${GIT_REPO}/v2"
GIT_BRANCH=""

V1_DEFAULT_CONFIG="arch/arm/configs/bcmrpi_defconfig"
V2_DEFAULT_CONFIG="arch/arm/configs/bcm2709_defconfig"
V1_CONFIG=""
v2_CONFIG=""

sudo git clone --depth 1 --recursive https://github.com/${GIT_REPO} $V1_DIR
sudo cp -r $V1_DIR $V2_DIR

sudo git clone --depth 1 https://github.com/raspberrypi/tools $TOOLS_DIR
sudo git clone --depth 1 https://github.com/raspberrypi/firmware $FIRMWARE_DIR
sudo git clone --depth 1 https://github.com/asb/firmware $DEBIAN_DIR


Hierna de CCPREFIX gezet op de 64 bit folder voor de v2. Omdat ik het op ubuntu x64 doe
code:
1
CCPREFIX=${TOOLS_DIR}/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-[b]x64[/b]/bin/arm-linux-gnueabihf-


code:
1
2
3
4
5
cd $V2_DIR
sudo cp ${V2_DEFAULT_CONFIG} .config
git clone https://github.com/gnab/rtl8812au.git
cd rtl8812au
sudo nano Makefile


de makefile aangepast naar:

code:
1
2
3
4
5
6
7
8
9
10
11
12
CONFIG_POWER_SAVING = n

CONFIG_PLATFORM_ARM_RPI = y

ifeq ($(CONFIG_PLATFORM_ARM_RPI), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-linux-gnueabihf-
KVER := 3.18.7-v7+
KSRC ?= /kernel_repos/raspberrypi/linux/v2
MODDESTDIR := /opt/rpi_firmware/modules/$(KVER)/kernel/drivers/net/wireless/
endif


Nu krijg ik een .ko file, alleen zo dra ik die installeer crashed mijn kernel.

Iemand die weet wat ik fout doe, en / of een goede driver heeft?

[ Voor 7% gewijzigd door flipkipse op 19-02-2015 15:38 ]

Certified Google Teacher.


  • Raven
  • Registratie: November 2004
  • Niet online

Raven

Marion Raven fan

After the first glass you see things as you wish they were. After the second you see things as they are not. Finally you see things as they really are, and that is the most horrible thing in the world...

Oscar Wilde


  • flipkipse
  • Registratie: Mei 2010
  • Laatst online: 17-08 21:59
Dat is voor de raspberry 1. Ik wil hem werkend hebben op mijn versie 2.

In het topic staat namelijk beschreven hoe je een koppeling moet maken naar de oude arm folder. De nieuwe ARM7 zie ik geen folder voor in deze directorory.

De instructies die ik heb uitgevoerd zijn o.a ook van dit topic afgeleid. Maar werkt helaas niet. Als iemand weet hoendit script aan te passen voor de V2, dan graag.

Certified Google Teacher.