码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu10.04 搭建海思开发环境

时间:2016-09-06 15:49:13      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:

(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 搭建海思开发环境

标签:

原文地址:http://www.cnblogs.com/wangkaichao/p/5845715.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!