qt creator配置好后,进行下qt embedded的测试。
1.minicom
<1>安装
sudo yum install minicom
<2>配置
minicom -s
直接运行minicom会报错:
Device /dev/modem access failed: No such file or directory.
具体配置参考minicom配置,说明2点:
a.有些机器上A - Serial Device”要配置为/dev/ttyUSB0,有些配置为/dev/ttyS1。可以通过如下指令查看一下:lsmod | grep pl2303。输入命令dmesg | grep usb。看到有ttyUSB0这行,则将minicom中的Serial port setup设置为ttyUSB0,若是使用usb转串口,一般是ttyUSB0。
b.关于“E - Bps/Par/Bits”,有些设置成“9600 8N1”,有些设置为115200 8N1,若设置错误,打开minicom会出现乱码。我的设置为”115200 8N1“。
2.NFS的配置
<1>输入
sudo vi /etc/exports
填入要共享的目录,格式如下:
共享目录 可以访问该目录的IP地址(参数,如rw,sync,no_root_squash等)
如/home/xx/program/nfs *(rw,sync,no_root_squash)
<2>启用配置
输入
sudo exportfs -rv
<3>启动nfs服务
sudo systemctl restart nfs-server.service
<4> 关闭防火墙(fedora18以前输入setup进行设置)
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
<5>关闭selinux
sudo vi /etc/sysconfig/selinux
修改为
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#
enforcing - SELinux security policy is enforced.
#
permissive - SELinux prints warnings instead of enforcing.
#
disabled - SELinux is fully disabled.
SELINUX= disabled # change
# SELINUXTYPE= type of policy in use. Possible values are:
#
targeted - Only targeted network daemons are protected.
#
strict - Full SELinux protection.
SELINUXTYPE=targeted
3.配置开发板
<1>设置IP地址
启动minicom,设置开发板ip地址
ifconfig eth0 222.204.215.10
根据/etc/exports中配置的情况,如果设置可以访问共享目录的IP地址为xxx.xxx.xxx.*,那么开发板的ip地址要设置在同一网关下--输入ifconfig,查看本机IP地址,找到其中的有线网地址,如果不小心找到的是无线网地址,当ping开发板地址时,会出现ping不通的情况。