Re: newtmgr fs command fails in sim

2018-07-10 Thread Kevin Townsend
Hi Jacob, But Kevins code snippet brings up something im thinking about. In his comments he has CONFIG_NFFS: 1# Initialize and configure NFFS into the system I dont agree with that comment, whats thats actually doing is turning on the config subsystem and telling it to create its

Re: newtmgr fs command fails in sim

2018-07-07 Thread Kevin Townsend
Hi Jacob, Excellent point about the flash usage, and figuring out how to perhaps make it easier for packages to play well together in a single filesystem without hijacking the config system out of necessity. I dont agree with that comment, whats thats actually doing is turning on the config

Re: newtmgr fs command fails in sim

2018-07-06 Thread Jacob Rosenthal
Maybe Im misunderstanding, as Im personally digging into a bunch of fs stuff right now myself.. But Kevins code snippet brings up something im thinking about. In his comments he has > > CONFIG_NFFS: 1# Initialize and configure NFFS into the > system > I dont agree with that comment,

Re: newtmgr fs command fails in sim

2018-07-06 Thread Andrzej Kaczmarek
Hi, On Fri, Jul 6, 2018 at 6:24 PM marko kiiskila wrote: > > > > > On Jul 6, 2018, at 5:49 PM, Kevin Townsend > > wrote: > > > > Hi Chris, > >> The error codes that come back in newtmgr responses are always (or at > >> least should be) MGMT_ERR codes: > >>

Re: newtmgr fs command fails in sim

2018-07-06 Thread marko kiiskila
> On Jul 6, 2018, at 5:49 PM, Kevin Townsend wrote: > > Hi Chris, >> The error codes that come back in newtmgr responses are always (or at >> least should be) MGMT_ERR codes: >>

Re: newtmgr fs command fails in sim

2018-07-06 Thread Kevin Townsend
Hi Chris, The error codes that come back in newtmgr responses are always (or at least should be) MGMT_ERR codes: https://github.com/apache/mynewt-core/blob/42bb5acc2f049d346c81f25e8c354bc3c6afefd4/mgmt/mgmt/include/mgmt/mgmt.h#L65 `MGMT_ERR_ENOENT` is indicated when the newtmgr command isn't

Re: newtmgr fs command fails in sim

2018-07-06 Thread Christopher Collins
Hi Kevin, On Fri, Jul 06, 2018 at 02:41:17PM +0200, Kevin Townsend wrote: > I'm doing some initial development using only the simulator (for > convenience sake), and was testing out 'newtmgr fs' support to quickly > get data to and from the simulator. > > My sim target is setup to use NFFS