1_Linux_Android_Environment_BuildUp
时间:2025-04-21
时间:2025-04-21
Marvell eBook Android
Marvell Confidential © 2007
Marvell eBook Android
environment build-up
Marvell Confidential © 2007
Marvell eBook Android
Outline
Get code base Build image and download Application installation Key info USB over UART log
Marvell Confidential © 2007
Marvell eBook Android
code base get
Linux kernel code base:VERSION M2.1.8.12.3.RC
Linux kernel patch:Aspen168_20091116A0
Android code base:Éclair 2.1 (reference:marvell_manifest.xml )marvell_manifest.xml
Android patch:AndroidEclair
Marvell Confidential © 2007
Marvell eBook Android
Install BSP & Android build tools in Host
Install build BSP tool $ apt-get install autoconf patch gcc g++ libgcc1 ncurses-dev libtool liblzo2-2 Install JDK get jdk-6u12-linux-i586.bin $ chmod a+x ./jdk-6u12-linux-i586.bin $ ./jdk-6u12-linux-i586.bin $ mv jdk1.6.0_12 /usr/local $ export PATH=/usr/local/jdk1.6.0_12/bin:$PATH Install tool for Android $ apt-get install make gdb flex bison gperf libwxgtk2.6-dev libsdl-dev libz-dev libesd0-dev valgrind
Marvell Confidential © 2007
Marvell eBook Android
How to get Android code base & build Android
Get Android Eclair code base $ mkdir [android_dir] $ cd [android_dir] $ repo init -u git:///platform/manifest -b master $ cp marvell_manifest.xml .repo/manifests/ $ repo init -m marvell_manifest.xml $ repo sync build Android code base $ tar -zxvf alsa-lib.tgz (Should be for “alsa-lib” only) $ cp -rf alsa-lib/ [android_dir]/external/ $ cp -rf AndroidEclair/* [android_dir] $ cd [android_dir] $ . build/envsetup.sh $ lunch teton_ebook-eng $ make
Marvell Confidential © 2007
Marvell eBook Android
Build kernel (1)
Install the PackageDownload these files and unzip them pxalinux-M2.1.8.12.3_00 pxalinux-M2.1.8.12.3_01 pxalinux-M2.1.8.12.3_02 pxalinux-M2.1.8.12.3_03 pxalinux-M2.1.8.12.3_04 pxalinux-M2.1.8.12.3_05 Concatenate the files to generate the tarball pxalinux-M2.1.8.12.3.tgz $ cat pxalinux-M2.1.8.12.3_00 pxalinux-M2.1.8.12.3_01 pxalinux-M2.1.8.12.3_02 pxalinuxM2.1.8.12.3_03 pxalinux-M2.1.8.12.3_04 pxalinux-M2.1.8.12.3_05 > pxalinux-M2.1.8.12.3.tgz Uncompress the package. $ tar –xzvf pxalinux-M2.1.8.12.3.tgz
Marvell Confidential © 2007
Marvell eBook Android
Build kernel (2)Install the ToolchainTo install the arm-linux-gcc4.1.1 and arm-marvell-linux-gnueabi toolchain $ cd toolchain $ sudo tar –xzvf arm-marvell-linux-gnueabi.tar.bz2 –C /usr/local $ export PATH=/usr/local/arm-marvell-linux-gnueabi/bin:$PATH
Create a ProjectCreate a project, specifying the target directory $ sudo ./create-project-marvell.sh ../workdir $ cd ../workdir $ export WORKDIR=‘pwd’
Build the Platform$ cp –fR Aspen168_20091116A0/* workdir/ $ cd $WORKDIR/src/preview-kit $ ln –s [android_dir] device $ cd $WORKDIR/src $ make menuconfig Select [System Type] -> [Aspen Development Platform (H/W) Kit] -> [Wayland M_EBOOK] Select [System Type] -> [Build Options] -> [Aspen Development Platform (S/W) Kit] -> [Aspen Linux Android Platform] Select [System Type] -> [Aspen Processor Variants] -> [Aspen A0] $ sudo makeMarvell Confidential © 2007
Marvell eBook Android
image down-load (1)
Erase the whole flash and burn foll
owing images thru XDB (get from Marvell Extranet)0x00000000: NTIM_A0_WAYLAND_A_EBOOK_128MB_mode1_pm.bin 0x00020000: TTC_LINUX_NTOBM.bin 0x00040000: u-boot.bin 0x00920000: zImage
Burn "system.ubifs.img" and "userdata.ubifs.img" thru MicroSD Cardb-1. Copy "system.ubifs.img" & "userdata.ubifs.img" into MicroSD card b-2. Plug-in MicroSD card into device b-3. Power-on device & boot up into Uboot b-4. enter following commands to burn "system.ubifs.img" and "userdata.ubifs.img“
Marvell Confidential © 2007
Marvell eBook Android
image down-load (2)
Burn "system.ubifs.img" and "userdata.ubifs.img" thru MicroSD Card/* check SD card */ Wayland_A_EBOOK>> mmcinfo 0 Wayland_A_EBOOK>> fatls mmc 0 /* burn system.img */ Wayland_A_EBOOK>> fatload mmc 0 0x1000000 system.ubifs.img Wayland_A_EBOOK>> nand erase 0xc20000 0x2A00000 Wayland_A_EBOOK>> nand write 0x1000000 0xc20000 0x2A00000 <--- size of system.ubifs.img /* burn userdata.img */ Wayland_A_EBOOK>> fatload mmc 0 0x1000000 userdata.ubifs.img Wayland_A_EBOOK>> nand erase 0x10c20000 0x2E60000 <--- size of userdata.ubifs.img Wayland_A_EBOOK>> nand write 0x1000000 0x10c20000 0x2E60000 <--- size of userdata.ubifs.img
Marvell Confidential © 2007
Marvell eBook Android
application installation
Install application from SD cardCopy [aabbcc.apk] to SD card. And insert into target. $ mount /dev/block/mmcblk0p1 /data/app/ $ cp -f /mnt/aabbcc.apk /data/app/
Install application from adb$ ./adb install aabbcc.apk
Marvell Confidential © 2007
Marvell eBook Android
Debug Box I/O port
UART
USB 2 for UART port USB 1 for USB port
11 Pin IO = USB + JTAG ( 11 pin IO also provide power to Ebook PCB ) JTAG ConnectorMarvell Confidential © 2007
Marvell eBook Android
Debug Box Power input source
Power Input Source: 1. DC Jack 5V Input 2. USB1 Port 3. USB2 Port
1. DC Jack 5V Input ( option ) 2. Use USB1 / USB2 power is enough
Marvell Confidential © 2007
Marvell eBook Android
Teton EBook I/O PortAUO touch connector LG 6 “ connector AUO 6 “ connector Power on / hibernate Keyback Volume up
USB + JTAGVolume down
+menu
LG 5 “ / 9.7 “ connector
Batt connectorMarvell Confidential © 2007
WACOM touch connec …… 此处隐藏:3467字,全部文档内容请下载后查看。喜欢就下载吧 ……