Re: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-22 Thread Gregory Nutt
The new implementation of set_errno require all thread(include IDLE) initialize the stack related fields in tcb_s correctly. But many chipset forget to setup them for IDLE thread. TODO contain an item described this: ... snip ... Hello, I think there's a problem with set_errno() in

FW: SPI slave interface discussion

2020-05-22 Thread Laitinen, Jukka
Hi, *The attached patch is just for opening a discussion, please don't merge* We used the SPI slave interfaces on stm32h7 platform, in a configuration where two stm32h7 chips were connected together with SPI bus, one in master simplex-tx and one in slave simplex-rx mode. There was quite high

Jenkins build is back to normal : NuttX-Nightly-Build #167

2020-05-22 Thread Apache Jenkins Server
See

Re: mbedtls

2020-05-22 Thread Takashi Yamamoto
On Fri, May 22, 2020 at 4:52 PM Sebastien Lorquet wrote: > > Hello, > > I have seriously slowed down my nuttx contributions because of the > apache turmoil but I am still reading this list and will have to work on > this topic at one point. > > See my opinions below. > > Sebastien > > Le

RE: SPI slave interface discussion

2020-05-22 Thread Laitinen, Jukka
Looks like the patch which I tried to attach was lost on the way. Trying again with .txt suffix... From 292153fc368976c8abbd65fdd1b48b3bbc93e998 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Fri, 20 Sep 2019 09:17:10 +0300 Subject: [PATCH] Update to SPI slave intefaces Make it possible

mbedtls

2020-05-22 Thread Takashi Yamamoto
hi, i'm working on mbedtls Makefile/Kconfig glue for NuttX. right now, it downloads and uses the mbedtls source code from the upstream as it is. (similarly to what netutils/cjson does) questions: 1. if we decide to contribute it, is there a chance to be accepted by NuttX? 2. if yes, which

Re: mbedtls

2020-05-22 Thread Sebastien Lorquet
Hello, I have seriously slowed down my nuttx contributions because of the apache turmoil but I am still reading this list and will have to work on this topic at one point. See my opinions below. Sebastien Le 22/05/2020 à 09:41, Takashi Yamamoto a écrit : hi, i'm working on mbedtls

Re: mbedtls

2020-05-22 Thread Xiang Xiao
On Fri, May 22, 2020 at 4:12 PM Takashi Yamamoto wrote: > > On Fri, May 22, 2020 at 4:52 PM Sebastien Lorquet > wrote: > > > > Hello, > > > > I have seriously slowed down my nuttx contributions because of the > > apache turmoil but I am still reading this list and will have to work on > > this

RE: SPI slave interface discussion

2020-05-22 Thread David Sidrane
Hi Jukka, Would you mind opening a Draft PR for this disscussion. (See the Drop down on github [Create pull request] ) David *From:* Laitinen, Jukka [mailto:jukka.laiti...@intel.com] *Sent:* Thursday, May 21, 2020 11:23 PM *To:* dev@nuttx.apache.org *Subject:* RE: SPI slave

Re: mbedtls

2020-05-22 Thread Xiang Xiao
On Fri, May 22, 2020 at 8:41 PM Alan Carvalho de Assis wrote: > > Hi Xiang, > > On 5/22/20, Xiang Xiao wrote: > sic > > > > But mbedtls can be used in more context than HTTPS/TLS like security > > boot, OTA and TEE, it doesn't make sense to put into netutils. A > > central folder(e.g. external)

答复: [External Mail]mbedtls

2020-05-22 Thread 安超
Hi, I think this is a general 3rd-party package management issue, anyone who uses nuttx will encounter a similar situation. >> 1. if we decide to contribute it, is there a chance to be accepted by NuttX? Neglect the license issues, I think any excellent open source library will be accepted by

RE: NuttX on the IMXRT1060-EVK

