git: 9front

Download patch

ref: af3267ddd7b6f824ae0f2c0efa5bc69721eafbf6
parent: 460b602d35f7a11631e9c3e1913d33615c1e0cda
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Oct 20 15:53:57 EDT 2018

nusbrc: support for raspi3 ethernet

--- a/sys/src/9/boot/nusbrc
+++ b/sys/src/9/boot/nusbrc
@@ -51,8 +51,12 @@
 				}
 			case *
 				# Raspberry Pi ethernet will always appear as /net/etherU0
-				if(~ $2 0424)
-					nusb/ether -t smsc $etherargs $1:0
+				if(~ $2 0424){
+					if(~ $3 7800)
+						nusb/ether -t lan78xx $etherargs $1:0
+					if not
+						nusb/ether -t smsc $etherargs $1:0
+				}
 			}
 		}
 	}
--