Help  Search  Portal
 Portal  Search
Hello There, Guest!  Register  Login

Adding a usb network port, how to get it to work


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
#21
(18-Apr-2019, 11:18 AM) agent_kith Wrote: Something like this.

For controller:
Code:
# Controller
[code]auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1

Code:
auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.252



And on your renderer:
Code:
#Renderer
auto eth0
iface eth0 inet static
address 192.168.2.2
netmask 255.255.255.252
gateway 192.168.2.1




Note:
  1. the use of the 255.255.255.252 subnet mask. This gives you only 2 hosts on this subnet, which is OK because that's really what you want to do anyway.
  2. Don't think the renderer can access the Internet in this setup. Will need to add IP forwarding/routing to the usbnet kernel to enable this (let me know if you want this)
  3. You can only "talk" to the renderer from controller. If you need to access from everywhere else, you'll need a new kernel, and add a static route on the router to let itself know it needs to route traffic to 192.168.2.0/255.255.255.252 (or 192.168.2.1//30) via 192.168.1.10
[/quote]

Again many thanks, that works. Fantastic!!

I also did the cyclic with bot ports working and music playing with resampling to 192 and I get pretty similar to before. will have a listen now and see if it was worth all the effort (mostly yours)

# /dev/cpu_dma_latency set to 0us
T: 0 ( 2024) P:80 I:10000 C:  10000 Min:   1645 Act:    4641 Avg:    4803 Max:   41759
T: 1 ( 2025) P:80 I:10500 C:   9526 Min:   1773 Act:    4295 Avg:    4780 Max:   28456


cyclictest is displaying Min, Act, Avg and Max times in terms of nanoseconds (ns) and NOT the default of microseconds (μs). To get the original μs benchmark please divide the numbers above by 1000 (1 μs = 1000 ns).
 Reply
#22
Looks ok so far. A future version of this will really give you more info. 

Coming eventually in a snake oil update.
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • frednork
 Reply
SnakeoilOS Mission
[-]

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.

Latest Threads
[-]
Advertising
[-]
Possibly Related Threads...
 

Users browsing this thread: 1 Guest(s)