Re: RNDIS

2023-02-11 Thread Alan C. Assis
Hi Tim, Thank you for confirming! I noticed that Mr. Xiang Xiao already closed the issue as well. BR, Alan On 2/11/23, Tim Hardisty wrote: >> On 28/01/2023, 14:11, "Alan C. Assis" wrote: > >> If there are inconsistencies, they are not specify of RNDIS driver by >&

Re: RNDIS

2023-02-11 Thread Tim Hardisty
> On 28/01/2023, 14:11, "Alan C. Assis" wrote: > If there are inconsistencies, they are not specify of RNDIS driver by > itself, but could be in the USB implementation of other architectures. Just for completeness, there was indeed a fix needed in the SAMA5 sam_udphs.c code

Re: RNDIS

2023-01-28 Thread Alan C. Assis
Microsoft have not said they will deprecate it as yet, so there is > still a use for it until an NCM driver is available. > > On 28/01/2023, 14:11, "Alan C. Assis" <mailto:acas...@gmail.com>> wrote: > > > Ok, I re-opened it. > > > If there are inconsi

Re: RNDIS

2023-01-28 Thread Tim Hardisty
s yet, so there is still a use for it until an NCM driver is available. On 28/01/2023, 14:11, "Alan C. Assis" mailto:acas...@gmail.com>> wrote: Ok, I re-opened it. If there are inconsistencies they are not specify of RNDIS driver by itself, but could be in the USB im

Re: RNDIS

2023-01-28 Thread Alan C. Assis
Ok, I re-opened it. If there are inconsistencies they are not specify of RNDIS driver by itself, but could be in the USB implementation of other architectures. BTW, since RNDIS is deprecated it doesn't make sense to invest more time on it. Like Michael said, it is time to look for a b

Re: RNDIS

2023-01-28 Thread Tim Hardisty
Please don't close my issue. There are too many inconsistencies here to be sure it is closed: Processor - I am not using stm32 OS - Windows/Linux/Ubuntu version maybe RNDIS is likely to be deprecated If I can get RNDIS working for me, that is the time to close it. On 28/01/2023, 13:45,

Re: RNDIS

2023-01-28 Thread Alan C. Assis
444 for telnet connections Reset your board ==== Run dmesg to confirm that USB RNDIS device was detected: [ 1099.821480] usb 3-3: new full-speed USB device number 12 using xhci_hcd [ 1099.972379] usb 3-3: New USB device found, i

Re: RNDIS

2023-01-28 Thread Tim Hardisty
> On 28/01/2023, 00:09, "Masayuki Ishikawa"wrote: > Shall we move the discussions to the github issues? https://github.com/apache/nuttx/issues/8325 :)

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: &g

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"

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, pe

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 &g

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 (

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

Re: RNDIS and DHCPD

2022-02-01 Thread Alan Carvalho de Assis
Hi Greg, On 1/25/22, Gregory Nutt wrote: >> Good question! Normally the computer/host is supposed to run the DHCP >> server, you need to check in the spec if there is some way to change >> it. >> > > I wrote a DHCP server a long time ago. It is at apps/netutils/dhcpd. > Haven't used it in a long

Re: RNDIS and DHCPD

2022-01-25 Thread Gregory Nutt
> Good question! Normally the computer/host is supposed to run the DHCP > server, you need to check in the spec if there is some way to change > it. > I wrote a DHCP server a long time ago. It is at apps/netutils/dhcpd. Haven't used it in a long time so I would expecit it to have some bit rot.

Re: RNDIS and DHCPD

2022-01-25 Thread Alan Carvalho de Assis
in the same subnet as the > NuttX device, assuming the PC is set to get IP addresses via DHCP. I > don't think the PC (Linux or Windows) can give the NuttX device an IP > address without lots of hassle. > > My hope is that I can enable my board as a DHCP server and web server: &g

Re: RNDIS and DHCPD

2022-01-25 Thread TimH
dress without lots of hassle. My hope is that I can enable my board as a DHCP server and web server: plug it to a PC (USB/RNDIS), use a browser, and get web pages served from the device to configure, and get files. This means I don't need USB MSD and FAT :) On 25/01/2022 20:20, Alan Carvalh

Re: RNDIS and DHCPD

2022-01-25 Thread Alan Carvalho de Assis
Hi Tim, Looking my see you can see that I faced some issues with Ubuntu attributing DHCP address to my board, but I think it works if you use a better dhcp server on Linux. I suggest you too look how other boards are configuring it, i.e.: boards/arm/lc823450/lc823450-xgevk/configs/rndis

RNDIS and DHCPD

2022-01-25 Thread TimH
First attempt hasn't worked, but not I've investigated or checked my .config yet; but, before I do, is it reasonable to expect NuttX to support DHCP server and USB RNDIS such that a connected PC gets an IP address from the NuttX RNDIS "gadget" allowing connectivity without

Re: RNDIS

2022-01-21 Thread Barbiani
think it all got confused as I had been leaving the USB > cable > >>>> connected, coupled with not flashing code but using JTAG download for > >>>> debugging, coupled with not repowering the board very often. > >>>> > >>>> I can now telnet from Windows. > >>>> > >>>> Linux remains an issue, but I'm looking at whether there are any RNDIS > >>>> driver updates for Ubuntu or something like that. > >>>> > >>>> But, for once, I at least have *something* working :) > >

Re: RNDIS

2022-01-21 Thread TimH
nd I think it all got confused as I had been leaving the USB cable connected, coupled with not flashing code but using JTAG download for debugging, coupled with not repowering the board very often. I can now telnet from Windows. Linux remains an issue, but I'm looking at whether there are any

Re: RNDIS

2022-01-21 Thread Alan Carvalho de Assis
able >>> connected, coupled with not flashing code but using JTAG download for >>> debugging, coupled with not repowering the board very often. >>> >>> I can now telnet from Windows. >>> >>> Linux remains an issue, but I'm looking at whether there are any RNDIS >>> driver updates for Ubuntu or something like that. >>> >>> But, for once, I at least have *something* working :) >

Re: RNDIS

2022-01-21 Thread TimH
leaving the USB cable connected, coupled with not flashing code but using JTAG download for debugging, coupled with not repowering the board very often. I can now telnet from Windows. Linux remains an issue, but I'm looking at whether there are any RNDIS driver updates for Ubuntu or something

Re: RNDIS

2022-01-21 Thread Alan Carvalho de Assis
n issue, but I'm looking at whether there are any RNDIS > driver updates for Ubuntu or something like that. > > But, for once, I at least have *something* working :) > >>-Original Message- >>From: Tim >>Sent: 21 January 2022 14:14 >>To: dev@nuttx.apac

RE: RNDIS

2022-01-21 Thread Tim
telnet from Windows. Linux remains an issue, but I'm looking at whether there are any RNDIS driver updates for Ubuntu or something like that. But, for once, I at least have *something* working :) >-Original Message- >From: Tim >Sent: 21 January 2022 14:14 >To: dev@nuttx.ap

RE: RNDIS

2022-01-21 Thread Tim
>From: Tim Hardisty >Sent: 21 January 2022 11:15 >[ 3399.339551] rndis_host 1-2:1.0: dev can't take 1558 byte packets (max >1364), adjusting MTU to 1306 Easily fixed: CONFIG_NET_ETH_PKT_SIZE=1518 But RNDIS still doesn't work, having checked every option I can find. W

Re: RNDIS

2022-01-21 Thread Tim Hardisty
= 0.01 [ 3399.337985] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 3399.337987] usb 1-2: Product: RNDIS NuttX [ 3399.337988] usb 1-2: Manufacturer: NuttX [ 3399.337990] usb 1-2: SerialNumber: 1234 [ 3399.339311] rndis_host 1-2:1.0: skipping garbage [ 3399.339551] rndis_host 1-2

