summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-08-18This closes #86.Marko Kiiskila
Merge branch 'fix/nmgr-config' of https://github.com/simonratner/incubator-mynewt-core into develop
2016-08-03fcb; fix endless loop on corrupted FCB area.Marko Kiiskila
2016-07-30sys/config: Fix returning long config values to newtmgrSimon Ratner
2016-07-27log; fix the use of image scratch when rotating logs. Need to eraseMarko Kiiskila
the area before trying to use it.
2016-07-27fcb; calling fcb_rotate() when there is only one flash sector in FCBMarko Kiiskila
was not wiping out the contents of that sector.
2016-07-18MYNEWT-334 log_append() not checking for log validVipul Rahane
- log_append() was not checking for a valid log
2016-07-18MYNEWT-266 Newtmgr over BLEVipul Rahane
- Enable remote configuration, remote soft reset, firmware upgrade - Adding a seperate package for BLE newtmgr transport - Adding BLE_HOST feature - Moving logs constants from source file to header file; Were causing issues while testing - Increasing imgmgr max msg size to 400; Can be increased further when we support higher MTUs with BLE - Increasing stack size and number of mbufs for bleprph - Creating a separate library for newtmgr over BLE
2016-07-12mn_socket; replace socket pointer with a user-defined void * inMarko Kiiskila
socket callback arguments.
2016-07-11MYNEWT-314; First take on the socket interface.Marko Kiiskila
2016-06-27sys/id; package which exports hw id, bsp name, app name andMarko Kiiskila
configurable serial number via config interface.
2016-06-27sys/config; change export function prototype.Marko Kiiskila
Added argument which tells whether module should export variables it wants to persist, or variables it wants to display.
2016-06-24config; allow CLI to display max size variable value.Marko Kiiskila
2016-06-20coredump; package depends on bootutil header files and imgmgr.Marko Kiiskila
2016-06-17sys/reboot; package depends on log.Marko Kiiskila
2016-06-10config; remote save start/save end callbacks, as they do nothingMarko Kiiskila
at the moment.
2016-06-09config; bug fix - was not detecting duplicate empty values whenMarko Kiiskila
user saves "" instead of NULL.
2016-06-09config; configurable number of lines of config before compression.Marko Kiiskila
2016-06-09config; remove conf_handler ptr argument from conf_save_XXX apis.Marko Kiiskila
2016-06-09This closes #62.Vipul Rahane
reboot log: Address review cmnts and cleanup - Removing console_init and imgmgr_module_init as these should not be happen in a diffrent module other than the app - Logging to console - Adding null ptr for log_rtr_erase() for cbmem and console - Fixing last_n_offset() - Adding fcb_clear() and calling that from log_fcb_flush() so that fcb_clear() can be used by other functions as well.
2016-06-09Making reboot log optional for platformsVipul Rahane
- Reboot log won't log and count reboots if flash map is not specified
2016-06-09Reboot log commitVipul Rahane
- Add MAX_MTU support to logs - Fix issues with log_fcb and newtmgr handler for logs - reboot_log config: cleanup and remove error handling for config variables as NFFS currently doesn't support compression for config variables and can fill up the config directory with reboot_cnt - log_walk now breaks and returns the error code that it sees - log_read returns length of the read data which is used later for encoding and should not be returned like an error code.
2016-06-09Clean reboot log and fix a few issuesVipul Rahane
- Cleaning up last_n_offset function - initializing new log before it gets written to - Storing number of entries and fcb to temp and retreiving them after moving to the scratch
2016-06-09Fix reboot cntVipul Rahane
- Fix reboot count - Cleanup
2016-06-09Reboot log changesVipul Rahane
- Adding log erase restore entries handler - Adding function to fcb n-th entry offset - Making fcb_log as argument to log handler instead of fcb
2016-06-09Fix reboot_log bugVipul Rahane
2016-06-09reboot_log: address review commentsVipul Rahane
- Making changes as per review - Change the location of the definition of the flash map from reboot package to the os_bsp flash map - Removing cbmem backend for the reboot log
2016-06-09Initial changes for reboot logVipul Rahane
- Adding reboot log using the existing mechanism - Adding reboot_cnt as a config variable (Currently writable for debugging purposes - would make it read only later) Stored using fcb - future work would be to make this optional to be stored using fcb or NFFS - Adding reasons for reboot - HARD reboot and SOFT reboot. There is an unknown reason as well if the chip decides to give us reasons for a reboot - Since a hard reboot is detected before the OS starts the timestamp for it is going to be 0 - I can clean it up as required Example of reboot log entries: 0 usecs, 2 > REBOOT: CRITICAL: rsn:HARD, cnt:13, img:255.255.65535.4294967295 12441000 usecs, 2 > REBOOT: CRITICAL: rsn:SOFT, cnt:14, img:255.255.65535.4294967295
2016-06-07config; use define instead of hardcoded value for max variable name.Marko Kiiskila
2016-05-20coredump; rename dump_core -> coredump_dump.Marko Kiiskila
Add var to temporarily prevent coredump from taking place.
2016-05-20Add LOG_MODULE_PERUSER; temporariliy fix apps.Christopher Collins
This define got removed as part of a larger feature. Some apps rely on this constant being defined. I am re-adding this define until the larger feature is complete.
2016-05-19This closes #55.Marko Kiiskila
Merge branch 'mynewt-add' of https://github.com/vrahane/incubator-mynewt-core into develop
2016-05-19coredump; use bsp_core_dump() to figure out memory areas to dump.Marko Kiiskila
If memory region is > 64k, split it into multiple areas.
2016-05-19coredump; add C++ protection around the API.Marko Kiiskila
2016-05-19hal/bsp; add hal_bsp.h, which exports common BSP APIs.Marko Kiiskila
2016-05-19sys/coredump; initial coredumping. Intermediate commit.Marko Kiiskila
2016-05-17Making changes as per review(add/remove spaces)Vipul Rahane
2016-05-17Making indices secondary keys for log entriesVipul Rahane
- Making indices secondary keys for log entries - Resetting indices every millisecond since the last entry
2016-05-17Fix logs read requestVipul Rahane
2016-05-17Adding Stats List command and LED toggle statsVipul Rahane
- Adding Stats List command and LED toggle stats - Making Stats package use stat names - Addinf stats to slinky
2016-05-17Cleaning up and adding commentsVipul Rahane
2016-05-17Send logs after timestamp and indexVipul Rahane
2016-05-17Adding log list command supportVipul Rahane
2016-05-17Fix json encodingVipul Rahane
- Changing atoi to strtoull and strtoll as atoi return only 32 bit values. strtoll and strtoull return 64bit values which we encode our inetegers as. - Changing a few other places where json encoding should use 64 bit values instead of 32 bit.
2016-05-17Removing PERUSER levels/modules and simpliyingVipul Rahane
2016-05-17log changesVipul Rahane
Changing json_attr to handle uint64/int64 while decoding Changing imgmgr and imgmgr_fs to have uint64/int64 attributes Adding commands for module_list, level_list and conditional show logs(log_name, timestamp and index) Changing levels to be absolute as opposed to bits(Not a mask anymore)
2016-05-09fcb; use actual CRC8 for checksumming.Marko Kiiskila
2016-04-18config; don't write value to storage if it's not changing.Marko Kiiskila
2016-04-18config; for safaety null terminate the line created of name and value.Marko Kiiskila
2016-04-18config; fix typo in comment.Marko Kiiskila
2016-04-18config; error if val_str is NULL when calling conf_value_from_str().Marko Kiiskila