브랜치를 잘 쓸줄 몰랐는데 이번에 쓸일이 생겨서 찾아보는 중

목표는

master 브랜치에는 릴리즈 수준으로만 커밋하고

실제 개발은 로컬 브랜치에서 작업하고

결과물만 master로 merge 하는 것 이다.

 

명령어는 아래와 같이 master와 dev를 오가면서 해야 하는데

혹시나 해서 dev 에서 작업중 master에서 추가되는데 별 문제가 없었다.

굳이(?) 필요했다면 dev에서 master를 merge 하면 되긴 할 듯.

 

master dev
git init
git touch README
git add README
git commit -m "initial upload for project"
 
git branch dev
git checkout dev (혹은 git switch dev)
'dev' 브랜치로 전환합니다
 
  touch Makefile
mkdir app
cd app
touch Makefile
touch main.c
cd ..
git add Makefile app/
git commit -m "application added"

git switch master
'master' 브랜치로 전환합니다
touch RELEASE
git add RELEASE
git commit -m "add release rule"
git checkout dev (혹은 git switch dev)
'dev' 브랜치로 전환합니다
 
  cd app
vi Makefile
vi main.c
git add Makefile
git commit -m "makefile fixed"
git add mainc.
git commit -m "skeleton added"
git switch master
'master' 브랜치로 전환합니다
cd ..
git checkout dev -- . (현 위치에 dev 를 체크아웃함)
git add Makefile app/
git commit -m "feature added for dev branch"
 

 

$ git help checkout
       git checkout (-p|--patch) [<tree-ish>] [--] [<pathspec>...]
           This is similar to the previous mode, but lets you use the
           interactive interface to show the "diff" output and choose which
           hunks to use in the result. See below for the description of
           --patch option.

 

