rust-raspberrypi-OS-tutorials/utils/raspboot.bash
2019-10-27 23:09:38 +01:00

16 lines
353 B
Bash
Executable File

#!/usr/bin/env bash
CONTAINER_UTILS="rustembedded/osdev-utils"
DOCKER_CMD="docker run -it --rm"
DOCKER_ARG_CURDIR="-v $(pwd):/work -w /work"
DOCKER_ARG_TTY="--privileged -v /dev:/dev"
DOCKER_EXEC_RASPBOOT="raspbootcom /dev/ttyUSB0"
$DOCKER_CMD \
$DOCKER_ARG_CURDIR \
$DOCKER_ARG_TTY \
$CONTAINER_UTILS \
$DOCKER_EXEC_RASPBOOT \
kernel8.img