Ads 468x60px

##EasyReadMore##

07 12月, 2017

bitbacke enable systemd

加上systemd

# morty:
# 	vim poky/meta-poky/conf/distro/poky.conf 
# jethro:
# 	vim poky/meta-yocto/conf/distro/poky.conf 
POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland systemd"

# 參考:
#  https://github.com/ostroproject/meta-ostro/blob/master/meta-ostro/conf/distro/ostro.conf

# vim poky/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
DISTRO_FEATURES_append = "systemd"
#VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
#VIRTUAL-RUNTIME_initscripts ?= "initscripts"
VIRTUAL-RUNTIME_initscripts = ""
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"

systemd 開機啟動 mosquitto:

 # Error : mosquitto 無法啟動
 # systemctl status mosquitto 一下問題
 ● mosquitto.service - MQTT service
    Loaded: loaded (/lib/systemd/system/mosquitto.service; static)
    Active: inactive (dead)
 # 發現在 loaded /lib/systemd/system/mosquitto.service 時候死了
 
 # cat /lib/systemd/system/mosquitto.service
 
 [Service]
 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf

 # 發現在 /etc/mosquitto/ 下沒有 mosquitto.conf 只有 mosquitto.conf.example
 # 估計是要自己從 mosquitto.conf.example 改成 mosquitto.conf
 # 所以只要從有啟動成功的 mosquitto.conf 加到 /etc/mosquitto/ 即可

systemd 開機啟動 hostapd:

 # 修改 hostapd_2.5.bb
 SYSTEMD_AUTO_ENABLE_${PN} = "enable"

參考:

  https://wiki.archlinux.org/index.php/systemd-networkd
  http://git.toradex.com/cgit/meta-toradex.git/tree/recipes-core/systemd/systemd_%25.bbappend? h=V2.5-next
  Yocto开发相关笔记 - https://goo.gl/9xwHVP
  https://github.com/96boards/meta-rpb/blob/master/conf/distro/include/rpb.inc

0 意見:

張貼留言

 
Blogger Templates