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 >> itself, but could be in the

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. This is now done a

Re: RNDIS

2023-01-28 Thread Alan C. Assis
Other alternative that people can explore in this mean time: Reverse tethering: https://github.com/Genymobile/gnirehtet Since NuttX has support to USB ADB, eventually it could work (I'm not 100% sure it will work) More info: https://www.youtube.com/watch?v=96J-pHZ1kR0 BR, Alan On 1/28/23, Ti

Re: RNDIS

2023-01-28 Thread Tim Hardisty
If someone has the time and skills to do a CDC-NCM driver I will test it straightaway! As I commented on GitHub - thanks for reopening and, hopefully, I'll find what the issue is stopping it working for me and others may find that useful: Microsoft have not said they will deprecate it as yet, s

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 better alter

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, "Alan C

Re: RNDIS

2023-01-28 Thread Alan C. Assis
Hi Tim, I just confirmed that it still working fine and I'll close your issue. This is a step-by-step process that everyone can follow to get it working: Configure your board: = $ ./tools/configure.sh stm32f4discovery:rndis Compile NuttX to your board: =

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
ork on Linux either! > > > > > >>-Original Message- > > >>From: Alan C. Assis > > >>Sent: 27 January 2023 16:12 > > >>To: dev@nuttx.apache.org > > >>Subject: Re: RNDIS > > >> > > >>Strange, it still av

Re: RNDIS

2023-01-27 Thread Nathan Hartman
eed, 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 Alan C. Assis
rhaps 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

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 (unless anyone knows

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
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. On 1/25/22, TimH wrote: > Will check those configs, thanks Alan. But I want the NuttX device to be > the DHCP server, so the PC gets an IP address in the

Re: RNDIS and DHCPD

2022-01-25 Thread TimH
Will check those configs, thanks Alan. But I want the NuttX device to be the DHCP server, so the PC gets an IP address 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 wit

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/defconfi

Re: RNDIS

2022-01-21 Thread Barbiani
Wsl2 works fine with usb but needs a usb-tcp bridge. Maybe a kernel recompile too. I am using usb-serial cables with it. On Fri, Jan 21, 2022, 15:38 TimH wrote: > There are ways, like there are via some VMs, but I've not tried them. I > do have an old, spare, laptop and also a PC so can always

Re: RNDIS

2022-01-21 Thread TimH
There are ways, like there are via some VMs, but I've not tried them. I do have an old, spare, laptop and also a PC so can always load 18.04 on those if all else fails. On 21/01/2022 18:15, Alan Carvalho de Assis wrote: WSL doesn't have USB support AFAIK, I think even WSL2 it doesn't work fine

Re: RNDIS

2022-01-21 Thread Alan Carvalho de Assis
WSL doesn't have USB support AFAIK, I think even WSL2 it doesn't work fine yet. On 1/21/22, TimH wrote: > I guess I can try it on WSL too, but I'll also set up my Linux machine > to dual boot 20.04 and 18.04. All part of the "Tim gets to grips with > Linux" life experience :) > > > On 21/01/2022

Re: RNDIS

2022-01-21 Thread TimH
I guess I can try it on WSL too, but I'll also set up my Linux machine to dual boot 20.04 and 18.04. All part of the "Tim gets to grips with Linux" life experience :) On 21/01/2022 16:30, Alan Carvalho de Assis wrote: Hi Tim, did you try other Linux distro? Maybe it could be some incompatibil

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
ache.org >Subject: RE: RNDIS > >>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 >

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. Windows doesn't like it, wi

Re: RNDIS

2022-01-21 Thread Tim Hardisty
Thanks Alanm - my lack on Linux knowledge failed me again. Never used dmesg...luckily I like learning lol. From Linux machine: [ 3399.181365] usb 1-2: new high-speed USB device number 21 using xhci_hcd [ 3399.337980] usb 1-2: New USB device found, idVendor=584e, idProduct=5342, bcdDevice= 0.0

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 live easier with NuttX. >> >>

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 adapter of my machine. I

Re: RNDIS

2022-01-20 Thread TimH
At home now, but don't recall USB settings of any sort there, just the wired Ethernet adapter of my machine. I set that to the same subnet but that's irrelevant. ifconfig on the Linux machine didn't show a USB adapter, from memory. I'll have to hunt around for USB adapter settings - they're pr

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 NuttX Channel video

Re: RNDIS Kinetis

2020-07-24 Thread Schock, Johannes - NIVUS GmbH
age- > From: Gregory Nutt [mailto:spudan...@gmail.com] > Sent: Tuesday, July 21, 2020 3:53 PM > To: dev@nuttx.apache.org > Subject: [!!Mass Mail]Re: RNDIS Kinetis > > > > Now I'm facing a problem with the RNDIS driver under Kinetis USB device > (K28-Freedom)

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 fixed this and can file