标签:网络设置 vfp row address bin date png disk .sh
1,网络配置
一,虚拟机网络设置为桥接模式
二,在Ubuntu网络中,添加一个网络,比喻“有限连接1”
克隆MAC地址:D4:3D:7E:F4:00:77
三,在QtCreator,项目-管理构建插件-选项-设备,中,输入要连接设备的ip
4,在QtCreator,项目-构建,中输入构建环境变量
INCLUDE=/home/joshua/qt_mentor_sdk/sysroots/cortexa9hf-vfp-neon-mel-linux-gnueabi/usr/include
INCLUDEPATH=/home/joshua/qt_mentor_sdk/sysroots/cortexa9hf-vfp-neon-mel-linux-gnueabi/usr/include
LIB=/home/joshua/qt_mentor_sdk/sysroots/cortexa9hf-vfp-neon-mel-linux-gnueabi/usr/lib
LM_LICENSE_FILE=/home/joshua/work/license.txt
MGLS_LICENSE_FILE=/home/joshua/work/license.txt
OE_QMAKE_CC=/home/joshua/work/MentorGraphics/Sourcery_CodeBench_for_ARM_Embedded/bin/arm-none-linux-gnueabi-gcc
OE_QMAKE_CXX=/home/joshua/work/MentorGraphics/Sourcery_CodeBench_for_ARM_Embedded/bin/arm-none-linux-gnueabi-g++
OE_QMAKE_LDFLAGS=-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9
OE_QMAKE_LINK=/home/joshua/work/MentorGraphics/Sourcery_CodeBench_for_ARM_Embedded/bin/arm-none-linux-gnueabi-g++
SUBLIBS=
SYSROOT_DIR=/home/joshua/qt_mentor_sdk/sysroots/cortexa9hf-vfp-neon-mel-linux-gnueabi
5,在QtCreator,项目-运行中
一:出现布署失败时,请使用以下命令配置布署选项。
killall HMI | echo waiting kill HMI ; sleep 1
sync; chmod 777 /usr/app/HMI
二:Ctrl+R:直接保存所有文件、构建、布署、运行设置
工具-选项-构建和运行:构建和运行如下勾选即可
三:车机与pc机使用usb网卡直接连接,且ip设置为同一个网段
四:项目布署,运行参数设置
五: 运行参数配置
5.1 先配置运行命令
5.2 设备上备用执行档:/usr/app/startHMI.sh
5.2 再配置运行参数,把以下参数复制进去。结果如下图
FB_MULTI_BUFFER=3
LD_LIBRARY_PATH=/usr/app/lib
LANG=zh_CN.utf8
ROOT_MEDIA_PATH=/media/disk
VIDEO_FORMAT=.mp4,.avi,.wmv,.mpg,.mkv,.mpeg,.vob,.3gp,.mov,.asf,.m4v,.divx,.ts,.MP4,.AVI,.WMV,.MPG,.MKV,.MPEG,.VOB,.3GP,.MOV,.ASF,.M4V,.DIVX,.TS
MUSIC_FORMAT=.wma,.mp3,.flac,.mp2,.m4a,.wav,.aac,.ac3,.ogg,.WMA,.MP3,.FLAC,.MP2,.M4A,.WAV,.AAC,.AC3,.OGG
DBUS_SESSION_BUS_ADDRESS="unix:path=/run/dbus/session_bus_help"
TSLIB_TSDEVICE=/dev/input/touchscreen0
TSLIB_CALIBFILE=/etc/pointercal
HOME=/home/root
TSLIB_PLUGINDIR=/lib/ts
BT_AUTO_BROWSE_PB=off
BT_CHECK_ALIVE=off
BT_DATA_SAVE=shm
BT_PAIRING_REQUEST=on
BT_PROJECT_NAME=GP53
BT_UART_DEBUG=on
BT_VISIBLE_CONFIG=on
BT_NAME="GP53"
UPDATE_PATH_PREFIX=/media/disk
NAVI_PATH=/media/sd-mmcblk1p1/FDNavi
NAVI_PROCESS=FDNavi
DEVICE_MONITOR_IDLE_TIME=6000
SD_PATH=/media/sd-mmcblk1p1
SD_TOUCH_PATH=/tmp/.automount-sd
BACKGROUNDPATH=/usr/app/backgrounds720p
CN210MNAVIHELPPICPATH=/usr/app/help/210M_NAVI
USE_CARPLAY_MODULE=0
标签:网络设置 vfp row address bin date png disk .sh
原文地址:http://www.cnblogs.com/senior-engineer/p/6761677.html