2020-05-22 Thread Thomas Axelsson
Hi Erdem, I'm not actively developing using IMXRT at the moment, but one thing that lead to problems with debugging was NuttX entering the ARM low-power mode Wait For Interrupt. The quick fix is to comment out the following line in arch/arm/src/imxrt/imxrt_idle.c: asm("WFI"); Maybe it will

Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-22 Thread Schock, Johannes - NIVUS GmbH
Hello, I think there's a problem with set_errno() in nx_start(), when CONFIG_TLS_ALIGNED is not set: I disabled SERIAL_CONSOLE and DEV_CONSOLE, because I wanted to test CDCACM_CONSOLE. Now calling fs_fdopen() in group_setupstreams() leads to a call of set_errno(). But since tls_get_info()

Re: mbedtls

2020-05-22 Thread Alan Carvalho de Assis
Hi Takashi-san, On 5/22/20, Takashi Yamamoto wrote: > hi, > > i'm working on mbedtls Makefile/Kconfig glue for NuttX. > right now, it downloads and uses the mbedtls source code from > the upstream as it is. (similarly to what netutils/cjson does) > > questions: > > 1. if we decide to contribute

Re: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-22 Thread Xiang Xiao
The new implementation of set_errno require all thread(include IDLE) initialize the stack related fields in tcb_s correctly. But many chipset forget to setup them for IDLE thread. TODO contain an item described this: Task:IDLE THREAD TCB SETUP Description: There are issues with setting

Re: mbedtls

2020-05-22 Thread Xiang Xiao
BTW, Xiaomi already port many 3rd party library(include mbedtls) and can share the result to community to avoid the duplicated work. On Fri, May 22, 2020 at 7:51 PM Alan Carvalho de Assis wrote: > > Hi Takashi-san, > > On 5/22/20, Takashi Yamamoto wrote: > > hi, > > > > i'm working on mbedtls

Re: mbedtls

2020-05-22 Thread Daniel Pereira Carvalho
What about a new 3rd party folder? Em sex, 22 de mai de 2020 09:41, Alan Carvalho de Assis escreveu: > Hi Xiang, > > On 5/22/20, Xiang Xiao wrote: > sic > > > > But mbedtls can be used in more context than HTTPS/TLS like security > > boot, OTA and TEE, it doesn't make sense to put into

Re: mbedtls

2020-05-22 Thread Alan Carvalho de Assis
Hi Daniel, Yes, I think an option is to create an apps/thirdparty folder to follow with Xiang idea. BR, Alan On 5/22/20, Daniel Pereira Carvalho wrote: > What about a new 3rd party folder? > > Em sex, 22 de mai de 2020 09:41, Alan Carvalho de Assis > escreveu: > >> Hi Xiang, >> >> On

RE: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-22 Thread Schock, Johannes - NIVUS GmbH
Another try with ".txt" extension. > -Original Message- > From: Schock, Johannes - NIVUS GmbH > [mailto:johannes.sch...@nivus.com] > Sent: Friday, May 22, 2020 1:40 PM > To: 'dev@nuttx.apache.org' > Subject: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not > set > > Hello,

Re: mbedtls

2020-05-22 Thread Xiang Xiao
On Fri, May 22, 2020 at 7:51 PM Alan Carvalho de Assis wrote: > > Hi Takashi-san, > > On 5/22/20, Takashi Yamamoto wrote: > > hi, > > > > i'm working on mbedtls Makefile/Kconfig glue for NuttX. > > right now, it downloads and uses the mbedtls source code from > > the upstream as it is.

RE: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-22 Thread David Sidrane
This is super confusing to me. The todo list says. Status: Open Priority:Low. Things are working OK the way they are. But the design could be improved and made a little more efficient with this change. So it sounds like no

Re: mbedtls

2020-05-22 Thread Alan Carvalho de Assis
Hi Xiang, On 5/22/20, Xiang Xiao wrote: sic > > But mbedtls can be used in more context than HTTPS/TLS like security > boot, OTA and TEE, it doesn't make sense to put into netutils. A > central folder(e.g. external) for 3rd party is a better choice > because: The external folder is used for

