imx51 fsl android2.2
android 开发环境配置 包括:NFS TFTP Smaba 等服务的配。
1,安装系统:ubuntu10.4或更高版本
2,进入系统 打开terminal
3, sudo apt-get update
4, sudo apt-get install ssh vim
5, sudo visudo
添加一行:
%用户名 ALL=NOPASSWD:ALL
6, NFS安装配制
sudo apt-get install nfs-kernel-server nfs-common portmap
sudo dpkg-reconfigure portmap
运行后选择"否"
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-kernel-server restart 重启 nfs 服务
sudo exportfs -rv 重新共享所有目录并输出详细信息
or
source /etc/exports
/etc/exports
eg:
/home/zzj/nfs *(rw,sync,no_subtree_check,no_root_squash)
7, 配置Tftp服务
service iptables stop这个命令把防火墙关掉
cd /
sudo mkdir tftpboot
sudo chmod -R 0777 tftpboot
sudo apt-get install tftp xinetd tftpd
sudo vim /etc/xinetd.d/tftp
and add these lines:
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
per_source = 100 2
flags = IPv4
}
sudo /etc/init.d/xinetd restart
测试:tftp localhost
get
8, smba服务配置
sudo apt-get install samba
sudo apt-get install smbfs
sudo vi /etc/samba/smb.conf
eg:
[test]
comment = share file
path=/home/skypine2011
writeable=yes
browseable=yes
guest ok = yes
sudo /etc/init.d/smbd restart
添加和设置smab服务的用户和密码
smbpasswd -a username
9,编译环境
sudo vim /etc/apt/sources.list
在最后一行中加入地址
deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse 或者
//deb http://cz.archive.Ubuntu.com/ubuntu hardy-updates main multiverse
sudo apt-get install git-core gnupg sun-java5-jdk curl bison gperf g++ libsdl-dev zlib1g-dev libncurses5-dev zip libesd0-dev libwxgtk2.6-dev flex
10,系统编译环境配置
#!/bin/sh
export ARCH=arm
export CROSS_COMPILE=/opt/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-
export PATH=/opt/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin:$PATH
export PATH=~/imx51-android/bootable/bootloader/uboot-imx/tools:$PATH
11,编译android的步骤:
1)编译uboot
$ make distclean
$ make mx51_bbg_android_config
$ make
2)编译kernal
make imx5_android_defconfig
make uImage
3)再编译android
make PRODUCT-imx51_bbg-eng 2>&1 | tee build_imx51_bbg_android.log