參考資訊:
https://forum.odroid.com/viewtopic.php?t=34252
https://wiki.ubuntu.com/X/InputCoordinateTransformation
https://stackoverflow.com/questions/44797694/where-is-rc-local-in-debian-9-debian-stretch
步驟如下:
$ cd $ sudo debootstrap --arch armel --foreign bookworm bookworm http://ftp.debian.org/debian/ $ sudo chroot bookworm /debootstrap/debootstrap --second-stage $ sudo mount -o bind /dev bookworm/dev $ sudo mount -o bind /sys bookworm/sys $ sudo mount -o bind /proc bookworm/proc $ sudo chroot bookworm # passwd # adduser user # nano /etc/apt/sources.list deb http://ftp.debian.org/debian bookworm main contrib non-free # apt-get update # apt-get install vim sudo lxde obconf openbox lxdm lxde-common xbindkeys xdotool console-data locales fbset libts-dev libts-bin zenity -y # dpkg-reconfigure locales # vim /home/user/.xbindkeysrc "xdotool mousemove_relative 10 0" control + alt + s "xdotool mousemove_relative -- -10 0" control + alt + a "xdotool mousemove_relative 0 -10" control + alt + w "xdotool mousemove_relative 0 10" control + alt + z "xdotool click 1" control + alt + 1 "xdotool click 3" control + alt + 2 # vim /home/user/.pndXmodmap keycode 9 = Escape NoSymbol Escape keycode 10 = 1 section 1 section keycode 11 = 2 braceleft 2 braceleft keycode 12 = 3 braceright 3 braceright keycode 13 = 4 asciitilde 4 asciitilde keycode 14 = 5 percent 5 percent keycode 15 = 6 asciicircum 6 asciicircum keycode 16 = 7 ampersand 7 ampersand keycode 17 = 8 asterisk 8 asterisk keycode 18 = 9 bracketleft 9 bracketleft keycode 19 = 0 bracketright 0 bracketright keycode 22 = BackSpace Delete BackSpace Delete keycode 24 = q Q q Q keycode 25 = w W w W keycode 26 = e E e E keycode 27 = r R r R keycode 28 = t T t T keycode 29 = y Y y Y keycode 30 = u U u U keycode 31 = i I i I keycode 32 = o O o O keycode 33 = p P p P keycode 34 = parenleft NoSymbol parenleft keycode 35 = parenright NoSymbol parenright keycode 36 = Return Multi_key Return keycode 37 = Control_L NoSymbol Control_L keycode 38 = a A a A keycode 39 = s S s S keycode 40 = d D d D keycode 41 = f F f F keycode 42 = g G g G keycode 43 = h H h H keycode 44 = j J j J keycode 45 = k K k K keycode 46 = l L l L keycode 47 = semicolon NoSymbol semicolon keycode 48 = apostrophe NoSymbol apostrophe keycode 49 = grave NoSymbol grave keycode 50 = Shift_L NoSymbol Shift_L keycode 52 = z Z z Z keycode 53 = x X x X keycode 54 = c C c C keycode 55 = v V v V keycode 56 = b B b B keycode 57 = n N n N keycode 58 = m M m M keycode 59 = comma less comma less keycode 60 = period greater period greater keycode 61 = slash NoSymbol slash keycode 62 = Shift_R NoSymbol Shift_R keycode 64 = Alt_L NoSymbol Alt_L keycode 65 = space NoSymbol space keycode 66 = Caps_Lock NoSymbol Caps_Lock keycode 67 = F1 NoSymbol F1 keycode 68 = F2 NoSymbol F2 keycode 69 = F3 NoSymbol F3 keycode 70 = F4 NoSymbol F4 keycode 71 = F5 NoSymbol F5 keycode 72 = F6 NoSymbol F6 keycode 73 = F7 NoSymbol F7 keycode 74 = F8 NoSymbol F8 keycode 75 = F9 NoSymbol F9 keycode 76 = F10 NoSymbol F10 keycode 82 = minus NoSymbol minus NoSymbol keycode 83 = Home quotedbl Home quotedbl keycode 86 = plus NoSymbol plus NoSymbol keycode 87 = Prior Multi_key Prior Multi_key keycode 88 = End XF86_Switch_VT_2 End XF86_Switch_VT_2 keycode 89 = Next XF86_Switch_VT_1 Next XF86_Switch_VT_1 keycode 95 = F11 NoSymbol F11 keycode 96 = F12 NoSymbol F12 keycode 118 = Insert NoSymbol Insert keycode 132 = yen NoSymbol yen keycode 187 = parenleft NoSymbol parenleft keycode 188 = parenright NoSymbol parenright keycode 191 = acute NoSymbol acute keycode 192 = bar NoSymbol bar keycode 193 = underscore NoSymbol underscore keycode 194 = numbersign NoSymbol numbersign keycode 195 = exclam NoSymbol exclam keycode 196 = sterling NoSymbol sterling keycode 197 = quotedbl NoSymbol quotedbl keycode 198 = at NoSymbol at keycode 199 = colon NoSymbol colon keycode 200 = dollar NoSymbol dollar keycode 201 = EuroSign NoSymbol EuroSign keycode 222 = question NoSymbol question keycode 235 = Tab NoSymbol Tab add mod4 = XF86MenuKB # mkdir -p /usr/share/keymaps/i386/qwerty # vim /usr/share/keymaps/i386/qwerty/defkeymap.map # us.map keymaps 0-2,4-6,8-9,12 alt_is_meta include "qwerty-layout" include "linux-with-alt-and-altgr" strings as usual keycode 1 = Escape keycode 2 = one keycode 3 = two braceleft keycode 4 = three braceright keycode 5 = four asciitilde keycode 6 = five percent keycode 7 = six asciicircum keycode 8 = seven ampersand keycode 9 = eight asterisk keycode 10 = nine bracketleft keycode 11 = zero bracketright keycode 12 = minus underscore keycode 13 = equal plus keycode 14 = BackSpace Delete keycode 15 = Tab keycode 26 = parenleft keycode 27 = parenright keycode 28 = Return keycode 29 = Control keycode 39 = semicolon colon keycode 40 = apostrophe keycode 41 = grave asciitilde keycode 42 = Shift keycode 43 = backslash bar keycode 51 = comma less keycode 52 = period greater keycode 53 = slash question keycode 54 = Shift keycode 56 = Alt keycode 57 = space keycode 58 = Caps_Lock keycode 86 = less greater bar keycode 97 = Control keycode 59 = F1 keycode 60 = F2 keycode 61 = F3 keycode 62 = F4 keycode 63 = F5 keycode 64 = F6 keycode 65 = F7 keycode 66 = F8 keycode 67 = F9 keycode 68 = F10 keycode 124 = yen keycode 190 = at keycode 184 = bar keycode 185 = underscore keycode 186 = numbersign keycode 187 = exclam keycode 188 = sterling keycode 189 = quotedbl keycode 191 = colon keycode 192 = dollar keycode 193 = euro keycode 214 = question # systemctl edit --full systemd-logind #NoNewPrivileges=yes # systemctl edit --full systemd-journald #NoNewPrivileges=yes # vim /usr/share/X11/xorg.conf.d/99-calibration.conf Section "InputClass" Identifier "calibration" MatchProduct "touchscreen" Option "SwapAxes" "1" Option "TransformationMatrix" "-1.08 0 1.04 0 -1.14 1.07 0 0 1" EndSection # vim /etc/rc.local #!/bin/sh -e chmod 0777 /dev/fb* chmod 0777 /dev/mem chmod 0777 /dev/input/* /usr/pandora/scripts/op_gamma.sh 1.35 /usr/pandora/scripts/op_videofir.sh none swapon /dev/mmcblk0p2 #systemctl enable serial-getty@ttyO2.service #systemctl start serial-getty@ttyO2.service exit 0 # chmod +x /etc/rc.local # systemctl daemon-reload # systemctl start rc-local # exit $ sudo umount bookworm/dev $ sudo umount bookworm/sys $ sudo umount bookworm/proc $ wget https://github.com/steward-fu/website/releases/download/pandora/sgx_4_00_00_01_armel.tar.gz $ tar xvf sgx_4_00_00_01_armel.tar.gz $ sudo cp -a sgx_4_00_00_01_armel/* bookworm/
完成