luca/gsmmtap/ branch cannot receive gsm packet
ubuntu 16.04 Linux bogon 4.4.0-21-generic #37-Ubuntu SMP
after git clone osmocombb ,use luca/gsmmtap/ branch with modify c118 phone to sniffer gsm uplink information , run make ,compile successful.
# ./osmocon -m c123xor -p /dev/ttyUSB0 ../../target/firmware/board/compal_e88/layer1.compalram.bin
when upload success,it appears blew content,hangs.
PM MEAS: ARFCN=1023, 45 dBm at baseband, -92 dBm at RF L1CTL_RESET_REQ: FULL!L1CTL_FBSB_REQ (arfcn=94, flags=0x7)
_# ./ccch_scan -i 127.0.0.1 -a 87 Copyright (C) 2010 Harald Welte <email@example.com> Contributions by Holger Hans Peter Freyther License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Failed to connect to '/tmp/osmocom_sap'. Failed during sap_open(), no SIM reader_
how to find the reason ?
- 1.oscomcon -m parameter
- use wrong branch to use modify c118 to sniffer uplink gsm packet?
thanks for any advice.
search the web,find below method to capture uplink gsm packet.
the reason maybe note: as of 2013-10-20, if you use a toolchain with gcc >=4.8, the firmware can be compiled, but will hang as soon as you want to sync to an ARFCN. This issue has been fixed in master.
after make success image,change below files:
find " KEEP())" ,the add "KEEP((SORT)) "new line ,for example
src/target/firmware/board/compal/highram.lds src/target/firmware/board/compal/ram.lds src/target/firmware/board/compal_e88/flash.lds src/target/firmware/board/compal_e88/loader.lds src/target/firmware/board/mediatek/ram.lds
LONG(SIZEOF(.ctors) / 4 - 2) /* ctor pointers */ KEEP(*(SORT(.ctors))) KEEP(*(SORT(.init_array))) /* end of list */ LONG(0)
cd ~/osmocom-BB/src make -e CROSS_TOOL_PREFIX=arm-none-eabi-
at last run:
# ./osmocon -m c123xor -p /dev/ttyUSB0 ../../target/firmware/board/compal_e88/layer1.compalram.bin _# ./ccch_scan -i 127.0.0.1 -a 87
wireshark appears uplink packet.
is possible to add above change code to merge with the luca/gsmmap branch?
Yes, feel free to send a patch: https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit