程序下载到开发板方法

下载到开发板:

xp:192.168.0.2  虚拟机RedHat:192.168.0.32  虚拟机Fedora:192.168.0.33 开发板:192.168.0.230 

xp和linux采用bridge 连接,ip在同一网段,其余设置一样即可通信
============
1、usb

fdisk -l

mount /dev/sda1 /mnt/
============
2、tftp
setup

netstat -a | grep tftp

udp  0  0 *:tftp  *:*    //表明已经安装

若未安装,则安装:

yum install xinetd

yum install tftp tftp-server

vi /etc/xinetd.d/tftp  配置  修改disable=no

/etc/init.d/xinetd start

netstat -a | grep tftp
=====================
3、串口
===================
4、NFS(linux-linux)
rpm -q nfs-utils  //查看是否安装

rpm ivh nfs-utils-1.0.9-24.el5.i386.rpm //安装

 

vi /etc/exports   //配置

/home                    192.168.0.*(rw,sync,no_root_squash)

 

/etc/init.d/nfs start  //启动

/etc/init.d/nfs restart //重启

 

nfs使用:
mount -t nfs servername:/shared_dir /localdir
                                           目标机              本机
eg.
mount -t nfs 10.169.1.100:/home /mnt/nfs

 

mount nfs时出现: 没有到主机的路由,可能是防火墙的问题

============

/etc/init.d/iptables stop (停止防火墙)

iptables -F (清空防火墙规则,拆除防火墙)

linux 防火墙配置命令:

1) 永久性生效,重启后不会复原
开启: chkconfig iptables on
关闭: chkconfig iptables off

2) 即时生效,重启后复原
开启: service iptables start
关闭: service iptables stop

=============

在虚拟机linux上共享目录为/home,在mini2440上建立/mnt目录,#mount -t nfs -o nolock 192.168.0.32:/home  /mnt

即可在开发板上访问虚拟机的home目录了

=============
Samba
linux-linux nfs
windows-linux samba

网络连通:
xp cmd ip 192.168.0.2
linux setup ip:192.168.0.32 
/etc/init.d/network restart


/etc/samba/smb.conf   //配置

 

[lhf]

          comment = lhf directories

          path = /

          browseable = yes

          writable = yes

          valid users = lhf


smbpasswd -a lhf   //smb add lhf用户
service smb start
testparm                     //检查配置文件

若不能访问,关闭防火墙即可
====================
VMware连接方式
1.bridge :
vmnet0

2.nat :
vmnet8

3.host-only :
vmnet1
===============

在xp 命令行输入“telnet 192.168.0.230”可以使用telnet远程登陆开发板,输入root(不需密码)进入系统。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值