We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
3.5inch_lcd_shield:autoconsole [2016/09/29 18:54]
john1117
3.5inch_lcd_shield:autoconsole [2016/11/21 15:01] (current)
odroid [Automatically enable the Backlight]
Line 1: Line 1:
 ===== Auto console ===== ===== Auto console =====
-===Add following lines in "/​etc/​modprobe.d/​lcd35.conf"​ file.===+ 
 +Start the system console on the LCD automatically after booting. 
 +==== Add following lines in "/​etc/​modprobe.d/​lcd35.conf"​ file. ====
   options fbtft_device name=flexpfb rotate=270   options fbtft_device name=flexpfb rotate=270
   options flexfb chip=ili9488   options flexfb chip=ili9488
  
-===Add following lines in "/​etc/​modules"​ file.===+==== Add following lines in "/​etc/​modules"​ file. ==== 
 +=== ODROID-C1/​C2 ​===
   aml_i2c   aml_i2c
   pwm-meson   pwm-meson
Line 10: Line 13:
   fbtft_device   fbtft_device
   flexfb   flexfb
-  ​sx865x+  ​sx65x 
 +=== ODROID-XU4 === 
 +  fbtft_device 
 +  flexfb 
 +  sx65x
  
-===Disable xorg=== +<WRAP hide> 
-16.04+==== Disable xorg ==== 
 +=== 16.04 ===
   sudo systemctl disable lightdm.service   sudo systemctl disable lightdm.service
-15.04, 15.10+=== 15.04, 15.10 ===
   sudo systemctl disable lightdm   sudo systemctl disable lightdm
-  ​ +</​WRAP>​ 
-===Add kernel argument to file "/​media/​boot/​boot.ini"​===+==== Add kernel argument to file "/​media/​boot/​boot.ini"​ ===
 +Find bootargs line and append following line to the end of line.
   fbcon=map:​22   fbcon=map:​22
-=== Backlight ​enable ​on ODROID-C1 ​=== +ex) setenv bootargs "root=UUID... fbcon=map:​22"​ 
-The PWM0 of **ODROID-C1** is pull-down as default, so you have to add following line in "/​etc/​rc.local"​ file.+==== Automatically ​enable ​the Backlight ==== 
 +The PWM0 of **ODROID-C2/C1** is pull-down as default, so you have to add following line in "/​etc/​rc.local"​ file.
   echo 1 > /​sys/​devices/​platform/​pwm-ctrl/​enable0   echo 1 > /​sys/​devices/​platform/​pwm-ctrl/​enable0
-===Reboot===+  echo 500000 > /​sys/​devices/​platform/​pwm-ctrl/​freq0 
 +  echo 1023 > /​sys/​devices/​platform/​pwm-ctrl/​duty0 
 +  chvt 1 
 +==== Reboot ​====
   sudo 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
 +
3.5inch_lcd_shield/autoconsole.1475144672.txt.gz · Last modified: 2016/09/29 18:54 by john1117
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0