RE: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-22 Thread Schock, Johannes - NIVUS GmbH
I implemented the change in nx_start.c with a quick and dirty extern const uintptr_t g_idle_topstack; just to see if it's working. It works. But since nx_start.c is not architecture specific and (according to the TODO) g_idle_topstack is not available in all architectures, this is no solution.

Re: Arm Kinetis: set_errno in nx_start with CONFIG_TLS_ALIGNED not set

2020-05-22 Thread Xiang Xiao
In the pass, the stack info for IDLE thread is just used for debugging purpose, so the priority is low, but we need boost this to high priority since TLS(errno) depend on it now On Fri, May 22, 2020 at 8:25 PM David Sidrane wrote: > > This is super confusing to me. > > The todo list says. > >

Re: mbedtls

2020-05-22 Thread Sebastien Lorquet
Hello Le 22/05/2020 à 10:05, Takashi Yamamoto a écrit : can you explain what's "real nuttx code"? For me, code specifically written for NuttX with good integration and performance. Different from a third-party library. The makefile glue is OK for NuttX contribution. Crypto is a directory

Re: mbedtls

2020-05-22 Thread Alan Carvalho de Assis
Hi Greg, On 5/22/20, Gregory Nutt wrote: > >>> 2. if yes, which repository is appropriate? apps? >> Yes, apps of course. >> >>> 3. if apps, in which directory? netutils? crypto? >> Although crypto could be an option (but it doesn't exist inside apps/ >> yet), I think netutils/ is a better

Re: mbedtls

2020-05-22 Thread Takashi Yamamoto
On Fri, May 22, 2020 at 7:26 PM Sebastien Lorquet wrote: > > Hello > > Le 22/05/2020 à 10:05, Takashi Yamamoto a écrit : > > can you explain what's "real nuttx code"? > > For me, code specifically written for NuttX with good integration and > performance. Different from a third-party library.

Re: mbedtls

2020-05-22 Thread Takashi Yamamoto
On Fri, May 22, 2020 at 10:14 PM Xiang Xiao wrote: > > On Fri, May 22, 2020 at 8:41 PM Alan Carvalho de Assis > wrote: > > > > Hi Xiang, > > > > On 5/22/20, Xiang Xiao wrote: > > sic > > > > > > But mbedtls can be used in more context than HTTPS/TLS like security > > > boot, OTA and TEE, it

Re: FW: SPI slave interface discussion

2020-05-22 Thread Xiang Xiao
Could we provide two set interface like spi master: struct spi_ops_s { CODE uint32_t (*send)(FAR struct spi_dev_s *dev, uint32_t wd); #ifdef CONFIG_SPI_EXCHANGE CODE void (*exchange)(FAR struct spi_dev_s *dev, FAR const void *txbuffer, FAR void *rxbuffer,

crypto api again (was: Re: mbedtls)

2020-05-22 Thread Sebastien Lorquet
Le 22/05/2020 à 17:00, Takashi Yamamoto a écrit : On Fri, May 22, 2020 at 7:26 PM Sebastien Lorquet wrote: Hello Le 22/05/2020 à 10:05, Takashi Yamamoto a écrit : can you explain what's "real nuttx code"? For me, code specifically written for NuttX with good integration and performance.

Re: mbedtls

2020-05-22 Thread Nathan Hartman
On Fri, May 22, 2020 at 9:18 AM Alan Carvalho de Assis wrote: > Hi Daniel, > > Yes, I think an option is to create an apps/thirdparty folder to > follow with Xiang idea. I like the idea of glue code. There are many libraries out there which people may want to use with NuttX, and we

Re: mbedtls

2020-05-22 Thread Gregory Nutt
i guess a user often want to use apache-nuttx-external AND his own version. while you can always workaround it with symbolic links, i wonder if it could be more straightforward to use multiple "external" repos. People have talked about this on and off for some time in various way.  There

RE: mbedtls

2020-05-22 Thread Xiang Xiao
> -Original Message- > From: Takashi Yamamoto > Sent: Friday, May 22, 2020 11:18 PM > To: dev@nuttx.apache.org > Subject: Re: mbedtls > > On Fri, May 22, 2020 at 10:14 PM Xiang Xiao wrote: > > > > On Fri, May 22, 2020 at 8:41 PM Alan Carvalho de Assis > > wrote: > > > > > > Hi

RE: mbedtls

2020-05-22 Thread Xiang Xiao
> -Original Message- > From: Gregory Nutt > Sent: Saturday, May 23, 2020 2:04 PM > To: dev@nuttx.apache.org > Subject: Re: mbedtls > > > > i guess a user often want to use apache-nuttx-external AND his own version. > > while you can always workaround it with symbolic links, i wonder

Re: mbedtls

2020-05-22 Thread Gregory Nutt
I propose that we reuse the same process(Apache Way) for github.com/nuttx(e.g. review/merge, select new committer/PMC). The only difference is that github.com/nuttx isn't an Apache project and is an optional component. I think other than the repository location, it can piggyback completely

Re: Release Notes for the NEXT version of NuttX

2020-05-22 Thread Nathan Hartman
In preparation for the 9.1 release notes... What git incantation will get the log, excluding all commits present in the 9.0 release? Specifically, I want to include commits after 9.0 was branched, but exclude commits that were cherry-picked to 9.0. Thanks, Nathan

Re: Release Notes for the NEXT version of NuttX

2020-05-22 Thread Brennan Ashton
You want to find the point at which it was branched, something like git log master..releasebranch --oneline | tail -1 Then you can use it for the base of log git log branched-commit..master --Brennan On Fri, May 22, 2020, 1:30 PM Nathan Hartman wrote: > In preparation for the 9.1 release

Re: Release Notes for the NEXT version of NuttX

2020-05-22 Thread Nathan Hartman
On Fri, May 22, 2020 at 4:54 PM Brennan Ashton wrote: > Nevermind I see what you were asking for. There is no great way to do this > with git directly, usually you track this by using labels (or similar) on > issues or PRs to aggregate it. At least that is that is how I have always > run releases

Re: Release Notes for the NEXT version of NuttX

2020-05-22 Thread Nathan Hartman
On Fri, May 22, 2020 at 5:12 PM Gregory Nutt wrote: > This is what I used to do for the old releases (from 8.2 > tools/README.txt, from show 6168f3ebf046e4c3d5561bfa96a39d0f02b771db): snip > -logparser.c > > - > - Convert a git log to ChangeLog format. Recommended usage: > - > -

Re: Release Notes for the NEXT version of NuttX

2020-05-22 Thread Abdelatif Guettouche
Why are we interested in individual commits? PRs bundle all the changes and are easier to retrieve. In any case, we can filter out cherry picked commits with something like "git log --oneline --cherry-pick --right-only releases/9.0...master" On Fri, May 22, 2020 at 10:37 PM Nathan Hartman

Re: Release Notes for the NEXT version of NuttX

2020-05-22 Thread Brennan Ashton
On Fri, May 22, 2020, 1:49 PM Brennan Ashton wrote: > You want to find the point at which it was branched, something like > > git log master..releasebranch --oneline | tail -1 > > Then you can use it for the base of log > > git log branched-commit..master > > Nevermind I see what you were

Re: Release Notes for the NEXT version of NuttX

2020-05-22 Thread Gregory Nutt
This is what I used to do for the old releases (from 8.2 tools/README.txt, from show 6168f3ebf046e4c3d5561bfa96a39d0f02b771db): index 42c71fd52d..64666eb550 100644 --- a/tools/README.txt +++ b/tools/README.txt @@ -745,15 +745,6 @@ link.sh, link.bat, copydir.sh, copydir.bat, unlink.sh, and

Re: Release Notes for the NEXT version of NuttX

2020-05-22 Thread Abdelatif Guettouche
> You want to find the point at which it was branched, something like > > git log master..releasebranch --oneline | tail -1 That actually gives the first commit that's not in master, we'd be interested in its parent "git log master..releases/9.0 --oneline --format='%p' | tail -1" On Fri, May