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

  1. 2015.11.11 uclinux / linux 벤치마킹
  2. 2015.11.11 axf to bin 6
  3. 2015.11.11 µC/OS-II
  4. 2015.11.10 openMP lock/unlock
  5. 2015.11.10 uclinux
  6. 2015.11.10 freeRTOS / OpenRISC
  7. 2015.11.09 samba - nfs - samba 0x80070021 오류
  8. 2015.11.09 doxygen
  9. 2015.11.09 openMP + openCV 미스테리..
  10. 2015.11.08 FEZ
회사일/uclinux & rtos2015. 11. 11. 11:12

ppt 에 추가된 내용으로

부팅 시간이

linux 2.6.7 - 437.11

uclinux 2.6.7 - 415.16

으로 22초 정도 단축된다.


context switching 에 소요되는 시간인

linux - avg 110us

uclinux - avg 20us

에 비하면... 의외로 미미한 수준?


MMU 지원을 받지 못해 소스를 수정해야 하는 오버헤드를 생각하면

그리 큰 성능향상이라고 하긴 그럴 듯..


[링크 : http://bit.sparcs.org/~gangster/publication/uc_linux_fall.ppt]

[링크 : http://opensrc.sec.samsung.com/document/uc-linux-04_sait.pdf]

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

freeRTOS + lwip or freeRTOS+TCP  (0) 2016.01.06
비선점형 마이컴 OS - csrtos  (0) 2015.11.12
µC/OS-II  (0) 2015.11.11
uclinux  (0) 2015.11.10
freeRTOS / OpenRISC  (0) 2015.11.10
Posted by 구차니
embeded/Cortex-M3 Ti2015. 11. 11. 09:54

BIN30과 obj/sample.*은

버전과 프로젝트에 맞춰 넣어주어야 한다.


C:/Keil/ARM/BIN30/fromelf.exe --output obj/sample.bin --bin obj/sample.axf


[링크 : https://e2e.ti.com/support/microcontrollers/stellaris_arm/f/471/t/45884]

'embeded > Cortex-M3 Ti' 카테고리의 다른 글

lm3s811 / lm31968 adc 사양비교  (0) 2015.11.17
ADC 샘플 시퀀서...  (0) 2015.11.17
lm3s1607 / lm3s811 비교  (0) 2015.11.03
bitband 고찰..  (0) 2015.10.23
lm3s617 stepper rdk  (0) 2015.10.13
Posted by 구차니
회사일/uclinux & rtos2015. 11. 11. 08:39


[링크 : http://micrium.com/rtos/ucosii/overview/]

[링크 : https://www.csie.ntu.edu.tw/~d6526009/ucOS2/Chapter-1.pdf]


+

[링크 : http://repilria.tistory.com/382]

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

freeRTOS + lwip or freeRTOS+TCP  (0) 2016.01.06
비선점형 마이컴 OS - csrtos  (0) 2015.11.12
uclinux / linux 벤치마킹  (0) 2015.11.11
uclinux  (0) 2015.11.10
freeRTOS / OpenRISC  (0) 2015.11.10
Posted by 구차니
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 구차니