하드웨어/VR2022. 11. 6. 20:10

'하드웨어 > VR' 카테고리의 다른 글

Gear VR 리눅스 접속  (0) 2022.11.07
Gear VR controller 윈도우에 접속  (0) 2022.11.07
gear vr with controller  (0) 2022.11.05
기어 VR for 노트5 좀 써본 결론(?)  (2) 2019.04.07
기어VR 획득!(for 노트5)  (0) 2019.03.27
Posted by 구차니
embeded/orange pi2022. 11. 6. 19:54

orange pi 는 그래도 H 시리즈이긴 한데 검색해보면 영 꺼림직 하네..

걍 봉인해야 하나?

 

[링크 : https://www.reddit.com/r/OrangePI/comments/4ir1um/orange_pi_has_root_debugger_backdoor/]

[링크 : https://github.com/armbian/build/issues/282]

 

echo "rootmydevice" > /proc/sunxi_debug/sunxi_debug

[링크 : https://namu.wiki/w/Allwinner]

 

The sunxi-debug driver in Allwinner 3.4 legacy kernel for H3, A83T and H8 devices allows local users to gain root privileges by sending "rootmydevice" to /proc/sunxi_debug/sunxi_debug.

[링크 : https://nvd.nist.gov/vuln/detail/CVE-2016-10225]

 

 

+

5.10.75-sunxi64  커널이었네.. 받았을 당시에는 백도어 생각을 못해서 넘어갔는데 흐음..

2021.12.28 - [embeded/orange pi] - orange pi 3 기동

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

rk3588 HDMI RX interface  (0) 2023.06.30
android on orange pi 3  (0) 2022.12.07
orange pi 3 관련 문서  (0) 2022.01.03
oragne pi 3 / eMMC와 sd 부팅  (0) 2022.01.03
allwinner(orange pi 3) vs amlogic(odroid c2)  (0) 2022.01.01
Posted by 구차니
하드웨어/VR2022. 11. 5. 18:31

일단.. 공식적으로는 삼성과 오큘러스가 갈라서면서

노트9 에서도 기어  VR 업데이트 안되고 있고, 그 이외에 컨트롤러로 사용은 할 수 없다고 하는데

조금 찾아보니  PC  와 블루투스 페어링 하여 가속도, 터치패드 등을 uinput으로 넘길순 있는 듯.

저 컨트롤러만 해도 살만한 느낌인데..  당근해볼까.. 어떻게 할까..

 

[링크 : https://hackaday.com/2018/02/27/reverse-engineering-opens-up-the-samsung-gear-vr-controller/]

 

[링크 : https://github.com/ilyabru/GearVrController4Windows]

[링크 : https://github.com/rdady/gear-vr-controller-windows]

 

[링크 : https://github.com/rdady/gear-vr-controller-linux/blob/master/gearVRC.py]

 

+

[링크 : https://jsyang.ca/hacks/gear-vr-rev-eng/]

'하드웨어 > VR' 카테고리의 다른 글

Gear VR 리눅스 접속  (0) 2022.11.07
Gear VR controller 윈도우에 접속  (0) 2022.11.07
meta 퀘스트, 가상 데스크탑  (0) 2022.11.06
기어 VR for 노트5 좀 써본 결론(?)  (2) 2019.04.07
기어VR 획득!(for 노트5)  (0) 2019.03.27
Posted by 구차니

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

fft window 함수  (0) 2022.11.16
fftw @ 22Hz sine파 대충 돌려보니  (0) 2022.11.16
fftw wisdom  (0) 2022.11.04
FFT  (0) 2022.10.24
fftw 예제 와 복소수 처리  (0) 2022.10.19
Posted by 구차니

fftw는 plan을 세우고 계산하는데, plan을  export 하고 import 할 수 있다고 한다.

그러면 초기 구동 속도를 더 올릴수 있으려나?

Importing and Exporting Wisdom


void fftw_export_wisdom_to_file(FILE *output_file);
fftw_status fftw_import_wisdom_from_file(FILE *input_file);

[링크 : https://www.fftw.org/fftw2_doc/fftw_2.html#SEC13]

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

fftw @ 22Hz sine파 대충 돌려보니  (0) 2022.11.16
real to complex  (0) 2022.11.04
FFT  (0) 2022.10.24
fftw 예제 와 복소수 처리  (0) 2022.10.19
fftw 테스트(tests/bench)  (0) 2022.10.19
Posted by 구차니
Microsoft/vscode2022. 11. 4. 12:34

왜 갑자기 안되나 했더니.. 망할 아래한글 -_-

얘는 나이를 먹어 갈수록 좋아질 이유가 점점 사라지네

 

[링크 : https://brunch.co.kr/@princox/222]

[링크 : https://usingu.co.kr/frontend/vscode/vscode-주석-단축키ctrl-가-안될-때/]

Posted by 구차니
프로그램 사용/VNC2022. 11. 4. 10:42

libvncserver 라이브러리에서 제공되는 기본 옵션이 존재한다.

# ./vncserver -help
-rfbport port          TCP port for RFB protocol
-rfbportv6 port        TCP6 port for RFB protocol
-rfbwait time          max time in ms to wait for RFB client
-rfbauth passwd-file   use authentication on RFB protocol
                       (use 'storepasswd' to create a password file)
-rfbversion 3.x        Set the version of the RFB we choose to advertise
-permitfiletransfer    permit file transfer support
-passwd plain-password use authentication
                       (use plain-password as password, USE AT YOUR RISK)
-deferupdate time      time in ms to defer updates (default 40)
-deferptrupdate time   time in ms to defer pointer updates (default none)
-desktop name          VNC desktop name (default "LibVNCServer")
-alwaysshared          always treat new clients as shared
-nevershared           never treat new clients as shared
-dontdisconnect        don't disconnect existing clients when a new non-shared
                       connection comes in (refuse new connection instead)
-sslkeyfile path       set path to private key file for encrypted WebSockets connections
-sslcertfile path      set path to certificate file for encrypted WebSockets connections
-httpdir dir-path      enable http server using dir-path home
-httpport portnum      use portnum for http connection
-httpportv6 portnum    use portnum for IPv6 http connection
-enablehttpproxy       enable http proxy support
-progressive height    enable progressive updating for slow links
-listen ipaddr         listen for connections only on network interface with
                       addr ipaddr. '-listen localhost' and hostname work too.
-listenv6 ipv6addr     listen for IPv6 connections only on network interface with
                       addr ipv6addr. '-listen localhost' and hostname work too.

 

http 자체는 disable 하는게 없다.

줄   9: 00084         if (strcmp(argv[i], "-help") == 0) {
줄  12: 00087         } else if (strcmp(argv[i], "-rfbport") == 0) { /* -rfbport port */
줄  19: 00094         } else if (strcmp(argv[i], "-rfbportv6") == 0) { /* -rfbportv6 port */
줄  26: 00101         } else if (strcmp(argv[i], "-rfbwait") == 0) {  /* -rfbwait ms */
줄  32: 00107         } else if (strcmp(argv[i], "-rfbauth") == 0) {  /* -rfbauth passwd-file */
줄  39: 00114         } else if (strcmp(argv[i], "-permitfiletransfer") == 0) {  /* -permitfiletransfer  */
줄  41: 00116         } else if (strcmp(argv[i], "-rfbversion") == 0) {  /* -rfbversion 3.6  */
줄  47: 00122         } else if (strcmp(argv[i], "-passwd") == 0) {  /* -passwd password */
줄  57: 00132         } else if (strcmp(argv[i], "-deferupdate") == 0) {  /* -deferupdate milliseconds */
줄  63: 00138         } else if (strcmp(argv[i], "-deferptrupdate") == 0) {  /* -deferptrupdate milliseconds */
줄  69: 00144         } else if (strcmp(argv[i], "-desktop") == 0) {  /* -desktop desktop-name */
줄  75: 00150         } else if (strcmp(argv[i], "-alwaysshared") == 0) {
줄  77: 00152         } else if (strcmp(argv[i], "-nevershared") == 0) {
줄  79: 00154         } else if (strcmp(argv[i], "-dontdisconnect") == 0) {
줄  81: 00156         } else if (strcmp(argv[i], "-httpdir") == 0) {  /* -httpdir directory-path */
줄  87: 00162         } else if (strcmp(argv[i], "-httpport") == 0) {  /* -httpport portnum */
줄  94: 00169         } else if (strcmp(argv[i], "-httpportv6") == 0) {  /* -httpportv6 portnum */
줄 101: 00176         } else if (strcmp(argv[i], "-enablehttpproxy") == 0) {
줄 103: 00178         } else if (strcmp(argv[i], "-progressive") == 0) {  /* -httpport portnum */
줄 109: 00184         } else if (strcmp(argv[i], "-listen") == 0) {  /* -listen ipaddr */
줄 118: 00193         } else if (strcmp(argv[i], "-listenv6") == 0) {  /* -listenv6 ipv6addr */
줄 126: 00201         } else if (strcmp(argv[i], "-sslkeyfile") == 0) {  /* -sslkeyfile sslkeyfile */
줄 132: 00207         } else if (strcmp(argv[i], "-sslcertfile") == 0) {  /* -sslcertfile sslcertfile */

[링크 : https://libvncserver.sourceforge.net/doc/html/cargs_8c_source.html]

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

libvncserver without password  (0) 2022.11.08
libvncserver 종료 절차  (0) 2022.11.01
libvncserver 로그인  (0) 2022.09.26
libvncserver 접속 끊어짐 문제  (0) 2022.08.16
libvncserver websocket example  (0) 2022.08.12
Posted by 구차니
embeded/FPGA - XILINX2022. 11. 2. 15:14

정체 불명의 EBAZ4205 라는 보드

12V 몰렉스 3x2 핀이 필요하지만 장난질(?) 치면 그냥도 켤 순 있을 것 같은데, 가격도 착하고 끌린다!

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?itemno=C764788575]

[링크 : https://github.com/KeitetsuWorks/EBAZ4205]

[링크 : https://theokelo.co.ke/getting-starting-with-ebaz4205-zynq-7000/]

 

원래 35위안/5달러 근처의  ASIC 마이터 제어용 보드인 듯.

근데.. ASIC 돌리는데 왜 굳이 zynq를...?

This development board was the control card of Ebit E9+ BTC miner. In mainland China, it cost about 5 dollars (<35 CNY) on the secondhand market.

[링크 : https://github.com/xjtuecho/EBAZ4205]

[링크 : https://www.asicminervalue.com/miners/ebang/ebit-e9]

 

2.54mm 아니고 2.00mm pitch 핀헤더로, 14 * 3 = 42개 GPIO가 나와있긴 하다.

 

아날로그 쪽은 최대한 빠져있긴 한데, MIO 쪽은 별로 없어서 어떻게 쓸 수 있을지 모르겠다. 

FPGA의 ADC를 이용해서 온도 모니터링 하려고 zynq로 한건가?

 

+

[링크 : https://ko.aliexpress.com/item/1005004052650225.html] 49203 + 5103 = 54306 / 174주문 <<

[링크 : https://ko.aliexpress.com/item/1005004460394748.html] 49075 + 5776 = 54851 / 60주문

'embeded > FPGA - XILINX' 카테고리의 다른 글

xilinx - partial bitstream  (0) 2023.04.24
vivado 설치 하려고 했더니.  (0) 2023.01.08
xvc - xilinx virtual cable  (0) 2021.08.24
microzed..  (0) 2021.04.07
pmod pinout  (0) 2021.04.02
Posted by 구차니
Linux2022. 11. 1. 14:53

가끔 실수로 / 대신 //를 넣으면서 쓰긴 했는데

찾다보니 ///도 /와 동일하게 작동은 한다고 한다.

그런데 도대체. 무슨 표준으로 작동하는진 잘 안보네

~$ cd //
//$ cd -
~$ cd /
/$ cd -
~$ cd ///
/$ cd -
~$

[링크 : https://askubuntu.com/questions/23808/what-is-the-double-slash-directory]

[링크 : https://unix.stackexchange.com/questions/256497/on-what-systems-is-foo-bar-different-from-foo-bar]

'Linux' 카테고리의 다른 글

strip debug symbol 날리기  (0) 2022.12.07
systemctl status 전체 로그 보기  (0) 2022.11.30
리눅스 프로세스 숨기기  (0) 2022.08.31
uvcdynctrl  (0) 2022.07.06
dmesg -w  (0) 2022.06.30
Posted by 구차니
프로그램 사용/VNC2022. 11. 1. 10:45

정작 API 문서에는 아무런 설명도 없다.

[링크 : https://libvnc.github.io/doc/html/group__libvncserver__api.html#ga7560cf50d53208ad5dc24b3d82bbb418]

[링크 : https://libvnc.github.io/doc/html/group__libvncserver__api.html#ga69b57fe0447eac66fe216430bcda5859]

 

예제에 보면 F11, F12 누르면 서버 종료 되는 내용이 있다.

static void dokey(rfbBool down,rfbKeySym key,rfbClientPtr cl)
{
  if(down) {
    if(key==XK_Escape)
      rfbCloseClient(cl);
    else if(key==XK_F12)
      /* close down server, disconnecting clients */
      rfbShutdownServer(cl->screen,TRUE);
    else if(key==XK_F11)
      /* close down server, but wait for all clients to disconnect */
      rfbShutdownServer(cl->screen,FALSE);
  rfbShutdownServer(rfbScreen, TRUE);
#endif /* BACKGROUND_LOOP */

  free(rfbScreen->frameBuffer);
  rfbScreenCleanup(rfbScreen);

[링크 : https://github.com/LibVNC/libvncserver/blob/master/examples/example.c]

 

rfbScreenCleanup은 걍.. vnc 버전 free() 라고 보면 될 듯.

/* hang up on all clients and free all reserved memory */
 
 void rfbScreenCleanup(rfbScreenInfoPtr screen)

[링크 : https://libvnc.github.io/doc/html/main_8c_source.html]

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

libvncserver without password  (0) 2022.11.08
libvncserver 기본 인자  (0) 2022.11.04
libvncserver 로그인  (0) 2022.09.26
libvncserver 접속 끊어짐 문제  (0) 2022.08.16
libvncserver websocket example  (0) 2022.08.12
Posted by 구차니