aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-10-15 17:23:41 +0200
committerWojtek Kosior <kwojtus@protonmail.com>2019-10-15 17:23:41 +0200
commit4f8c9071fade1755793de63b015a13323254ffc7 (patch)
tree375e3870728fd5611829edba15d97a32352040f4 /Makefile
parent1e7a473c66acc37f25420f17e1f26a3ffbaa0439 (diff)
downloadrpi-MMU-example-4f8c9071fade1755793de63b015a13323254ffc7.tar.gz
rpi-MMU-example-4f8c9071fade1755793de63b015a13323254ffc7.zip
add Makefile rule for booting through uart on real rpi
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4c3567e..f031d7c 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,11 @@ qemu-elf : kernel.elf
qemu-bin : loader.elf kernel7.img pipe_image
./pipe_image | qemu-system-arm -m 256 -M raspi2 -serial stdio -kernel $<
+run-on-rpi : kernel7.img pipe_image
+ ./pipe_image | socat FILE:/dev/ttyUSB0,b115200,raw -
+ sleep 1
+ screen /dev/ttyUSB0 115200,cs8,-parenb,-cstopb,-hupcl
+
pipe_image : pipe_image.c
gcc -Wall -std=gnu99 -O3 $^ -o $@