I am having trouble getting the modem board to turn on. I have jumper 5
installed, but the light never turns on. Also, no matter which com port
I set it to, there is no entry in /dev/tty*. When I read the PLD at
location 0x11A00140 all I get is 7's for all the registers.
I've tried two different modem boards but they both act the same. Is
there something I'm missing in my kernel?
It is probably something simple I'm forgetting, so here is the code I
use to read the PLD:
#include<unistd.h>
#include<sys/types.h>
#include<sys/mman.h>
#include<stdio.h>
#include<fcntl.h>
#include<string.h>
#define BASE 0x11A00000
#define PLD 0x0140
int main(int argc, char **argv)
{
volatile unsigned char *P;
int i;
unsigned char state;
unsigned char *start;
int fd = open("/dev/mem", O_RDWR);
printf("%d;",fd);
start = mmap(0, getpagesize(), PROT_READ|PROT_WRITE, MAP_SHARED, fd,
BASE);
P = (unsigned char *)(start + PLD);
printf("%p;",P);
for(i=0;i<8;i++){
printf("%2X ",P[i]);
}
printf("\n");
close(fd);
return 0;
}
--
Mike Magee <>
Remtrol Inc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|