1
|
# Get required packages
|
2
|
sudo apt-get install kernel-package build-essential libncurses-dev debhelper
|
3
|
|
4
|
# Get kernel sources (one that has longterm support) and save it to /usr/src.
|
5
|
sudo wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.12.35.tar.xz -O /usr/src/linux-3.12.35.tar.xz
|
6
|
|
7
|
# Untar the kernel source..
|
8
|
cd /usr/src
|
9
|
sudo tar xvf linux-3.12.35.tar.xz
|
10
|
|
11
|
# Make menuconfig. Make any changes you want. usually you can leave it as the default. Exit and save the config.
|
12
|
cd linux-3.12.35/
|
13
|
sudo make menuconfig
|
14
|
|
15
|
# Make the kernel. Change to root here else it'll fail..
|
16
|
sudo -s
|
17
|
# Grab a drink.. depending on your machine this will take a while..
|
18
|
time fakeroot make-kpkg -j3 --initrd --revision=3.12.35 --append-to-version=-amd64 kernel_image kernel_headers kernel_source
|
19
|
|
20
|
# Install the newly built packages.
|
21
|
# Go back one directory..
|
22
|
cd ../
|
23
|
dpkg -i linux-*-3.12.35-*.deb
|
24
|
reboot
|
25
|
|
26
|
# Once rebooted ensure you have the other packages required to build installed.
|
27
|
sudo apt-get install libdigest-sha-perl libproc-processtable-perl
|
28
|
|
29
|
# Download the files for the driver from the Blackgold site.
|
30
|
wget -U "Mozilla/5.0 (X11; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0" "http://home.btconnect.com/blackgold/Downloads/BGT3xxx%20Linux_Source_Release_Pack_V1-0.rar" -O bgdrivers.rar
|
31
|
|
32
|
# Install rar.. Requires non-free repo add it to /etc/apt/sources.list
|
33
|
sudo nano /etc/apt/sources.list
|
34
|
# your sources.list should look like this.
|
35
|
# ===========================
|
36
|
deb http://ftp.uk.debian.org/debian/ wheezy main contrib non-free
|
37
|
deb-src http://ftp.uk.debian.org/debian/ wheezy main contrib
|
38
|
|
39
|
deb http://security.debian.org/ wheezy/updates main contrib non-free
|
40
|
deb-src http://security.debian.org/ wheezy/updates main contrib
|
41
|
|
42
|
# wheezy-updates, previously known as 'volatile'
|
43
|
deb http://ftp.uk.debian.org/debian/ wheezy-updates main contrib non-free
|
44
|
deb-src http://ftp.uk.debian.org/debian/ wheezy-updates main contrib
|
45
|
#=============================
|
46
|
sudo apt-get update
|
47
|
sudo apt-get install unzip rar
|
48
|
|
49
|
# Make a dir for the unrar-ed drivers..
|
50
|
mkdir "BGT3xxx Linux_Source_Release_Pack_V1-0"
|
51
|
cd "BGT3xxx Linux_Source_Release_Pack_V1-0"
|
52
|
|
53
|
# unrar them (make sure you're in the "BGT3xxx Linux_Source_Release_Pack_V1-0" directory and the bgdrivers.rar is in one directory up (cd ../ to check).
|
54
|
rar x ../bgdrivers.rar ./
|
55
|
|
56
|
# Download the fix zip from AVforums..
|
57
|
wget "https://www.avforums.com/attachments/bgt3xxx-zip.507217/" -O ~/BGT3xxx.zip
|
58
|
|
59
|
# Unzip in current directory (you should still be in "BGT3xxx Linux_Source_Release_Pack_V1-0")
|
60
|
unzip ~/BGT3xxx.zip
|
61
|
|
62
|
# You should see a list of files extracted.
|
63
|
# Now run MakeBGT3xxx.sh
|
64
|
./MakeBGT3xxx.sh
|
65
|
|
66
|
# With any luck you should have no issues building..
|