Furrter Cubietruck and BT related fixes
This commit is contained in:
parent
bb15b5dc40
commit
f9cf365719
@ -43,8 +43,7 @@ compile_tools()
|
||||
END
|
||||
|
||||
cat <<-END > $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/DEBIAN/postinst
|
||||
systemctl enable brcm40183-patch.service
|
||||
systemctl start brcm40183-patch.service
|
||||
update-rc.d brcm40183 defaults
|
||||
exit 0
|
||||
END
|
||||
|
||||
@ -55,8 +54,7 @@ compile_tools()
|
||||
# brcm
|
||||
cp $tmpdir/brcm/{brcm_bt_reset,brcm_patchram_plus} $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/usr/bin
|
||||
# brcm configs and service
|
||||
install -m 600 $SRC/lib/scripts/brcm40183 $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/etc/default
|
||||
install -m 600 $SRC/lib/scripts/brcm40183-patch.service $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/lib/systemd/system
|
||||
install -m 644 $SRC/lib/scripts/brcm40183 $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/etc/default
|
||||
install -m 755 $SRC/lib/scripts/brcm40183-patch $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}/etc/init.d
|
||||
|
||||
cd $tmpdir/armbian-tools-${RELEASE}_${REVISION}_${ARCH}
|
||||
|
||||
@ -43,13 +43,13 @@ else
|
||||
fi
|
||||
|
||||
# reset port
|
||||
/usr/local/bin/brcm_bt_reset /dev/$PORT
|
||||
/usr/bin/brcm_bt_reset /dev/$PORT
|
||||
|
||||
# Start patching
|
||||
/bin/echo -en "" > /dev/$PORT # pull down RTS on UART
|
||||
log_action_begin_msg "Start pushing firmware to device and waiting max. 60sec to complete"
|
||||
|
||||
/usr/bin/timeout 60s /usr/local/bin/brcm_patchram_plus -d --patchram /lib/firmware/ap6210/bcm20710a1.hcd --enable_hci --no2bytes --tosleep 1000 $MAC_OPTIONS /dev/$PORT > /tmp/brcm40183.firmware 2>&1
|
||||
/usr/bin/timeout 60s /usr/bin/brcm_patchram_plus -d --patchram /lib/firmware/ap6210/bcm20710a1.hcd --enable_hci --no2bytes --tosleep 1000 $MAC_OPTIONS /dev/$PORT > /tmp/brcm40183.firmware 2>&1
|
||||
|
||||
case "$?" in
|
||||
0) log_action_end_msg 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user