下载到开发板:
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(不需密码)进入系统。