Re: NuttX-aware debugging.
> Could you try this patch? I just tried it, and it works correctly. Thank you! Also, can you please check whether you can build the plug-in with -fPIC? If it is needed for some distros, and it is not harmful for the rest, we may add it permanently. On Sat, Jun 25, 2022 at 3:34 PM Xiang Xiao wrote: > On Fri, Jun 24, 2022 at 5:42 PM Fotis Panagiotopoulos > > wrote: > > > Hello everyone! > > > > I got it working. > > > > > Good luck. > > > > The issue is in RTOS_SetThreadReg(). > > For some reason g_plugin_priv.tcbinfo is NULL. > > > > I added a simple check: > > > > if (g_plugin_priv.tcbinfo == 0) > > { > > return -EINVAL; > > } > > > > And now it works correctly. > > > > > > I can submit a PR, however I have no idea how this plugin works, and > thus I > > do not know whether this value is expected to be NULL (and thus a check > is > > missing), or whether there is any other underlying issue. > > Mr. Xiang, can you please have a look at this and comment? > > > > > It's more simple to remove the below check from the code: > if (regindex > g_plugin_priv.tcbinfo->total_num) > { > return -EINVAL; > } > since get_idx_from_pid already does the same check. > Could you try this patch? > https://github.com/apache/incubator-nuttx/pull/6520 > > > > > > > > On Thu, Jun 23, 2022 at 6:11 PM Xiang Xiao > > wrote: > > > > > We document the JLinker plugin usage, but it's the Chinese version > only. > > > Pengxiang, please prepare a document. > > > In the meantime, Fotis, could you attach gdb to JLinkGDBServer and > print > > > the backtrace when it crashes, so we can identify the reason quickly. > > > > > > > > > On Thu, Jun 23, 2022 at 10:36 PM Alan Carvalho de Assis < > > acas...@gmail.com > > > > > > > wrote: > > > > > > > Please describe all the steps you are doing and such way everybody > can > > > > reproduce yet (same way I did in previous email). > > > > > > > > I don't think a library compile to Ubuntu will work on Fedora. > > > > > > > > Xiang, do you have a documentation about the JLink integration? BTW, > > > > any news about the guy/gal Xiaomi was contracting to write better > > > > documentation to NuttX ? > > > > > > > > BR, > > > > > > > > Alan > > > > > > > > On 6/23/22, Fotis Panagiotopoulos wrote: > > > > > I tried your instructions. > > > > > The build fails on a clean repository too. > > > > > > > > > > I then tried a newer version of Ubuntu (as a Docker container, I do > > not > > > > > have access to any other Ubuntu machines). > > > > > This time the build succeeded. > > > > > > > > > > However I haven't managed to debug the application from within this > > > > Docker > > > > > container. > > > > > > > > > > I took the successfully built plug-in, and used it on my Fedora > > > machine. > > > > > Again, it crashes in the same way. > > > > > > > > > > > > > > > On Thu, Jun 23, 2022 at 5:06 PM Alan Carvalho de Assis < > > > > acas...@gmail.com> > > > > > wrote: > > > > > > > > > >> Hi Fotis, > > > > >> > > > > >> I'm using Ubuntu 20.04 and I can confirm it is working fine, I > don't > > > > >> need to add -fPIC. > > > > >> > > > > >> Please try a clear repository, I will do it here step-by-step on > > /tmp > > > > >> to removed after next reboot: > > > > >> > > > > >> $ cd /tmp/ > > > > >> $ git clone https://github.com/apache/incubator-nuttx nuttx > > > > >> $ git clone https://github.com/apache/incubator-nuttx-apps apps > > > > >> $ cd nuttx/ > > > > >> $ make -C tools -f Makefile.host all > > > > >> $ ls -l tools/jlink* > > > > >> -rwxrwxr-x 1 alan alan 17144 jun 23 11:02 tools/jlink-nuttx > > > > >> -rw-rw-r-- 1 alan alan 16804 jun 23 11:01 tools/jlink-nuttx.c > > > > >> > > > > >> I didn't test it with JLinkGDBServer, but at least I can tell you > it > > > > >> is compiling fine. > > > > >> > > > > >> BR, > > > > >> > > > > >> Alan > > > > >> > > > > >> On 6/23/22, Fotis Panagiotopoulos wrote: > > > > >> >> Ahhh, so it is your Fedora 36 issue, hahaha > > > > >> > > > > > >> > No, it is not. > > > > >> > > > > > >> > I just tried on Ubuntu 18, and I got the exact same result. > > > > >> > > > > > >> > Build fails with the same error. I added the -fPIC flag, and the > > > build > > > > >> > succeeded. > > > > >> > Then I tried to debug the firmware with JLink and GDB crashes > > during > > > > >> > init > > > > >> > with a SEGFAULT. > > > > >> > > > > > >> > Just like on Fedora. > > > > >> > > > > > >> > So I guess, this is a problem with the plug-in itself? > > > > >> > > > > > >> > Those that have managed to use the plug-in successfully, what is > > the > > > > >> > version of JLinkGDBServer ? > > > > >> > Mine is V7.54c. > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > On Thu, Jun 23, 2022 at 1:50 AM Alan Carvalho de Assis < > > > > >> acas...@gmail.com> > > > > >> > wrote: > > > > >> > > > > > >> >> Ahhh, so it is your Fedora 36 issue, hahaha > > > > >> >> > > > > >> >> Here on Ubuntu "
Re: [DISCUSS] Graduate NuttX as TLP
On Fri, Jun 24, 2022 at 12:46 PM Nathan Hartman wrote: > > Hi folks, > > It's time to start the [DISCUSS] thread about GRADUATION! > > Project Highlights Since Incubation: > > * Incubating since 2019-12-09 > * New website, nuttx.apache.org > * Shipped 8 releases under the ASF Incubator, including our first > non-WIP release > * Merged more than 7000 PRs across incubator-nuttx and incubator-nuttx-apps > * More than 1000 stars on GitHub > * More than 500 forks on GitHub > * More than 250 subscribers to dev@nuttx.apache.org > * 9th most active Apache project of 2021 by number of commits [1] > * 5 mentors > * 17 PPMC members > * 25 committers > * 75 ICLAs > * 2 CCLAs > * 21 SGAs > * 2 release managers > * 2 NuttX online workshops > * And much, much more > > Let's go through the checklist [2], discuss any remaining open issues, > and get this process going! > > References: > [1] > https://thestack.technology/top-apache-projects-in-2021-from-superset-to-nuttx/ > [2] https://incubator.apache.org/guides/graduation.html#before_you_graduate > > Cheers, > Nathan Ping... Don't all reply at once! Cheers, Nathan
Re: [DISCUSS] Graduate NuttX as TLP
Hahaha, I liked that joke! Alin, please use this same joke in the NuttX Online Workshop thread! +1 to graduation! I don't know you guys but I hate this incubator-nuttx and incubator-nuttx-apps repositories names. I hope we get github.com/apache/nuttx and github.com/apache/apps soon (hope they accept we use this /apps name, will make our users life easier!) BR, Alan On Monday, June 27, 2022, Nathan Hartman wrote: > On Fri, Jun 24, 2022 at 12:46 PM Nathan Hartman > wrote: > > > > Hi folks, > > > > It's time to start the [DISCUSS] thread about GRADUATION! > > > > Project Highlights Since Incubation: > > > > * Incubating since 2019-12-09 > > * New website, nuttx.apache.org > > * Shipped 8 releases under the ASF Incubator, including our first > > non-WIP release > > * Merged more than 7000 PRs across incubator-nuttx and > incubator-nuttx-apps > > * More than 1000 stars on GitHub > > * More than 500 forks on GitHub > > * More than 250 subscribers to dev@nuttx.apache.org > > * 9th most active Apache project of 2021 by number of commits [1] > > * 5 mentors > > * 17 PPMC members > > * 25 committers > > * 75 ICLAs > > * 2 CCLAs > > * 21 SGAs > > * 2 release managers > > * 2 NuttX online workshops > > * And much, much more > > > > Let's go through the checklist [2], discuss any remaining open issues, > > and get this process going! > > > > References: > > [1] https://thestack.technology/top-apache-projects-in-2021- > from-superset-to-nuttx/ > > [2] https://incubator.apache.org/guides/graduation.html#before_ > you_graduate > > > > Cheers, > > Nathan > > Ping... Don't all reply at once! > > Cheers, > Nathan >
Re: [DISCUSS] Graduate NuttX as TLP
+1 for graduation and +1 for the joke idea Thanks Alin On Mon, 27 Jun 2022, 19:18 Alan Carvalho de Assis, wrote: > Hahaha, I liked that joke! Alin, please use this same joke in the NuttX > Online Workshop thread! > > +1 to graduation! > > I don't know you guys but I hate this incubator-nuttx and > incubator-nuttx-apps repositories names. > > I hope we get github.com/apache/nuttx and github.com/apache/apps soon > (hope > they accept we use this /apps name, will make our users life easier!) > > BR, > > Alan > > On Monday, June 27, 2022, Nathan Hartman wrote: > > > On Fri, Jun 24, 2022 at 12:46 PM Nathan Hartman > > wrote: > > > > > > Hi folks, > > > > > > It's time to start the [DISCUSS] thread about GRADUATION! > > > > > > Project Highlights Since Incubation: > > > > > > * Incubating since 2019-12-09 > > > * New website, nuttx.apache.org > > > * Shipped 8 releases under the ASF Incubator, including our first > > > non-WIP release > > > * Merged more than 7000 PRs across incubator-nuttx and > > incubator-nuttx-apps > > > * More than 1000 stars on GitHub > > > * More than 500 forks on GitHub > > > * More than 250 subscribers to dev@nuttx.apache.org > > > * 9th most active Apache project of 2021 by number of commits [1] > > > * 5 mentors > > > * 17 PPMC members > > > * 25 committers > > > * 75 ICLAs > > > * 2 CCLAs > > > * 21 SGAs > > > * 2 release managers > > > * 2 NuttX online workshops > > > * And much, much more > > > > > > Let's go through the checklist [2], discuss any remaining open issues, > > > and get this process going! > > > > > > References: > > > [1] https://thestack.technology/top-apache-projects-in-2021- > > from-superset-to-nuttx/ > > > [2] https://incubator.apache.org/guides/graduation.html#before_ > > you_graduate > > > > > > Cheers, > > > Nathan > > > > Ping... Don't all reply at once! > > > > Cheers, > > Nathan > > >
Re: Fwd: [MENTORS] Podling reports for July
On Mon, Jun 20, 2022 at 8:23 AM Pavel Pisa wrote: > > Hello everybody, > > the is mirror shift of past to the future by some time-machine > > Date of last release: > > NuttX-10.2.0 was released on 2022-11-23. > NuttX-10.3.0-RC4 is currently pending IPMC voting. Thanks Pavel. This should be fixed now. Good catch! I have copied the report to the Incubator report. It is located here: https://cwiki.apache.org/confluence/display/INCUBATOR/July2022 Cheers, Nathan
Re: [DISCUSS] Graduate NuttX as TLP
For the checklist, there are two points where we gonna need external help, probably from our mentors: 1. Demonstrate ability to create Apache releases 2. Demonstrate community readiness For the first one, Nathan has summarized above the work that has been done. We believe that the project has demonstrated the ability to create Apache releases, but is there something else to consider? For the second one, I'm not sure what it means. If it's regarding the health of the project technically, again Nathan has summarized the accomplishments. If it's regarding the conduct of the project with regards to the Apache way, I believe we've been on track. > I hope we get github.com/apache/nuttx and github.com/apache/apps soon (hope they accept we use this /apps name, will make our users life easier!) The apps one is confusing. It doesn't indicate that it's part of NuttX. Actually, it doesn't indicate what project it belongs to at all and I believe a lot of people would ask what this is. On Mon, Jun 27, 2022 at 6:24 PM Alin Jerpelea wrote: > > +1 for graduation > and +1 for the joke idea > > Thanks > Alin > > On Mon, 27 Jun 2022, 19:18 Alan Carvalho de Assis, > wrote: > > > Hahaha, I liked that joke! Alin, please use this same joke in the NuttX > > Online Workshop thread! > > > > +1 to graduation! > > > > I don't know you guys but I hate this incubator-nuttx and > > incubator-nuttx-apps repositories names. > > > > I hope we get github.com/apache/nuttx and github.com/apache/apps soon > > (hope > > they accept we use this /apps name, will make our users life easier!) > > > > BR, > > > > Alan > > > > On Monday, June 27, 2022, Nathan Hartman wrote: > > > > > On Fri, Jun 24, 2022 at 12:46 PM Nathan Hartman > > > wrote: > > > > > > > > Hi folks, > > > > > > > > It's time to start the [DISCUSS] thread about GRADUATION! > > > > > > > > Project Highlights Since Incubation: > > > > > > > > * Incubating since 2019-12-09 > > > > * New website, nuttx.apache.org > > > > * Shipped 8 releases under the ASF Incubator, including our first > > > > non-WIP release > > > > * Merged more than 7000 PRs across incubator-nuttx and > > > incubator-nuttx-apps > > > > * More than 1000 stars on GitHub > > > > * More than 500 forks on GitHub > > > > * More than 250 subscribers to dev@nuttx.apache.org > > > > * 9th most active Apache project of 2021 by number of commits [1] > > > > * 5 mentors > > > > * 17 PPMC members > > > > * 25 committers > > > > * 75 ICLAs > > > > * 2 CCLAs > > > > * 21 SGAs > > > > * 2 release managers > > > > * 2 NuttX online workshops > > > > * And much, much more > > > > > > > > Let's go through the checklist [2], discuss any remaining open issues, > > > > and get this process going! > > > > > > > > References: > > > > [1] https://thestack.technology/top-apache-projects-in-2021- > > > from-superset-to-nuttx/ > > > > [2] https://incubator.apache.org/guides/graduation.html#before_ > > > you_graduate > > > > > > > > Cheers, > > > > Nathan > > > > > > Ping... Don't all reply at once! > > > > > > Cheers, > > > Nathan > > > > >
Re: [DISCUSS] Graduate NuttX as TLP
On 6/27/22, Abdelatif Guettouche wrote: > For the checklist, there are two points where we gonna need external > help, probably from our mentors: > > 1. Demonstrate ability to create Apache releases > 2. Demonstrate community readiness > > For the first one, Nathan has summarized above the work that has been > done. We believe that the project has demonstrated the ability to > create Apache releases, but is there something else to consider? > For the second one, I'm not sure what it means. If it's regarding the > health of the project technically, again Nathan has summarized the > accomplishments. If it's regarding the conduct of the project with > regards to the Apache way, I believe we've been on track. > >> I hope we get github.com/apache/nuttx and github.com/apache/apps soon >> (hope > they accept we use this /apps name, will make our users life easier!) > > The apps one is confusing. It doesn't indicate that it's part of > NuttX. Actually, it doesn't indicate what project it belongs to at > all and I believe a lot of people would ask what this is. > Yes, that is the point! Probably they will not accept it because it could confuse other people, but probably having a README.md could be enough to make it clear. Alternatively we could to modify the build system for accept ../apps and ../nuttx_apps. BR, Alan
Re: [DISCUSS] Graduate NuttX as TLP
On Mon, Jun 27, 2022 at 5:56 PM Alan Carvalho de Assis wrote: > > On 6/27/22, Abdelatif Guettouche wrote: > > For the checklist, there are two points where we gonna need external > > help, probably from our mentors: > > > > 1. Demonstrate ability to create Apache releases > > 2. Demonstrate community readiness > > > > For the first one, Nathan has summarized above the work that has been > > done. We believe that the project has demonstrated the ability to > > create Apache releases, but is there something else to consider? > > For the second one, I'm not sure what it means. If it's regarding the > > health of the project technically, again Nathan has summarized the > > accomplishments. If it's regarding the conduct of the project with > > regards to the Apache way, I believe we've been on track. > > > >> I hope we get github.com/apache/nuttx and github.com/apache/apps soon > >> (hope > > they accept we use this /apps name, will make our users life easier!) > > > > The apps one is confusing. It doesn't indicate that it's part of > > NuttX. Actually, it doesn't indicate what project it belongs to at > > all and I believe a lot of people would ask what this is. > > > > Yes, that is the point! Probably they will not accept it because it > could confuse other people, but probably having a README.md could be > enough to make it clear. Alternatively we could to modify the build > system for accept ../apps and ../nuttx_apps. Is it too difficult to do: (HYPOTHETICAL command, if apps is called nuttx-apps) $ git clone https://github.com/apache/nuttx-apps apps ? In effect we would strip the "incubator-" prefix from both repositories and call it done. Cheers, Nathan
Re: [DISCUSS] Graduate NuttX as TLP
Yes, we can do that, and this is what most of us do (although I forgot the last time I had to clone the repos). On the other hand, ./configure accepts a different apps path with the -a option. It just defaults to ../apps, but technically it can be anywhere and named anything. On Tue, Jun 28, 2022 at 12:18 AM Nathan Hartman wrote: > > On Mon, Jun 27, 2022 at 5:56 PM Alan Carvalho de Assis > wrote: > > > > On 6/27/22, Abdelatif Guettouche wrote: > > > For the checklist, there are two points where we gonna need external > > > help, probably from our mentors: > > > > > > 1. Demonstrate ability to create Apache releases > > > 2. Demonstrate community readiness > > > > > > For the first one, Nathan has summarized above the work that has been > > > done. We believe that the project has demonstrated the ability to > > > create Apache releases, but is there something else to consider? > > > For the second one, I'm not sure what it means. If it's regarding the > > > health of the project technically, again Nathan has summarized the > > > accomplishments. If it's regarding the conduct of the project with > > > regards to the Apache way, I believe we've been on track. > > > > > >> I hope we get github.com/apache/nuttx and github.com/apache/apps soon > > >> (hope > > > they accept we use this /apps name, will make our users life easier!) > > > > > > The apps one is confusing. It doesn't indicate that it's part of > > > NuttX. Actually, it doesn't indicate what project it belongs to at > > > all and I believe a lot of people would ask what this is. > > > > > > > Yes, that is the point! Probably they will not accept it because it > > could confuse other people, but probably having a README.md could be > > enough to make it clear. Alternatively we could to modify the build > > system for accept ../apps and ../nuttx_apps. > > > Is it too difficult to do: > > (HYPOTHETICAL command, if apps is called nuttx-apps) > > $ git clone https://github.com/apache/nuttx-apps apps > > ? > > In effect we would strip the "incubator-" prefix from both > repositories and call it done. > > Cheers, > Nathan
Re: [DISCUSS] Graduate NuttX as TLP
Yes, it is all details, but it is better to use a repository name that users don't need pass that name in the configure or keep passing a name after the clone command. So let us think how to make the life of users easier. BR, Alan On 6/27/22, Abdelatif Guettouche wrote: > Yes, we can do that, and this is what most of us do (although I forgot > the last time I had to clone the repos). On the other hand, > ./configure accepts a different apps path with the -a option. It just > defaults to ../apps, but technically it can be anywhere and named > anything. > > On Tue, Jun 28, 2022 at 12:18 AM Nathan Hartman > wrote: >> >> On Mon, Jun 27, 2022 at 5:56 PM Alan Carvalho de Assis >> wrote: >> > >> > On 6/27/22, Abdelatif Guettouche >> > wrote: >> > > For the checklist, there are two points where we gonna need external >> > > help, probably from our mentors: >> > > >> > > 1. Demonstrate ability to create Apache releases >> > > 2. Demonstrate community readiness >> > > >> > > For the first one, Nathan has summarized above the work that has been >> > > done. We believe that the project has demonstrated the ability to >> > > create Apache releases, but is there something else to consider? >> > > For the second one, I'm not sure what it means. If it's regarding >> > > the >> > > health of the project technically, again Nathan has summarized the >> > > accomplishments. If it's regarding the conduct of the project with >> > > regards to the Apache way, I believe we've been on track. >> > > >> > >> I hope we get github.com/apache/nuttx and github.com/apache/apps >> > >> soon >> > >> (hope >> > > they accept we use this /apps name, will make our users life easier!) >> > > >> > > The apps one is confusing. It doesn't indicate that it's part of >> > > NuttX. Actually, it doesn't indicate what project it belongs to at >> > > all and I believe a lot of people would ask what this is. >> > > >> > >> > Yes, that is the point! Probably they will not accept it because it >> > could confuse other people, but probably having a README.md could be >> > enough to make it clear. Alternatively we could to modify the build >> > system for accept ../apps and ../nuttx_apps. >> >> >> Is it too difficult to do: >> >> (HYPOTHETICAL command, if apps is called nuttx-apps) >> >> $ git clone https://github.com/apache/nuttx-apps apps >> >> ? >> >> In effect we would strip the "incubator-" prefix from both >> repositories and call it done. >> >> Cheers, >> Nathan >
Re: [DISCUSS] Graduate NuttX as TLP
Congratulations on NuttX Graduation and all of the achievements! :-) On Mon, Jun 27, 2022 at 6:18 PM Alan Carvalho de Assis wrote: > I don't know you guys but I hate this incubator-nuttx and > incubator-nuttx-apps repositories names. > > I hope we get github.com/apache/nuttx and github.com/apache/apps soon (hope > they accept we use this /apps name, will make our users life easier!) +1 :-) How about something like nuttx_rtos and nuttx_apps ? It was not clear for me what apps are and if they are mandatory.. keeping apache/apps could be even more confusing.. also I usually keep `.git` suffix for directories that keep git repos and that was not working here :-) Maybe just nuttx + nuttx/nuttx_apps where apps are git submodule kept as it is right now in a sperate repo for easier maintenance? :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
RE: [DISCUSS] Graduate NuttX as TLP
I think that we should modify the paths so that we use nuttx and nuttx_apps folders. In my opinion this will be less confusing for the users Best regards Alin -Original Message- From: Tomek CEDRO Sent: den 28 juni 2022 02:55 To: dev@nuttx.apache.org Subject: Re: [DISCUSS] Graduate NuttX as TLP Congratulations on NuttX Graduation and all of the achievements! :-) On Mon, Jun 27, 2022 at 6:18 PM Alan Carvalho de Assis wrote: > I don't know you guys but I hate this incubator-nuttx and > incubator-nuttx-apps repositories names. > > I hope we get github.com/apache/nuttx and github.com/apache/apps soon > (hope they accept we use this /apps name, will make our users life > easier!) +1 :-) How about something like nuttx_rtos and nuttx_apps ? It was not clear for me what apps are and if they are mandatory.. keeping apache/apps could be even more confusing.. also I usually keep `.git` suffix for directories that keep git repos and that was not working here :-) Maybe just nuttx + nuttx/nuttx_apps where apps are git submodule kept as it is right now in a sperate repo for easier maintenance? :-) -- CeDeROM, SQ7MHZ, https://urldefense.com/v3/__http://www.tomek.cedro.info__;!!JmoZiZGBv3RvKRSx!6HrO-4qVO1mY_faiW-6kxCv6sQxyeUdYuL9_HLWZCaxV9eclVaPiUFuThqR-7C8RXGs6X-G2MtYdfE46lg$