[B] Mastering embedded linux programming notes
Build Toolchain
- Linux 系統下 安裝 QEMU(模擬器)
- 開啟虛擬硬碟 Virtualbox安裝 crosstool-NG (p. 021))
sudo apt-get install automake bison chrpath flex g++ git gperf gawk libexpat1-dev libncurses5-dev libsdl1.2-dev libtool python2.7-dev texinfo
ps. [ERROR] E: Invalid operation python2.7-dev - ./confiure –enable-local
ps. enable local 讓程式安裝在目前的資料夾
=> Configure: error: missing required tool: makeinfo => install texinfo
=> Configure: error: missing required tool: help2man => install help2man
=> configure: error: Required tool not found: GNU bash >= 3.1
check GNU bash version: bash –version
SOLUTION. picture.a, picture.b
config build finished and makefile showup (picture.c, picture.d) - make
- make install
=> showup ct-ng - check default setting (picture.e)
./ct-ng show-arm-cortex_a8-linux-gnueabi - Use this setting for target environment (picture.f)
./ct-ng arm-cortex_a8-linux-gnueabi - Use user interface for config menu command: menuconfig (picture.g)
./ct-ng menuconfig - The motification setting on menuconfig will save into .config file (picture.h)
- build toolchain (picture.g)
./ct-ng build
Don’t know why the linux 4.10.8 can’t be downloaded
the address of the website is different from https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/