From 601ddc8600e938fdb3dfee9d22fc2bcdc309879b Mon Sep 17 00:00:00 2001 From: Cosmin Gorgovan Date: Tue, 10 Feb 2015 22:41:27 +0000 Subject: [PATCH] rootfs: disable fb terminals and enable uart console Apart from not being usable, the fb terminals can overlay koreader in some cases. --- build_rootfs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build_rootfs.sh b/build_rootfs.sh index 1e9bd65..05ab12a 100755 --- a/build_rootfs.sh +++ b/build_rootfs.sh @@ -66,6 +66,10 @@ config_rootfs() { echo "okreader" > ./rootfs/etc/hostname echo -e "127.0.0.1 localhost okreader\n" > ./rootfs/etc/hosts echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4\n" > ./rootfs/etc/resolv.conf + + # replace the framebuffer terminals with an uart terminal + mv ./rootfs/etc/inittab ./rootfs/etc/inittab.default + sed -r 's/^[0-9]+:[0-9]+:respawn/# &/' ./rootfs/etc/inittab.default > rootfs/etc/inittab echo -e "\nT0:23:respawn:/sbin/getty -L ttymxc0 115200 vt100\n" >> ./rootfs/etc/inittab mkdir ./rootfs/mnt/onboard