Rebooting problems with /dev/cxm0
R. B. Riddick
arne_woerner at yahoo.com
Mon Apr 24 07:14:54 UTC 2006
--- Erin E Conn <econn at nc.rr.com> wrote:
> After some rebuilding and reinstalling of ports, I was able to cat
> /dev/cxm0 to a file in my home directory for about half an hour with no
> dma errors or lockups. I then stopped the cat and tried 'mplayer -cache
> 4096 /dev/cxm0', and my machine locked up after about 2 minutes. The
> display continues to update; my dockapps in fluxbox are still
> functioning and updating, but the machine does not respond to any
> network traffic or input devices and the video and audio from /dev/cxm0
> have halted. Nothing is being logged to /var/log/messages at the time. I
> tried it again while keeping an eye on the console in case there are dma
> problems preventing anything being written to the log:
>
> cxm0:encoder dma status 0xb
> # MACHINE STOPPED RESPONDING HERE
> cmx0:encoder dma status 0xb
> ad0: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=22069947
> ad0: TIMEOUT - WRITE_DMA retrying (0 retries left) LBA=22069947
> dc0: watchdog timeout
> dc0: failed to force tx and rx to idle state
> ad0: FAILURE - WRITE_DMA timed out LBA=22069947
> ad0: FAILURE - READ_DMA timed out LBA=20487259
>
> The above messages continue to be output to the console and I have to
> manually restart the computer.
>
That sounds familiar... :-)
I attached a variation of my very special cxm-data-transfer-program, that just
copies the data to your disc (hopefully in the right order... :-)).
After examining some areas of the code (just in case I am evil), it can be
compiled with
c++ -o dd3 dd3.c -O3
and it can be tested with
./dd3 /dev/cxm0 <outputfile> <time of day in sec since 1970 when to stop>
E.g.:
./dd3 /dev/cxm0 /tmp/blubberblah.mpg 1146862400
where the seconds since 1970 can be found via
date +%s
which gives the current time in seconds since 1970 or via
date -j +%s 2000
which gives the seconds since 1970 when it is 8 p.m. today.
I hope, I got the license right... It should be a BSD license or so...
In my opinion this dd3.c tool should result in more stability (currently more
then 66 days uptime...)...
-Arne
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dd3.c
Type: application/octet-stream
Size: 7022 bytes
Desc: 2867440732-dd3.c
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20060424/7c6b0615/dd3.obj
More information about the freebsd-multimedia
mailing list