Re: RNDIS

2023-01-27 Thread Masayuki Ishikawa
Hi, all. Shall we move the discussions to the github issues? On Sat, Jan 28, 2023 at 3:13 AM Nathan Hartman wrote: > Here's an Article about it: > https://www.phoronix.com/news/Linux-Disabling-RNDIS-Drivers > > > On Fri, Jan 27, 2023 at 1:03 PM Alan C. Assis wrote: > > > I didn't test it

Re: Simulator, NOR flash file system, MTD

2023-01-27 Thread Ken Pettit
Hey Guys, Yes, I had SmartFS running in the simulator at one point, but it was backed by a big char array. But I'm trying to understand the use case ... are you jsut looking for a file system in the simulator to use for testing an application? Are you looking for host backed because you

Re: Simulator, NOR flash file system, MTD

2023-01-27 Thread Xiang Xiao
You can try the follow config directly: 1.spi flash simulator + smartfs: https://github.com/apache/nuttx/blob/master/arch/sim/src/sim/sim_initialize.c#L59-L225 2.ram mtd + :smartfs/littlefs/nxffs: https://github.com/apache/nuttx/blob/master/boards/sim/sim/sim/src/sim_bringup.c#L157-L238 On Sat,

Re: Simulator, NOR flash file system, MTD

2023-01-27 Thread Alan C. Assis
Hi Alexander, Some time ago Ken Pettit wrote a SmartFS simulator. If I'm not wrong it could be used with NuttX SIM(ulator). BR, Alan On 1/27/23, Alexander Oryshchenko wrote: > What is the easiest way to use NOR- FFS (SmartFs, Spiffs, LittleFs...) over > host's file? > May be somebody knows

Re: NuttX PTP Support

2023-01-27 Thread James Dougherty
Thanks, I will try it this weekend on one of my boards…. > On Jan 27, 2023, at 11:12 AM, Alan C. Assis wrote: > > Yes, it is supported: serial and network (ethernet and WiFi). > >> On 1/27/23, James Dougherty wrote: >> Outstanding! >> >> Serial and Network… >> >> Thank you >> On Jan

Re: Pass interrupt status to handler

2023-01-27 Thread Nathan Hartman
On Fri, Jan 27, 2023 at 1:57 PM Gregory Nutt wrote: > On 1/27/2023 12:15 PM, Nathan Hartman wrote: > > Is there a global structure where you retain state information where it > > would be appropriate to save the most refent known state in a volatile > > variable? > Good, modular design would

Simulator, NOR flash file system, MTD

2023-01-27 Thread Alexander Oryshchenko
What is the easiest way to use NOR- FFS (SmartFs, Spiffs, LittleFs...) over host's file? May be somebody knows NOR FLASH simulator for Linux? Any other way?

Re: NuttX PTP Support

2023-01-27 Thread Alan C. Assis
Yes, it is supported: serial and network (ethernet and WiFi). On 1/27/23, James Dougherty wrote: > Outstanding! > > Serial and Network… > > Thank you > >> On Jan 27, 2023, at 10:01 AM, Alan C. Assis wrote: >> >> Hi James, >> >> ESP32 is supported, which features do you need? >> >> BR, >> >>

RE: Pass interrupt status to handler

2023-01-27 Thread TimH
In this case, it's not the low level interrupt handler. It's essentially the "callback" routine that's registered to the generic PIO irq handler. I think! I had hoped that the actually irq state (edge/level/whatever) existed in a struct/argument/whatever and I just hadn't spotted it. I should

Re: NuttX PTP Support

2023-01-27 Thread James Dougherty
Outstanding! Serial and Network… Thank you > On Jan 27, 2023, at 10:01 AM, Alan C. Assis wrote: > > Hi James, > > ESP32 is supported, which features do you need? > > BR, > > Alan > >> On 1/27/23, James Dougherty wrote: >> I haven’t looked at it yet, but I am working on ESP32; is WROOM

Re: Pass interrupt status to handler

