From 4f8c9071fade1755793de63b015a13323254ffc7 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 15 Oct 2019 17:23:41 +0200 Subject: add Makefile rule for booting through uart on real rpi --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') 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 $@ -- cgit v1.2.3