Skip to content

Instantly share code, notes, and snippets.

@cyphunk
Created February 10, 2012 12:01
Show Gist options
  • Save cyphunk/1789066 to your computer and use it in GitHub Desktop.
Save cyphunk/1789066 to your computer and use it in GitHub Desktop.
Osmocom OSX 20120210
followed normal procedure from
http://bb.osmocom.org/trac/wiki/GettingStarted_osx
git clone git://git.osmocom.org/osmocom-bb.git
Current repository has a problem with some targets that do not have enough LRAM for
certain applications. During build the application that complained was rssi so for now
I skipped this by modifying src/target/firmware/Makefile:
#APPLICATIONS?=hello_world compal_dsp_dump layer1 loader chainload rssi
APPLICATIONS?=hello_world compal_dsp_dump layer1 loader chainload
The OSX drivers for the PL2303 cables are rather horrible so use a FTDI 3.3v cable
instead. For the connector I just cut off the connector from the PL2303.
outtertip=tx=pc2device=white middle=rx=device2pc=green inner=gnd=black.
PLAY
$ ./osmocon -p /dev/tty.usbserial-* -m c155 ../../target/firmware/board/compal_e99/hello_world.compalram.bin
$ ./osmocon -p /dev/tty.usbserial-* -m c155 ../../target/firmware/board/compal_e99/loader.compalram.bin
$ ./osmocon -p /dev/tty.usbserial-* -m c155 ../../target/firmware/board/compal_e99/layer1.compalram.bin
$ mkdir ~/.osmocom; mkdir ~/.osmocom/bb
$ touch ~/.osmocom/osmocom.cfg
$ touch ~/.osmocom/bb/mobile.cfg
$ ./mobile -i 127.0.0.1 -v 4247
$ telnet localhost 4247
Welcome to the OsmocomBB control interface
OsmocomBB>
OsmocomBB> enable
OsmocomBB# show ms
OsmocomBB# show neighbour-cells 1
OsmocomBB# show cells 1
(values from 'show ms')
OsmocomBB# sim testcard 1 <MCC> <MNC> <LAC>
OsmocomBB# sms 1 <PHONENUMBER> "test"
OsmocomBB# network select 1 <MCC> <MNC> force
SMS sms-service-center not defined on SIM card, please define one at settings.
OsmocomBB# test re-selection 1
OsmocomBB> no monitor network 1
OsmocomBB# show subscriber 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment