1. volumio 이미지 굽기

2. volumio 부팅

3. volumio 초기 설정

4. Tuch Display 플러그인 Install

5. SSH 활성화 

6. vi 에디터 설치 (생략 가능, nano 사용)

나는 nano editor 보다 vi가 편해서 설치 했음

volumio@volumio:~$ sudo apt update
[sudo] password for volumio:
Hit:1 https://deb.nodesource.com/node_14.x buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
28 packages can be upgraded. Run 'apt list --upgradable' to see them.
volumio@volumio:~$
volumio@volumio:~$
volumio@volumio:~$
volumio@volumio:~/LCD-show/usr$ sudo apt install apt-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libapt-inst2.0
The following NEW packages will be installed:
  apt-utils libapt-inst2.0
0 upgraded, 2 newly installed, 0 to remove and 31 not upgraded.
Need to get 600 kB of archives.
After this operation, 1529 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.kaist.ac.kr/raspbian/raspbian buster/main armhf libapt-inst2.0 armhf 1.8.2.3 [200 kB]
Get:2 http://ftp.kaist.ac.kr/raspbian/raspbian buster/main armhf apt-utils armhf 1.8.2.3 [400 kB]
Fetched 600 kB in 4s (151 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libapt-inst2.0:armhf.
(Reading database ... 53885 files and directories currently installed.)
Preparing to unpack .../libapt-inst2.0_1.8.2.3_armhf.deb ...
Unpacking libapt-inst2.0:armhf (1.8.2.3) ...
Selecting previously unselected package apt-utils.
Preparing to unpack .../apt-utils_1.8.2.3_armhf.deb ...
Unpacking apt-utils (1.8.2.3) ...
Setting up libapt-inst2.0:armhf (1.8.2.3) ...
Setting up apt-utils (1.8.2.3) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpt2+rpi1+deb10u1) ...
volumio@volumio:~/LCD-show/usr$ sudo apt install xserver-xorg-input-evdev
Reading package lists... Done
Building dependency tree
Reading state information... Done
xserver-xorg-input-evdev is already the newest version (1:2.10.6-1+b1).
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
volumio@volumio:~$
volumio@volumio:~$
volumio@volumio:~$
volumio@volumio:~$ sudo apt install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libgpm2 vim-common vim-runtime xxd
Suggested packages:
  gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
  libgpm2 vim vim-common vim-runtime xxd
0 upgraded, 5 newly installed, 0 to remove and 31 not upgraded.
Need to get 7150 kB of archives.
After this operation, 33.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.kaist.ac.kr/raspbian/raspbian buster/main armhf xxd armhf 2:8.1.0875-5+deb10u2 [139 kB]
Get:2 http://ftp.kaist.ac.kr/raspbian/raspbian buster/main armhf vim-common all 2:8.1.0875-5+deb10u2 [195 kB]
Get:3 http://ftp.kaist.ac.kr/raspbian/raspbian buster/main armhf libgpm2 armhf 1.20.7-5 [34.4 kB]
Get:4 http://ftp.kaist.ac.kr/raspbian/raspbian buster/main armhf vim-runtime all 2:8.1.0875-5+deb10u2 [5775 kB]
Get:5 http://ftp.kaist.ac.kr/raspbian/raspbian buster/main armhf vim armhf 2:8.1.0875-5+deb10u2 [1006 kB]
Fetched 7150 kB in 15s (482 kB/s)
Selecting previously unselected package xxd.
(Reading database ... 51986 files and directories currently installed.)
Preparing to unpack .../xxd_2%3a8.1.0875-5+deb10u2_armhf.deb ...
Unpacking xxd (2:8.1.0875-5+deb10u2) ...
Selecting previously unselected package vim-common.
Preparing to unpack .../vim-common_2%3a8.1.0875-5+deb10u2_all.deb ...
Unpacking vim-common (2:8.1.0875-5+deb10u2) ...
Selecting previously unselected package libgpm2:armhf.
Preparing to unpack .../libgpm2_1.20.7-5_armhf.deb ...
Unpacking libgpm2:armhf (1.20.7-5) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../vim-runtime_2%3a8.1.0875-5+deb10u2_all.deb ...
Adding 'diversion of /usr/share/vim/vim81/doc/help.txt to /usr/share/vim/vim81/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim81/doc/tags to /usr/share/vim/vim81/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:8.1.0875-5+deb10u2) ...
Selecting previously unselected package vim.
Preparing to unpack .../vim_2%3a8.1.0875-5+deb10u2_armhf.deb ...
Unpacking vim (2:8.1.0875-5+deb10u2) ...
Setting up libgpm2:armhf (1.20.7-5) ...
Setting up xxd (2:8.1.0875-5+deb10u2) ...
Setting up vim-common (2:8.1.0875-5+deb10u2) ...
Setting up vim-runtime (2:8.1.0875-5+deb10u2) ...
Setting up vim (2:8.1.0875-5+deb10u2) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/da/man1/vi.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/vi.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/vi.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/vi.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/vi.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/vi.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/vi.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group vi) doesn't exist
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/da/man1/view.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/view.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/view.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/da/man1/ex.1.gz because associated file /usr/share/man/da/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/de/man1/ex.1.gz because associated file /usr/share/man/de/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/ex.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/it/man1/ex.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/ex.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/ex.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/ex.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group ex) doesn't exist
update-alternatives: warning: forcing reinstallation of alternative /bin/nano because link group editor is broken
update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/nano.1.gz (of link group editor) doesn't exist
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.28-10+rpt2+rpi1+deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for mime-support (3.62) ...
volumio@volumio:~$

