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

Update mynewt port of mcumgr and various fixes #27

Merged
merged 72 commits into from
Oct 8, 2019

Conversation

vrahane
Copy link
Contributor

@vrahane vrahane commented Jul 18, 2019

  • Updating mynewt port of MCUmgr
  • Adding Stats, Logs, datetime and other default commands support to MCUmgr
  • Changing mgmt_group_register() in MCUmgr so that it allows re-registration of command groups
  • Please refer Port MCUmgr to mynewt-core and remove newtmgr support mynewt-core#1871 for more context
  • Fix dependency and build issues
  • Adding support for log version 3 and image hash changes
  • Adding support for image management lazy erase
  • Adding support for config mgmt
  • Updating cborattr to have similar support as mynewt-core
  • Get all features in sync with mynewt-core
  • Fix unit tests and add some more for cborattr
  • Change log_mgmt to use fragmenting so that an entry can be divided into smaller chunks while reading.
  • Fix mynewt port of os_mgmt
  • Add changes for backwards compatibility
  • Add sample app: omp_svr for trying out OICMGR over BLE/Serial
  • Fix reboot_log for soft resets
    Please refer Use SMP/OMP/MCUmgr, remove newtmgr and change OICMGR to use OMP  mynewt-core#1917 for corresponding mynewt-core changes.

@vrahane vrahane changed the title [WIP - DO NOT MERGE] Update mynewt port of mcumgr [WIP - DO NOT MERGE] Update mynewt port of mcumgr and various fixes Jul 18, 2019
@mlaz mlaz self-assigned this Jul 29, 2019
@vrahane vrahane self-assigned this Jul 31, 2019
@vrahane vrahane changed the title [WIP - DO NOT MERGE] Update mynewt port of mcumgr and various fixes Update mynewt port of mcumgr and various fixes Sep 27, 2019
Closing CBOR containers on error situations before returning.
cborattr/src/cborattr.c Show resolved Hide resolved
cmd/img_mgmt/include/img_mgmt/img_mgmt.h Outdated Show resolved Hide resolved
cmd/img_mgmt/include/img_mgmt/img_mgmt.h Outdated Show resolved Hide resolved
cmd/img_mgmt/include/img_mgmt/img_mgmt.h Outdated Show resolved Hide resolved
cmd/img_mgmt/include/img_mgmt/img_mgmt_impl.h Outdated Show resolved Hide resolved
cmd/log_mgmt/port/mynewt/src/mynewt_log_mgmt.c Outdated Show resolved Hide resolved
cmd/log_mgmt/src/log_mgmt.c Outdated Show resolved Hide resolved
cmd/stat_mgmt/pkg.yml Outdated Show resolved Hide resolved
cmd/stat_mgmt/port/mynewt/src/mynewt_stat_mgmt.c Outdated Show resolved Hide resolved
util/pkg.yml Outdated Show resolved Hide resolved
vrahane and others added 5 commits October 1, 2019 14:33
- entries were encoded together earlier which caused issues, encoding
them chunk by chunk fixes it.
- Move config headers to include directory and general clean up
  and address review comments
@vrahane
Copy link
Contributor Author

vrahane commented Oct 2, 2019

@mkiiskila I made changes as per your review comments, thanks.

vrahane and others added 3 commits October 2, 2019 14:47
- mbuf APIs and structs containing mbuf ptrs need to be
  MYNEWT specific
cmd/fs fixing package dependency chain
@nvlsianpu
Copy link
Contributor

@de-nordic Pleas review

Copy link
Contributor

@mkiiskila mkiiskila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vrahane vrahane merged commit 3555086 into apache:master Oct 8, 2019
@carlescufi
Copy link
Contributor

This completely broke the Zephyr port @vrahane and @mkiiskila. We did not have time to react quickly enough, but I think we should strive for changes that are posted as a PR here to be tested on both Mynewt and Zephyr, since this is a cross-RTOS open source project.
Can we have a talk about this and avoid this situation again?

@vrahane
Copy link
Contributor Author

vrahane commented Oct 14, 2019

@carlescufi Sure, we can have a chat about it. The work is not yet over, we will be making more changes to get the zephyr side working. @mlaz is working on getting the samples to work.

@carlescufi
Copy link
Contributor

carlescufi commented Oct 15, 2019

@carlescufi Sure, we can have a chat about it. The work is not yet over, we will be making more changes to get the zephyr side working. @mlaz is working on getting the samples to work.

Thanks @vrahane. I think we need to sync up because @de-nordic and @nvlsianpu are also working on the same changes.

@de-nordic
Copy link
Contributor

Pasting my comment from #mcumgr channel here:
basically it is no longer possible to compile/link mcumgr library within zephyr due to changes in mcumgr/cmd/img_mgmt/img_mgmt.c . There has been some impactful changes to this common code, that have been backed by changes in port/mynewt but at the same time port/zephyr has not been altered to provide missing functions. For example: img_mgmt_upload relies on img_mgmt_impl_upload_inspect which is now missing from port/zephyr implementation.

@de-nordic
Copy link
Contributor

Right now I am at the stage when code compiles but does not link. I have paused in working on implementing missing functions and now I wait to sync up with you to avoid redundancy in work effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants