SOC8200 Linux User Manual

fansbutterflyΚινητά – Ασύρματες Τεχνολογίες

19 Ιουλ 2012 (πριν από 4 χρόνια και 10 μήνες)

410 εμφανίσεις






K7

Android

User Manual


V
ersion of 1.1



Release:

20
10
-
11
-
03



























2





Revision history

Rev

Date

Description

1.0

2
010
-
0
7
-
10

Initial

version

1.1

2010
-
11
-
03

Added

the
description

that

how to update th
e image














































3


D
irectory

K7 Android User Manual

................................
................................
................................
......

1

Chapter One Linux Image Update

................................
................................
...............

4

1.1 The formatting of MMC/SD card

................................
................................
.....

4

1.2 The o
perating s
teps of the update

................................
................................
..

4

Chapter Two Android System Deveplopment

................................
..............................

4

1.1 Install the cross compilation environment

................................
..............................

4

1.1.1 The installation of cross compilation tool

................................
.....................

5

1.1.2

The installation of other tools

................................
................................
.......

5

1.1.3 Adding environment variable

................................
................................
.......

5

1.2 system complie

................................
................................
................................
.......

6

1.2.1 Preparation

................................
................................
................................
...

6

1.2.2 x
-
loader image generated

................................
................................
............

6

1.2.3 u
-
boot image generated

................................
................................
...............

7

1.2.4 kernel image generated

................................
................................
...............

7

1.2.5 ubifs image generated

................................
................................
.................

7

1.2.6 Android

image generated

................................
................................
.............

7

Appendix

................................
................................
................................
.......................

8

How to use Wi
-
Fi

................................
................................
................................
...

8

How to use 3G

................................
................................
................................
.......

8

Maintenance Service

................................
................................
................................
....

9

Maintenance service clause:

................................
................................
.................

9
























4





Chapter One

Linux
I
mage
U
pdate

1.1 The
formatting

of MMC/S
D card

HP USB Disk Storage Format Tool 2.0.6

is
recommended
:

The software is download from:

http://opensourcemid.googlecode.com/files/SP27213.exe


1. Insert MMC/SD card into the
card rea
der

in PC

2. Open the
HP USB Disk Storage Format Tool
, the following tips will show:

3. Select
“FAT32”


4. Click

Start


5. When formatting is completed, click

OK


1.2
The o
perating steps

of the update

1. Copy all the files for

the

directory of

Android/i
mage

, rename the

flash
-
u
-
boot.bin


as
the

u
-
boot.bin


(Delete the old u
-
boot.bin but keep
backup
).

2. Insert the TF card to the K7, connect the 5V power supply, press the reset key (Beside
the 5v power connector), after that, press the power key (the ke
y above the track ball), the
update will start,

please wait 4 m
in
.

3. When finished the update,
please extract the TF card
, press the reset key(Beside the
5v power connector), the system will reboot.

4. press the power key (the key above the track ball), t
he K7 android will start.

Chapter
Two

Android

System Deveplopment

This section will introduce how to establish a Linux system development platform run on
K7

hardware platform with the use of
K7

BSP
. Details to be provided contain the formation
of cross com
pilation environment, the generation of system image and demonstrate how
to customize the system.

Notes: The Linux said thereof is ubuntu 7.10 which will be referred as ubuntu.

1
.1 Install the cross compilation environment

User must well form an arm Lin
ux cross compilation environment before developing the
K7
. We will take
ubuntu

operating system as the example to introduct the formation of
cross compilation environment. The operation in Linux is similar with that in ubuntu


5


system.

1
.1.1 The installatio
n of cross compilation tool

Insert the
TF card
, ubuntu will put the
TF card

under
/media/
sdx

directory
, and the cross
compilation tool will be put under
/media/
sdx/Android
/tools directory
.

Users can execute the following commands to start up the installat
ion of cross compilation
tool:

cd /media/
sdx
/
Android
/tools

tar xvjf
arm
-
2007q3
-
51
-
arm
-
none
-
linux
-
gnueabi
-
i686
-
pc
-
linux
-
gnu.tar.bz2

-
C
/home/
opensoucemid

tar xvjf
arm
-
eabi
-
4.4.0.tar.bz2

-
C /home/
opensoucemid


Notes: The manual takes
/home/
opensoucemid

as de
fault installation directory.
Users may change the path.


1
.1.2 The installation of other tools

Other tools included in
Android
/tools

directory of CD may be used for source code. Users
can execute the following commands for installation:

mkdir /home/
open
soucemid
/tools

cp /media/
sdx
/
Android
/tools/mkimage /home/
opensoucemid
/tools

cp /media/
sdx
/
Android
/tools/signGP /home/
opensoucemid
/tools

cp /media/
sdx
/
Android
/tools/mkfs.ubifs /home/
opensoucemid
/tools

cp /media/
sdx
/
Android
/tools/ubinize /home/
opensoucemid
/t
ools

cp /media/
sdx
/
Android
/tools/

ubinize.cfg /home/
opensoucemid
/tools


1
.1.3 Adding
environment variable

After installation of the above tools, those tools can be added into environment variable
with the following commands:

export
PATH=
/home/
opensoucemid
/
tools:
/home/
opensoucemid
/
arm
-
2007q3/bin:/usr/local/
toolchain/arm
-
eabi
-
4.4.0/bin:$PATH


