으아아아아아아 싫다
'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글
| 빨간날 야근 (0) | 2021.10.04 |
|---|---|
| 피곤엔 낮잠이 꿀잠이네 (0) | 2021.10.03 |
| 먼가 만들어 볼까 (0) | 2021.09.22 |
| 피곤피곤 (0) | 2021.09.20 |
| 경험이 능력을 만든다. (0) | 2021.09.19 |
으아아아아아아 싫다
| 빨간날 야근 (0) | 2021.10.04 |
|---|---|
| 피곤엔 낮잠이 꿀잠이네 (0) | 2021.10.03 |
| 먼가 만들어 볼까 (0) | 2021.09.22 |
| 피곤피곤 (0) | 2021.09.20 |
| 경험이 능력을 만든다. (0) | 2021.09.19 |
WPA2 TKIP/AES는
프로토콜과 알고리즘(cipher) 이라는 두 개의 콤비네이션(!)으로 이뤄진 용어이다.
[링크 : https://www.netmanias.com/ko/post/blog/5376/security-wi-fi/wi-fi-wpa2-aes-ccmp-encryption-algorithm]
WPA : WEP 대체용
WPA2 : WPA 대체용
WPA3 : PSK(Pre-Shared Key) with SAE(Simultaneous Authentication of Equals) 대체
WPA-Personal = WPA-PSK
WPA-Enterpirse = RADIUS 인증 서버 요청을 필요하는 WPA
WPS = Wi-Fi Protected Setup (버튼 눌러서 암호 입력 없이 사용하는 방법)
Encryption protocol
TKIP = Temporal Key Integrity Protocol
CCMP = CTR mode with CBC-MAC Protocol, WPA2 에서 사용하는 AES 기반 암호화 기술
| RS485 오실로스코프 파형 (0) | 2021.11.04 |
|---|---|
| EtherCAT - Ethernet for Control Automation Technology (0) | 2021.11.01 |
| wake on patern matching (0) | 2021.06.10 |
| rs-422 (0) | 2021.06.03 |
| FTPS (0) | 2021.02.07 |
rpi 4 cm 에서 usb를 쓰려면 config.txt에 다음의 내용을 추가해야 하는데
| dtoverlay=dwc2,dr_mode=host |
| $ modinfo dwc2 filename: /lib/modules/5.10.60-v7+/kernel/drivers/usb/dwc2/dwc2.ko license: Dual BSD/GPL author: Synopsys, Inc. description: DESIGNWARE HS OTG Core license: Dual BSD/GPL author: Matthijs Kooijman <matthijs@stdin.nl> description: DESIGNWARE HS OTG Platform Glue srcversion: C0FF7C976DCDD3E4810AFB1 alias: of:N*T*Cst,stm32mp15-hsotgC* alias: of:N*T*Cst,stm32mp15-hsotg alias: of:N*T*Cst,stm32mp15-fsotgC* alias: of:N*T*Cst,stm32mp15-fsotg alias: of:N*T*Cst,stm32f7-hsotgC* alias: of:N*T*Cst,stm32f7-hsotg alias: of:N*T*Cst,stm32f4x9-hsotgC* alias: of:N*T*Cst,stm32f4x9-hsotg alias: of:N*T*Cst,stm32f4x9-fsotgC* alias: of:N*T*Cst,stm32f4x9-fsotg alias: of:N*T*Capm,apm82181-dwc-otgC* alias: of:N*T*Capm,apm82181-dwc-otg alias: of:N*T*Camcc,dwc-otgC* alias: of:N*T*Camcc,dwc-otg alias: of:N*T*Camlogic,meson-g12a-usbC* alias: of:N*T*Camlogic,meson-g12a-usb alias: of:N*T*Camlogic,meson-gxbb-usbC* alias: of:N*T*Camlogic,meson-gxbb-usb alias: of:N*T*Camlogic,meson8b-usbC* alias: of:N*T*Camlogic,meson8b-usb alias: of:N*T*Camlogic,meson8-usbC* alias: of:N*T*Camlogic,meson8-usb alias: of:N*T*Csamsung,s3c6400-hsotgC* alias: of:N*T*Csamsung,s3c6400-hsotg alias: of:N*T*Csnps,dwc2C* alias: of:N*T*Csnps,dwc2 alias: of:N*T*Clantiq,xrx200-usbC* alias: of:N*T*Clantiq,xrx200-usb alias: of:N*T*Clantiq,arx100-usbC* alias: of:N*T*Clantiq,arx100-usb alias: of:N*T*Crockchip,rk3066-usbC* alias: of:N*T*Crockchip,rk3066-usb alias: of:N*T*Chisilicon,hi6220-usbC* alias: of:N*T*Chisilicon,hi6220-usb alias: of:N*T*Cbrcm,bcm2835-usbC* alias: of:N*T*Cbrcm,bcm2835-usb depends: udc-core,roles intree: Y name: dwc2 vermagic: 5.10.60-v7+ SMP mod_unload modversions ARMv7 p2v8 pi@raspberrypi:~ $ modinfo dwc2 -v |
dtoverlay 상으로는 dr_mode 에 host / peripheral / otg를 넣을수 있다고 한다.
| $ sudo dtoverlay -h dwc2 Name: dwc2 Info: Selects the dwc2 USB controller driver Usage: dtoverlay=dwc2,<param>=<val> Params: dr_mode Dual role mode: "host", "peripheral" or "otg" g-rx-fifo-size Size of rx fifo size in gadget mode g-np-tx-fifo-size Size of non-periodic tx fifo size in gadget mode |
otg 설정에 주변기기로 인식을 시키네..?
| dtoverlay=dwc2,dr_mode=peripheral in file /boot/config.txt. |
| rpi3 2초만에 부팅하기 (0) | 2021.10.30 |
|---|---|
| rpi 4는 USB to Ethernet이 아닌가? (0) | 2021.09.29 |
| 스피커가 부실했군.. (0) | 2021.09.26 |
| rpi 2b g_mass_storage (0) | 2021.09.25 |
| rpi4에서 gpio readall 실행 안될 때 (0) | 2021.09.24 |
odroid c2용 18.04 버전정보를 보니 커널이 3.16
| # uname -a Linux odroid 3.16.72-46 #1 SMP PREEMPT Tue Aug 13 18:09:58 -03 2019 aarch64 aarch64 aarch64 GNU/Linux |
20.04는 커널 버전이 올라갔으려나?
| ubuntu-18.04.3-3.16-minimal-odroid-c2-20190814.img ubuntu-20.04-3.16-minimal-odroid-c2-20210201.img |
파일명을 보아하니.. 커널은 둘다 동일하게 3.16이고 배포판 버전만 올라간듯..
[링크 : https://wiki.odroid.com/getting_started/os_installation_guide#tab__odroid-c2]
[링크 : https://dn.odroid.com/S905/Ubuntu/]
4.17에 대한 글은 2018년도에 멈춰있네..
[링크 : https://www.hardkernel.com/ko/tag/odroid-c2/]
[링크 : https://forum.odroid.com/viewtopic.php?f=135&t=22717&start=850#p226092]
| g_mass_storage rpi - odroid c2 (0) | 2021.09.28 |
|---|---|
| g_mass_storage ins/rm 실패 (0) | 2021.09.28 |
| odroid c2 usb otg, libcomposite usb hid (0) | 2021.09.26 |
| odorid c2 usb otg gadget keyboard as hid (0) | 2021.09.23 |
| odroid c2 OTG와 mass storage (0) | 2021.09.19 |
단순하게
$ echo "ls" > /dev/pts/1
을 실행하면
해당 터미널에서 ls 라고만 나오지 실행이 되진 않는다.
누군가가 만들어 둔 ttyecho 라는 예제 프로그램만 눈에 보이네..
[링크 : https://www.humbug.in/2010/utility-to-send-commands-or-data-to-other-terminals-ttypts/]
[링크 : https://unix.stackexchange.com/questions/260503/how-do-i-run-a-command-in-a-different-tty]
[링크 : https://stackoverflow.com/questions/24725051/execute-a-command-in-another-terminal-via-dev-pts]
[링크 : https://admin-ahead.com/forum/general-linux/execute-a-command-on-a-different-ttypts/]
| convert fb(rgb565) to png 실..패? (0) | 2021.10.18 |
|---|---|
| bash multiple session history (0) | 2021.10.01 |
| socat을 이용한 ttyUSB to TCP (0) | 2021.09.16 |
| 리눅스 콘솔에서 gmail 통해 메일 보내기는 실패 ㅠㅠ (0) | 2021.09.15 |
| linux sw raid (0) | 2021.08.30 |
일단 앰프는 class D 앰프고
얘는 PWM 어쩌구 하던데 원리까지 알아보려니 급 귀찮고..
The PAM8403 is a 3W, class-D audio amplifier.
[링크 : https://pdf1.alldatasheet.com/datasheet-pdf/view/1132029/DIODES/PAM8403.html]
[링크 : https://blog.naver.com/iknowiknow/40021691136]
지금보니 스피커는 0.5W
드라이브는 3W+3W 가능한데 오늘 odroid에 연결해서 5V 어댑터 전원 끌어오니 음질이 썩 나쁘진 않은것 같기도?
0.5W 면은 5V * 0.1A 일텐데, 두개니까 0.2A
전에도 그렇겠지만 딱히 커버 불가능한 수준은 아닌것 같은데 왜였을까..
[링크 : https://blog.naver.com/damtaja/221848352426]
2020.04.17 - [embeded/arduino(genuino)] - PAM8403 3W 스테레오 오디오 앰프
다른 저가형 사운드바를 봐도 3W 를 많이 쓰는데 비슷한 등급의 부품을 써서 만드는 것 같네.
| rpi 4는 USB to Ethernet이 아닌가? (0) | 2021.09.29 |
|---|---|
| rpi zero otg (0) | 2021.09.27 |
| rpi 2b g_mass_storage (0) | 2021.09.25 |
| rpi4에서 gpio readall 실행 안될 때 (0) | 2021.09.24 |
| rpi 4 lirc tx, rx (0) | 2021.09.23 |
어느덧 또 소멸되는 날이 다가온 듯.

내 돈 하나 안쓰고 생색내는 기부 완료!

| 홈페이지 호스팅.. 버릴까 (0) | 2022.02.27 |
|---|---|
| 기부 시즌 (0) | 2022.01.21 |
| 으아아아 하루 안썼네 (0) | 2021.08.04 |
| 해피빈 기부 룰렛 (0) | 2021.07.14 |
| 해피빈 소멸예정! (2) | 2021.06.23 |
방법들은 비슷한데.. 따라하는데 영 안되네?
functions 디렉토리에 hid.usb0 디렉토리를 생성하는데 에러가 발생.
| #!/bin/bash # From the README at https://github.com/girst/hardpass dtoverlay dwc2 modprobe dwc2 modprobe libcomposite cd /sys/kernel/config/usb_gadget/ mkdir -p g1 cd g1 echo 0x1d6b > idVendor # Linux Foundation echo 0x0104 > idProduct # Multifunction Composite Gadget echo 0x0100 > bcdDevice # v1.0.0 echo 0x0200 > bcdUSB # USB2 mkdir -p strings/0x409 echo "fedcba9876543210" > strings/0x409/serialnumber echo "girst" > strings/0x409/manufacturer echo "Hardpass" > strings/0x409/product N="usb0" mkdir -p functions/hid.$N echo 1 > functions/hid.usb0/protocol echo 1 > functions/hid.usb0/subclass echo 8 > functions/hid.usb0/report_length echo -ne \\x05\\x01\\x09\\x06\\xa1\\x01\\x85\\x01\\x05\\x07\\x19\\xe0\\x29\\xe7\\x15\\x00\\x25\\x01\\x75\\x01\\x95\\x08\\x81\\x02\\x95\\x01\\x75\\x08\\x81\\x03\\x95\\x05\\x75\\x01\\x05\\x08\\x19\\x01\\x29\\x05\\x91\\x02\\x95\\x01\\x75\\x03\\x91\\x03\\x95\\x05\\x75\\x08\\x15\\x00\\x25\\x65\\x05\\x07\\x19\\x00\\x29\\x65\\x81\\x00\\xc0\\x05\\x01\\x09\\x02\\xa1\\x01\\x09\\x01\\xa1\\x00\\x85\\x02\\x05\\x09\\x19\\x01\\x29\\x03\\x15\\x00\\x25\\x01\\x95\\x03\\x75\\x01\\x81\\x02\\x95\\x01\\x75\\x05\\x81\\x03\\x05\\x01\\x09\\x30\\x09\\x31\\x15\\x81\\x25\\x7f\\x75\\x08\\x95\\x02\\x81\\x06\\xC0\\xC0 > functions/hid.usb0/report_desc C=1 mkdir -p configs/c.$C/strings/0x409 echo "Config $C: ECM network" > configs/c.$C/strings/0x409/configuration echo 250 > configs/c.$C/MaxPower ln -s functions/hid.usb0 configs/c.$C/ ls /sys/class/udc > UDC |
[링크 : https://ndb796.tistory.com/481]
[링크 : https://www.isticktoit.net/?p=1383]
[링크 : https://www.sysnet.pe.kr/2/0/11363]
혹시 권한 문제인가 해서 추가해도 안되고..
sysfs 특성이라 드라이버에서 허가되지 않는 파일은 생성이 안되는 것 같은데 왜 일까..
| # ls -al drwxr-xr-x 2 root root 0 Sep 26 09:15 functions # chmod 777 functions/ # ls -al drwxrwxrwx 2 root root 0 Sep 26 09:15 functions # mkdir hid.usb0 mkdir: cannot create directory 'hid.usb0': No such file or directory # touch hid.usb0 touch: cannot touch 'hid.usb0': Permission denied |
+
3.16 커널인데 3.19 이후 부터 된다고. 드라이버 지원(하드웨어 가속)을 포기하고 신버전을 써봐야 할지도?
| # ll /lib/modules/3.16.72-46/kernel/drivers/usb/gadget/ total 804 drwxr-xr-x 2 root root 4096 Aug 13 2019 ./ drwxr-xr-x 7 root root 4096 Aug 13 2019 ../ -rw-r--r-- 1 root root 14424 Aug 13 2019 g_acm_ms.ko -rw-r--r-- 1 root root 23784 Aug 13 2019 g_audio.ko -rw-r--r-- 1 root root 12048 Aug 13 2019 g_cdc.ko -rw-r--r-- 1 root root 14920 Aug 13 2019 g_ether.ko -rw-r--r-- 1 root root 19632 Aug 13 2019 g_ffs.ko -rw-r--r-- 1 root root 24208 Aug 13 2019 g_hid.ko # insmod g_hid insmod: ERROR: could not load module g_hid: No such file or directory # modprobe g_hid modprobe: ERROR: could not insert 'g_hid': No such device # uname -a Linux odroid 3.16.72-46 #1 SMP PREEMPT Tue Aug 13 18:09:58 -03 2019 aarch64 aarch64 aarch64 GNU/Linux |
| g_mass_storage ins/rm 실패 (0) | 2021.09.28 |
|---|---|
| odroid c2 ubuntu 18.04, 20.04 kernel 버전 정보 (0) | 2021.09.27 |
| odorid c2 usb otg gadget keyboard as hid (0) | 2021.09.23 |
| odroid c2 OTG와 mass storage (0) | 2021.09.19 |
| odroid c2 ADC (1) | 2021.09.19 |
존재는 하는데 쓸 수 있긴 한건가?
| $ modinfo g_mass_storage filename: /lib/modules/5.10.60-v7+/kernel/drivers/usb/gadget/legacy/g_mass_storage.ko license: GPL author: Michal Nazarewicz description: Mass Storage Gadget srcversion: B6D70CE605D2CF6CF116805 depends: usb_f_mass_storage,libcomposite intree: Y name: g_mass_storage vermagic: 5.10.60-v7+ SMP mod_unload modversions ARMv7 p2v8 parm: idVendor:USB Vendor ID (ushort) parm: idProduct:USB Product ID (ushort) parm: bcdDevice:USB Device version (BCD) (ushort) parm: iSerialNumber:SerialNumber string (charp) parm: iManufacturer:USB Manufacturer string (charp) parm: iProduct:USB Product string (charp) parm: file:names of backing files or devices (array of charp) parm: ro:true to force read-only (array of bool) parm: removable:true to simulate removable media (array of bool) parm: cdrom:true to simulate CD-ROM instead of disk (array of bool) parm: nofua:true to ignore SCSI WRITE(10,12) FUA bit (array of bool) parm: luns:number of LUNs (uint) parm: stall:false to prevent bulk stalls (bool) |
| $ lsmod | grep g_mass g_mass_storage 16384 0 usb_f_mass_storage 49152 1 g_mass_storage libcomposite 57344 2 g_mass_storage,usb_f_mass_storage |
| rpi zero otg (0) | 2021.09.27 |
|---|---|
| 스피커가 부실했군.. (0) | 2021.09.26 |
| rpi4에서 gpio readall 실행 안될 때 (0) | 2021.09.24 |
| rpi 4 lirc tx, rx (0) | 2021.09.23 |
| rpi USB 메모리 스틱처럼 만들기? rpi zero (0) | 2021.09.17 |