[링크 : https://inpa.tistory.com/entry/GIT-⚡%EF%B8%8F-깃-Branch-정리-branch-checkout-merge-rebase]

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

git switch  (0) 2025.01.16
git stash drop , clear  (0) 2024.09.19
git submodule ... 2?  (0) 2024.06.19
git diff --staged  (0) 2022.09.05
git reset 서버 commit  (0) 2021.09.14
Posted by 구차니

git checkout branch_name 과 동등하다고 한다.

[링크 : https://inpa.tistory.com/entry/GIT-⚡%EF%B8%8F-깃-Branch-정리-branch-checkout-merge-rebase]

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

git local branch, merge master  (0) 2025.01.16
git stash drop , clear  (0) 2024.09.19
git submodule ... 2?  (0) 2024.06.19
git diff --staged  (0) 2022.09.05
git reset 서버 commit  (0) 2021.09.14
Posted by 구차니

집에 컴퓨터가 윈도우긴 하지만 M.2 슬롯이 있어서 꽂아보는데

미묘하게(?) cpu 쿨러랑 간섭이 있어서 어떻게 대충 잘 눌러서 끼고 켜니까

 

Movidius MyriadX 라고 두 개가 뜨는데, HID Transfer는 멀까?

 

장치 관리자에서는

범용 직렬 버스 장치에 Movidius MyriadX 2개가 뜨고

 

장치 자체는 M.2로 연결했지만 USB로 인식되나 보다

 

그렇다면.. Fresco Logic USB3.0 이라는 녀석이

M.2 보드 뒷면에 있는 IC고 PCIex to USB hub 칩인듯?

 

뒷면에 녀석은 먼지 검색도 못하겠고 딱히 Fresco 써있지 않은데

 

방열판을 떼어보려다가 꿈적도 안해서 포기하고

데이터시트에 찾아보니 M.2 키 쪽에 Fresco 라고 써있는 칩이 보인다.

[링크 : https://jm.pl/gfx-base/s_1/orgs/18/EGPA-I201-C1.pdf]

 

그러니까 결론은..

모양만 M.2지

결국에는 PCI express to USB 3.0 HUB + MyriadX * 2 라는 결론(!)

 

NCS - Myriad 2

Product CollectionIntel® Neural Compute Sticks
Processor IncludedIntel® Movidius™ Myriad™ 2 Vision Processing Unit 4GB
Supported Operating SystemsWindows 10, 64-bit*, Ubuntu 16.04*, CentOS 7.4*

[링크 : https://www.intel.com/content/www/us/en/products/sku/125743/intel-movidius-neural-compute-stick/specifications.html]

 

NCS2 - Myriad X

Product CollectionIntel® Neural Compute Sticks
Processor IncludedIntel® Movidius™ Myriad™ X Vision Processing Unit 4GB
Pre-Installed Operating System OS Independent
Supported Operating SystemsWindows 10, 64-bit*, Ubuntu 16.04*, CentOS 7.4*

[링크 : https://www.intel.com/content/www/us/en/products/sku/140109/intel-neural-compute-stick-2/specifications.html]

 

intel neural compute stick 모델 목록

[링크 : https://www.intel.com/content/www/us/en/ark/products/series/125744/intel-neural-compute-sticks.html]

 

시리얼 구분법

[링크 : https://www.intel.co.kr/content/www/kr/ko/support/articles/000033154/boards-and-kits/neural-compute-sticks.html]

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

innodisk egpa-i201-c1 Movidius Myriad X  (0) 2025.01.06
openvino myriad  (0) 2025.01.04
intel NCS2 ubuntu 설치?  (0) 2020.10.21
intel ncs2 설치  (0) 2020.10.21
intel Movidius NCS / VPU  (0) 2020.10.21
Posted by 구차니

혹시나 해서 jsm583 칩으로 만들어진 리뷰안 m.2 to USB3.0을 이용해서 사용이 가능한가 했는데 역시나(?) 안되는 듯.

usb 자체가 pcie bridge로 작동하는게 아니라 usb storage class로 잡혀 버리는 듯.

[338494.964509] usb 2-3: new SuperSpeed USB device number 4 using xhci_hcd
[338494.977488] usb 2-3: New USB device found, idVendor=152d, idProduct=0583, bcdDevice= 2.13
[338494.977506] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[338494.977513] usb 2-3: Product: RevuAhn UX981
[338494.977519] usb 2-3: Manufacturer: RevuAhn
[338494.977524] usb 2-3: SerialNumber: DD56419883F0D
[338495.034745] usbcore: registered new interface driver usb-storage
[338495.041007] scsi host0: uas
[338495.041138] usbcore: registered new interface driver uas
[338495.041650] scsi 0:0:0:0: Direct-Access     RevuAhn  UX981            0213 PQ: 0 ANSI: 6
[338495.043619] sd 0:0:0:0: Attached scsi generic sg0 type 0
[338504.393782] sd 0:0:0:0: [sda] Unit Not Ready
[338504.393801] sd 0:0:0:0: [sda] Sense Key : Hardware Error [current] 
[338504.393815] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
[338504.520396] sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[338504.520415] sd 0:0:0:0: [sda] Sense Key : Hardware Error [current] 
[338504.520427] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
[338504.646381] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[338504.646398] sd 0:0:0:0: [sda] Sense Key : Hardware Error [current] 
[338504.646411] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
[338504.690523] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[338504.690528] sd 0:0:0:0: [sda] 0-byte physical blocks
[338504.812434] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
[338504.857011] sd 0:0:0:0: [sda] Asking for cache data failed
[338504.857031] sd 0:0:0:0: [sda] Assuming drive cache: write through
[338504.857041] sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes not a multiple of physical block size (0 bytes)
[338504.857049] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (0 bytes)
[338504.857933] sd 0:0:0:0: [sda] Attached SCSI disk

 

PCIe Bridge는 맞지.. storage solution 이라 그렇지...(!!)

JMicron announced its JMS583 (USB 3.1 to PCIe Bridge controller) received USB-IF Logo Certification

The JMS583 is mainly used in the development of PCIe/NVMe related products, such as converting a PCIe/NVMe SSD to a superspeed plus USB interface portable mobile storage solution.

This will significantly reduce the cost and time needed for PCIe/NVMe SSD production in the factory, which will also accelerate the end-product’s time-to-market. JMicron believes that the market will always strive for extreme high-speed, low power consumption, thin and light solutions for external storage products.

[링크 : https://www.jmicron.com/news/detail/21]

 

USB 쪽을 Mass stroage class로 구현되어서 발생한 일인듯하다.

Complies with PCI Express Base Specification Revision 3.1a
◼ Complies with NVM Express 1.3
◼ Complies with USB 3.1 Gen 1 and Gen 2 Specification, USB Mass Storage Class, Bulk-Only Transport Specification (Revision 1.0)
◼ Complies with USB Attached SCSI Protocol (UASP) Specification (Revision 4)

[링크 : https://www.jmicron.com/file/download/1012/JMS583_Product+Brief.pdf]

 

+

2x Intel Movidius Myriad X

[링크 : https://jm.pl/gfx-base/s_1/orgs/18/EGPA-I201-C1.pdf]

  [링크 : https://jm.pl/en/egpa-i201-c1-m-2-to-dual-mydx-module/9207831/produkt/]

  [링크 : https://www.wdlsystems.com/Innodisk-EGPA-I201] 215$?

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

movidius MyriadX * 2  (1) 2025.01.08
openvino myriad  (0) 2025.01.04
intel NCS2 ubuntu 설치?  (0) 2020.10.21
intel ncs2 설치  (0) 2020.10.21
intel Movidius NCS / VPU  (0) 2020.10.21
Posted by 구차니

특정 버전에서 지원이 빠졌던 것 같다.

Summary
OpenVINO™ version that supports MYRIAD device.

Description
Unable to determine whether MYRIAD device is supported on OpenVINO™ 2022.3.0.

Resolution
Intel® Movidius ™ VPU based products (MYRIAD device) are not supported in OpenVINO™ 2022.3.0 release but will be added back in a future OpenVINO™ 2022.3.1 LTS update.

[링크 : https://www.intel.com/content/www/us/en/support/articles/000093855/software/development-software.html]

 

[링크 : https://www.intel.com/content/www/us/en/developer/articles/guide/get-started-with-neural-compute-stick.html]

[링크 : https://docs.openvino.ai/2024/about-openvino/release-notes-openvino/system-requirements.html]

 

 

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

movidius MyriadX * 2  (1) 2025.01.08
innodisk egpa-i201-c1 Movidius Myriad X  (0) 2025.01.06
intel NCS2 ubuntu 설치?  (0) 2020.10.21
intel ncs2 설치  (0) 2020.10.21
intel Movidius NCS / VPU  (0) 2020.10.21
Posted by 구차니

컵이랑 접시는 기막히게 뽑아낼수있을 느낌 !!

[링크 : https://youtu.be/Mpjlf585UZg?si=33x034xiOXry4m_W]

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

blender render - cycle, eevee  (0) 2024.08.30
blender shader editor (4.2 bloom)  (0) 2024.08.29
blender set origin  (0) 2024.08.23
blender 4.x 구동 실패  (0) 2024.08.20
blender snap(붙이기)  (0) 2024.08.16
Posted by 구차니

README.md 파일과 동일 경로에 넣고

./screenshot.png 식으로 링크 걸어주면 자동으로 걸린다.

![alt text](./imagefile_name.ext)

[링크 : https://aiday.tistory.com/83]

 

잘 걸려있네!

[링크 : https://github.com/minimonk82/forza_horizon_4_telemetry]

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

gitlab 백업하기  (0) 2019.03.23
gitlab wiki  (2) 2019.01.28
git push rejected by remote protected branch  (2) 2018.09.04
gitlab  (2) 2018.08.13
Posted by 구차니

ms office에서는 쉽게 했던것 같은데

번거롭지만 도구 - 색상 교체기를 통해서 비슷하게 할 순 있다.

 

검은색을 피커로 찍어서 흰색으로 설정하고

흰색을 피커로 찍어서 검은색으로 설정하고 바꾸기 하면 완성~

[링크 : https://help.libreoffice.org/latest/ko/text/sdraw/guide/eyedropper.html]

Posted by 구차니
프로그램 사용/busybox2024. 12. 4. 16:59

busybox에 포함된 minicom 보다 더 간략화된 통신 터미널인데

설명이 부실해서 종료하는 법을 알기 힘들다 -_-

 

ctrl-x

[링크 : https://www.armadeus.org/wiki/index.php?title=Microcom]

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

sh: line 1: kill: root: no such pid  (0) 2015.01.05
busybox su가 안될 경우  (0) 2014.12.05
busybox tftp  (0) 2013.06.18
busybox - setconsole  (0) 2011.10.21
busybox ash "cannot open /dev/ttyAS1: no such device"  (0) 2010.04.20
Posted by 구차니
프로그램 사용/ncurses2024. 12. 2. 10:22

screen - window 계층 구조인 것 같고

상자는 세로, 가로로 쓸 문자만 넣어주면 되는 듯. 터미널 사이즈에 따른 동적 변화는 따로 찾아봐야겠네.

#include <ncurses.h>

int main(void){
    initscr();
    start_color();
    init_color(1, 0, 1000, 0);      // 1번 색상(글자색): 초록색
    init_color(2, 0, 0, 1000);      // 2번 색상(배경색): 파랑색
    init_pair(1, 1, 2);             // 1번 Color pair를 초록 글자색과 파랑 배경색으로 지정
    
    WINDOW * win = newwin(20, 20, 10, 10);
    box(win, '|', '-');
    waddch(win, 'A' | COLOR_PAIR(1));   // 1번 Color pair를 적용해 문자 출력

    refresh();
    wrefresh(win);
    getch();
    endwin();
}

 

start_color() 로 색상을 사용할 수 있도록 설정하고

init_color(index, , , ,)로 팔레트를 초기화 하고

attron(attribute on), attroff(attribute off) 함수로 색상을 적용/해제 한다.

#include <ncurses.h>

int main(void){
    initscr();
    start_color();

    init_color(1, 0, 1000, 0);
    init_color(2, 0, 0, 1000);
    init_pair(1, 1, 2);

    attron(COLOR_PAIR(1));    // 출력 색상을 1번 Color pair로 변경
    printw("Hello");
    attroff(COLOR_PAIR(1));   // 속성 해제

    refresh();
    getch();
    endwin();
}

[링크 : https://magmatart.dev/development/2017/06/15/ncurses4.html]

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

ncurses 예제  (0) 2024.11.30
ncurse  (0) 2015.04.27
Posted by 구차니