with one buffer in ringbuffer it seems to work.
tree4c2b579cf75823c72cddc62a1a569ff0199f1483
-rw-r--r-- 151 .gitignore
-rw-r--r-- 327 Makefile.am
-rwxr-xr-x 1692 bootstrap.sh
-rw-r--r-- 2631 configure.ac
-rw-r--r-- 43724 flashsupport.c