Skip to content
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

Current application tuning for IOT2050-SM #510

Merged
merged 7 commits into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# Authors:
# Jan Kiszka <[email protected]>
# Li Hua Qian <[email protected]>
#
# This file is subject to the terms and conditions of the MIT License. See
# COPYING.MIT file in the top-level directory.
Expand Down Expand Up @@ -42,13 +43,21 @@ config IMAGE_BOOT
that it fits AND you have an external flash programmer at hand that
allows to recover. Otherwise you risk to BRICK THE IOT2050!

config IMAGE_FWU_PKG
bool "Firmware update package for all devices"
help
This is the official firmware update package in
IOT2050-FW-Update-PKG-Vx.x.x.tar.xz format, which includes firmware bins,
and update criteria, and builtin env, and it is for all IOT2050 devices.

endchoice

config KAS_INCLUDE_MAIN
string
default "kas-iot2050-example.yml" if IMAGE_EXAMPLE
default "kas-iot2050-swupdate.yml" if IMAGE_SWUPDATE
default "kas-iot2050-boot.yml" if IMAGE_BOOT
default "kas-iot2050-fwu-package.yml" if IMAGE_FWU_PKG

comment "Image features"

Expand Down
18 changes: 18 additions & 0 deletions kas-iot2050-fwu-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# Copyright (c) Siemens AG, 2023
#
# Authors:
# Li Hua Qian <[email protected]>
#
# This file is subject to the terms and conditions of the MIT License. See
# COPYING.MIT file in the top-level directory.
#

header:
version: 10
includes:
- kas/iot2050.yml

build_system: isar

target: firmware-update-package
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ def initExternalSerialMode():
subprocess.call("switchserialmode -m " +
initMode + terminateOpt, shell=True)

def getBoardModel():
return subprocess.check_output('grep -a -o -P "IOT2050[\w\s]+" /proc/device-tree/model',
shell=True).lstrip().rstrip().decode('utf-8')

def main():
initExternalSerialMode()
initAruinoPins()
if "IOT2050 Advanced SM" != getBoardModel():
initAruinoPins()


if __name__ == '__main__':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,9 @@ def __init__(self, topmenu):
self.topmenu = topmenu

def show(self):
menuItems = [('Configure External COM Ports', ExternalSerialMode(self.topmenu)),
('Configure Arduino I/O', ArduinoIoMode(self.topmenu))]
menuItems = [('Configure External COM Ports', ExternalSerialMode(self.topmenu))]
if self.topmenu.boardType != 'IOT2050 Advanced SM':
menuItems.append(('Configure Arduino I/O', ArduinoIoMode(self.topmenu)))
if self.topmenu.boardType == 'IOT2050 Advanced M2':
menuItems.append(('Configure M.2 Connector', M2Connector(self.topmenu)))

Expand Down
Loading