'잡동사니'에 해당되는 글 13248건

  1. 2015.11.10 openMP lock/unlock
  2. 2015.11.10 uclinux
  3. 2015.11.10 freeRTOS / OpenRISC
  4. 2015.11.09 samba - nfs - samba 0x80070021 오류
  5. 2015.11.09 doxygen
  6. 2015.11.09 openMP + openCV 미스테리..
  7. 2015.11.08 FEZ
  8. 2015.11.08 tc1100 윈7 설치
  9. 2015.11.08 win7 starter / home premium 메모리 사용량
  10. 2015.11.07 win7 starter?
Programming/openMP2015. 11. 10. 09:43



[링크 : http://stackoverflow.com/questions/2396430/how-to-use-lock-in-openmp]

[링크 : https://computing.llnl.gov/tutorials/openMP/#OMP_SET_LOCK]


[링크 : http://www.mathcs.emory.edu/~cheung/Courses/355/Syllabus/91-pthreads/openMP.html]

'Programming > openMP' 카테고리의 다른 글

openMP g++ -E -S  (2) 2015.10.12
openmp 관련 정리글(win32)  (0) 2015.10.08
openmp 테스트 on rpi  (0) 2015.10.06
openCV + openMP  (0) 2015.09.30
openMP affinity 관련..  (0) 2015.07.23
Posted by 구차니
회사일/uclinux & rtos2015. 11. 10. 09:11

What is uClinux?


The original uClinux was a derivative of Linux 2.0 kernel intended for microcontrollers without Memory Management Units (MMUs). However, the Linux/Microcontroller Project has grown both in brand recognition and coverage of processor architectures. Today's uClinux as an operating system includes Linux kernel releases for 2.0 2.4 and 2.6 as well as a collection of user applications, libraries and tool chains.


[링크 : http://www.uclinux.org/description/]

[링크 : http://www.uclinux.org/]


[링크 : http://www.uclinux.org/pub/uClinux/]

[링크 : http://sourceforge.net/projects/uclinux/]


[링크 : https://wiki.kldp.org/wiki.php/WhyIsMallocDifferentUnderUclinux]


[링크 : http://goo.gl/pzUmg] atmega1284p uclinux



+

[링크 : https://wiki.kldp.org/wiki.php/%B8%AE%B4%AA%BD%BA%C4%BF%B3%CE#s-5]

'회사일 > uclinux & rtos' 카테고리의 다른 글

freeRTOS + lwip or freeRTOS+TCP  (0) 2016.01.06
비선점형 마이컴 OS - csrtos  (0) 2015.11.12
uclinux / linux 벤치마킹  (0) 2015.11.11
µC/OS-II  (0) 2015.11.11
freeRTOS / OpenRISC  (0) 2015.11.10
Posted by 구차니
회사일/uclinux & rtos2015. 11. 10. 09:05


FreeRTOS is designed to be small and simple. The kernel itself consists of only three or four C files. To make the code readable, easy to port, and maintainable, it is written mostly in C, but there are a few assembly functions included where needed (mostly in architecture-specific scheduler routines).


Supported architectures

ARM architecture

 ARM7

 ARM9

 ARM Cortex-M0

 ARM Cortex-M0+

 ARM Cortex-M3

 ARM Cortex-M4

 ARM Cortex-A

Atmel

 Atmel AVR

 AVR32

 SAM3

 SAM4

 SAM7

 SAM9

 SAM D20

 SAM L21

Intel

 x86

 8052


[링크 : https://en.wikipedia.org/wiki/FreeRTOS]

[링크 : http://www.freertos.org/]

[링크 : http://sourceforge.net/projects/freertos/]


Linux support

The mainline Linux kernel gained support for OpenRISC in version 3.1.[17] The implementation merged in this release is the 32-bit OpenRISC 1000 family (or1k).[18] Previously OpenRISC 1000 architecture, but this has now been superseded by the mainline port.


RTOS support

A number of real-time operating systems have been ported to OpenRISC, including RTEMS, FreeRTOS and eCos.


QEMU support

Since version 1.2 [19] QEMU supports emulating OpenRISC platforms.


[링크 : https://en.wikipedia.org/wiki/OpenRISC]

[링크 : http://openrisc.io/]

'회사일 > uclinux & rtos' 카테고리의 다른 글

freeRTOS + lwip or freeRTOS+TCP  (0) 2016.01.06
비선점형 마이컴 OS - csrtos  (0) 2015.11.12
uclinux / linux 벤치마킹  (0) 2015.11.11
µC/OS-II  (0) 2015.11.11
uclinux  (0) 2015.11.10
Posted by 구차니

일단 윈7 되면서 SMB2 로 버전이 업되었고

SMB2 부터는 oplock을 끌수 없게 되었다고 한다.


그래서 win7에서 SMB2/3를 사용하지 않고 SMB1으로 강제 한뒤

oplock을 끌수는 있다고 하는데..


The SMBv2 protocol was introduced in Windows Vista and Windows Server 2008. 

The SMBv3 protocol was introduced in Windows 8 and Windows Server 2012.

[링크 : https://support.microsoft.com/en-us/kb/2696547]


일단 윈도우에서 파일 업로드가 안되는 에러가 발생해서 검색해보니

strict locking을 끄라고 해서 해봤더니.. 일단은 됨..(여전히 오래 걸리지만)


$ sudo vi /etc/samba/smb.conf

[global]

strict locking = no




[링크 : http://serverfault.com/...nfs4-mount-directory-window-clients-cannot-copy-file]

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

wins를 이용한 ubuntu에서 samba host 이름 resolve하기  (0) 2016.09.10
삼바 휴지통 vfs_object  (0) 2015.12.08
smbpasswd의 hash generator  (0) 2014.09.22
SMB2  (0) 2013.09.13
samba 폴터 생성시 퍼미션  (0) 2012.12.14
Posted by 구차니
프로그램 사용/doxygen2015. 11. 9. 15:03


$ sudo apt-get install doxygen

$ doxygen -g

$ vi Doxyfile

$ doxygen


[링크 : http://linuxspot.tistory.com/264]

[링크 : http://www.stack.nl/~dimitri/doxygen/manual/config.html]


[링크 : http://egloos.zum.com/wlan/v/10805691]


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

doxygen - 부제 : 독한녀석!  (0) 2010.03.26
Posted by 구차니
Programming/openCV2015. 11. 9. 11:30

되거나


안되거나

OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /usr/src/packages/BUILD/opencv-2.4.1+dfsg/modules/core/src/array.cpp, line 2482

terminate called after throwing an instance of 'cv::Exception'

  what():  /usr/src/packages/BUILD/opencv-2.4.1+dfsg/modules/core/src/array.cpp:2482: error: (-206) Unrecognized or unsupported array type in function cvGetMat 


소스는 간단한데..

구동이 될때도 있고 안될때도 있고.. 머지?


+2015.11.10

생각해보니 mutex 변수는 별도 프로세스에서 공유가 안되니..

실질적으로는 lock이 안되는 걸지도?


$ cat cvmp.cpp

#include <opencv2/core/core.hpp>

#include <opencv2/highgui/highgui.hpp>

#include <iostream>

#include <mutex>

#include <omp.h>


#define WIN_CAPT        "capture"

#define WIN_PROC        "process"

#define WIN_DISP        "display"


using namespace cv;

using namespace std;


Mat vcap;

Mat vproc;

Mat vdisp;


VideoCapture cap;


std::mutex mproc;

std::mutex mdisp;


void init_wiringpi()

{

}


void init_video()

{

        cap.open(0);

        if(cap.isOpened())

        {

                cap.set(CV_CAP_PROP_FRAME_WIDTH, 320);

                cap.set(CV_CAP_PROP_FRAME_HEIGHT, 240);

        }

}


void video_capture()

{

        mproc.lock();

                cap.read(vcap);

               imshow(WIN_CAPT, vcap);

        mproc.unlock();

}


void video_process()

{

        mproc.lock();

                vcap.copyTo(vproc);

        mproc.unlock();

        imshow(WIN_PROC, vproc);

}


void video_display()

{

        mdisp.lock();

                vproc.copyTo(vdisp);

        mdisp.unlock();

        imshow(WIN_DISP, vdisp);

}


int main(int argc, char **argv)

{

        init_wiringpi();

        init_video();


        namedWindow(WIN_CAPT, WINDOW_AUTOSIZE );

        namedWindow(WIN_PROC, WINDOW_AUTOSIZE );


        for(;;)

        {

                #pragma omp parallel sections

                {

                        #pragma omp section

                        {

                                video_capture();

                        }

                        #pragma omp section

                        {

                                video_process();

                        }

                }


                if(waitKey(30) >= 0) break;

        }


        return 0;

} 


아무튼.. 멀티프로세스로 돌아가는 가는데

$ pstree

     ├─sshd─┬─sshd───sshd───bash───cvmp.o───3*[{cvmp.o}]

     │      └─sshd───sshd───bash───pstree


htop 상으로는 그닥.. 분리되는 기분이 안든다고 해야하나...?

top으로 보면 조금 분리되서 cpu를 잡아먹는거 같긴하다.

$ top

top - 11:42:15 up  2:32,  2 users,  load average: 0.62, 0.24, 0.16

Tasks: 111 total,   2 running, 109 sleeping,   0 stopped,   0 zombie

%Cpu0  : 45.3 us,  4.3 sy,  0.0 ni, 47.0 id,  0.0 wa,  0.0 hi,  3.3 si,  0.0 st

%Cpu1  : 11.0 us,  0.3 sy,  0.0 ni, 88.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st

%Cpu2  : 33.1 us,  1.4 sy,  0.0 ni, 65.5 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st

%Cpu3  :  4.0 us,  0.0 sy,  0.0 ni, 95.7 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st

KiB Mem:    883160 total,   182500 used,   700660 free,    19316 buffers

KiB Swap:   102396 total,        0 used,   102396 free,   102840 cached


그나저나 mutex가 제대로 되는진 어떻게 검증하지? ㅠㅠ



+

[링크 : http://what-the-pixel.blogspot.kr/2013/05/getting-started-with-openmp.html]

'Programming > openCV' 카테고리의 다른 글

opencv rtsp  (0) 2016.07.13
openMP + openCV 실패한 이유가..  (0) 2015.11.27
휴 모멘트?  (0) 2015.10.20
opencv 카메라 왜곡 수정  (0) 2015.10.20
opencv sift surf  (0) 2015.10.20
Posted by 구차니
게임/FEZ2015. 11. 8. 22:25

FEZ

음.. 이건 스테이지 개념도 아니고

공략을 적기도 애매한 녀석


아무튼 2D 맵인데 3D로 돌아가는 재미난 게임










































'게임 > FEZ' 카테고리의 다른 글

fez 1회차 끝  (0) 2015.12.20
FEZ 87.5%  (0) 2015.12.15
fez 80.1%...  (0) 2015.12.13
오늘의 FEZ 70.3%  (0) 2015.12.06
FEZ - 약.. 40%? -> 52.7%  (0) 2015.11.29
Posted by 구차니
개소리 왈왈/컴퓨터2015. 11. 8. 21:20

일단.. 하는데 까지 해봐도

영 잘안되는게 현재 상태..


정리를 하자면

82.12 드라이버에 inf 수정한 걸 깔면 모니터의 타블렛 버튼이 안 먹고

Qmenu는 82.12 설치후 시도하면 dll 없다고 배째고

랜카드는 xp용 깔면되고

ti sd 리더도 xp용 깔면되고


카페에서 검색해보니

qmenu -> 82.12 + inf -> 오리지널 xp 드라이버 순으로 순서를 잡으면 될려나?


그리고 홈 프 정도는 되어야 필기장이 존재한다.


걍.. 리눅스로 가봐?

[링크 : http://linuxdeal.com/how-to-ubuntu-10.04-hp-tc1100]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

마음에 들진 않지만...  (0) 2015.12.28
irocks kr-6220 winLock  (0) 2015.12.21
tc1100 분해 및 win10 시도  (0) 2015.11.07
tc1100 분해방법  (0) 2015.11.05
하드 도착!  (0) 2015.11.02
Posted by 구차니
Microsoft/Windows2015. 11. 8. 09:21


설치 후 메모리 측정

유의미하게 메모리 사용량이 차이나진 않는다.

이정도면.. xp나 별반 차이가 없을 지도?


win7 starter


win7 home premium


'Microsoft > Windows' 카테고리의 다른 글

win10 on bash / linux!  (0) 2016.03.31
그래픽 카드 성능 향상...?? system.ini irq  (0) 2016.02.16
win7 starter?  (0) 2015.11.07
IE 보호모드  (0) 2015.09.14
ie 호환성 모드 -_-  (0) 2015.09.10
Posted by 구차니
Microsoft/Windows2015. 11. 7. 22:30

메모리는 약 300메가 먹고 착하긴 한데..

타블렛임에도 불구하고 필기장이 없네?!?!?


+

starter

home basic

에는 필기장이 없고


home premium

부터 필기장이 존재한다.


아래는 스타터에서 필기로 검색한 결과


'Microsoft > Windows' 카테고리의 다른 글

그래픽 카드 성능 향상...?? system.ini irq  (0) 2016.02.16
win7 starter / home premium 메모리 사용량  (0) 2015.11.08
IE 보호모드  (0) 2015.09.14
ie 호환성 모드 -_-  (0) 2015.09.10
윈7 그림판 글꼴 부드럽게 끄기  (0) 2015.06.26
Posted by 구차니