On Sat, Mar 31, 2012 at 22:18, Michael Dillon <mikedillo...@gmail.com> wrote:
> Its attached in strace.txt

1826 open("/sys/kernel/debug/omap_mux/uart1_txd",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 5
1827 fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
1828 open("/sys/kernel/debug/omap_mux/uart1_rxd",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 6
1829 fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
1830 pwrite(5, "0", 1, 0)                    = -1 ESPIPE (Illegal seek)

There's your problem, apparently the driver for
/sys/kernel/debug/omap_mux/uart1_txd doesn't support positional
writing (even with pos=0).

You can sidestep that by passing position=-1 to fs.write(), that will
make it use write() instead of pwrite().

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to