Hello,

Thank you. I am facing issue installing libosmocore dependencies.

when I run command: debuild -uc -us

dpkg-buildpackage -rfakeroot -us -uc -ui
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: info: source package libosmocore
dpkg-buildpackage: info: source version 1.1.0
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Pau Espin Pedrol <pespin@sysmocom.de>
dpkg-source --before-build libosmocore
dpkg-buildpackage: info: host architecture amd64
dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper (>= 9) dh-autoreconf libpcsclite-dev python (>= 2.7.6)
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui failed

Could you please guide me on the same. and also could you please explain what is meant by *be in command:  dpkg -i *deb.

Thanks

Best regards,
M.Sc. Sunil Hebbur Srikantamurthy
Chair of Communication Networks
Electrical Engineering and Information Technology
Chemnitz University of Technology


On Thu, May 2, 2019 at 11:02 AM J. Félix Ontañón <felix.ontanon@podgroup.com> wrote:
Hi Sunil, 

I recently wrote a quick few internal notes for my colleagues to use Simtrace2+Wireshark on Ubuntu 18.04
I'll share with you in the case it helps. Using Simtrace2 I had not to flash any firmware, it works out of the box.

------

h1. Simtrace and Wireshark

h2. Simtrace2

The official installation steps are here: https://osmocom.org/projects/simtrace2/wiki

But !! Follow this installation steps for a full-debian-packaged installation (tested on Ubuntu 18.04 LTS).

Let's first prepare your system to compile debian packages, let's install some recurring compiling dependencies and then devscripts (the utilities for building debian packages):

$ sudo apt install build-essential libtool libtalloc-dev shtool autoconf automake git-core pkg-config make gcc
$ sudo apt install devscripts

First, install libosmocore dependencies, download libosmocore itself and build the debian packages and install

$ sudo apt install libgnutls28-dev doxygen libtalloc-dev
$ cd libosmocore
$ debuild -uc -us
$ cd ..
$ sudo dpkg -i *deb

Next, install simtrace2 dependencies, download simtrace2 itself and build the debian packages and install

$ sudo apt install libusb-1.0-0-dev libpcsclite-dev
$ cd simtrace2
$ debuild -uc -us
$ cd ..
$ sudo dpkg -i *deb

Finally, let's configure perms to launch simtrace2 in user space

$ sudo adduser $USERNAME plugdev
$ sudo wget -O /etc/udev/rules.d/99-simtrace2.rules https://git.osmocom.org/simtrace2/plain/host/99-simtrace2.rules
$ sudo service udev reload
$ sudo udevadm control --reload-rules
$ sudo udevadm trigger

Plug simtrace2 and test !!! 

$ simtrace2-sniff 
simtrace2-sniff - Phone-SIM card communication sniffer 
(C) 2010-2017 by Harald Welte <laforge@gnumonks.org>
(C) 2018 by Kevin Redon <kredon@sysmocom.de>

Using USB device 1d50:60e3 Addr=15, Path=1-3, Cfg=1, Intf=0, Alt=0: 255/1/0 (SIMtrace Sniffer)
Entering main loop
Card state change: reset asserted
ATR: 3b 9f 96 80 1f 87 80 31 e0 73 fe 21 19 67 4a 55 73 30 31 07 46 be 
PPS: ff 10 96 79 
PPS: ff 10 96 79 
Fi/Di switched to 512/32
TPDU: 00 a4 00 04 02 3f 00 61 2c 
TPDU: 00 c0 00 00 2c 62 2a 82 02 78 21 83 02 3f 00 a5 09 80 01 71 83 04 00 03 18 9c 8a 01 05 8c 04 26 1a 00 00 c6 0c 90 01 60 83 01 01 83 01 81 83 01 0a 90 00 
TPDU: 00 a4 08 04 02 2f e2 61 21 
..
..

h2. Wireshark

Install wireshark, run as root, capture localhost. Apply the following wireshark filter: 

udp port 4729


--

 

J. Félix Ontañón
Director of Research and Innovation
Pod Group
 

felix.ontanon@podgroup.com

www.podgroup.com
www.podm2m.com 
www.pod.solutions 

UK: +44 (0)1223 850 900
USA: +1 415 7070 500
Spain: +34 954 050 200

Facebook Twitter LinkedIn Instagram