Browse Source

Merge pull request #328 from lluiscampos/rpi4-enable-uart

[raspberrypi_config] MEN-4567: Enable UART in U-Boot config.txt
2.4.x
Lluis Campos 4 years ago
committed by GitHub
parent
commit
227f26f62d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      configs/raspberrypi_config

9
configs/raspberrypi_config

@ -106,4 +106,13 @@ function platform_modify() {
run_and_log_cmd "sudo unlink work/rootfs/etc/rc3.d/S01resize2fs_once"
fi
run_and_log_cmd "sudo rm -f work/rootfs/etc/init.d/resize2fs_once"
# Enable UART. This is required for U-Boot to operate correctly, see
# https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/mach-bcm283x/Kconfig
log_info "Enabling UART in U-Boot configuration"
cat <<- EOF >> work/boot/config.txt
# Enable UART
enable_uart=1
EOF
}

Loading…
Cancel
Save