embeded/raspberry pi2021. 11. 17. 23:35

빠르긴 한데

터미널도 없어진건가?!

 

$ sudo fdisk /dev/sda -l
Disk /dev/sda: 1.9 GiB, 1977614336 bytes, 3862528 sectors
Disk model: SD  Transcend
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdd604128

Device     Boot Start    End Sectors Size Id Type
/dev/sda1  *        1  32768   32768  16M  c W95 FAT32 (LBA)
/dev/sda2       32769 163840  131072  64M 83 Linux

 

$ ls -al /mnt
total 5462
drwxr-xr-x  3 root root   16384 Jan  1  1970  .
drwxr-xr-x 21 root root    4096 Aug 20  2020  ..
-rwxr-xr-x  1 root root   52296 Nov 16 17:32  bootcode.bin
-rwxr-xr-x  1 root root      65 Nov 16 17:32  cmdline.txt
-rwxr-xr-x  1 root root     199 Nov 16 17:32  config.txt
-rwxr-xr-x  1 root root 2869636 Nov 16 17:32  start.elf
drwxr-xr-x  2 root root    2048 Nov 17  2021 'System Volume Information'
-rwxr-xr-x  1 root root 2641736 Nov 16 17:32  zImagen

$ cat /mnt/config.txt
#---> Boot
kernel=zImagen
disable_overscan=1
boot_delay=0
enable_uart=1
disable_splash=1

#--> OverClock
#sdram_freq=700
#initial_turbo=1
#force_turbo=1
#over_voltage=6
#arm_freq=1400
#core_freq=600

$ cat /mnt/cmdline.txt
root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA0,115200

 

/mnt/etc $ cat inittab
# /etc/inittab
#
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
#
# Note: BusyBox init doesn't support runlevels.  The runlevels field is
# completely ignored by BusyBox init. If you want runlevels, use
# sysvinit.
#
# Format for each entry: <id>:<runlevels>:<action>:<process>
#
# id        == tty to run on, or empty for /dev/console
# runlevels == ignored
# action    == one of sysinit, respawn, askfirst, wait, and once
# process   == program to run

# Startup the system
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mkdir -p /dev/pts /dev/shm
::sysinit:/bin/mount -a
::sysinit:/sbin/swapon -a
null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
::sysinit:/bin/hostname -F /etc/hostname
# now run any rc scripts
::sysinit:/etc/init.d/rcS

# Put a getty on the serial port
console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL

# Stuff to do for the 3-finger salute
#::ctrlaltdel:/sbin/reboot

# Stuff to do before rebooting
::shutdown:/etc/init.d/rcK
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r

/mnt/etc/init.d $ ls -al
total 9
drwxr-xr-x 2 root root 1024 Nov 16 08:01 .
drwxr-xr-x 5 root root 1024 Jan  1  1970 ..
-rwxr-xr-x 1 root root  423 Nov 16 08:26 rcK
-rwxr-xr-x 1 root root  408 Nov 16 08:26 rcS
-rwxr-xr-x 1 root root 1012 Nov 16 08:26 S01syslogd
-rwxr-xr-x 1 root root 1004 Nov 16 08:26 S02klogd
-rwxr-xr-x 1 root root 1272 Nov 16 08:26 S20urandom
-rwxr-xr-x 1 root root   54 Nov 16 08:01 S21ftDev


/mnt/etc/init.d $ cat rcS
#!/bin/sh


# Start all init scripts in /etc/init.d
# executing them in numerical order.
#
for i in /etc/init.d/S??* ;do

     # Ignore dangling symlinks (if any).
     [ ! -f "$i" ] && continue

     case "$i" in
        *.sh)
            # Source shell script for speed.
            (
                trap - INT QUIT TSTP
                set start
                . $i
            )
            ;;
        *)
            # No sh extension, so fork subprocess.
            $i start
            ;;
    esac
done

