Chinaunix

标题: marvell littleton 开发板移植 android过程 [打印本页]

作者: gpephone    时间: 2009-04-30 16:50
标题: marvell littleton 开发板移植 android过程

                ==========================================================
marvell littleton 开发板移植 android过程:
首先解压缩marvell 提供的软件包:
tar xvzf Android_PlatformRel_Linux_MHLV_2008WW52.tgz
在工作目录下会生成  pxa_mydroid 文件夹
pxa_mydroid/prebuilt_bin 包含在PXA310平台上引导启动android 系统的基本文件系统(二进制文件系统)
pxa_mydroid/src 是marvell PXA310 针对android 文件系统和内核的补丁。
为 android 打marvell 的补丁
下载 android 源代码 (此处针对 1.0 版本)
释放源代码到   工作目录/mydroid
设置环境变量:
export  MYDROID=/opt/shared/backup/android-marvell/mydroid
export  PXA_MYDROID=/opt/shared/backup/android-marvell/pxa_mydroid
为文件系统打补丁:
cd $MYDROID
tar zxvf $PXA_MYDROID/src/pxa-mydroid-patches/vendor.tgz -C .
cd $PXA_MYDROID/src/pxa-mydroid-patches/
./apply_patch.sh $MYDROID
cd $MYDROID
tar zxvf $PXA_MYDROID/src/pxa-mydroid-patches/pxa_mydroid_binaries.tgz -C .
为内核打补丁:
cd $MYDROID
tar zxvf $PXA_MYDROID/src/linux-2.6.25-patches/base/linux-2.6.25.tgz -C ./
cd $PXA_MYDROID/src/linux-2.6.25-patches/patches
./apply_kernel_patch.sh  $MYDROID/linux-2.6.25/
cd $MYDROID
编译文件系统:
cd $MYDROID
. build/envsetup.sh
partner_setup littleton
export ENABLE_MVED=true
export ENABLE_OVERLAY2=true
make PRODUCT-littleton-user
编译整个源代码大概需要1个小时左右
编译内核:
cd /usr/local/marvell-arm-linux-4.1.1/bin/
export PATH=`pwd`:$PATH
cd $MYDROID/linux-2.6.25
cp $MYDROID/out/target/product/littleton/root root -a
编译命令:
make ARCH=arm pxa3xx_android_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux- zImage
或者
export ARCH=arm
export CROSS_COMPILE=arm-eabi-
make pxa3xx_android_defconfig
make zImage -j2
生成的 zImage 二进制文件在 arch/arm/boot/ 文件夹
注意:
必须 cp $MYDROID/out/target/product/littleton/root root -a 否则编译出错:
/opt/shared/backup/android-marvell/mydroid/linux-2.6.25/scripts/gen_initramfs_list.sh:
Cannot open 'root'
make[1]: *** [usr/initramfs_data.cpio.gz] 错误 1
make: *** [usr] 错误 2
Flashing images and boot system (128MB is set as default)
烧写 boot程序
1. Flash the following images using XDB flash utility (128MB NAND Flash)
boot_notrust.bin     0x0
2. Exit XDB and reset board.
3. Ethernet or USB can be used to tftp images to the target platform
At BLOB prompt issue the commands:
烧内核:
nanderase -z 0x100000 0x300000
tftp zImage-android
nandwrite -z 0x80800000 0x100000
烧system.img:
nanderase -y 0x400000 0x4000000
tftp system.img
nandwrite -y 0x80800000 0x400000
烧写userdata.img:
nanderase -y 0x4400000 0x2000000
tftp userdata.img
nandwrite -y 0x80800000 0x4400000
引导系统:
boot up system by:
blob>nk
blob>b
======================================================
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/49742/showart_1915437.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2