Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:spi_lcdshiled:autoconsole [2016/12/21 14:58] john1117 created |
en:spi_lcdshiled:autoconsole [2016/12/21 16:53] (current) john1117 [1. Module settings] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Automatically start console mode ====== | ====== Automatically start console mode ====== | ||
Start the system console on the LCD automatically after booting. | Start the system console on the LCD automatically after booting. | ||
- | ===== Module settings ===== | + | ===== 1. Module settings ===== |
Add following line in "/etc/modprobe.d/lcd32.conf" file. | Add following line in "/etc/modprobe.d/lcd32.conf" file. | ||
options fbtft_device name=odroid32 rotate=90 busnum=1 gpios=reset:21,dc:22 speed=32000000 cs=0 | options fbtft_device name=odroid32 rotate=90 busnum=1 gpios=reset:21,dc:22 speed=32000000 cs=0 | ||
Line 7: | Line 7: | ||
spi_s3c64xx | spi_s3c64xx | ||
fbtft_device | fbtft_device | ||
+ | |||
+ | Edit "/etc/modprobe.d/blacklist-odroid.comf" file. **(Only Ubuntu 16.04 or higher is required)**\\ | ||
+ | Comment the spi lines out.\\ | ||
+ | <code> | ||
+ | ... | ||
+ | ... | ||
+ | #blacklist spidev | ||
+ | #blasklist spi_s3c64xx | ||
+ | ... | ||
+ | ... | ||
+ | </code> | ||
+ | ===== 2. Virtual terminal setting ===== | ||
+ | Add following line in "/etc/rc.local" file. | ||
+ | chvt 1 | ||
+ | | ||
+ | ===== 3. Auto login on console [16.04] ===== | ||
+ | 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 |