I want to make use of the USB gadgets functionality, specifically the NCM mode. I’ve been following the guide made by RidgeRun to get ECM working first, but hitting a roadblock at step #4, when I’m trying to edit the idVendor file and fill that with the VID previously set. Error I get is:
Not an answer, but those files in /sys are pseudo files that don’t actually exist on the disk. These are actually in RAM as part of the driver itself. This means that since you used sudo, that the driver is not accepting a write to the file. There is probably some other requirement locking the file, e.g., if you have a USB cable plugged in already, then it might lock out changes. The device mode service could perhaps be temporarily turned off, and the cable removed, after which maybe it will work.
Thank you both! As soon as I switched to ‘root’, it all went in fine. But actually didn’t need RidgeRun’s guide, the Nvidia scripts (after I discovered them) were more than enough. I think it’s a topic that maybe should be covered a bit better in the documentation.