[Etherboot-developers] patch for i82559 on-board eepro100.c
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Dave A. <ai...@cs...> - 2003-04-07 23:30:49
|
In order to get the eepro100 netbooting on my onboard eepro100 I found the mail below[1] and I made the patch below for etherboot-5.0.9 to do the same, and yeh for me it works.. I was transmitting the first packet for DHCP and then hanging hard, Dave. [1] http://beowulf.es.embnet.org/listarchives/linux-eepro100/1999/06/0032.html --- orig/etherboot-5.0.9/src/eepro100.c 2002-12-11 10:39:54.000000000 +1100 +++ etherboot-5.0.9/src/eepro100.c 2003-04-07 15:03:39.000000000 +1000 @@ -524,6 +524,11 @@ whereami ("Got eeprom."); + /* Base = 0 */ + outl(0, ioaddr + SCBPointer); + outw(INT_MASK | CU_CMD_BASE, ioaddr + SCBCmd); + wait_for_cmd_done(ioaddr + SCBCmd); + outl(virt_to_bus(&lstats), ioaddr + SCBPointer); outw(INT_MASK | CU_STATSADDR, ioaddr + SCBCmd); wait_for_cmd_done(ioaddr + SCBCmd); @@ -559,10 +564,6 @@ /* INIT TX stuff. */ - /* Base = 0 */ - outl(0, ioaddr + SCBPointer); - outw(INT_MASK | CU_CMD_BASE, ioaddr + SCBCmd); - wait_for_cmd_done(ioaddr + SCBCmd); whereami ("set TX base addr."); |