Feature request: ship bridge support (CONFIG_BRIDGE) so the virtual network can be bridged to the LAN
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c, linux
- Domain
- embedded-iot, networking
Research direction
Start with the referenced sg2002_licheervnano_sd_defconfig in LicheeRV-Nano-Build and check how kernel modules are selected and included in the image. The proof of concept links reproducible build notes and scripts; compare that setup with the stock image configuration. Done when bridge support and its required modules are shipped, while the existing eth0-dependent network checks and rules continue to work.
Written by the indexing model from the issue text.
Description
Use case
There is only one LAN cable at the remote PC. The NanoKVM takes it, but the target PC still needs network. The USB virtual network (RNDIS) already runs over the same cable as keyboard and mouse, but it is an isolated 10.x.x.x/24 with no gateway, so the target can only reach the KVM. #98 shows several people asking for exactly this ("Would love to remove duplicate ethernet cables").
Problem
The stock kernel (5.10.4-tag-, image 2025-04-17) has # CONFIG_BRIDGE is not set and ships no bridge module, so ip link add br0 type bridge fails. The workarounds in #98 use NAT. That works for internet, but the target hides behind the KVM's IP and is not a normal LAN client.
Request
- Enable
CONFIG_BRIDGE=m(which selectsCONFIG_LLC/CONFIG_STP) and ship the modules in the image. The defconfig appears to bebuild/boards/sg200x/sg2002_licheervnano_sd/linux/sg2002_licheervnano_sd_defconfigin LicheeRV-Nano-Build. Loaded, the three modules take about 185 KB of RAM, and they change nothing unless someone uses them.CONFIG_BRIDGE_NETFILTERcan stay off. - Optional: a web UI setting "Virtual network: isolated / bridged to LAN".
Working proof of concept
I built llc, stp and bridge out-of-tree from LicheeRV-Nano-Build (linux_5.10) against the device's own /proc/config.gz and run a bridge on a NanoKVM Cube (app 2.5.4, image 2025-04-17):
- The target PC gets a DHCP lease from the LAN router over the USB cable.
- Keyboard, mouse and HDMI keep working. Tailscale on the KVM keeps working.
- The KVM stays reachable when nothing is on USB.
One thing to watch if you implement it natively: kvm_system (ping -I eth0, ip route | grep eth0), S30eth and the iptables rules in S95nanokvm are hard-wired to eth0. My workaround renames the physical port to lan0 and names the bridge itself eth0, so all of that keeps working unchanged. A native implementation would either do the same or make those checks follow the bridge.
Scripts, reproducible build and notes: https://github.com/cepheiden/nanokvm-bridge
- Dominant language
- TypeScript
- Stars
- 6.6k
- Forks
- 357
- Avg merge
- 13h 35m
- Merged PRs (30d)
- 5
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sipeed/NanoKVM
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
sipeed/NanoKVM#783 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
`/data` partition is created with wrong type (0x83 Linux, instead of 0x07 NTFS/exFAT)Possibly taken @jjmaestro claimed this 276 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
sipeed/NanoKVM#763 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
sipeed/NanoKVM#995 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 Over a week Newbie friendliness 18/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 66/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
prometheus/docs#3198 ·
Maintainers usually reply within 3 days
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
Chat: Copying a selection that includes the end of a message also copies the actions menu labelsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
suitenumerique/hub#176 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day