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 구차니
Linux2015. 4. 28. 22:11

기본값으로 컴파일

$ LD_SHOW_AUXV=1 ls

AT_HWCAP:    half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt

AT_PAGESZ:       4096

AT_CLKTCK:       100

AT_PHDR:         0x10034

AT_PHENT:        32

AT_PHNUM:        9

AT_BASE:         0x76fae000

AT_FLAGS:        0x0

AT_ENTRY:        0x13a6d

AT_UID:          1000

AT_EUID:         1000

AT_GID:          1000

AT_EGID:         1000

AT_SECURE:       0

AT_RANDOM:       0x7eb85e2f

AT_HWCAP2:       0x0

AT_EXECFN:       /bin/ls

AT_PLATFORM:     v7l 


menuconfig 에서 NEON 제거

    *** At least one emulation must be selected ***

[*] VFP-format floating point maths                

[ ]   Advanced SIMD (NEON) Extension support     


cpu 플래그 확인 결과 neon 빠짐

$ LD_SHOW_AUXV=1 ls

AT_HWCAP:    half thumb fastmult vfp edsp vfpv3 tls vfpv4 idiva idivt

AT_PAGESZ:       4096

AT_CLKTCK:       100

AT_PHDR:         0x10034

AT_PHENT:        32

AT_PHNUM:        9

AT_BASE:         0x76f84000

AT_FLAGS:        0x0

AT_ENTRY:        0x13a6d

AT_UID:          1000

AT_EUID:         1000

AT_GID:          1000

AT_EGID:         1000

AT_SECURE:       0

AT_RANDOM:       0x7edf9e2f

AT_HWCAP2:       0x0

AT_EXECFN:       /bin/ls

AT_PLATFORM:     v7l 


일단은.. 라즈베리에서는 cpuinfo 에서도 neon이 빠지긴 한다.

$ cat /proc/cpuinfo

processor       : 0

model name      : ARMv7 Processor rev 5 (v7l)

BogoMIPS        : 38.40

Features        : half thumb fastmult vfp edsp vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm

CPU implementer : 0x41

CPU architecture: 7

CPU variant     : 0x0

CPU part        : 0xc07

CPU revision    : 5 


'Linux' 카테고리의 다른 글

insmod / modprobe 차이  (0) 2015.08.25
리눅스 device tree  (0) 2015.04.29
쓰레드 / 프로세스  (0) 2015.04.27
리눅스 1분만에 커널 빌드하기  (0) 2015.04.06
리눅스 무선랜 유틸리티 - iwlist iwconfig  (0) 2015.03.03
Posted by 구차니
Linux2015. 4. 27. 09:26

쓰레드와 프로세스의 context switch 개념에서의 차이점


프로세스는 code / data / heap / stack 모두 스위칭

쓰레드는 stack만 스위칭


[링크 : http://egloos.zum.com/sweeper/v/2815395]


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

[링크 : http://en.wikipedia.org/wiki/Thread_(computing)]

Posted by 구차니
Linux/Ubuntu2015. 4. 10. 14:44

Celeron G1610은 그래도.. 2013년 1분기에 나온건데..

벌써 하드웨어 지원 단종이라니?!


[링크 : http://ark.intel.com/ko/products/71072/Intel-Celeron-Processor-G1610-2M-Cache-2_60-GHz]



Your current Hardware Enablement Stack (HWE) is no longer supported

since 2014-08-07.  Security updates for critical parts (kernel and graphics stack) of your system are no longer available.


For more information, please see:

http://wiki.ubuntu.com/1204_HWE_EOL


There is a graphics stack installed on this system. An upgrade to a

supported (or longer supported) configuration will become available

on 2014-07-16 and can be invoked by running 'update-manager' in the Dash.


$ cat /proc/cpuinfo

processor       : 0

vendor_id       : GenuineIntel

cpu family      : 6

model           : 58

model name      : Intel(R) Celeron(R) CPU G1610 @ 2.60GHz

stepping        : 9

microcode       : 0x12

cpu MHz         : 1600.000

cache size      : 2048 KB

physical id     : 0

siblings        : 2

core id         : 0

cpu cores       : 2

apicid          : 0

initial apicid  : 0

fpu             : yes

fpu_exception   : yes

cpuid level     : 13

wp              : yes

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer xsave lahf_lm arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips        : 5188.23

clflush size    : 64

cache_alignment : 64

address sizes   : 36 bits physical, 48 bits virtual

power management: 


음.. 자세히 보니.. 전체 단종은 아니고 12.04에서의 단종이려나?

아무튼.. 12.04도 오래되었고 하니 슬슬 지원을 끊어서 12.04 자체를 단종하긴 해야하니까..


What to do if I'm affected?

You have three options:


Install 12.04.5 HWE (Trusty kernel/graphics)

Upgrade to 14.04 LTS

Fresh install of 14.04 LTS

[링크 : https://wiki.ubuntu.com/1204_HWE_EOL]



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

lubuntu xbuntu mate 메모리 사용량 (live)  (2) 2015.08.12
ubuntu mate  (0) 2015.07.28
sudo: unable to resolve host  (0) 2015.03.26
xming / gconf / putty 실행불가  (2) 2015.02.24
apt-file  (0) 2015.02.13
Posted by 구차니
Linux2015. 4. 6. 16:52

한줄요약

The Intel Core i7 3960X Extreme Edition 을 사면 1분에 빌드 할수 있어요!


[링크 : http://www.phoronix.com/scan.php?page=news_item&px=MTAyNjU]

'Linux' 카테고리의 다른 글

커널 컴파일 옵션 neon 과 cpu feature  (0) 2015.04.28
쓰레드 / 프로세스  (0) 2015.04.27
리눅스 무선랜 유틸리티 - iwlist iwconfig  (0) 2015.03.03
리눅스 디스크 복구 / 파티션 복구  (0) 2015.02.12
LD_SHOW_AUXV  (0) 2015.02.10
Posted by 구차니