Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Activate "ETH over USB" on Linux [SIMPLE TRICK] 

Featured Replies

Hi,

 

I need to modify the kernel to enable the USB networking ability for my network of development boards. (currently 1master & 10servers) we need to use usb connections for networking functionalities.

 

My question: is it possible to modify the linux kernel without compiling a whole image from scratch. We are now developing a network of mashines and are thinking ahead, doing some planning, to reduce our workload in the future and for avoiding the need to reinstall all the OSes on the whole network. Optimally we would never need to reinstall an image /only reboot a mashine and do meaningful changes on the kernel over ssh. Metaphoricallly speaking: we need to be able to transform a prototype airplane into a super jet, without ever landing.

 

I already went through a decent amount of research for aprox. 1 week and I think the solution is something like this:

 

1.

https://cateee.net/lkddb/web-lkddb/USB_NET_CDCETHER.html

 

2.

https://serverfault.com/questions/821245/how-to-hook-an-ethernet-over-usb-connection-up-to-the-host-network

 

3.

https://nxp.gitbook.io/d2x/software/d2x-application/enabling-usb-network

 

4.

and a lot more... (these are the most relevant ones) 

 

 

(We will modify and play around with the kernels in the future, I just finished my last course of my ITCP School, I just picked up Programming at University and I will very probably go deeper into Kernels in the near future) 

 

For now I only need to change this one thing and I will surely work on kernels later on my path.

(and hopefully get someone on board that has relevant experience with the linux kernel)

 

The main goal is to activate "ETH over USB" for a simple trick, in order to get rid of obsolete periphery in the future. (here&now: get rid of the eth port) We are passing little data volume over ssh. (from one master to multiple servers) 

 

What I already know/the keywords that I'm using for further research are:

 

1.

I need to modify the "drivers/net/usb/Kconfig" 

CONFIG_USB_NET_CDCETHER

 

2.

cdc-ecm class for ethernet over usb

 

3.

Enabling USB RNDIS Support

 

 

 

The problem split in 2 is:

 

1. Can I modify a kernel without the need of reinstalling the whole OS

 

2. How to activate USB Networking(eth over usb)

 

 

Thank you in advance,

 

Best Regards, 

Annony

I have pretty much exactly the same question, though without the same level of concern about reinstalling the OS. I've only got a few devices at the moment, so it'd be doable. 

But still- I can't seem to make Eth-over-USB work on a Rock running Armbian. 

I feel silly.....could swear I did it on other Linux variants years ago. 

H

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.