[openwrt/openwrt] firmware: Add CZ.NIC Turris Omnia MCU firmware
LEDE Commits
lede-commits at lists.infradead.org
Fri Aug 2 13:11:14 PDT 2024
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/56706d33cf446335bf341512c58957a437208466
commit 56706d33cf446335bf341512c58957a437208466
Author: Marek Mojík <marek.mojik at nic.cz>
AuthorDate: Fri Oct 20 17:06:19 2023 +0200
firmware: Add CZ.NIC Turris Omnia MCU firmware
Add a new package, omnia-mcu-firmware, containing firmware binaries for
the microcontroller on the Turris Omnia router.
Signed-off-by: Marek Mojík <marek.mojik at nic.cz>
Signed-off-by: Marek Behún <kabel at kernel.org>
Link: https://github.com/openwrt/openwrt/pull/13799
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
package/firmware/omnia-mcu-firmware/Makefile | 49 ++++++++++++++++++++++++++++
target/linux/mvebu/image/cortexa9.mk | 2 +-
2 files changed, 50 insertions(+), 1 deletion(-)
diff --git a/package/firmware/omnia-mcu-firmware/Makefile b/package/firmware/omnia-mcu-firmware/Makefile
new file mode 100644
index 0000000000..24455739d9
--- /dev/null
+++ b/package/firmware/omnia-mcu-firmware/Makefile
@@ -0,0 +1,49 @@
+#
+# Copyright (C) 2024 CZ.NIC z.s.p.o. (http://www.nic.cz/)
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=omnia-mcu-firmware
+PKG_DISTNAME:=omnia_hw_ctrl
+PKG_VERSION:=4.0
+PKG_RELEASE:=1
+
+PKG_SOURCE_SUBDIR:=$(PKG_DISTNAME)-binaries-v$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.bz2
+PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/hw/$(PKG_DISTNAME)/-/releases/v$(PKG_VERSION)/downloads/
+PKG_HASH:=64b6010f587d89c192685d152644075a5e0abf431eb069ac42981524065a0053
+
+PKG_MAINTAINER:=Marek Mojik <marek.mojik at nic.cz>
+PKG_LICENSE:=GPL-3.0-or-later
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/omnia-mcu-firmware
+ SECTION:=firmware
+ CATEGORY:=Firmware
+ URL:=https://gitlab.nic.cz/turris/hw/$(PKG_DISTNAME)/-/releases
+ TITLE:=CZ.NIC Turris Omnia MCU firmware
+ DEPENDS:=@TARGET_mvebu_cortexa9_DEVICE_cznic_turris-omnia
+endef
+
+define Package/omnia-mcu-firmware/description
+Firmware binaries for the microcontroller on the Turris Omnia router. These are
+used by the omnia-mcutool utility when upgrading MCU firmware.
+endef
+
+define Build/Compile
+ true
+endef
+
+define Package/omnia-mcu-firmware/install
+ $(INSTALL_DIR) $(1)/usr/share/omnia-mcu-firmware/
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/*.bin $(1)/usr/share/omnia-mcu-firmware/
+endef
+
+$(eval $(call BuildPackage,omnia-mcu-firmware))
diff --git a/target/linux/mvebu/image/cortexa9.mk b/target/linux/mvebu/image/cortexa9.mk
index 5c8e61da46..73a4c631ba 100644
--- a/target/linux/mvebu/image/cortexa9.mk
+++ b/target/linux/mvebu/image/cortexa9.mk
@@ -107,7 +107,7 @@ define Device/cznic_turris-omnia
mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
wpad-basic-mbedtls kmod-ath9k kmod-ath10k-ct ath10k-firmware-qca988x-ct \
kmod-mt7915-firmware partx-utils kmod-i2c-mux-pca954x kmod-leds-turris-omnia \
- kmod-turris-omnia-mcu kmod-gpio-button-hotplug
+ kmod-turris-omnia-mcu kmod-gpio-button-hotplug omnia-mcu-firmware
IMAGES := sysupgrade.img.gz
IMAGE/sysupgrade.img.gz := boot-scr | boot-img | sdcard-img | gzip | append-metadata
SUPPORTED_DEVICES += armada-385-turris-omnia
More information about the lede-commits
mailing list