关于Osmocom-BB GSM-SMS 嗅探出现的一些问题的解决方案

关于Osmocom-BB GSM-SMS 嗅探出现的一些问题的解决方案
安装教程直接参考freebuf上的这个
在安装这个项目之前建议sudo -s一下,不然以后会有点麻烦。

错误A

在安装libosmocore执行./configure 的时候很多人会遇到

> No package ‘talloc’ found

这种错误,因为找不到talloc,下面是解决办法(以下代码均是在sudo -s的情况下)

# wget https://www.samba.org/ftp/talloc/talloc-2.1.7.tar.gz

# tar -zxvf talloc-2.1.7.tar.gz

# cd talloc-2.1.7/

# ./configure

# make

# make install

紧接着有可能出现

No package 'gnutls' found

的情况,使用

apt-get install libgnutls28-dev 

解决这个问题

错误B

>     /root/osmocom-bb/src/target/firmware/include/asm/swab.h: Assembler messages:
>     /root/osmocom-bb/src/target/firmware/include/asm/swab.h:32: Error: no such instruction: `eor %edx,%ecx,%ecx,ror’
>     make[4]: *** [gsmtap_util.lo] 错误 1
>     make[4]: Leaving directory `/root/osmocom-bb/src/shared/libosmocore/build-target/src’
>     make[3]: *** [all] 错误 2
>     make[3]: Leaving directory `/root/osmocom-bb/src/shared/libosmocore/build-target/src’
>     make[2]: *** [all-recursive] 错误 1
>     make[2]: Leaving directory `/root/osmocom-bb/src/shared/libosmocore/build-target’
>     make[1]: *** [all] 错误 2
>     make[1]: Leaving directory `/root/osmocom-bb/src/shared/libosmocore/build-target’
>     make: *** [shared/libosmocore/build-target/src/.libs/libosmocore.a] 错误 2

此问题的出现是OsmocomBB交叉编译环境出现问题,网上几乎所有文章都没有明确的解决方案,有大部分文章的答案都是下面这个,但是此链接已经过期
在这里插入图片描述
所以我们选择自己去github
https://github.com/koushik2506/exp/tree/master/arm
上下载这个包拖进虚拟机你的osm项目的二级目录里并进行解包

    # mv ../Desktop/bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4_x86-64.tar.bz2  ./
    # tar xf bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4_x86-64.tar.bz2
    # mv gnuarm-* ~/gnuarm
    # export PATH=~/gnuarm/bin:$PATH

同样你也可以使用git命令下载项目后解压
接下来应该会出现

make[1]: *** [board/compal_e88/hello_world.compalram.elf] 错误 1

make[1]: Leaving directory `/root/osmocom-bb/src/target/firmware’

make: *** [firmware] 错误 2

解决:

执行

git clean -dfx
    
make

最后我是装完了环境,可是刷不进去,初步估计是数据线的问题,等过段时间有时间了自己组一个,如果有大佬知道怎么弄,请务必告诉我一下呀!(・ω・)ノ
在这里插入图片描述

  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值