Mirror of CollapseOS
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Virgil Dupras b8e52707e9 recipes/arduinouno/at28: improve reliability hace 3 años
..
.gitignore tools: add blkup hace 4 años
Makefile emul: don't embed forth.bin in emul binaries hace 4 años
README.md recipes/arduinouno/at28: improve reliability hace 3 años
blkpack.c Replace deprecated bzero with memset (#119) hace 4 años
blkunpack.c blkunpack: don't include trailing empty lines hace 4 años
blkup.c tools: improve usability on OpenBSD hace 4 años
common.c Add arduinouno/at28 recipe hace 3 años
common.h Add arduinouno/at28 recipe hace 3 años
exec.c tools: improve usability on OpenBSD hace 4 años
memdump.c tools: improve usability on OpenBSD hace 4 años
pingpong.c Add arduinouno/at28 recipe hace 3 años
ttysafe.c Reverse ttysafe escaping order hace 4 años
upload.c tools: improve usability on OpenBSD hace 4 años

README.md

Tools

This folder contains tools to communicate to Collapse OS machines from a modern environment or to manipulate a blkfs.

Communication tools all take a device path as a first argument. That device is the serial device that connects you to your machine. It's often a USB-to-TTL dongle. When - is specified, stdin is used as the device.

Note that for these tools to work well, you need the serial device to be properly set up, TTY-wise. You'll probably want to do that with stty. The tool itself takes care of setting the regular stuff (cs8, -parenb, etc), but you need to set the speed. Here's an example working on OpenBSD:

$ ( stty 115200 raw ; ./upload - a000 os.bin ) <>/dev/cuaU0

To be honest, I'm having a bit of troubles making these tools work as well on OpenBSD as they do in Linux. But it does work. Here are some advices:

  • Use cuaXX instead of ttyXX.
  • Run cu -l /dev/cuaXX before running your tool and run a dummy command to make sure that the output buffer is flushed.

On Linux, it's generally easier:

  • Run screen on the device (often /dev/ttyUSBX)
  • Quit with CTRL+A :quit
  • Run the tool on the same device