Created
April 10, 2018 23:50
-
-
Save RomaniukVadim/6e3776367e165b2574b29103a240ce8e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step #1 - Minicom | |
Проверка работоспособности кабеля и соединения: | |
1.1 Устанавливаем миником | |
sudo apt-get install minicom | |
1.2 Проверяем USB порт | |
ls /dev/ | grep tty | |
1.2 Запускаем в режиме настройки | |
sudo minicom -s | |
1.4 Выставляем порт USB0 | |
1.5 Нажимаем Esc | |
1.6 Нажимаем клавишу включения на телефоне | |
1.7 Ждем строку @ftmtoolerror | |
Step #2 - Osmocom | |
2.1 Включаем суперпользователя: | |
sudo su | |
2.2 Устанавливаем зависимости | |
apt get update | |
apt-get install libtool shtool automake autoconf git-core pkg-config make gcc | |
2.3 Создаем директорию для библиотек кросс-компилятора | |
mkdir /opt/osmocom | |
2.4 Устанавливаем библиотеку libosmocore | |
cd /opt/osmocom | |
git clone git://git.osmocom.org/libosmocore.git | |
apt-get install libpcsclite-dev | |
cd libosmocore | |
autoreconf -i | |
./configure | |
make | |
make install | |
2.5 Собераем кросс-компилятор | |
cd /opt/osmocom | |
apt-get install build-essential libgmp3-dev libmpfr-dev libx11-6 libx11-dev flex bison libncurses5 libncurses5-dbg libncurses5-dev libncursesw5 libncursesw5-dbg libncursesw5-dev zlibc zlib1g-dev libmpfr4 libmpc-dev texinfo | |
git clone https://github.com/axilirator/gnu-arm-installer.git gnu-arm-toolchain | |
cd gnu-arm-toolchain | |
./download.sh | |
2.6 Компилируем | |
./build.sh | |
2.7 Редактируем переменные среды | |
gedit .bashrc | |
Добавляем: | |
export PATH=$PATH:/root/opt/osmocom/gnu-arm-toolchain/install/bin/ | |
source .bashrc | |
arm-elf-gcc -v | |
Step #3 - Собираем Osmocom | |
3.1 Создаем папку | |
mkdir ~/osmocombb | |
3.2 Клонируем ветку Master | |
cd ~/osmocombb | |
git clone git://git.osmocom.org/osmocom-bb.git master | |
3.3 Включаем перехват | |
nano src/target/firmware/Makefile | |
разкомментируем CFLAGS += -DCONFIG_TX_ENABLE | |
3.3 Собераем Master | |
cd master/src | |
make | |
Step 4 - Запускаем OsmocomBB | |
/osmocom-bb-master/src/host/osmocon/osmocon -p /dev/ttyUSB0 -m c123xor -c ~/osmocom-bb master/src/target/firmware/board/compal_e88/layer1.highram.bin | |
Нажимаем кнопку включения |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment