X8632 cont

chmod +x release-sourceforge/android pxa270/scripts/bin/mkimage

Install Required Packages

Install zlib1g, libssl and etc.

Setup Compiling Options (This step _could be ignored)_

"make menuconfig" under release-sourceforge/android-pxa270 directory

Setup Compiling Options (cont)

Toolchain

Please enter a string value, use the <TAB> key to move from the input| field to the buttons below it.

arrn-2O08q3-41-arni-n£Sie-liniJX-gnueatii -i686-pc - linux-gnu. tar, bz2

Linux Kernel riux-2 . 6 . 25-androld-l, a rl) Android 1.6 SDK, Release

BusyBox

Root File System

Setup Compiling Options (cont)

Enable Android • Demo

• Use our pre-build Android root file system directly

— Enable Android

Compile from our modified Android source code

( } ndroid Demonstration _

ra imnmnBBaE |

Save and exit

Do you wishjv|o save your new EPS Android configuration?

Build uImage and rootfs.jffs2

sudo and "make"

Build uImage and rootfs.jffs2 (cont)

Done

I \f Applications Places System root

Sat May I 2:57 PM

File Edit View Terminal Tabs

I 0777 1 0777 /usr/share /var

/var/log

17 17

telnetd -> ../■./bin/busybox udhcpd -> .. /.. /bin/busybox

/var/log

/var/run

d

0777

0

0:

: 0

log 1

d

0777

0

0:

: 0

run

f

0777

1

0:

: 0

dmesg

f

0777

188

0:

: 0

messages

f

0777

0

0:

: 0

utmp

f

0777

0

0:

: 0

wtmp

f

0777

32

0:

: 0

stab

f

0777

0

0:

: 0

utmp

http://www.mask.org.tw

/var/run

Compression mode: priority Compressors:

none compr:

zlib [prio:M) + compr: rtime (prio:5S) + compr: Compression errors: 0

