Skip to content

Commit

Permalink
Merge pull request #11 from darkxst/4.4
Browse files Browse the repository at this point in the history
Update for GeckoSDK 4.4.0
  • Loading branch information
darkxst authored Jan 15, 2024
2 parents a140e09 + a1cfab0 commit 5cf2d5c
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion multipan_flasher/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ build_from:
armv7: ghcr.io/home-assistant/armv7-base-python:3.11-alpine3.17
i386: ghcr.io/home-assistant/i386-base-python:3.11-alpine3.17
args:
UNIVERSAL_SILABS_FLASHER: 0.0.15
UNIVERSAL_SILABS_FLASHER: 0.0.16
2 changes: 1 addition & 1 deletion multipan_flasher/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 0.1.3
version: 0.2.0
slug: multipan_flasher
name: Multipan Flasher
description: Silicon Labs multipan firmware flasher add-on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ function exit_no_firmware {
device=$(bashio::config 'device')
bootloader_baudrate=$(bashio::config 'bootloader_baudrate')
gpio_reset_flag=""
sdk="4.3.1"
sdk="4.4.0"

if [ -d /sys/devices/platform/soc/fe201000.serial/tty/ttyAMA0 ] && [ "${device}" == "/dev/ttyAMA0" ] \
&& bashio::config.equals 'hardware' 'elelabs'; then
firmware="rcp-uart-802154-v${sdk}-elelabs-elx0x3-460800.gbl"
elif [ -d /sys/devices/platform/ff590000.serial/tty/ttyS4 ] && [ "${device}" == "/dev/ttyS4" ] \
&& bashio::config.equals 'hardware' 'ihost'; then
gpio_reset_flag="--bootloader-reset ihost"
firmware="rcp-uart-802154-v${sdk}-zbdonglee-460800.gbl"
else
# Check USB device manufacturer/product information
Expand All @@ -73,7 +74,7 @@ else
if [[ "${usb_manufacturer}" == "ITEAD" && "${usb_product}" == "SONOFF Zigbee 3.0 USB Dongle Plus V2" ]]; then
bashio::log.info "Detected Sonoff ZBDongle-E"
firmware="rcp-uart-802154-v${sdk}-zbdonglee-460800.gbl"
gpio_reset_flag="--sonoff-reset"
gpio_reset_flag="--bootloader-reset sonoff"
# usb id 1a86:7523 CH340
elif [[ "${usb_vendor}" == "1a86" && "${usb_product_id}" == "7523" ]]; then
bashio::log.info "Selecting firmware for selected model"
Expand Down Expand Up @@ -107,7 +108,8 @@ fi
bashio::log.info "Starting universal-silabs-flasher with ${device} (bootloader baudrate ${bootloader_baudrate})"
universal-silabs-flasher ${verbose} --device ${device} \
--bootloader-baudrate "${bootloader_baudrate}" \
flash ${gpio_reset_flag} --ensure-exact-version --allow-cross-flashing --firmware "/root/${firmware}"
${gpio_reset_flag} \
flash --ensure-exact-version --allow-cross-flashing --firmware "/root/${firmware}"

if [ ! -z "$silabs" ]; then
bashio::log.info "Starting ${silabs} addon"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 5cf2d5c

Please sign in to comment.