pi@raspberrypi:/mnt/etc/init.d $ cat S21ftDev
#! /bin/sh

/root/QmlTestApplication --platform eglfs

/mnt $ sudo ls -al root
total 17151
drwx------  2 root root     1024 Nov 16 08:01 .
drwxr-xr-x 19 root root     1024 Jan  1  1970 ..
-rwxr-xr-x  1 root root 17710284 Nov 16 08:01 QmlTestApplication


/mnt $ sudo file root/QmlTestApplication
root/QmlTestApplication: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 4.14.0, stripped

'embeded > raspberry pi' 카테고리의 다른 글

rpi 3b 2초 부팅 fs  (0) 2021.11.20
img 파일 마운트 하기  (0) 2021.11.20
라즈베리 피코 USB HID 키코드  (0) 2021.11.16
라즈베리 파이 피코 한글 키 입력?  (0) 2021.11.16
rpi pico usb sound  (0) 2021.11.08
Posted by 구차니
프로그램 사용/wayland2021. 11. 17. 18:21

'프로그램 사용 > wayland' 카테고리의 다른 글

weston shell  (0) 2021.11.26
weston_log()  (0) 2021.11.25
wayland weston 구조  (0) 2021.11.24
wayland weston flow  (0) 2021.11.22
wayland / weston  (0) 2021.11.18
Posted by 구차니
embeded/raspberry pi2021. 11. 16. 16:39

일단 테스트 해보니.. Keycode.LEFT_ARROW 하니 ctrl+shift+left_arrow 하듯 작동한다.

ascii 문자열로 출력하는 거라 방향키를 넣을 방법은 라이브러리를 수정하기 전에는 불가능 할 듯.

 

    PRINT_SCREEN = 0x46
    """Print Screen (SysRq)"""
    SCROLL_LOCK = 0x47
    """Scroll Lock"""
    PAUSE = 0x48
    """Pause (Break)"""

    INSERT = 0x49
    """Insert"""
    HOME = 0x4A
    """Home (often moves to beginning of line)"""
    PAGE_UP = 0x4B
    """Go back one page"""
    DELETE = 0x4C
    """Delete forward"""
    END = 0x4D
    """End (often moves to end of line)"""
    PAGE_DOWN = 0x4E
    """Go forward one page"""

    RIGHT_ARROW = 0x4F
    """Move the cursor right"""
    LEFT_ARROW = 0x50
    """Move the cursor left"""
    DOWN_ARROW = 0x51
    """Move the cursor down"""
    UP_ARROW = 0x52
    """Move the cursor up"""