7. LCD Driver 다운로드

volumio@volumio:~$ git clone https://github.com/goodtft/LCD-show
Cloning into 'LCD-show'...
remote: Enumerating objects: 1582, done.
remote: Counting objects: 100% (559/559), done.
remote: Compressing objects: 100% (135/135), done.
remote: Total 1582 (delta 488), reused 447 (delta 424), pack-reused 1023
Receiving objects: 100% (1582/1582), 2.46 MiB | 6.62 MiB/s, done.
Resolving deltas: 100% (1051/1051), done.
volumio@volumio:~$ ls -al
total 27
drwxr-xr-x 1 volumio volumio 1024 Oct 20 12:06 .
drwxr-xr-x 1 root    root    1024 Sep 30 08:43 ..
-rw------- 1 volumio volumio  101 Oct 20 11:44 .Xauthority
-rw-r--r-- 1 volumio volumio  220 Apr 18  2019 .bash_logout
-rw-r--r-- 1 volumio volumio 3526 Apr 18  2019 .bashrc
drwxr-xr-x 5 volumio volumio 1024 Oct 20 11:44 .cache
-rw-r--r-- 1 volumio volumio   49 Sep 30 08:44 .cdcdrc
-rw-r--r-- 1 volumio volumio  171 Sep 30 08:44 .cdserverrc
drwx------ 4 volumio volumio 1024 Oct 20 11:44 .config
drwx------ 3 volumio volumio 1024 Sep 30 08:49 .gnupg
drwx------ 3 volumio volumio 1024 Oct 20 11:44 .pki
-rw-r--r-- 1 volumio volumio  807 Apr 18  2019 .profile
-rw------- 1 volumio volumio 3786 Oct 20 11:44 .xsession-errors
drwxr-xr-x 6 volumio volumio 3072 Oct 20 12:06 LCD-show
volumio@volumio:~$

7. 기본 터치 디스플레이 설정 삭제

volumio@volumio:~$ ls -al /etc/X11/xorg.conf.d
total 5
drwxr-xr-x 2 root root 1024 Oct 20 11:27 .
drwxr-xr-x 1 root root 1024 Oct 20 11:27 ..
-rw-r--r-- 1 root root  316 Oct 20 11:27 95-touch_display-plugin.conf
volumio@volumio:~$ sudo rm /etc/X11/xorg.conf.d/95-touch_display-plugin.conf

8. 드라이버 복사

