Qt embedded的测试

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不通的情况。



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值