Re: RNDIS

2022-01-20 Thread Alan Carvalho de Assis
Please verify if dmesg can give use some hint about the issue. On 1/20/22, TimH wrote: > Nope, doesn't show. So RNDIS is not working right on my board. What a > surprise! > > On 20/01/2022 19:30, Alan Carvalho de Assis wrote: >> Exactly, knowing Unix/Linux makes your

Re: RNDIS

2022-01-20 Thread TimH
Nope, doesn't show. So RNDIS is not working right on my board. What a surprise! On 20/01/2022 19:30, Alan Carvalho de Assis wrote: Exactly, knowing Unix/Linux makes your live easier with NuttX. Using "ip list" (or ifconfig) on Linux should display the new USB RNDIS interface. BR, Alan

Re: RNDIS

2022-01-20 Thread Alan Carvalho de Assis
Exactly, knowing Unix/Linux makes your live easier with NuttX. Using "ip list" (or ifconfig) on Linux should display the new USB RNDIS interface. BR, Alan On 1/20/22, TimH wrote: > At home now, but don't recall USB settings of any sort there, just the > wired Ethernet ada

Re: RNDIS

2022-01-20 Thread TimH
r settings - they're probably there somewhere!! Or Linux is not detecting the RNDIS adapter connection perhaps. Is there an RNDIS equivalent of "msconn"? My Linux abilities are on a par with my NuttX abilities...very very bad! Which is the lesson I'm learning the very hard way

Re: RNDIS

2022-01-20 Thread Alan Carvalho de Assis
Hi Tim, You we welcome! Are your Linux usb interface on this 10.0.0.x range as well? Is they are not in the same network class it will not work. BR, Alan On 1/20/22, Tim wrote: > Following suggestions relating to FAT/MSD/USB I have been playing with > RNDIS > following the Nutt

RNDIS

2022-01-20 Thread Tim
Following suggestions relating to FAT/MSD/USB I have been playing with RNDIS following the NuttX Channel video by Alan C. de Assis (thank you Alan - only just found all of your videos!!). It all builds OK and ifconfig suggests all is good: nsh> ifconfig lo Link encap:Local Loopback

Re: RNDIS Kinetis

2020-07-24 Thread Schock, Johannes - NIVUS GmbH
It seems sometimes reading the readme could save from heavy debugging and writing an email. But nevertheless, I filed a PR: https://github.com/apache/incubator-nuttx/pull/1456 RNDIS is working now, I have TCP/IP Telnet access through USB on Kinetis K28. Regards, Johannes > -Original Mess

Re: RNDIS Kinetis

2020-07-21 Thread Gregory Nutt
Now I'm facing a problem with the RNDIS driver under Kinetis USB device (K28-Freedom), it is not working. If I'm not wrong I think I tracked it down: The Kinetis USB device driver doesn't support accompanying data in an nonstandard OUT setup packet. Has someone already fix

RNDIS Kinetis

2020-07-21 Thread Schock, Johannes - NIVUS GmbH
Hello, I have again a little bit time to try out NuttX. Now I'm facing a problem with the RNDIS driver under Kinetis USB device (K28-Freedom), it is not working. If I'm not wrong I think I tracked it down: The Kinetis USB device driver doesn't support accompanying data in an