tibluetooth: add vcu machine to install tasks
copy .service from nrhw20 to vcu Signed-off-by: Ramon Moesching <ramon.moesching@netmodule.com>
This commit is contained in:
parent
5f784332bf
commit
1981cc2383
|
|
@ -12,6 +12,7 @@ inherit systemd
|
|||
SRC_URI = " \
|
||||
file://tibluetooth-nbhw16.service \
|
||||
file://tibluetooth-nrhw20.service \
|
||||
file://tibluetooth-vcu.service \
|
||||
file://TIInit_11.8.32.bts \
|
||||
"
|
||||
|
||||
|
|
@ -50,3 +51,15 @@ do_install_am335x-nrhw20 () {
|
|||
install_nrhw20
|
||||
}
|
||||
|
||||
|
||||
install_vcu () {
|
||||
install -d ${D}${systemd_unitdir}/system/
|
||||
install -m 0644 tibluetooth-vcu.service ${D}${systemd_unitdir}/system/tibluetooth.service
|
||||
|
||||
install -d ${D}/lib/firmware/ti-connectivity
|
||||
install -m 0644 TIInit_11.8.32.bts ${D}/lib/firmware/ti-connectivity/
|
||||
}
|
||||
|
||||
do_install_am335x-vcu () {
|
||||
install_vcu
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Attach ti bluetooth
|
||||
Before=bluetooth.target
|
||||
Requires=bluetooth.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStartPre=-/bin/sh -c "/bin/echo 52 > /sys/class/gpio/export"
|
||||
ExecStartPre=-/bin/sh -c "/bin/echo out > /sys/class/gpio/gpio52/direction"
|
||||
ExecStartPre=/bin/sh -c "/bin/echo 1 > /sys/class/gpio/gpio52/value"
|
||||
ExecStart=/usr/bin/hciattach /dev/ttyS5 texas 3000000 flow
|
||||
|
||||
ExecStopPost=/bin/sh -c "/bin/echo 0 > /sys/class/gpio/gpio52/value"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Reference in New Issue