ts-7000
[Top] [All Lists]

[ts-7000] opening /dev/mem error in sample code for TS-7800

To:
Subject: [ts-7000] opening /dev/mem error in sample code for TS-7800
From: "craignied" <>
Date: Tue, 16 Nov 2010 15:12:28 -0000
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU