Project

General

Profile

Building OpenBSC » History » Version 3

Anonymous, 02/19/2016 10:47 PM

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