-
Notifications
You must be signed in to change notification settings - Fork 5
/
README
90 lines (60 loc) · 3.15 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
================================================================================
INTRODUCTION
================================================================================
Realtek's rtl8188C_8192C_usb_linux drivers for RTL8192CU (v3.4.3_4369.20120622)
The main purpose of this repository is to build the RTL8192CU drivers for
the Raspberry Pi.
It's set-up assuming you're doing a cross-compile on an Ubuntu/Linux box,
rather than compiling on the RPi itself. It assumes you already have the
arm-linux-gnueabi package installed.
================================================================================
PREPARATION (Optional)
================================================================================
Out of the box, this is set up to build against bootc's RPi kernel work. If you
want to use this kernel, you'll need to follow these instructions. Ignore these
steps if you want to use your own kernel sources.
First, mount your RPi SDHC card on your Ubuntu box.
Next, update your RPi's firmware:
git clone https://github.com/raspberrypi/firmware/ rpi-firmware
cd rpi-firmware/boot
sudo cp arm128_start.elf arm192_start.elf arm224_start.elf bootcode.bin \
loader.bin start.elf /media/[SD_BOOT]/
cd ../..
Then, check out the kernel:
git clone https://github.com/bootc/linux
cd linux
git checkout rpi-3.2.21
git checkout -b rpi-3.2.21-rtl8192cu
make mrproper
cp arch/arm/configs/bcmrpi_defconfig .config
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- silentoldconfig
Check how many processors you have:
cat /proc/cpuinfo | grep processor | wc -l
Use that info for the compiler ("-j 6" for quad core; "-j 3" for dual core):
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -k -j 6
Copy the results to the mounted RPi partitions:
sudo cp linux/arch/arm/boot/Image /media/[SD_BOOT]/kernel.img
sudo make ARCH=arm modules_install INSTALL_MOD_PATH=/media/[SD_ROOT]
cd ..
Then, you're good to build the RTL8192CU wireless USB drivers and install them.
================================================================================
INSTRUCTIONS
================================================================================
git clone https://github.com/ksclarke/rtl8192cu.git
cd rtl8192cu
make
sudo make install INSTALL_MOD_PATH=/media/[SD_ROOT]
================================================================================
TROUBLESHOOTING
================================================================================
It's set-up to build from a Linux kernel installed at ${PWD}/../linux
If you have the kernel somewhere else, supply that location with KSRC
For instance: make KSRC=/lib/modules/kernel/build
If you want to install using a different kernel, supply that version with KVER
For instance: sudo make install KVER=3.2.21 INSTALL_MOD_PATH=/media/[SD_ROOT]
===============================================================================
CONTACT
===============================================================================
Kevin S. Clarke <[email protected]>
Kernels and drivers are not my usual space so if you have suggestions, feel
free to make them; if you have questions, I'll do my best to answer...