Notes: Users can put it into the barsrc file, and the adding of environment variable
can be finished as the system starts.



6


1
.2 system complie

1
.2.1 Preparation


The so
urce code of each part of the system is under the
Android
/source

of
TF card
. Users
can copy it to the system and unzip it before developing. For
example
:

mkdir /home/
opensoucemid
/work

cd
/media/
sdx
/
Android/
source

tar xvf
x
-
load
-
1.41.tar.bz2

-
C

/home/opens
oucemid/work/


tar xvf
u
-
boot
-
1.3.3.tar.bz2

-
C

/home/opensoucemid/work/

tar xvf
linux
-
2.6.29
-
mid7030.tar.bz2

-
C

/home/opensoucemid/work

tar xvf
rowboat
-
android
-
eclair
-
2010.10.9.tar.bz2


C /home/opensoucemid/work

sudo
tar xvf
rootfs.tar.bz2

-
C

/home/opensou
cemid/work/

cd /home/opensoucemid/work

When the above steps are finished, the current directory will generate
linux
-
2.6.29
-
mid7030
,
u
-
boot
-
1.3.3
,
x
-
loader
-
1.41
,
rootfs
.

1
.2.2 x
-
loader

image generated


K7

supports MMC/SD boot or NAND boot. The burned
x
-
loa
der

image files are different
with the different boot modes, and the corresponding methods for mapping will differ too.

We will introduce the generation of
x
-
loader

image file under different boot modes.

1. To generate
x
-
loader

image file MLO used for SD
card start
-
up

When the above steps are finished, the current directory will generate the file MLO we
need.

cd x
-
load
-
1.41/

make distclean

make omap3mid7030_config

make

signGP x
-
load.bin

mv x
-
load.bin.ift MLO

2. To generate the
x
-
load.bin.ift_for_NAND

start
-
up

(1)To alter the file
include/configs/omap3mid7030.h

and
annotate

the following:

vi include/configs/omap3mid7030.h

//#define CONFIG_MMC 1



(2)Cross compilation

cd x
-
load
-
1.41

make distclean

make omap3mid7030_config

make

signGP x
-
load
.bin

mv x
-
load.bin.ift

x
-
load.bin.ift_for_NAND



7



When the above steps are finished, the current directory will generate the file
x
-
load.bin.ift_for_NAND

we need.

1
.2.3
u
-
boot image generated


cd u
-
boot
-
1.3.3/

make distclean

make omap3mid7030_config

make


W
hen the above steps are finished, the current directory will generate the file
u
-
boot.bin

we need.

1
.2.4 kernel

image generated


cd linux
-
2.6.29
-
mid7030/

make distclean

make omap3_mid7030_defconfig

make

make uImage

When the above steps are finished, the
a
rch/arm/boot

directory will generate the file
uImage

we need.

1
.2.5 ubifs
image generated

cd /home/
opensoucemid
/work

sudo
/home/
opensoucemid
/tools/mkfs.ubifs

-
r rootfs
-
m 2048
-
e 129024
-
c 1996
-
o ubifs.img

sudo
/home/
opensoucemid
/tools/
ubinize
-
o ubi.img
-
m 2048
-
p 128KiB
-
s 512
/home/
opensoucemid
/tools/
ubinize.cfg

When the above steps are finished, the current directory will generate the file ubi.img we
need.

1.2.6

Android

image generated

cd
rowboat
-
android
-
eclair
-
2010.10.9

make










8


Appendix

How to use Wi
-
Fi

If the user using first time, please follow the steps below:

1.

Enter the menu;

2.

S
elect the

Settings

;

3.

Select the

Wireless & networks

;

4.

R
eset the

Wi
-
Fi


( open and close);

5.

R
eboot
the

system;

6.

Enter

Wireless & network
s


-
>

Wi
-
Fi settings


to select the router that you need.


How to use 3G

1.

Enter the menu;

2.

S
elect the

Settings

;

3.

Select the

Wireless & networks

;

4.

Select the

Mobile networks settings

;

5.

Select the

Access Point Names

;

6.

Press the setup key (The top right co
rner),
select

the

New APN

, modify the

Name


and

APN


as the EVDO, make sure the

MCC

,

MNC


has display the parameter
automatically
, if not, please reboot the system and insert the SIM again.

7.

Back to the
“Wireless & network settings”, select the “Mobi
le networks” to open 3G.
















9


Maintenance
S
ervice

Maintenance service clause:


The period of warranty for K7 MID (except LCD) is 90 days effective from sale. The
warranty is invalid if you did not purchase through an authorized distributor and can
't
provide the original bill as proof of purchase, you had opened the MID case and the
warranty label has been removed or damaged or altered.


We do not offer maintenance service to LCDs. We suggest the customers first check
the LCD after getting the goods
. In case the LCD can not run or no display, customer
should inform us within 7 business days from the moment get the goods.


During the warranty period, the delievery fee which delivery to us should be coverd
by user, we will pay for the return delivery f
ee to users when the product is repaired.

Please first download the
Maintenance

application form:
RMARequestform

and

fill in
it,
then send this form to the mailbox:
support@opensourcemid.org

.
















Welcome you to join OpenSourceMID Cmmunity.

We expect to have more great ideas
with you.