Changeset 7470
- Timestamp:
- 07/13/07 18:17:05 (6 years ago)
- Location:
- src/router
- Files:
-
- 5 edited
-
httpd/modules/broadcom.c (modified) (1 diff)
-
rc/rc.c (modified) (2 diffs)
-
rc/servicemanager.c (modified) (2 diffs)
-
services/services/services.c (modified) (1 diff)
-
services/sysinit/sysinit-gateworx.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/modules/broadcom.c
r7458 r7470 4672 4672 #define TEMP_MUL 100 4673 4673 FILE *fp = 4674 fopen ("/sys/devices/platform/IXP4XX-I2C.0/i2c- 0/0-0028/temp_input",4674 fopen ("/sys/devices/platform/IXP4XX-I2C.0/i2c-adapter:i2c-0/0-0028/temp_input", 4675 4675 "rb"); 4676 4676 #else -
src/router/rc/rc.c
r7416 r7470 696 696 if (argc >= 2) 697 697 { 698 cprintf ("hotplug %s\n", argv[1]);698 fprintf (stderr,"hotplug %s\n", argv[1]); 699 699 if (!strcmp (argv[1], "net")) 700 700 return start_service ("hotplug_net"); … … 839 839 else if (strstr (base, "nvram")) 840 840 return nvram_main (argc, argv); 841 #ifndef HAVE_XSCALE 841 842 else if (strstr (base, "ledtool")) 842 843 return ledtool_main (argc, argv); 844 #endif 843 845 // else if (strstr (base, "reboot")) 844 846 // shutdown_system(); -
src/router/rc/servicemanager.c
r6397 r7470 30 30 31 31 /* 32 32 33 #define cprintf(fmt, args...) do { \ 33 34 FILE *fp = fopen("/dev/console", "w"); \ … … 38 39 } \ 39 40 } while (0) 41 40 42 */ 41 42 43 43 44 void * -
src/router/services/services/services.c
r7326 r7470 1550 1550 1551 1551 #ifdef HAVE_GATEWORX 1552 #define TEMP_PATH "/sys/devices/platform/IXP4XX-I2C.0/i2c-0/0-0028" 1552 #define TEMP_PATH "/sys/devices/platform/IXP4XX-I2C.0/i2c-adapter:i2c-0/0-0028" 1553 //#define TEMP_PATH "/sys/devices/platform/IXP4XX-I2C.0/i2c-0/0-0028" 1553 1554 #define TEMP_PREFIX "temp" 1554 1555 #define TEMP_MUL 100 -
src/router/services/sysinit/sysinit-gateworx.c
r7325 r7470 156 156 eval ("mknod", "/dev/rtc", "c", "254", "0"); 157 157 eval ("mknod", "/dev/crypto", "c", "10", "70"); 158 159 158 eval ("mount", "-o", "remount,rw", "/"); 160 159 … … 202 201 203 202 //system("/etc/kendin"); 203 204 205 #if 0 204 206 eval ("insmod", "ixp400th"); 205 207 eval ("insmod", "ixp400"); … … 213 215 eval("insmod","spi-ixp4xx"); 214 216 eval("insmod","ks8995m"); 215 // eval("gpio","-w","1","0");216 // eval("gpio","-w","1","1"); // reset switch217 217 sleep(1); 218 218 system("echo R01=01 > /proc/driver/KS8995M"); // enable switch … … 221 221 eval ("insmod", "cryptodev"); 222 222 eval ("insmod", "ixp4xx", "init_crypto=0"); 223 #else 224 // eval ("mknod", "/dev/IxNpe","c","10","184"); 225 system2 ("cat /usr/lib/firmware/NPE-B > /dev/misc/ixp4xx_ucode"); 226 system2 ("cat /usr/lib/firmware/NPE-C > /dev/misc/ixp4xx_ucode"); 227 /* if (getRouterBrand()==ROUTER_BOARD_GATEWORX_GW2345) //lets load the spi drivers for this switch 228 { 229 eval("insmod","spi-algo-bit"); 230 eval("insmod","spi-ixp4xx"); 231 eval("insmod","ks8995m"); 232 sleep(1); 233 system("echo R01=01 > /proc/driver/KS8995M"); // enable switch 234 }*/ 235 // eval ("insmod", "ocf"); 236 // eval ("insmod", "cryptodev"); 237 // eval ("insmod", "ixp4xx", "init_crypto=0"); 238 #endif 239 240 241 242 223 243 224 244 /* eval ("insmod", "wlan"); … … 260 280 Configure mac addresses by reading data from eeprom 261 281 */ 262 char *filename = "/sys/devices/platform/IXP4XX-I2C.0/i2c-0/0-0051/eeprom"; /* bank2=0x100 */ 282 // char *filename = "/sys/devices/platform/IXP4XX-I2C.0/i2c-0/0-0051/eeprom"; /* bank2=0x100 */ 283 char *filename = "/sys/devices/platform/IXP4XX-I2C.0/i2c-adapter:i2c-0/0-0051/eeprom"; /* bank2=0x100 */ 263 284 FILE *file = fopen (filename, "r"); 264 285 unsigned char buf[16]; … … 272 293 eval ("ifconfig", "ixp1", "hw", "ether", mac); 273 294 295 eval ("ifconfig", "ixp0", "0.0.0.0", "up"); 296 eval ("ifconfig", "ixp1", "0.0.0.0", "up"); 274 297 275 298
Note: See TracChangeset
for help on using the changeset viewer.
