-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
universal-silabs-flasher: Bump flasher and firmwares #3807
base: master
Are you sure you want to change the base?
Conversation
📝 Walkthrough📝 WalkthroughWalkthroughThe changes in this pull request include updates to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Script
participant FirmwareRepo
User->>Script: Initiate firmware flashing
Script->>Script: Check device type
alt USB device with valid info
Script->>FirmwareRepo: Fetch firmware for device
FirmwareRepo-->>Script: Return firmware file
Script->>Script: Flash firmware
Script-->>User: Flashing successful
else Invalid device
Script-->>User: Log warning and exit
end
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (4)
- silabs_flasher/CHANGELOG.md (1 hunks)
- silabs_flasher/build.yaml (1 hunks)
- silabs_flasher/config.yaml (1 hunks)
- silabs_flasher/rootfs/etc/s6-overlay/scripts/universal-silabs-flasher-up (2 hunks)
✅ Files skipped from review due to trivial changes (3)
- silabs_flasher/CHANGELOG.md
- silabs_flasher/build.yaml
- silabs_flasher/config.yaml
🧰 Additional context used
🔇 Additional comments (2)
silabs_flasher/rootfs/etc/s6-overlay/scripts/universal-silabs-flasher-up (2)
Line range hint
57-69
: Improved device detection and error handling.The additional checks for USB devices and their manufacturer/product information, along with the improved error handling, enhance the script's robustness. These changes should help prevent issues with unsupported devices or missing information.
To test the new error handling, please run the script with an unsupported device or with missing manufacturer/product information. You can simulate this by temporarily modifying the USB device path or removing the manufacturer/product files. For example:
#!/bin/bash # Backup original files sudo cp /sys/class/tty/ttyUSB0/../manufacturer /tmp/manufacturer_backup sudo cp /sys/class/tty/ttyUSB0/../product /tmp/product_backup # Remove manufacturer and product files to simulate missing information sudo rm /sys/class/tty/ttyUSB0/../manufacturer sudo rm /sys/class/tty/ttyUSB0/../product # Run the script (adjust the path as necessary) /etc/s6-overlay/scripts/universal-silabs-flasher-up # Restore original files sudo mv /tmp/manufacturer_backup /sys/class/tty/ttyUSB0/../manufacturer sudo mv /tmp/product_backup /sys/class/tty/ttyUSB0/../productPlease ensure that the script exits gracefully with the appropriate warning message when run with missing device information.
73-75
: Firmware update for SkyConnect and HA Connect ZBT-1 looks good.The firmware version has been updated from 7.4.3.0 to 7.4.4.0 for both SkyConnect and Home Assistant Connect ZBT-1 devices, which aligns with the PR objectives. The filename format has also been standardized.
To ensure the new firmware file exists and is correctly named, please run:
#!/bin/bash # Verify the existence of the new firmware file ls -l /root/skyconnect_zigbee_ncp_7.4.4.0.gbl # Check if there are any references to the old firmware name in the codebase rg "skyconnect_ncp-uart-hw_7.4.3.0.gbl"Also, please confirm that using the same firmware file for both SkyConnect and Home Assistant Connect ZBT-1 is intentional and compatible with both device types.
https://github.com/NabuCasa/silabs-firmware-builder/releases/tag/v2024.10.21
https://github.com/NabuCasa/universal-silabs-flasher/releases/tag/v0.0.25
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Documentation