volumio@volumio:~$ sudo rm /etc/X11/xorg.conf.d/95-touch_display-plugin.conf
volumio@volumio:~$ cd LCD-show
volumio@volumio:~/LCD-show$ cd usr
volumio@volumio:~/LCD-show/usr$ ls
40-libinput.conf-0            99-calibration.conf-3508-270     99-calibration.conf-5-180       99-calibration.conf-mhs35b-90      99-calibration.conf-nano24-90  mhs24-overlay.dtb
40-libinput.conf-180          99-calibration.conf-3508-90      99-calibration.conf-5-270       99-calibration.conf-mhs395-0       99-fbturbo-fbcp.conf           mhs32-overlay.dtb
40-libinput.conf-270          99-calibration.conf-3508-FLIP-H  99-calibration.conf-5-90        99-calibration.conf-mhs395-180     99-fbturbo.conf                mhs35-overlay.dtb
40-libinput.conf-90           99-calibration.conf-3508-FLIP-V  99-calibration.conf-5-FLIP-H    99-calibration.conf-mhs395-270     99-fbturbo.conf-HDMI           mhs35b-overlay.dtb
40-libinput.conf-FLIP-H       99-calibration.conf-397-0        99-calibration.conf-5-FLIP-V    99-calibration.conf-mhs395-90      99-fbturbo.conf-original       mhs395-overlay.dtb
40-libinput.conf-FLIP-V       99-calibration.conf-397-180      99-calibration.conf-HDMI7C      99-calibration.conf-mhs397-0       bcm2709-rpi-2-b.dtb            mis35-overlay.dtb
99-calibration.conf-24        99-calibration.conf-397-270      99-calibration.conf-mhs24       99-calibration.conf-mhs397-180     bcm2710-rpi-3-b.dtb            modules-HDMI
99-calibration.conf-28        99-calibration.conf-397-90       99-calibration.conf-mhs32-0     99-calibration.conf-mhs397-270     cmdline.txt                    qddpi18.dtb
99-calibration.conf-32-0      99-calibration.conf-397-FLIP-H   99-calibration.conf-mhs32-180   99-calibration.conf-mhs397-90      cmdline.txt-noobs              qddpi24.dtb
99-calibration.conf-32-180    99-calibration.conf-397-FLIP-V   99-calibration.conf-mhs32-270   99-calibration.conf-mhs397-FLIP-H  cmdline.txt-noobs-original     rpi-fbcp
99-calibration.conf-32-270    99-calibration.conf-3971-0       99-calibration.conf-mhs32-90    99-calibration.conf-mhs397-FLIP-V  cmdline.txt-original           tft35a-overlay.dtb
99-calibration.conf-32-90     99-calibration.conf-3971-180     99-calibration.conf-mhs35-0     99-calibration.conf-mis35-0        fbcp                           tft7789-overlay.dtb
99-calibration.conf-35-0      99-calibration.conf-3971-270     99-calibration.conf-mhs35-180   99-calibration.conf-mis35-180      fbcp-ili9341                   tft9341-overlay.dtb
99-calibration.conf-35-180    99-calibration.conf-3971-90      99-calibration.conf-mhs35-270   99-calibration.conf-mis35-270      ft6236.dtb
99-calibration.conf-35-270    99-calibration.conf-3971-FLIP-H  99-calibration.conf-mhs35-90    99-calibration.conf-mis35-90       goodix.dtbo
99-calibration.conf-35-90     99-calibration.conf-3971-FLIP-V  99-calibration.conf-mhs35b-0    99-calibration.conf-nano24-0       goodix_dpi.dtb
99-calibration.conf-3508-0    99-calibration.conf-43           99-calibration.conf-mhs35b-180  99-calibration.conf-nano24-180     inittab
99-calibration.conf-3508-180  99-calibration.conf-5-0          99-calibration.conf-mhs35b-270  99-calibration.conf-nano24-270     local.desktop
volumio@volumio:~/LCD-show/usr$ sudo cp tft35a-overlay.dtb /boot/overlays
volumio@volumio:~/LCD-show/usr$ sudo cp tft35a-overlay.dtb /boot/overlays/tft35a.dtbo
volumio@volumio:~/LCD-show/usr$ sudo cp 99-calibration.conf-35-270 /etc/X11/xorg.conf.d/99-calibration.conf
volumio@volumio:~/LCD-show/usr$ ls -al /usr/share/X11/xorg.conf.d
total 13
drwxr-xr-x 2 root root 1024 Oct 20 11:22 .
drwxr-xr-x 1 root root 1024 Oct 20 11:23 ..
-rw-r--r-- 1 root root   92 Feb  7  2019 10-amdgpu.conf
-rw-r--r-- 1 root root 1350 Aug  4 12:56 10-quirks.conf
-rw-r--r-- 1 root root   92 Apr  6  2019 10-radeon.conf
-rw-r--r-- 1 root root 1429 Mar 31  2019 40-libinput.conf
-rw-r--r-- 1 root root 2747 Jun 26  2017 70-wacom.conf
volumio@volumio:~/LCD-show/usr$ sudo cp 99-fbturbo.conf /usr/share/X11/xorg.conf.d

