![background image](http://html1.mh-extra.com/html/ibase-technology/ibr215/ibr215_user-manual_3247230044.webp)
BSP Source Guide
IBR215 User Manual
39
4
4.1 Building BSP Source
4.1.1 Preparation
The recommended minimum Ubuntu version is 18.04 or later.
1)
Install necessary packages before building:
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm
2)
Download toolchain
The clang used to compile Linux kernel needs to be a newer version. Perform the
following steps to set the clang to be used to compile Linux kernel:
sudo git clone
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86
/opt/ prebuilt-android-clang -b master
cd /opt/prebuilt-android-clang
sudo git checkout 007c96f100c5322acc37b84669c032c0121e68d0
export CLANG_PATH=/opt/prebuilt-android-clang
The preceding export commands can be added to "/etc/profile". When the host
boots up,"AARCH64_GCC_CROSS_COMPILE" and "CLANG_PATH" are set and can be
directly used.
Prepare the build environment for U-Boot and Linux kernel.
This step is mandatory because there is no GCC cross-compile tool chain in the one in
AOSP codebase.
a. Download the tool chain for the A-profile architecture on arm Developer GNU-A
Downloads page. It is recommended
to use the 8.3 version for this release. You can download the "gcc-arm-8.3-2019.03-
x86_64-aarch64-elf.tar.xz"
or "gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz". The first one is dedicated for
compiling bare-metal
programs, and the second one can also be used to compile the application programs.
b. Decompress the file into a path on local disk, for example, to "/opt/". Export a variable
named "AARCH64_GCC_CROSS_COMPILE" to point to the tool as follows:
# if "gcc-arm-8.3-2019.03-x86_64-aarch64-elf.tar.xz" is used
sudo tar -xvJf gcc-arm-8.3-2019.03-x86_64-aarch64-elf.tar.xz -C /opt
export AARCH64_GCC_CROSS_COMPILE=/opt/gcc-arm-8.3-2019.03-x86_64-
aarch64-elf/bin/aarch64-elf-
# if "gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz" is used
sudo tar -xvJf gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz -C /opt
export AARCH64_GCC_CROSS_COMPILE=/opt/gcc-arm-8.3-2019.03-x86_64-
aarch64-linuxgnu/bin/aarch64-linux-gnu
3)
Decompress the IBR215 source file (example ibr215-bsp.tar.bz2) into "/home/" folder.
Summary of Contents for IBR215
Page 10: ...General Information IBR215 User Manual 5 1 1 5 Product View...
Page 11: ...General Information IBR215 User Manual 6 1 1 6 Dimensions IBR215 Unit mm IBR215 IO...
Page 15: ...General Information IBR215 User Manual 10 1 2 3 Connectors on the IBR215 Main Board...
Page 25: ...General Information IBR215 User Manual 20 1 2 5 Connector Locations on the IBR215 IO Board...
Page 46: ...41 Appendix This section provides the information of reference code...
Page 58: ...IBR215 User Manual 53...