Uncategorized

[B] Mastering embedded linux programming notes

Build Toolchain

  1. Linux 系統下 安裝 QEMU(模擬器)
  2. 開啟虛擬硬碟 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
  3. ./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)
  4. make
  5. make install
    => showup ct-ng
  6. check default setting (picture.e)
    ./ct-ng show-arm-cortex_a8-linux-gnueabi
  7. Use this setting for target environment (picture.f)
    ./ct-ng arm-cortex_a8-linux-gnueabi
  8. Use user interface for config menu command: menuconfig (picture.g)
    ./ct-ng menuconfig
  9. The motification setting on menuconfig will save into .config file (picture.h)
  10. build toolchain (picture.g)
    ./ct-ng build
picture.a
picture.b
picture.c
picture.d
picture.e
picture.f
picture.g
picture.h
picture.g

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/

Comments Off on [B] Mastering embedded linux programming notes