9. calibration.conf 수정

volumio@volumio:~/LCD-show/usr$ sudo vi /etc/X11/xorg.conf.d/99-calibration.conf
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option  "Calibration"   "227 3936 3880 268"
        Option  "SwapAxes"      "1"
        Driver  "evdev"
EndSection
~
~
~
~

Driver "evdev" 추가

10. boot config 수정

volumio@volumio:~/LCD-show/usr$ sudo vi /boot/config.txt
display_auto_detect=1
disable_overscan=1
initramfs volumio.initrd
gpu_mem=32
max_usb_current=1
dtparam=audio=on
audio_pwm_mode=2
dtparam=i2c_arm=on
dtparam=spi=on
disable_splash=1
hdmi_force_hotplug=1
force_eeprom_read=0

include userconfig.txt

#### Volumio i2s setting below: do not alter ####
dtoverlay=iqaudio-dacplus,unmute_amp
dtoverlay=tft35a:rotate=270
~
~
~
~

11 fbdurbo.conf 수정

volumio@volumio:~$ sudo vi /usr/share/X11/xorg.conf.d/99-fbturbo.conf
# This is a minimal sample config file, which can be copied to
# /etc/X11/xorg.conf in order to make the Xorg server pick up
# and load xf86-video-fbturbo driver installed in the system.
#
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
# output and error messages.
#
# Run "man fbturbo" to get additional information about the extra
# configuration options for tuning the driver.

Section "Device"
        Identifier      "Allwinner A10/A13 FBDEV"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb1"

        Option          "SwapbuffersWait" "true"
EndSection
~
~
~
~
volumio@volumio:~$

 

11. xserver 설치

volumio@volumio:~/LCD-show/usr$ sudo apt install xserver-xorg-input-evdev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  xserver-xorg-input-evdev
0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded.
Need to get 117 kB of archives.
After this operation, 170 kB of additional disk space will be used.
Get:1 http://ftp.kaist.ac.kr/raspbian/raspbian buster/main armhf xserver-xorg-input-evdev armhf 1:2.10.6-1+b1 [117 kB]
Fetched 117 kB in 2s (62.5 kB/s)
Selecting previously unselected package xserver-xorg-input-evdev.
(Reading database ... 53875 files and directories currently installed.)
Preparing to unpack .../xserver-xorg-input-evdev_1%3a2.10.6-1+b1_armhf.deb ...
Unpacking xserver-xorg-input-evdev (1:2.10.6-1+b1) ...
Setting up xserver-xorg-input-evdev (1:2.10.6-1+b1) ...
Processing triggers for man-db (2.8.5-2) ...
volumio@volumio:~/LCD-show/usr$
volumio@volumio:~/LCD-show/usr$
volumio@volumio:~/LCD-show/usr$ sudo apt-get install xserver-xorg-video-fbturbo

12. volumio 실행 설정

volumio@volumio:~$ sudo vi /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

[ -d /etc/boot.d ] && run-parts /etc/boot.d

/usr/bin/xinit /usr/bin/chromium-browser --no-sandbox --no-first-run --noerrdialogs --start-fullscreen --start-maximized --disable-notifications --disable-infobars --kiosk --incognito http://localhost:3000 &

exit 0
~
~
~
~
volumio@volumio:~$

13. 재부팅

volumio@volumio:~$ sync
volumio@volumio:~$ sync
volumio@volumio:~$ sync
volumio@volumio:~$ sync
volumio@volumio:~$ reboot

 

+ Recent posts