Linux/Ubuntu2015. 10. 8. 15:14

opencv 3.0.0을 빌드해서 올렸다.. 다시 돌릴려는데 영 안되네..



$ pkg-config opencv --libs

-L/usr/local/lib -lopencv_calib3d -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_hal -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_video -lopencv_videoio -lopencv_videostab



$ sudo find / -name "*.pc" | grep opencv

/home/pi/src/openCV/opencv-3.0.0/build/unix-install/opencv.pc

/usr/lib/pkgconfig/opencv.pc

/usr/local/lib/pkgconfig/opencv.pc


$ sudo mv /usr/local/lib/pkgconfig/opencv.pc /usr/local/lib/pkgconfig/opencv.pc.bak


$ sudo ldconfig


$ pkg-config opencv --libs

-lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_ts -lopencv_video -lopencv_videostab




정보는 바뀌는데 정작 빌드 하면 이상하게 된다.. ㅠㅠ

'Linux > Ubuntu' 카테고리의 다른 글

으악 lubuntu 였지 ㅋㅋㅋ  (0) 2015.12.30
우분투 hibernate(최대절전) / suspend(절전)  (0) 2015.12.29
htop 색상의미  (0) 2015.10.08
ubuntu 스크린샷(캡쳐) 프로그램  (0) 2015.09.22
우분투 시스템 온도 측정  (0) 2015.08.15
Posted by 구차니
Linux/Ubuntu2015. 10. 8. 10:28

그냥 부하가 걸리는건줄 알았는데 아니구나...


Default mode

Blue: low priority processes (nice > 0)

Green: normal (user) processes

Red: kernel time (kernel, iowait, irqs...)

Orange: virt time (steal time + guest time)


Detailed mode

Blue: low priority threads (nice > 0)

Green: normal (user) processes

Red: system processes

Orange: IRQ time

Magenta: Soft IRQ time

Grey: IO Wait time

Cyan: Steal time

Cyan: Guest time


Memory meters are more straightforward:

Green: Used memory pages

Blue: Buffer pages

Orange: Cache pages