[링크 : https://circuitpython.readthedocs.io/projects/hid/en/latest/_modules/adafruit_hid/keycode.html]

'embeded > raspberry pi' 카테고리의 다른 글

img 파일 마운트 하기  (0) 2021.11.20
rpi 3b 2초 부팅 이미지 테스트  (0) 2021.11.17
라즈베리 파이 피코 한글 키 입력?  (0) 2021.11.16
rpi pico usb sound  (0) 2021.11.08
rpi3 2초만에 부팅하기  (0) 2021.10.30
Posted by 구차니
embeded/raspberry pi2021. 11. 16. 16:31

예제 코드를 보다보니 layout 어쩌구 나와서

from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS

 

소스를 뒤져보는데 흐음...

        b"\x04"  # a
        b"\x05"  # b
        b"\x06"  # c
        b"\x07"  # d
        b"\x08"  # e

[링크 : https://github.com/adafruit/Adafruit_CircuitPython_HID/blob/main/adafruit_hid/keyboard_layout_us.py]

 

걍 한영키 눌러 놓고 아래와 같이 입력하도록 해두니 잘 된다.

"동해물과 백두산이 마르고 딿도록" (딿은 의도적으로 쌍디귿 나오게 하려고 입력한 값)

keys_pressed = ["ehdgoanfrhk qorentksdl akfmrh Ekfgehfhr"]

 

한글 키보드라고 해도.. 키코드는 별개의 문제였구나..

'embeded > raspberry pi' 카테고리의 다른 글

rpi 3b 2초 부팅 이미지 테스트  (0) 2021.11.17
라즈베리 피코 USB HID 키코드  (0) 2021.11.16
rpi pico usb sound  (0) 2021.11.08
rpi3 2초만에 부팅하기  (0) 2021.10.30
rpi 4는 USB to Ethernet이 아닌가?  (0) 2021.09.29
Posted by 구차니

아내님 청구할게 있어서 진단서 인지 먼지 끊으러 다니는데

한곳만 바로 되고

두곳은 2시간씩 대기 -_-

 

그럴거면.. 전화로 접수를 받아주던가, 미리 공지를 좀 해주던가 해야 하지 않나 ㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

방정  (0) 2021.11.21
병원 투어 2주차  (0) 2021.11.20
오랫만에 키즈카페  (0) 2021.11.14
병원  (0) 2021.11.13
안경 파괴  (0) 2021.11.11
Posted by 구차니

그래도 여전히 코로나 한참일 때 보다 조금 많은 수준.

사람이 적어서 좋긴한데 다른 사무실들은 공실인걸 보고 있노라면 먼가 묘하게 씁쓸하다.

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

병원 투어 2주차  (0) 2021.11.20
병원 투어  (0) 2021.11.15
병원  (0) 2021.11.13
안경 파괴  (0) 2021.11.11
벽지 망했어 ㅋㅋ  (2) 2021.11.07
Posted by 구차니

10만 ㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

병원 투어  (0) 2021.11.15
오랫만에 키즈카페  (0) 2021.11.14
안경 파괴  (0) 2021.11.11
벽지 망했어 ㅋㅋ  (2) 2021.11.07
벽지 수선 준비  (0) 2021.11.06
Posted by 구차니

똥개가 첫째 안경 다 뮬어 뜯음

내껸 안건들여서 살았는데

언니가.만만한 가였나?

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

오랫만에 키즈카페  (0) 2021.11.14
병원  (0) 2021.11.13
벽지 망했어 ㅋㅋ  (2) 2021.11.07
벽지 수선 준비  (0) 2021.11.06
떵개 사고침  (0) 2021.11.05
Posted by 구차니
Programming/C++ STL2021. 11. 10. 18:10

QT에서 QSeialPort.open() 이 있고

QSerialPort를 상속받은 클래스에서

open()을 하면 자동으로 부모인 QSeialPort.open() 를 호출하게 되는데

CPP가 아닌 C의 fnctl.h의 open()을 열고 싶으면

::open()을 하면 되...나?

 

[링크 : https://stackoverflow.com/questions/10772169/calling-same-name-function]

'Programming > C++ STL' 카테고리의 다른 글

cpp static_cast<type>  (0) 2023.02.09
vector 값 비우기  (0) 2021.10.02
cpp 부모타입으로 업 캐스팅 된 객체의 원래 클래스 알기  (0) 2021.09.30
cpp string 관련  (0) 2019.06.10
cpp stringstream << 연산자  (0) 2019.05.24
Posted by 구차니
개소리 왈왈/자전거2021. 11. 9. 14:14

아. 까먹고 있다가 들어가봤더니 역시나 마감 ㅠㅠ

 

 

먼가 문자로 알림 올때 빵빵하게 준다고 하더니

헐.. 신청못해서 아쉽네 ㅠㅠ

 

[링크 : https://www.seoulbikefest.com/]

'개소리 왈왈 > 자전거' 카테고리의 다른 글

간만에 자전거  (0) 2024.02.17
라이트 손..상?  (0) 2023.05.21
라이트 청소  (0) 2021.10.26
붕어가 되었군 -_ㅠ  (0) 2021.06.06
자전거 라이트 + 배터리 도착!  (0) 2021.05.06
Posted by 구차니