ubuntu10.04 搭建海思开发环境
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu10.04 搭建海思开发环境相关的知识,希望对你有一定的参考价值。
(1)Ubuntu 10.04.4 LTS (Lucid Lynx) 下载地址:http://old-releases.ubuntu.com/releases/lucid/
(2)passwd root,然后以root登录,gedit /etc/network/interfaces ,添加静态ip:
iface eth0 inet static
address 192.168.10.64 #change to your static IP
netmask 255.255.255.0 #change to your netmask
gateway 192.168.10.1 #change to your getway
#We must specify dns-nameserver here
#in order to get internet access from host
dns-nameservers 192.168.10.1
auto eth0
/etc/init.d/networking restart
(2)修改软件源:gedit /etc/apt/sources.list
软件源替换为: http://old-releases.ubuntu.com/ubuntu/
apt-get update
apt-get install vim
(3)apt-get install openssh-server
(4)apt-get install nfs-kernel-server,
修改/etc/exports 添加 /opt/source *(rw,sync,no_subtree_check,no_root_squash),
/etc/init.d/nfs-kernel-server restart
(5)apt-get install samba samba-common
修改/etc/samba.conf
security = user #取消注释,不能匿名登录
[myshare]
comment = my share directory
path = /opt/source
browseable = yes
writable = yes
smbpasswd -a root
/etc/init.d/smbd restart
(6)apt-get install tftp
apt-get install tftpd
apt-get install openbsd-inetd
/etc/inetd.conf里添加:tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tfptd -s /tftpboot
/etc/init.d/openbsd-inetd restart
ufw disable #关闭防火墙
tftp 127.0.0.1,用get获取文件
=========海思编译SDK需要配置===========
(7)ls -l /bin/sh
如果是dash,dpkg-reconfigure dash,选择no,这样source才可用
(8)cp uboot_dir/tools/mkimge /usr/sbin/
(9)apt-get install zlib1g-dev
(10)apt-get install libncurses5-dev ncurses-term libncursesw5-dev
(11)apt-get install g++
(12)vim osdrv/tools/pc/mkyaffs2image/Makefile, 在make前增加make clean
以上是关于ubuntu10.04 搭建海思开发环境的主要内容,如果未能解决你的问题,请参考以下文章