[링크 : http://serverfault.com/questions/180711/what-exactly-do-the-colors-in-htop-status-bars-mean]

'Linux > Ubuntu' 카테고리의 다른 글

우분투 hibernate(최대절전) / suspend(절전)  (0) 2015.12.29
pkg-config  (0) 2015.10.08
ubuntu 스크린샷(캡쳐) 프로그램  (0) 2015.09.22
우분투 시스템 온도 측정  (0) 2015.08.15
우분투 모니터 없이 부팅하기  (0) 2015.08.15
Posted by 구차니
Linux/Ubuntu2015. 9. 22. 08:50

라즈베리에 까는데

용량들이 왜케 후덜덜 한거야...


f-spot은 사진 관리용이지.. 스샷은 안되고

shutter는 깔기만 했는데 용량이 ㅎㄷㄷ하게 깔려서 패스

gimp는 캡쳐하나 하자고 포토샾 까는 꼴이고..

그나마 무난하고 만만한건 gnome-screenshot(용량적고 강추)

[링크 : http://askubuntu.com/questions/6558/what-screenshot-tools-are-available]

    [링크 : http://packages.ubuntu.com/search?keywords=gnome-screenshot]

'Linux > Ubuntu' 카테고리의 다른 글

pkg-config  (0) 2015.10.08
htop 색상의미  (0) 2015.10.08
우분투 시스템 온도 측정  (0) 2015.08.15
우분투 모니터 없이 부팅하기  (0) 2015.08.15
lubuntu xbuntu mate 메모리 사용량 (live)  (2) 2015.08.12
Posted by 구차니
Linux2015. 9. 3. 16:01

2009년 부터 개발되어 오기 시작한 녀석..

[링크 : https://archive.fosdem.org/2012/schedule/event/693/127_iio-a-new-subsystem.pdf]

 

sysfs나 캐릭터 디바이스로 하드웨어와 통신을 하기 위한 인터페이스(?)라고 하면 되나..

아무튼 온도 센서 등과 같은 gpio를 이용하는 비표준 통신 장비들과(그래서 I2C 이런것과 달리 Industrial이라고 한 듯)

통신을 할 수 있도록 해주는 것으로 보이는 sub-system 이다.

 

 

[링크 : http://wiki.analog.com/software/linux/docs/iio/iio]

 

+

2022.06.20

[링크 : https://www.kernel.org/doc/html/v4.12/driver-api/iio/index.html]

'Linux' 카테고리의 다른 글

iotop  (0) 2016.01.19
리눅스에서 메모리 뱅크 확인하기  (0) 2015.10.30
insmod / modprobe 차이  (0) 2015.08.25
리눅스 device tree  (0) 2015.04.29
커널 컴파일 옵션 neon 과 cpu feature  (0) 2015.04.28
Posted by 구차니
Linux2015. 8. 25. 11:34

굳이 차이점이라면...

insmod는 파일을 이용해서 올리고

modprobe는 모듈 이름을 이용해서 올리고 정도?



pi@raspberrypi ~ $ which modprobe

/sbin/modprobe

pi@raspberrypi ~ $ which insmod

/sbin/insmod

pi@raspberrypi ~ $ ls -al /sbin/modprobe

lrwxrwxrwx 1 root root 9  4월 29  2013 /sbin/modprobe -> /bin/kmod

pi@raspberrypi ~ $ ls -al /sbin/insmod

lrwxrwxrwx 1 root root 9  4월 29  2013 /sbin/insmod -> /bin/kmod



insmod

insmod [ filename ] [ module options... ]

insmod is a trivial program to insert a module into the kernel: if the filename is a hyphen, the module is taken from standard input. Most users will want to use modprobe(8) instead, which is more clever.

[링크 : http://linux.die.net/man/8/insmod]


modprobe

modprobe [ -v ] [ -V ] [ -C config-file ] [ -n ] [ -i ] [ -q ] [ -b ] [ -o modulename ] [ modulename ] [ module parameters... ]

modprobe intelligently adds or removes a module from the Linux kernel: note that for convenience, there is no difference between _ and - in module names. modprobe looks in the module directory /lib/modules/'uname -r' for all the modules and other files, except for the optional /etc/modprobe.conf configuration file and /etc/modprobe.d directory (see modprobe.conf(5)). modprobe will also use module options specified on the kernel command line in the form of <module>.<option>.

[링크 : http://linux.die.net/man/8/modprobe]


[링크 : http://www.readysystem.co.kr/ready/bbs/board.php?bo_table=tech_linux&wr_id=36&page=5]

'Linux' 카테고리의 다른 글

리눅스에서 메모리 뱅크 확인하기  (0) 2015.10.30
IIO - Industrial I/O  (2) 2015.09.03
리눅스 device tree  (0) 2015.04.29
커널 컴파일 옵션 neon 과 cpu feature  (0) 2015.04.28
쓰레드 / 프로세스  (0) 2015.04.27
Posted by 구차니
Linux/Ubuntu2015. 8. 15. 17:43

아니.. 왜 이걸 아직가지 적은적이 없지? 그럴리가 없을텐데? ㄷㄷㄷ


$ sudo apt-cache search lm-sensor

libsensors4 - library to read temperature/voltage/fan sensors

libsensors4-dev - lm-sensors development kit

fancontrol - utilities to read temperature/voltage/fan sensors

lm-sensors - utilities to read temperature/voltage/fan sensors

mate-sensors-applet - Display readings from hardware sensors in your MATE panel

mrtgutils-sensors - Utilities to generate statistics for mrtg (from lm-sensors)

nagios-plugins-contrib - Plugins for nagios compatible monitoring systems

phpsysinfo - PHP based host information

psensor - display graphs for monitoring hardware temperature

psensor-server - Psensor server for monitoring hardware sensors remotely

sensord - hardware sensor information logging daemon

sensors-applet - Display readings from hardware sensors in your Gnome panel

xfce4-goodies - enhancements for the Xfce4 Desktop Environment


$ sudo apt-get install lm-sensors


$ sensors

k8temp-pci-00c3

Adapter: PCI adapter

Core0 Temp:   +91.0°C

Core0 Temp:   +88.0°C

Core1 Temp:   +67.0°C

Core1 Temp:   +79.0°C


$ sensors

k8temp-pci-00c3

Adapter: PCI adapter

Core0 Temp:  +102.0°C

Core0 Temp:  +100.0°C

Core1 Temp:   +74.0°C

Core1 Temp:   +91.0°C


헐.. 듀얼 코어이긴 한데.. 왜 Core0/1이 각각 두번씩 나오지? ㄷㄷㄷ
그나저나 이 온도 믿을만 한거 맞나? ㄷㄷㄷ

[링크 : http://www.lm-sensors.org/]

[링크 : https://help.ubuntu.com/community/SensorInstallHowto]

'Linux > Ubuntu' 카테고리의 다른 글

htop 색상의미  (0) 2015.10.08
ubuntu 스크린샷(캡쳐) 프로그램  (0) 2015.09.22
우분투 모니터 없이 부팅하기  (0) 2015.08.15
lubuntu xbuntu mate 메모리 사용량 (live)  (2) 2015.08.12
ubuntu mate  (0) 2015.07.28
Posted by 구차니
Linux/Ubuntu2015. 8. 15. 17:08

먼가.. 예전보다 간단해졌다?


$ sudo apt-get install xserver-xorg-video-dummy

$ sudo vi /etc/X11/xorg.conf

Section "Device"

    Identifier  "Configured Video Device"

    Driver      "dummy"

EndSection


Section "Monitor"

    Identifier  "Configured Monitor"

    HorizSync 31.5-48.5

    VertRefresh 50-70

EndSection


Section "Screen"

    Identifier  "Default Screen"

    Monitor     "Configured Monitor"

    Device      "Configured Video Device"

    DefaultDepth 24

    SubSection "Display"

    Depth 24

    Modes "1024x768"

    EndSubSection

EndSection


엥? 안되는데? ㅠㅠ


[링크 : http://askubuntu.com/questions/453109/ubuntu-14-04-add-fake-display-when-no-monitor-is-plugged-in]

[링크 : http://blog.mediafederation.com/andy-hawkins/ubuntu-headless-vnc-vesa-800x600-fix/]


에라이.. 그냥 메모리도 적게 먹고 좋네

걍 냅두자 ㅋㅋㅋㅋ


2012/06/02 - [Linux/Ubuntu] - ubuntu 12.10 에서 모니터 없이 부팅시키기


'Linux > Ubuntu' 카테고리의 다른 글

ubuntu 스크린샷(캡쳐) 프로그램  (0) 2015.09.22
우분투 시스템 온도 측정  (0) 2015.08.15
lubuntu xbuntu mate 메모리 사용량 (live)  (2) 2015.08.12
ubuntu mate  (0) 2015.07.28
Ubuntu 12.04 LTS G1610 CPU 지원 종료  (0) 2015.04.10
Posted by 구차니
Linux/Ubuntu2015. 8. 12. 10:02

일단은 lubuntu(LXDE)가 xubuntu(XFCE)/ubuntu mate(GNOME2) 보다 300메가 정도 메모리를 덜 먹는다.

어짜피 둘다 ubuntu 기반이니 원하는대로 바꾸다 보면 그게 그거일지도 모르겠지만

윈도 매니저 자체는 꽤 차이가 난다.


lubuntu - 700MB


xubuntu - 1GB


mate - 1GB



음.. 순정 unity가 메모리는 가장 적게 먹으나 느려 터졌으니.. LXDE가 나으려나?

2014/06/14 - [Linux/Ubuntu] - Ubuntu 14.04 LTS desktop 64bit edition


'Linux > Ubuntu' 카테고리의 다른 글

우분투 시스템 온도 측정  (0) 2015.08.15
우분투 모니터 없이 부팅하기  (0) 2015.08.15
ubuntu mate  (0) 2015.07.28
Ubuntu 12.04 LTS G1610 CPU 지원 종료  (0) 2015.04.10
sudo: unable to resolve host  (0) 2015.03.26
Posted by 구차니
Linux/Ubuntu2015. 7. 28. 15:35

메이트라고 해야하나.. 마테라고 해야하나?

일종의 데스크탑 환경이라 페도라에서도 우분투에서도 패키지 설치로 변경이 가능하다고 한다.

[링크 : http://sergeswin.com/1062]


어? 라즈베리 파이도 지원 ㅋㅋ 호감도 상승중

Ubuntu MATE 15.04 is also available for the Raspberry Pi 2.

[링크 : https://ubuntu-mate.org/raspberry-pi/]


[링크 : https://ubuntu-mate.org/]

Posted by 구차니
Linux2015. 4. 29. 10:06

디바이스 트리는

하드웨어 종속적인 부분(GPIO/timer 등등)을 커널에서 분리시켜 별도의 파일로 관리하는 것으로

기존의 board_*.c 파일을 대체하는 기술이다.


ARM 커널 패치등이 워낙 오래걸려 메인 트리를 적용하는데 오래 걸리다 보니 이런식으로 분리하는데

2013년 정도 부터 적용되었고 그 이전에 2년 정도 코드를 정리하는데 시간이 소요된 것으로 보인다.

그래서 imx6 시리즈 와 같이 2013년 이후 SoC 들에 대한 권장사항으로 device tree를 사용하도록 한다.


[링크 : http://www.devicetree.org/Main_Page]

[링크 : http://en.wikipedia.org/wiki/Device_tree]

    [링크 : http://www.elinux.org/images/a/ad/Arm-soc-checklist.pdf]


dtc는 device tree compiler로

텍스트 파일을 바이너리로 컴파일 해주며 일종의.. 구조체로 변환하는 느낌이다.

[링크 : https://git.kernel.org/cgit/utils/dtc/dtc.git]

[링크 : http://forum.falinux.com/zbxe/index.php?document_srl=613440&mid=lecture_tip]


fdtdump 를 통해서 바이너리의 내용을 덤프 할 수 있다.

$ dtc -@ -I dts -O dtb -o 1st-overlay.dtb 1st-overlay.dts

$ fdtdump 1st-overlay.dtb


/dts-v1/;

// magic:           0xd00dfeed

// totalsize:       0x106 (262)

// off_dt_struct:   0x38

// off_dt_strings:  0xe8

// off_mem_rsvmap:  0x28

// version:         17

// last_comp_version:    16

// boot_cpuid_phys: 0x0

// size_dt_strings: 0x1e

// size_dt_struct:  0xb0


/ {

    compatible = "brcm,bcm2708";

    fragment@0 {

        target = <0xdeadbeef>;

        __overlay__ {

            status = "okay";

        };

    };

    __fixups__ {

        i2s = "/fragment@0:target:0";

    };

};


[링크 : https://www.raspberrypi.org/documentation/configuration/device-tree.md] 


'Linux' 카테고리의 다른 글

IIO - Industrial I/O  (2) 2015.09.03
insmod / modprobe 차이  (0) 2015.08.25
커널 컴파일 옵션 neon 과 cpu feature  (0) 2015.04.28
쓰레드 / 프로세스  (0) 2015.04.27
리눅스 1분만에 커널 빌드하기  (0) 2015.04.06
Posted by 구차니