Path: utzoo!attcan!uunet!spool2.mu.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!cs.columbia.edu!maguire From: maguire@cs.columbia.edu (Gerald Q. Maguire) Newsgroups: comp.sys.hp Subject: Re: The LEDs on the front panel of HP 9k/400's Message-ID: Date: 14 Jan 91 08:49:38 GMT References: Sender: maguire@cs.columbia.edu (Gerald Q. Maguire) Distribution: comp Organization: Columbia University Department of Computer Science Lines: 55 In-Reply-To: jco@reef.cis.ufl.edu's message of 12 Jan 91 21:29:00 GMT If you are using HP-UX the following code will let you read the ROM area on the 9000/3xx machines. I suspect that it will let you read the ROM area on the 9000/4xx machines also. The LEDs have the same location on the 9000/3xx machines as you have indicated they do on the 9000/4xx. After reading the ROM area - I have used GDB to follow the code trying to understand what the error code which the LEDs display are. It would be useful if there were a simple table of these error codes in the documentation which comes with the machine. Chip #include #include #include main() { char buf[1024]; int fd; /* input file descriptor */ int i; /* loop index */ int address = 0; char *rom; fd = open("/dev/rom", O_RDONLY); if ( fd < 0 ) { fprintf(stderr, "unable to do open /dev/rom\n"); exit(-1); } if (ioctl(fd, IOMAPMAP, &address) < 0) { fprintf(stderr, "mapping operation failed\n"); exit(-1); } else { fprintf(stderr, "mapped in rom at %x\n"); } rom = (char *) address; for (i = 0; i <= 1*1024*1024; i=i+1024) { if (write(1, &rom[i], 1024) < 0) { fprintf(stderr, "failed writing buffer %d \n", i); exit(-1); } } if (ioctl(fd, IOMAPUNMAP, address) < 0) { fprintf(stderr, "unmapping operation failed\n"); exit(-1); } close(fd); }