SBC8600B User Manual

Add to My manuals
127 Pages

advertisement

SBC8600B User Manual | Manualzz

Embest Technology Co., Ltd 31

After above operations are executed, a ubi.img file will be generated under the current directory.

3.4.2.5 Android system compilation

1) Execute the following instructions to start compilation of Android system;

cd rowboat-android-

gingerbread

-am335xevm

make TARGET_

PRODUCT

=am335xevm clean

make TARGET_

PRODUCT

=am335xevm OMAPES=4.x

2) Modify Rules.make under hardware/ti/sgx/ ;

Vi hardware/ti/sgx/Rules.make

Replace

“KERNEL_INSTALL_DIR=$(HOME)/work/Linux-3.1.0-android” with

“KERNEL_INSTALL_DIR=/home/user_name/work/Linux-3.1.0-android”

/home/user_name is the directory where usernames are saved, in other words, it’s the value of $(HOME). To view the value, please enter whoami in the terminal window of Linux system.

3) Please enter the following instructions to start making ubi file system;

source ./build_ubi.sh

ubi.img can be found under temp/.

Note:

 Before the compilation of Android file system, the Androind kernel source code

Linux-3.1.0-android needs to compile first, or errors might occur during the process.

3.4.3 System Customization

As Linux kernel has many kernel configuration options, users can add or remove drivers and some kernel features in the default configuration to meet specific requirement. The common process of system customization will be described with examples below.

Copyright © 2012 Embest Technology SBC8600B User Manual

Embest Technology Co., Ltd 32

3.4.3.1 Modification of kernel configuration

A default configuration file is provided in the factory kernel source codes:

Linux-3.2.0-psp04.06.00.08.sdk/arch/arm/configs/sbc8600_defconfig

Users can carry out system customization based on it:

cd Linux-3.2.0-psp04.06.00.08.sdk

cp arch/arm/configs/sbc8600_defconfig .

config

make menuconfig

Note:

 If an error occurs when command 'make menuconfig' is executed, you might need to install 'ncurse' in the Ubuntu system; 'ncurse' is a character graphic library required to generate configuration menu; please enter the following instruction to install the library:

sudo apt-get install ncurses-dev

Select the configuration below: The system customization will be described below by taking an example of usb mass storage device emulated with usb gadget:

-> Device Drivers

-> USB support

-> USB Gadget Support

-> USB Gadget Drivers

Copyright © 2012 Embest Technology SBC8600B User Manual

Embest Technology Co., Ltd 33

Figure 3-2

Type <M> for “File-backed Storage Gadget”, and select Save when you exit, and compile the kernel again.

3.4.3.2 Compilation

Save configuration, execute the following commands to recompile kernel:

make uImage

make modules

After above operations are finished, a new kernel image uImage will be generated under the directory arch/arm/boot, and a module file g_file_storage.ko can be found under the directory drivers/usb/gadget.

Copyright © 2012 Embest Technology SBC8600B User Manual

advertisement

Related manuals