summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Moran <dijumx@gmail.com>2019-06-27 21:39:49 +0100
committerDaniel Moran <dijumx@gmail.com>2019-06-27 21:39:49 +0100
commit8b6acd8207400e7b130a4b1645df5c60a44b7c8b (patch)
treec7165af10dcc0d6c4f56461c0c0b0739beaa4c67
parent06ae6de858e4b1837be52314e2cb75339eb7d84e (diff)
Enable the bootloader UART
-rw-r--r--raspi0w.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/raspi0w.yaml b/raspi0w.yaml
index 8179da3..e69cb85 100644
--- a/raspi0w.yaml
+++ b/raspi0w.yaml
@@ -132,10 +132,14 @@ steps:
# Modify the kernel commandline we take from the firmware to boot from
# the partition labeled raspiroot instead of forcing it to mmcblk0p2
+ #
+ # Enable UART in the boot loader to debug
+ #
- chroot: /
shell: |
ls -aR /boot
sed -i 's/.dev.mmcblk0p2/LABEL=RASPIROOT/' /boot/firmware/cmdline.txt
+ sed -i 's/BOOT_UART=0/BOOT_UART=1/' /boot/firmware/bootcode.bin
# TODO(https://github.com/larswirzenius/vmdb2/issues/24): remove once vmdb
# clears /etc/resolv.conf on its own.