Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
en:c1_tft_autoconsole [2015/02/27 13:43] john1117 |
en:c1_tft_autoconsole [2016/11/14 11:10] john1117 |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Auto console ===== | ||
+ | === Add following lines in "/etc/modprobe.d/lcd32.conf" file. === | ||
+ | options fbtft_device name=odroidc_tft32 rotate=270 gpios=reset:116,dc:115 speed=32000000 cs=0 | ||
+ | === Add following lines in "/etc/modules" file. === | ||
+ | spicc | ||
+ | fbtft_device | ||
+ | === Add kernel argument to file "/media/boot/boot.ini" === | ||
+ | Find bootargs line and append following line to the end of line. | ||
+ | fbcon=map:22 | ||
+ | ex) setenv bootargs "root=UUID... fbcon=map:22" | ||
+ | === Automatically enable === | ||
+ | Add following line in "/etc/rc.local" file. | ||
+ | chvt 1 | ||
+ | === Reboot === | ||
+ | sudo reboot | ||
+ | |||
+ | ===== Auto login ===== | ||
+ | Edit tty1 service | ||
+ | sudo systemctl edit getty@tty1 | ||
+ | And add | ||
+ | [Service] | ||
+ | ExecStart= | ||
+ | ExecStart=-/sbin/agetty -a odroid --noclear %I $TERM | ||
+ | | ||
+ | |||
+ | odroid@odroid:~$ sudo systemctl cat getty@tty1 | grep Exec | ||
+ | ExecStart=-/sbin/agetty --noclear %I $TERM | ||
+ | ExecStart= | ||
+ | ExecStart=-/sbin/agetty -a odroid --noclear %I $TERM | ||
+ | Restart tty1 service | ||
+ | sudo systemctl restart getty@tty1 |