I'd like to compile and run a sample program on the TS-7800. (I'd rather not
cross compile at this point.) I chose the "ts7800ctl.c" program at
ftp://oz.embeddedarm.com/ts-arm-sbc/ts-7800-linux/samples/
If I compile it on the TS-7800 with
gcc ts7800ctl.c -o ts7800ctl
and then run
./ts7800ctl -n
(-n should turn on the red LED) I get the error:
ts7800ctl: ts7800ctl.c:201: main: Assertion `devmem != -1' failed.
Lines 200 and 201 are
devmem = open("/dev/mem", O_RDWR|O_SYNC);
assert(devmem != -1);
Any idea why opening /dev/mem isn't working? Am I compiling this wrong?
TIA,
Craig
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|