background image

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...

Страница 2: ...Board 6 Trying Out Other Demos 7 Software Development in a Linux Environment 7 Import the Linux Appliance into VirtualBox 7 Starting the Linux Appliance with VirtualBox 7 Building the Bootloader Linux...

Страница 3: ...e in this font All paths are given in UNIX format For example demo is a folder called demo in the root of the specified device Glossary of Terms and Acronyms Jade Socionext MB86R0x family of processor...

Страница 4: ...tware Inc VirtualBox is a trademark of Oracle Corporation ARM is a trademark of ARM Limited 1 2 3 4 5 6 Suite of Software Tools USB stick containing documentation and preloaded touch and non touch dem...

Страница 5: ...urces used is also provided to allow the adventurous to develop more complex applications A complete set of documentation schematics gerber files and source code is included to ensure users can fully...

Страница 6: ...LCD0 Output 3 5 Way Joystick 4 HDMI Output 5 Reset Switch 6 Headphone Output 7 Line Level Output 8 Line Level Input 9 Ethernet 10 USB Connector 11 Power Switch 12 Power connector 13 Mini USB 14 Micro...

Страница 7: ...ON Software Development in a Linux Environment Import the Linux Appliance into VirtualBox To use VirtualBox 1 Select and launch VirtualBox 2 Select File Import Appliance 3 Select the appliance demonst...

Страница 8: ...t uImage303 YYYYMMDD HHMM where the date and time are given as a four digit year and two digit month day hour 24 hour format and minute A symbolic link to that file is also created as tftpboot uImage...

Страница 9: ...e 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 configu...

Страница 10: ...sizes of 4 to 10 inches are common A hierarchical bus system isolates high performance functions e g 3D graphics processing from routine operations e g low speed I O Socionext has designed the ARM pr...

Отзывы: