我是熊猫哥's Blog

一个真的技术宅,是一个假白帽黑客,网络安全工程师。一个普通人。

Osmocom-bb系统编译

2020-11-1 admini 无线安全

Ubuntu 12.04.5 LTS i386环境下编译
sudu su
-------------------------编译交叉环境-------------------------
cd /opt
mkdir GnuArmToolchain
cd GnuArmToolchain
wget http://bb.osmocom.org/trac/raw-attachment/wiki/GnuArmToolchain/gnu-arm-build.3.sh
chmod +x gnu-arm-build.3.sh

mkdir build install src
cd src
wget http://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2
wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.1a.tar.bz2
wget ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz

apt-get install build-essential libgmp3-dev libmpfr-dev libx11-6 libx11-dev texinfo flex bison libncurses5 libncurses5-dbg libncurses5-dev libncursesw5 libncursesw5-dbg libncursesw5-dev zlibc zlib1g-dev libmpfr4 libmpc-dev

cd /opt/GnuArmToolchain
./gnu-arm-build.3.sh(提示:Press ^C now if you do NOT want to do this.)按回车

等待ing....

提示:Build complete! Add /opt/GnuArmToolchain/install/bin to your PATH to make arm-none-eabi-gcc and friends
accessible directly.(编译完成)

echo "export PATH=\$PATH:/opt/GnuArmToolchain/install/bin">>/root/.bashrc
source /root/.bashrc
-------------------------安装libosmocore-------------------------
cd /opt
apt-get install build-essential libtool shtool autoconf automake git-core pkg-config make gcc libpcsclite-dev libtalloc-dev

git clone git://git.osmocom.org/libosmocore.git
cd libosmocore/
autoreconf -i
./configure
make install
cd ..
ldconfig
-------------------------编译osmocom-bb-------------------------
cd /opt
git clone git://git.osmocom.org/osmocom-bb.git
cd osmocom-bb
git checkout --track origin/luca/gsmmap
cd src
make
教程具体是教大家如何编译系统,至于系统编译好了,接下来的请大家自行google
如有不懂欢迎回复
作者:广岛秋泽 

标签: Hardware

发表评论: