From eb0c4b29825ee137bf9654b7e8160a2d930496c6 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Wed, 15 Mar 2017 14:38:32 +1000 Subject: [PATCH] enable the rpi3 serial console, and autologin to it Signed-off-by: Sven Dowideit --- scripts/images/raspberry-pi-hypriot/scripts/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/images/raspberry-pi-hypriot/scripts/build.sh b/scripts/images/raspberry-pi-hypriot/scripts/build.sh index d5d44d89..9be4198d 100755 --- a/scripts/images/raspberry-pi-hypriot/scripts/build.sh +++ b/scripts/images/raspberry-pi-hypriot/scripts/build.sh @@ -60,7 +60,9 @@ rm -fr build/basefs/lib/modules/{4.4.27+,4.4.27-hypriotos+} # populate kernel, bootloader and RancherOS rootfs cp -R build/basefs/* build/root tar -xf assets/rootfs_arm.tar.gz -C build/root -echo "+dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 cgroup-enable=memory swapaccount=1 elevator=deadline rootwait console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty0 rancher.password=rancher rw init=/init" > build/root/boot/cmdline.txt +echo "+dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 cgroup-enable=memory swapaccount=1 elevator=deadline rootwait console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty0 rancher.password=rancher rancher.autologin=ttyAMA0 rw init=/init" > build/root/boot/cmdline.txt +# enable serial console mode for rpi3 +echo "enable_uart=1" > build/root/boot/config.txt # show details tree -a -L 3 build/root