M boot/key.c => boot/key.c +12 -0
@@ 39,6 39,18 @@ key(int islocal, Method *mp)
safeoff = 1024+850;
} else if(strcmp(cputype, "386") == 0 || strcmp(cputype, "alpha") == 0){
fd = open("#S/sdC0/nvram", ORDWR);
+ if(fd < 0){
+ fd = open("#S/sdC0/9fat", ORDWR);
+ if(fd >= 0){
+ safeoff = finddosfile(fd, "plan9.nvr");
+ if(safeoff < 0){
+ close(fd);
+ fd = -1;
+ }
+print("safeoff = %d\n", safeoff);
+ safelen = 512;
+ }
+ }
if(fd < 0)
fd = open("#S/sd00/nvram", ORDWR);
if(fd < 0){
M pc/etherec2t.c => pc/etherec2t.c +2 -1
@@ 22,6 22,7 @@ static char* ec2tpcmcia[] = {
"EC2T", /* Linksys Combo PCMCIA EthernetCard */
"PCMPC100", /* EtherFast 10/100 PC Card */
"EN2216", /* Accton EtherPair-PCMCIA */
+ "FA410TX", /* Netgear FA410TX */
nil,
};
@@ 115,7 116,7 @@ reset(Ether* ether)
*/
dp8390reset(ether);
sum = 0;
- if(cistrcmp(type, "PCMPC100") == 0){
+ if(cistrcmp(type, "PCMPC100") == 0 || cistrcmp(type, "FA410TX") == 0){
/*
* The PCMPC100 has the ethernet address in I/O space.
* There's a checksum over 8 bytes which sums to 0xFF.