2023-01-27 Thread Xiang Xiao
On Sat, Jan 28, 2023 at 2:46 AM Gregory Nutt wrote: > Typically, if you want to pass a small amount of information from an > interrupt handler to a task, you would use a normal IPC like sigqueue() > (https://pubs.opengroup.org/onlinepubs/7908799/xsh/sigqueue.html) which > allows to send a type

Re: Pass interrupt status to handler

2023-01-27 Thread Gregory Nutt
On 1/27/2023 12:15 PM, Nathan Hartman wrote: Is there a global structure where you retain state information where it would be appropriate to save the most refent known state in a volatile variable? Good, modular design would discourage the use of global variables in such a way.

Re: Pass interrupt status to handler

2023-01-27 Thread Gregory Nutt
Typically, if you want to pass a small amount of information from an interrupt handler to a task, you would use a normal IPC like sigqueue() (https://pubs.opengroup.org/onlinepubs/7908799/xsh/sigqueue.html) which allows to send a type union sigval to the task. The task would have to catch the

RE: Pass interrupt status to handler

2023-01-27 Thread Tim Hardisty
No, not that I've created, although there might be one related to all the PIO I guess. Think I hoped that the basic NuttX interrupt mechanisms might inherently hold the state but couldn't immediately see it (including via debug). No big deal - reading the PIO status is no issue, and I don't

Re: Pass interrupt status to handler

2023-01-27 Thread Nathan Hartman
Is there a global structure where you retain state information where it would be appropriate to save the most refent known state in a volatile variable? On Fri, Jan 27, 2023 at 1:00 PM Tim Hardisty wrote: > Think this is an easy one but it's stumped me so far... > > I am setting up the USB

Re: RNDIS

2023-01-27 Thread Nathan Hartman
Here's an Article about it: https://www.phoronix.com/news/Linux-Disabling-RNDIS-Drivers On Fri, Jan 27, 2023 at 1:03 PM Alan C. Assis wrote: > I didn't test it since a long time, but I recall people using it some > month ago without issue. > > Since the "rndis" board config to stm32f4discovery

Re: RNDIS

2023-01-27 Thread Alan C. Assis
I didn't test it since a long time, but I recall people using it some month ago without issue. Since the "rndis" board config to stm32f4discovery still there I could test it later and report my results here. BR, Alan On 1/27/23, Tim Hardisty wrote: > Just what I read, perhaps it *will* be

Re: NuttX PTP Support

2023-01-27 Thread Alan C. Assis
Hi James, ESP32 is supported, which features do you need? BR, Alan On 1/27/23, James Dougherty wrote: > I haven’t looked at it yet, but I am working on ESP32; is WROOM supported > in master or just the S3/C3? > > > On Fri, Jan 27, 2023 at 4:23 AM Robert Alexa > wrote: > >> Hi all, >> >>

Pass interrupt status to handler

2023-01-27 Thread Tim Hardisty
Think this is an easy one but it's stumped me so far... I am setting up the USB Overcurrent interrupt and can't find any fully implemented examples. The interrupt is set to both edges as I want to know when the over current state is first set and later hopefully cleared. I can obviously read

Re: NuttX PTP Support

2023-01-27 Thread James Dougherty
I haven’t looked at it yet, but I am working on ESP32; is WROOM supported in master or just the S3/C3? On Fri, Jan 27, 2023 at 4:23 AM Robert Alexa wrote: > Hi all, > > What's the current status of this? I'm also interested in adding PTP > support to NuttX, especially on ESP32 if that's

RE: RNDIS

2023-01-27 Thread Tim Hardisty
Just what I read, perhaps it *will* be deprecated... Modprobe does suggest that rndis_host is, indeed, present so, in that case, RNDIS doesn't work on Linux either! >-Original Message- >From: Alan C. Assis >Sent: 27 January 2023 16:12 >To: dev@nuttx.apache.org >Subject: Re: RNDIS >

Re: RNDIS

2023-01-27 Thread Michael Jung
Hello Tim, I was playing around with RNDIS a couple of years ago and could not get it to work either. Which is why I started the CDC-ECM driver back then. The right thing to do would probably be to create an CDC-NCM driver, as CDC-NCM is supposed to be supported on Linux, MacOS and contemporary

Re: RNDIS

2023-01-27 Thread Alan C. Assis
Strange, it still available here: $ sudo modprobe rndis_host BR, Alan On 1/27/23, Tim Hardisty wrote: > Seems that RNDIS on Linux is deprecated as it's deemed insecure, so I need > to use CDC-ECM for Linux (which works), but there's no generic driver for > that in Windows (unless anyone knows

RNDIS

2023-01-27 Thread Tim Hardisty
Seems that RNDIS on Linux is deprecated as it's deemed insecure, so I need to use CDC-ECM for Linux (which works), but there's no generic driver for that in Windows (unless anyone knows differently?). So I am still trying to get RNDIS working...2 days of prodding and poking so far and no

Re: NuttX PTP Support

2023-01-27 Thread Nathan Hartman
On Fri, Jan 27, 2023 at 7:23 AM Robert Alexa wrote: > As a first step I was thinking of adding support for the PTP daemon, as > Alan suggested. That is probably the most important step right now. Hardware support can be added as needed. The TM4C129 Tiva-C ARM platform has hardware support for

Re: [OT] Who is contribution with NuttX?

2023-01-27 Thread Jukka Laitinen
Hi! All commits from me, Unikie (most of them from Ville Juven) and Eero Nurkkala are actually from "my" team for a single research program for TII (tii.ae). So the "company credit" goes to TII for those, they want to support NuttX with the contributions. Since we are all basically

Re: [OT] Who is contribution with NuttX?

2023-01-27 Thread Alan C. Assis
Thank you Tim! On 1/27/23, Tim Hardisty wrote: >>Tim Hardisty = 15 > > That be me :) > > JT Innovations Ltd > > Or JTi for short. > >

Re: [OT] Who is contribution with NuttX?

2023-01-27 Thread Michael Jung
Hi Alan, For me please use "secore.ly GmbH". Thanks! Michael On Fri, Jan 27, 2023 at 2:41 PM Alan C. Assis wrote: > Hey NuttXers, > > I decided to list which companies are contributing most with NuttX, > but during my research I couldn't to map some individual contributors > to their

RE: [OT] Who is contribution with NuttX?

2023-01-27 Thread Tim Hardisty
>Tim Hardisty = 15 That be me :) JT Innovations Ltd Or JTi for short.

[OT] Who is contribution with NuttX?

2023-01-27 Thread Alan C. Assis
Hey NuttXers, I decided to list which companies are contributing most with NuttX, but during my research I couldn't to map some individual contributors to their companies. So, I don't know if Oki Minabe is an individual contributor or a contributor from Sony. Same to CV-Bowen, but I'm 99% sure

Re: NuttX PTP Support

2023-01-27 Thread Robert Alexa
Hi all, What's the current status of this? I'm also interested in adding PTP support to NuttX, especially on ESP32 if that's possible - I haven't done any research yet regarding the hardware capabilities of ESP32 in this matter. As a first step I was thinking of adding support for the PTP

Re: Lua fails to build

2023-01-27 Thread Xiang Xiao
Please try this stock config before making your own one: https://github.com/apache/nuttx/blob/master/boards/sim/sim/sim/configs/lua/defconfig On Fri, Jan 27, 2023 at 4:28 PM Russell Haley wrote: > Hi, > > I am trying to build the Lua interpreter into the sim:nsh sample code > using the

Lua fails to build

2023-01-27 Thread Russell Haley
Hi, I am trying to build the Lua interpreter into the sim:nsh sample code using the menuconfig (Applications->Interpreters->Lua). The Lua interpreter seems to be missing libmath. I tried adding `CFLAGS += -lm` but it didn’t seem to help. Can anyone tell me how to add the Lua interpreter