make[ll: Leaving directory Vroot/release-sourceforge/android-pxa270' roottacozyenjoy:-/release -sou reef oi"ge/android- pxa27S#

15 blocks [12635) decompr: 0 blocks

297 blocks (667563/1129314) decompr: S blocks

S blocks (0/0) decompr: S blocks

Build uImage and rootfs.jffs2 (cont)

All generated files are under target directory

Build uImage and rootfs.jffs2 (cont)

Build uImage and rootfs.jffs2 (cont)

Under target/bin directory

Build uImage and rootfs.jffs2 (cont)

demo.tgz is a pre-build Android root file system which should be uncompressed into external USB storage rootfs.jffs2 is a simple embedded Linux root file system which should be written into Flash ROM

uImage is a Linux kernel image which should be written into Flash ROM

Write uImage into Flash ROM

Setup Tera Term

Tera Term Comi

Write uImage into Flash ROM (cont)

Serial port setting

Tera Term: Serial port setup

Port:

COMI

>

Baud rate:

9600

d

Data:

6 bit

J

Parity:

none

d

Stop:

1 bit

3

Flow control:

none

3

Transmit delay

Help msec/char 0 msec/Jine

Write uImage into Flash ROM (cont)

Power on PXA270 and press any key into u boot environment

Tera Term - COM1 VT

Fite £d.t Control Window Hdp

DRAU: 64 MB Flash: 32 MB

net Envftddr=M:IG¡03:40:12:05 net HWAddr={)(J:ie:fS:40:12:05

set bootares=root=/d8v/mtdbJöckS r* rootfstype=jffs2 conso(e=ttyS(M6ÜÜnii toeim=(>4

M ip-192-1SS.0.10:192.0.153:132.166.0.2:255.255.255.0::eth0:off ether=00:1

In: serial

Out: serial

Err: serial

Missing Cre&te-PXA270 confis block Hit any key to stop autcboot: 0 u-booti

http://www.mask.org.tw

Write uImage into Flash ROM (cont)

Tera Term Flashing Boot

Write uImage into Flash ROM (cont)

Download uImage into memory on PXA270 • tftp a1100000 uImage

Write uImage into Flash ROM (cont)

Erase NOR Flash

• protect off 100000 47ffff

• erase 100000 47ffff

H e Edit Setup Control Vimdow Heip u-boot$ Lf+.p a1100□ □ 0 ulrnage

Warning: MAC addresses don't match:

HW irfAC address: 00:16:08:40:12:05 "ethaddr" value: 00:1G:F3:40:12:05 Using MAC Address 00;13:F3:40;12:05

TP":P from server 132.108,0,153; our IP address Is 132.1 S3,0.10

Fi lename 'ulrcage'.

Load address: Oxal100000

Loading; iititit«ttiimtf«^^

tptttitjflitpjjittttjtpittttjtjflittjtjflitjtpjititjtpitttjtpflflpjpittjtpitttpp tMpt»ttt«tPM

u m i m I m fl mi m w m n mtmimimimimimmmm I mm m piuup p w«p p tmwpp p done

Bvtes transferred $ 1830143 (1cG234 hex) u-boots protect off 110 J f.fff Un-Protected 23 sectors u-boct$ erase 100000 47ffff

Erasing sector 11 done

Erasing sector 12 ..L done Erasing sector 13 ... done

Write uImage into Flash ROM (cont)

Write uImage into NOR Flash on PXA270 • cp.b a1100000 100000 200000

r

Tera Term - COMI VT

1 File edit Setup Control Win do v. Hplp

rasing sector rasing sector rasing sector :rasing sector ir&si rr£ sector ■rasing sector Erasing sector rasing sector trasine sector rasing sector rasing sector ■rasing sector Erasing sector Erasing sector Erasing sector rasing: sector rasing sector rasing sector rasing sector trasing sector rasing sector rased 28 sectors u-boot$ cp.b aMOOCOO topy to Fl^sh.,,-done u-boot$

20 21 22

37 30

done done done done done done doné done done done done done done done done done done done done done

100000 2QOOOO

http://www.mask.org.tw

Write rootfs.jffs2 into Flash ROM

Download rootfs.jffs2 into memory on PXA270

• tftp a1480000 rootfs.jffs2

n'e ^etup Centre ^jpndott Help

http://WWW.m35k.0rg.tW

Erased 28 sectors

(J-booti cp.b al 100000 t&0DOO 200000 Copy to Flash.,.-done u-booti UIp slMSOOOO rooUsJffs2 Usir>e HAC ¿ddress 00:16:F4:lO: 12:05

TFTP fro* server 192.153: our IP address is 192.168,0.10 Fi lensM *rootfs, jf fs2". Load address: OBa14SO&'fiO

Loadlr*: BSB)tttflflI(flflfl(fllltttmSllttflttfl«iitltttW8mtflli()lfllHlttti6«l

IIKSttiltlflfltflltttnitttillilWJIiaittltttttilttKllflllltHHtlBItll MjMMmffiwmMmflMMttmttttiiMafflflitnBMmfttiiMaMmii mittimtflttitmmMiMmittMiiiimMmititttflflMiiitttrait iMiitmmatiimiiHmimatiaflamimiilttitiliSiBaitttttisasii iiismmiMiiJiiiiiitifsttittiiitiiiiimisitmiJiiiiiiiiitiiitifl iimmimsittimiitmimititiiimimapmtaiiiittttiBfflS Bttitfllimfl(fl«lll«tliiIiflflfl««IIUWttllttlflfl(lfllllBiBHtlSlttB

Bii)titttiiiiiaiiiitttti«tiiiii5ii«iiBiifl6ittiimistiiinititttiti ttttttitsiiifl)titiiititt«ttJtsniiia«mn«tBittitiiti«^^siitii itMttiMttMaaaamiiimmMBttaiiitiittttt»t(aittmaaaiiitittttim iiBiMtBttttiaaaamiiiuitBttMaaaaaaaiiitttstmattaBaaaiaiwmta tttllttfl»tt0lt1ttttlilljtttt$t0»t«tttllltt«llttttttl done

Bytes transferred - 524Z880 (500000 hex) u-booti I

Write rootfs.jffs2 into Flash ROM (cont)

Erase NOR Flash

• protect off 480000 97ffff

• erase 480000 97ffff

rile set CantTíjl V¿md0w

F[ lename ' r-trttfs. jffs2' , Load address: DxilWOOOG

Loading; tnttitiittniuiiiiMiitiistiiiitttEitnimmtitmmtutii 111 itf j: it i ut J e it ii: it H it ii lit tt n - it i It i s II»if i e itJ s itl s n: tiaitiuiEitiisit tnttntiitttit#iitii##iM«it»iitiittittittu«iittiitiittuttuiii tttttsututttiunsttttUttSitwntitWAmtnitttufittttwtUitimmQ tnttiitntmtitttitmtntntttittittitttitmtmtittiittittii tiniiitmtutmtminmmtntmmtmmtntttttiittittti tlitllltuttlttlltltlisttlttllttlttlltlltttttttttilttllttltiltttlttl] tUttlltmtlitmMtmnttmilttlttllttlttlftlltllltltttltm tmttttitttittitttittwtiitJtittPtiitiwttitiitttwttittiiitiTO

m itts: nil twe nile u h m mi mn ttti me in: it itiie n: nil > e itJ: nil a Eta emu it tiitdttiitattiittitiutiittittiitttttiitiittitjwttitttiitittii WttttittftmtntmiKtitttittfittitiMitttittliJttistitttittitttiiiitt tnttittnttittitttittntttttittiittitttittittitttittittvittitttt tmtlttm»lttllMlttltttltttltttlttimmmtllttmtl*ttlltMttl tl1ti1iSnimtMtttlPllitim(ItlWltt?mmtttil

<fone

Bytes transferred = 5242830 (500000 hex) u-bootl propel Off 37ffff

Lh-Protected sectors u-booti erase 480000 Cffff

Erasing sector 39 , done Erasing sector 40 done Erasint sector 41 ... |

http://www.mask.org.tw

Write rootfs.jffs2 into Flash ROM (cont)

Write rootfs.jffs2 into NOR Flash on PXA270 • cp.b a1480000 480000 500000

i™ Tera Term - COM1 VT

R!e ad

t Setup Control Window Help

Eras i ns

sector

56

done

Jk

Ermine

sector

5?

done

http://www. mask. org. tw

Eras ins Eras i tie

sect or sector

53 59

done done

Erasing

sector

80

done

Erasing

sector

81

done

Erasing

sector

82

done

Eras ins

sector

done

Erasing

sector

84

done

Erasing

sect or

£5

done

Erasing

sector

done

Erasing

sector

87

done

Erring

sector

83

done

Erasing

sect or

£9

done

Erasing

sector

70

done

Erasing

sector

71

done

Eras i rig

sect or

72

done

Erasing

sector

73

done

Erasing

sector

74

done

Ermine

sector

75

done

Erasing

sector

76

done

Erasing

sector

77

done

Erasing

sector

73

done

¡Erased sectors

Du-booti

cp.b ¿1480QQ0

460000

ICopy to Flash..

..- done

F-e Edit Setup Contioi ¿Vlndov. Heio

F-e Edit Setup Contioi ¿Vlndov. Heio

Bluetooth: BNEP (Ethernet Emulation) ver 1.2 Bluetooth: BNEP ti iters: protocol mult;cast Bluetooth: HIDP (Human Interface Emulation) ver 1.2 RFC: Registered udp transport inoduie, RFC: Reiste red tcp transport module.

ieee302H: 802.11 data/roanagement/control stack, g it-1.1.13

ieee3Ü211: Copyright (C) 2004-2005 Intel Corporation CjketrenoSI inux. intel.com>

XScale iV.'MMXt coprocessor detected.

IP-Config: Complete:

devicezethO, addr=1S2J 68.0.10, mask=255.255.255.0, gw=192. 168.0.2, host-182,168.Or 10, c!omain=, n s-domain"(none), bootserverz132.168.0.153, roctserver-182.168.0.153, rootpath= ethO: linkup, 100Mbps, full-duplex, I pa 0x45E1 VFS: mounted root C-ffs2 fi!esystem). Freeing init memory: 104IÎ

init started: BusyBox yl.13.2 (2010-04-27 17:23:22 CST) start ;|-ig p!d 843, tty : '/etc/ in! t.d/rcS'

BusyBox vl.13.2 (2010-04-27 17:23:22 CST) built-in shell (ash) Enter "help" for a list of bu:it-^n commands.

Processing /etc/prof:le... Done L root S Android /]Jt starting p:d 853, tty '-/bin/sh'

http://www.mask.org.tw

Boot Successfully

MTLC0-03S3224 « (cjww M* *

Bring Up Android on PXA270

Setup Environment

*

*

Build uImage and rootfs.jffs2, then write uImage and rootfs.jffs2 into Flash ROM

*

f

Build Android root file system and put it into external USB storage

*

f

chroot and execute Android

Prepare External USB Storage for Android Root File System fdisk -I

Prepare External USB Storage for Android Root File System (cont)

fdisk /dev/sdb

0 0

Post a comment