【i.MX6UL開發常見問題】Yocto中如何修改rc.local內容?

5.2 Yocto中如何修改rc.local內容?
答:rc.local的內容在這裏修改sources/meta-myir-imx6ulx/recipes-myir/myir-rc-local/myir-rc-local/rc.local.etc
參考如下:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# demo start
export TSLIB_TSDEVICE=/dev/input/event1
#ts_calibrate && ts_test &

export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
export QT_QPA_FB_TSLIB=1
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1

#添加指令,顯示當前時間
date

exit 0

說明:本帖子源於米爾微信公衆號【i.MX6UL/i.MX6ULL開發常見問題】專題文章,是由米爾電子工程師基於米爾電子i.MX6UL/i.MX6ULL產品對i.MX6UL/i.MX6ULL開發中常見問題整理, 希望對您有幫助。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章