IdeaBoxx
™
Product Manual – © 2015
9
Building the Linux Kernel with the Default Configuration
To rebuild the Linux kernel with the default configuration, execute the following commands. Note that this will delete any
existing local kernel configuration, so users should copy it to another directory before proceeding if they want to save the
kernel.
cd /opt/jade/bsp303/sources/xxsvideo/linux-3.0.3
make distclean
make jade-ideaboxx_defconfig && ./build.sh
Compiling User Code
A C and C++ compiler are included in the BSP. They are
/home/jade/opt/crosstool/gcc-4.2.3-glibc-2.7/arm-unknown-linux-gnueabi/bin/arm-unknown-
linux-gnueabi-gcc
and
/home/jade/opt/crosstool/gcc-4.2.3-glibc-2.7/arm-unknown-linux-gnueabi/bin/arm-unknown-
linux-gnueabi-g++
respectively. This path is included in the system path variable. These are cross-compilers
built from GCC sources and use the same command-line arguments. To compile a single-source-code program,
arm-
unknown-linux-gnueabi-gcc hello.c –o hello
will generate a binary file
hello
that will run on Jade.
Setup
The BSP is included on the USB drive as a VirtualBox appliance. Users need to have VirtualBox installed on their computer
in order to run it. The BSP was created and tested with VirtualBox 4.3.6. VirtualBox software can be downloaded from
https://www.virtualbox.org/wiki/Downloads. Once installed, the appliance can be imported into VirtualBox.
The Jade IdeaBoxx board can boot from Flash (the default) or from TFTP + NFS via Ethernet. The default IP address of the
board is 192.168.1.230. U-boot is configured to look for TFTP and NFS servers at address 192.168.1.130. The VirtualBox
appliance has these servers configured and active out of the box. To boot via Ethernet, press any key on the serial console
immediately after power on to stop u-boot. Then execute
run netboot
from the u-boot prompt.
Building the Kernel
To rebuild the Kernel, navigate to
/opt/jade/bsp303/sources/xxsvideo/linux
in the development filesystem. The
kernel can be rebuilt with
make jade-ideaboxx_defconfig
then
./build.sh.
Note
make jade-ideaboxx_defconfig
only needs to be run once or after running
make distclean
. The resulting
image will be
/tftpboot/uImage
.
Building a Root Filesystem Image
To build a root filesystem image suitable for flashing into the Jade SOM, navigate to
/opt/jade/bsp303
in the
development filesystem. The filesystem image can be built with
./build.sh.
The resulting image will be .
C/C++ Cross-Compilers
The C compiler provided is a GCC-based cross-compiler. It can be executed with
arm-unknown-linux-gnueabi-gcc
.
Likewise, the C++ compiler provided is a GCC-based cross-compiler. It can be executed with
arm-unknown-linux-
gnueabi-g++
.
Important File Locations
u-boot source:
/opt/jade/u-boot
Linux kernel source:
/opt/jade/bsp303/sources/xxsvideo/linux
Root filesystem top-level directory:
/opt/jade/bsp303/rootfs-final
TFTP boot file location:
/tftpboot
Содержание Jade IdeaBoxx
Страница 1: ...Jade IdeaBoxx Product Manual...