Project

General

Profile

Building OpenBSC » History » Version 3

tec, 02/19/2016 10:47 PM

1 1 tec
2 1 tec
== Debian HowTo ==
3 1 tec
4 1 tec
This page will describe the entire installation process of OpenBSC under Debian Linux.
5 1 tec
This tutorial is based on Debian Netinstall 5.0 but will work with other Debian versions.
6 1 tec
7 1 tec
----
8 1 tec
9 1 tec
To be able to access your OpenBSC machine easily from a remote Terminal, instal ssh.
10 1 tec
This can be easily done with "apt-get install ssh".
11 1 tec
12 1 tec
Because OpenBSC relies on mISDN (named ISDN4Linux before) and hfcmulti as an interface to the BS11, it has to be integrated as a module into the kernel.
13 1 tec
14 1 tec
First of all you will need to download the 2.6.27.4 Linux kernel from [http://www.kernel.org/pub/linux/kernel/v2.6/].
15 1 tec
16 1 tec
Change to '''/usr/src/''' on your OpenBSC machine.
17 1 tec
Then simplay do a '''wget [http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.4.tar.bz2]'''
18 1 tec
19 1 tec
Unpack the archive:  '''tar -bzip2 -xvf linux-2.6.27.4.tar.bz2'''
20 1 tec
and create a symlink to fit the Linux standard conventions: '''ln -s linux-2.6.27.4 linux'''.[[BR]]
21 1 tec
22 1 tec
Now change to linux-2.6.27.4 typing '''cd linux-2.6.27.4'''.
23 1 tec
24 1 tec
Download Haralds kernel patch which is needed to change some specific protocol stuff in mISDN:
25 1 tec
26 1 tec
'''wget [http://bs11-abis.gnumonks.org/trac/browser/trunk/linux-kernel/linux-2.6.27.4-misdn-abis.diff?format=raw]'''
27 1 tec
28 1 tec
Now rename the file you just downloaded: '''mv linux-2.6.27.4-misdn-abis.diff?format=raw linux-2.6.27.4-misdn-abis.diff'''.
29 1 tec
30 1 tec
You are ready now to prepare for the main part:
31 1 tec
32 1 tec
Install some tools needed to build the kernel.
33 1 tec
34 1 tec
'''apt-get install libncurses5-dev kernel-package'''
35 1 tec
36 1 tec
Apply Haralds patch to the kernel: 
37 1 tec
38 1 tec
'''patch -p1 < linux-2.6.27.4-misdn-abis.diff'''
39 1 tec
40 1 tec
Now configure the kernel modules with '''make menuconfig'''
41 1 tec
42 3 tec
Include the ''mISDN'' modules and ''hfcmulti /hfc e1 drivers''.
43 3 tec
44 3 tec
Save the new configuration to '''.config''' .
45 3 tec
46 3 tec
You can now try to build the Debian kernel package: '''make-kpkg linux-image --initrd --revision=openbsc01.0''' .
47 3 tec
48 3 tec
Go a directory higher (cd ..)
49 3 tec
50 3 tec
and install the new kernel package typing:
51 3 tec
52 3 tec
'''dpkg -i  kernelpackagename.deb'''
53 3 tec
54 3 tec
Now you only have to add the dslot=1 parameter for hfcmulti to load with this parameter.
55 3 tec
Otherwise OpenBSC will talk on signalling timeslot 15 where BS11 uses 1.
56 3 tec
57 3 tec
Simply add the following in '''/boot/grub/menu.lst''' :
58 3 tec
59 3 tec
Add this line to the "Kernel"-line
60 3 tec
61 3 tec
'''hfcmulti.dslot=1'''
62 3 tec
63 3 tec
Save changes and reboot your machine with your new kernel.
64 3 tec
65 3 tec
[[BR]]
66 3 tec
67 3 tec
''Congratulation, OpenBSC should run fine now!''
Add picture from clipboard (Maximum size: 48.8 MB)