embeded/raspberry pi2016. 12. 16. 15:08

테스트 해보니.. maxcpus는 작동하지 않는듯


# replace N with the number of cores you want to keep using

maxcpus=N 

[링크 : http://raspberrypi.stackexchange.com/questions/32562/how-to-make-the-raspberry-pi-consume-less-power]


arm_freq Frequency of the ARM CPU in MHz. The default value is 700.

core_freq Frequency of the GPU processor core in MHz. It has an impact on CPU performance, since it drives the L2 cache. The default value is 250.

sdram_freq Frequency of the SDRAM in MHz. The default value is 400.


gpu_freq Sets core_freq, h264_freq, isp_freq, and  v3d_freq together. The default value is 250.

h264_freq Frequency of the hardware video block in MHz. The default value is 250.

isp_freq Frequency of the image sensor pipeline block in MHz. The default value is 250.

v3d_freq Frequency of the 3D block in MHz. The default value is 250.


arm_freq_min Minimum value of arm_freq used for dynamic frequency clocking. The default value is 700.

core_freq_min Minimum value of core_freq used for dynamic frequency clocking. The default value is 250.

sdram_freq_min Minimum value of sdram_freq used for dynamic frequency clocking. The default value is 400.


[링크 : https://www.raspberrypi.org/documentation/configuration/config-txt.md]

[링크 : http://raspberrypi.stackexchange.com/questions/23442/raspberry-pi-b-cpu-clock-manipulation]

[링크 : http://raspberrypi.stackexchange.com/questions/41517/low-enery-consumption-kernel]


+

길어서 cpu 1,2,3은 삭제

$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.


$ cat /boot/config.txt

#uncomment to overclock the arm. 700 MHz is the default.

#arm_freq=800

arm_freq_min=300


길어서 cpu 1,2,3은 삭제


$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 300 MHz - 900 MHz

  available frequency steps: 300 MHz, 900 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 300 MHz and 900 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 300 MHz.

  cpufreq stats: 300 MHz:16.33%, 900 MHz:83.67%  (7)


$ cat /boot/config.txt

arm_freq=600

arm_freq_min=100


$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 100.0 MHz - 600 MHz

  available frequency steps: 100.0 MHz, 600 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 100.0 MHz and 600 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.

  cpufreq stats: 100.0 MHz:0.00%, 600 MHz:100.00% 


테스트 해보니.. 0.04W 감소 월(30일)기준 28.8W 절약... 이라고 해야하나?

100MHz 1.70W -> 1.66W

Posted by 구차니
embeded/raspberry pi2016. 11. 3. 11:32

odroid랑 비교용


HDMI  연결 안하고 

$ cat /var/log/Xorg.0.log

[    12.115]

X.Org X Server 1.17.2

Release Date: 2015-06-16

[    12.115] X Protocol Version 11, Revision 0

[    12.115] Build Operating System: Linux 3.8.11-2-ARCH armv7l Raspbian

[    12.116] Current Operating System: Linux raspberrypi 4.4.21-v7+ #911 SMP Thu Sep 15 14:22:38 BST 2016 armv7l

[    12.116] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa21041 bcm2709.serial=0xd6f44150 smsc95xx.macaddr=B8:27:EB:F4:41:50 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

[    12.117] Build Date: 11 January 2016  01:32:44PM

[    12.117] xorg-server 2:1.17.2-1+rpi1 (http://www.debian.org/support)

[    12.117] Current version of pixman: 0.33.3

[    12.117]    Before reporting problems, check http://wiki.x.org

        to make sure that you have the latest version.

[    12.117] Markers: (--) probed, (**) from config file, (==) default setting,

        (++) from command line, (!!) notice, (II) informational,

        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.

[    12.118] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Oct 18 23:41:41 2016

[    12.168] (==) Using system config directory "/usr/share/X11/xorg.conf.d"

[    12.183] (==) No Layout section.  Using the first Screen section.

[    12.183] (==) No screen section available. Using defaults.

[    12.183] (**) |-->Screen "Default Screen Section" (0)

[    12.184] (**) |   |-->Monitor "<default monitor>"

[    12.190] (==) No device specified for screen "Default Screen Section".

        Using the first device section listed.

[    12.190] (**) |   |-->Device "Allwinner A10/A13 FBDEV"

[    12.190] (==) No monitor specified for screen "Default Screen Section".

        Using a default monitor configuration.

[    12.191] (==) Automatically adding devices

[    12.191] (==) Automatically enabling devices

[    12.191] (==) Automatically adding GPU devices

[    12.202] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.

[    12.202]    Entry deleted from font path.

[    12.202] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.

[    12.202]    Entry deleted from font path.

[    12.208] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.

[    12.208]    Entry deleted from font path.

[    12.218] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.

[    12.219]    Entry deleted from font path.

[    12.219] (==) FontPath set to:

        /usr/share/fonts/X11/100dpi/:unscaled,

        /usr/share/fonts/X11/Type1,

        /usr/share/fonts/X11/100dpi,

        built-ins

[    12.219] (==) ModulePath set to "/usr/lib/xorg/modules"

[    12.219] (II) The server relies on udev to provide the list of input devices.

        If no devices become available, reconfigure udev or disable AutoAddDevices.

[    12.219] (II) Loader magic: 0x54cf1f00

[    12.219] (II) Module ABI versions:

[    12.219]    X.Org ANSI C Emulation: 0.4

[    12.219]    X.Org Video Driver: 19.0

[    12.219]    X.Org XInput driver : 21.0

[    12.219]    X.Org Server Extension : 9.0

[    12.220] (II) no primary bus or device found

[    12.222] (II) LoadModule: "glx"

[    12.227] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so

[    12.323] (II) Module glx: vendor="X.Org Foundation"

[    12.323]    compiled for 1.17.2, module version = 1.0.0

[    12.323]    ABI class: X.Org Server Extension, version 9.0

[    12.323] (==) AIGLX enabled

[    12.323] (II) LoadModule: "fbturbo"

[    12.340] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so

[    12.346] (II) Module fbturbo: vendor="X.Org Foundation"

[    12.346]    compiled for 1.17.2, module version = 0.5.1

[    12.346]    Module class: X.Org Video Driver

[    12.346]    ABI class: X.Org Video Driver, version 19.0

[    12.346] (II) FBTURBO: driver for framebuffer: fbturbo

[    12.347] (++) using VT number 7


[    12.361] (WW) Falling back to old probe method for fbturbo

[    12.361] (II) Loading sub module "fbdevhw"

[    12.361] (II) LoadModule: "fbdevhw"

[    12.363] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so

[    12.367] (II) Module fbdevhw: vendor="X.Org Foundation"

[    12.367]    compiled for 1.17.2, module version = 0.0.2

[    12.367]    ABI class: X.Org Video Driver, version 19.0

[    12.367] (II) FBTURBO(0): using /dev/fb0

[    12.367] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support

[    12.368] (II) FBTURBO(0): Creating default Display subsection in Screen section

        "Default Screen Section" for depth/fbbpp 24/32

[    12.368] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32

[    12.368] (==) FBTURBO(0): RGB weight 888

[    12.368] (==) FBTURBO(0): Default visual is TrueColor

[    12.368] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)

[    12.368] (II) FBTURBO(0): hardware: BCM2708 FB (video memory: 1066kB)

[    12.369] (**) FBTURBO(0): Option "fbdev" "/dev/fb0"

[    12.369] (**) FBTURBO(0): Option "SwapbuffersWait" "true"

[    12.370] (II) FBTURBO(0): processor: ARM Cortex-A7

[    12.370] (II) FBTURBO(0): checking modes against framebuffer device...

[    12.370] (II) FBTURBO(0): checking modes against monitor...

[    12.371] (--) FBTURBO(0): Virtual size is 656x416 (pitch 656)

[    12.371] (**) FBTURBO(0):  Built-in mode "current"

[    12.371] (==) FBTURBO(0): DPI set to (96, 96)

[    12.371] (II) Loading sub module "fb"

[    12.371] (II) LoadModule: "fb"

[    12.371] (II) Loading /usr/lib/xorg/modules/libfb.so

[    12.392] (II) Module fb: vendor="X.Org Foundation"

[    12.392]    compiled for 1.17.2, module version = 1.0.0

[    12.393]    ABI class: X.Org ANSI C Emulation, version 0.4

[    12.393] (==) Depth 24 pixmap format is 32 bpp

[    12.427] (II) FBTURBO(0): using backing store heuristics

[    12.447] (II) FBTURBO(0): can't load 'g2d_23' kernel module

[    12.448] (II) FBTURBO(0): failed to enable the use of sunxi display controller

[    12.448] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)

[    12.460] (II) FBTURBO(0): G2D hardware acceleration can't be enabled

[    12.460] (II) FBTURBO(0): enabled fbdev copyarea acceleration

[    12.460] (==) FBTURBO(0): Backing store enabled

[    12.473] (==) FBTURBO(0): DPMS enabled

[    12.473] (II) FBTURBO(0): failed to enable hardware cursor

[    12.473] (II) FBTURBO(0): no 3D acceleration because the driver has been compiled without libUMP

[    12.473] (II) FBTURBO(0): if this is wrong and needs to be fixed, please check ./configure log

[    12.473] (==) RandR enabled

[    12.674] (II) SELinux: Disabled on system

[    12.686] (II) AIGLX: Screen 0 is not DRI2 capable

[    12.686] (EE) AIGLX: reverting to software rendering

[    14.446] (II) AIGLX: Loaded and initialized swrast

[    14.446] (II) GLX: Initialized DRISWRAST GL provider for screen 0 


HDMI 연결하고

연결하나 안하나 같이 software rendering으로 가는 듯?

$ cat /var/log/Xorg.0.log

[    13.967]

X.Org X Server 1.17.2

Release Date: 2015-06-16

[    13.967] X Protocol Version 11, Revision 0

[    13.967] Build Operating System: Linux 3.8.11-2-ARCH armv7l Raspbian

[    13.968] Current Operating System: Linux raspberrypi 4.4.21-v7+ #911 SMP Thu Sep 15 14:22:38 BST 2016 armv7l

[    13.968] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2709.boardrev=0xa21041 bcm2709.serial=0xd6f44150 smsc95xx.macaddr=B8:27:EB:F4:41:50 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

[    13.968] Build Date: 11 January 2016  01:32:44PM

[    13.968] xorg-server 2:1.17.2-1+rpi1 (http://www.debian.org/support)

[    13.968] Current version of pixman: 0.33.3

[    13.968]    Before reporting problems, check http://wiki.x.org

        to make sure that you have the latest version.

[    13.968] Markers: (--) probed, (**) from config file, (==) default setting,

        (++) from command line, (!!) notice, (II) informational,

        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.

[    13.969] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Nov  3 11:34:29 2016

[    13.984] (==) Using system config directory "/usr/share/X11/xorg.conf.d"

[    13.988] (==) No Layout section.  Using the first Screen section.

[    13.989] (==) No screen section available. Using defaults.

[    13.989] (**) |-->Screen "Default Screen Section" (0)

[    13.989] (**) |   |-->Monitor "<default monitor>"

[    13.995] (==) No device specified for screen "Default Screen Section".

        Using the first device section listed.

[    13.995] (**) |   |-->Device "Allwinner A10/A13 FBDEV"

[    13.996] (==) No monitor specified for screen "Default Screen Section".

        Using a default monitor configuration.

[    13.996] (==) Automatically adding devices

[    13.996] (==) Automatically enabling devices

[    13.996] (==) Automatically adding GPU devices

[    14.007] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.

[    14.008]    Entry deleted from font path.

[    14.008] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.

[    14.008]    Entry deleted from font path.

[    14.010] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.

[    14.010]    Entry deleted from font path.

[    14.020] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.

[    14.021]    Entry deleted from font path.

[    14.021] (==) FontPath set to:

        /usr/share/fonts/X11/100dpi/:unscaled,

        /usr/share/fonts/X11/Type1,

        /usr/share/fonts/X11/100dpi,

        built-ins

[    14.021] (==) ModulePath set to "/usr/lib/xorg/modules"

[    14.021] (II) The server relies on udev to provide the list of input devices.

        If no devices become available, reconfigure udev or disable AutoAddDevices.

[    14.021] (II) Loader magic: 0x54d09f00

[    14.021] (II) Module ABI versions:

[    14.021]    X.Org ANSI C Emulation: 0.4

[    14.021]    X.Org Video Driver: 19.0

[    14.021]    X.Org XInput driver : 21.0

[    14.021]    X.Org Server Extension : 9.0

[    14.022] (II) no primary bus or device found

[    14.025] (II) LoadModule: "glx"

[    14.029] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so

[    14.121] (II) Module glx: vendor="X.Org Foundation"

[    14.121]    compiled for 1.17.2, module version = 1.0.0

[    14.121]    ABI class: X.Org Server Extension, version 9.0

[    14.121] (==) AIGLX enabled

[    14.122] (II) LoadModule: "fbturbo"

[    14.125] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so

[    14.130] (II) Module fbturbo: vendor="X.Org Foundation"

[    14.131]    compiled for 1.17.2, module version = 0.5.1

[    14.131]    Module class: X.Org Video Driver

[    14.131]    ABI class: X.Org Video Driver, version 19.0

[    14.131] (II) FBTURBO: driver for framebuffer: fbturbo

[    14.131] (++) using VT number 7


[    14.165] (WW) Falling back to old probe method for fbturbo

[    14.165] (II) Loading sub module "fbdevhw"

[    14.165] (II) LoadModule: "fbdevhw"

[    14.166] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so

[    14.171] (II) Module fbdevhw: vendor="X.Org Foundation"

[    14.172]    compiled for 1.17.2, module version = 0.0.2

[    14.172]    ABI class: X.Org Video Driver, version 19.0

[    14.172] (II) FBTURBO(0): using /dev/fb0

[    14.172] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support

[    14.172] (II) FBTURBO(0): Creating default Display subsection in Screen section

        "Default Screen Section" for depth/fbbpp 24/32

[    14.172] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32

[    14.172] (==) FBTURBO(0): RGB weight 888

[    14.173] (==) FBTURBO(0): Default visual is TrueColor

[    14.173] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)

[    14.173] (II) FBTURBO(0): hardware: BCM2708 FB (video memory: 8100kB)

[    14.173] (**) FBTURBO(0): Option "fbdev" "/dev/fb0"

[    14.173] (**) FBTURBO(0): Option "SwapbuffersWait" "true"

[    14.174] (II) FBTURBO(0): processor: ARM Cortex-A7

[    14.174] (II) FBTURBO(0): checking modes against framebuffer device...

[    14.174] (II) FBTURBO(0): checking modes against monitor...

[    14.174] (--) FBTURBO(0): Virtual size is 1920x1080 (pitch 1920)

[    14.174] (**) FBTURBO(0):  Built-in mode "current"

[    14.174] (==) FBTURBO(0): DPI set to (96, 96)

[    14.174] (II) Loading sub module "fb"

[    14.174] (II) LoadModule: "fb"

[    14.174] (II) Loading /usr/lib/xorg/modules/libfb.so

[    14.181] (II) Module fb: vendor="X.Org Foundation"

[    14.182]    compiled for 1.17.2, module version = 1.0.0

[    14.182]    ABI class: X.Org ANSI C Emulation, version 0.4

[    14.182] (==) Depth 24 pixmap format is 32 bpp

[    14.207] (II) FBTURBO(0): using backing store heuristics

[    14.218] (II) FBTURBO(0): can't load 'g2d_23' kernel module

[    14.218] (II) FBTURBO(0): failed to enable the use of sunxi display controller

[    14.218] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)

[    14.218] (II) FBTURBO(0): G2D hardware acceleration can't be enabled

[    14.218] (II) FBTURBO(0): enabled fbdev copyarea acceleration

[    14.218] (==) FBTURBO(0): Backing store enabled

[    14.230] (==) FBTURBO(0): DPMS enabled

[    14.231] (II) FBTURBO(0): failed to enable hardware cursor

[    14.231] (II) FBTURBO(0): no 3D acceleration because the driver has been compiled without libUMP

[    14.231] (II) FBTURBO(0): if this is wrong and needs to be fixed, please check ./configure log

[    14.231] (==) RandR enabled

[    14.356] (II) SELinux: Disabled on system

[    14.366] (II) AIGLX: Screen 0 is not DRI2 capable

[    14.367] (EE) AIGLX: reverting to software rendering

[    17.188] (II) AIGLX: Loaded and initialized swrast

[    17.189] (II) GLX: Initialized DRISWRAST GL provider for screen 0 



/usr/share/X11/xorg.conf.d $ cat 99-fbturbo.conf

# This is a minimal sample config file, which can be copied to

# /etc/X11/xorg.conf in order to make the Xorg server pick up

# and load xf86-video-fbturbo driver installed in the system.

#

# When troubleshooting, check /var/log/Xorg.0.log for the debugging

# output and error messages.

#

# Run "man fbturbo" to get additional information about the extra

# configuration options for tuning the driver.


Section "Device"

        Identifier      "Allwinner A10/A13 FBDEV"

        Driver          "fbturbo"

        Option          "fbdev" "/dev/fb0"


        Option          "SwapbuffersWait" "true"

EndSection 


Posted by 구차니
embeded/raspberry pi2016. 10. 31. 16:38

예전에 eMMC 어댑터를 이용해서 rpi에 연결했을때

깜박이지도 않았는데

SD.CARD.DET 핀 자체가 탐지되지 않으면 SD가 없는걸로 간주하고 배째는게 아닐까 싶은데

(그러니까 핀인식이 안되면 SD 읽을 시도조차 하지 않음?)

나중에 머라도 덧대서 한번 다시 시도는 해봐야 할 듯?



[링크 : https://www.raspberrypi.org/.../Raspberry-Pi-Rev-2.0-Model-AB-Schematics.pdf]

[링크 : http://electronics.stackexchange.com/.../how-can-i-hardware-protect-a-microsd-from-writing-to]


Check the ACT LED to determine if the Pi is booting

The ACT LED is essential in determining if the Pi can actually read from the card. It indicates that it can read from the card by blinking, If the ACT LED doesn't blink quickly in an irregular pattern for at least twenty seconds, this indicates that the Pi cannot read from the SD card, and that booting is not taking place. By the way, It doesn't matter if the ACT LED initially starts on or off. It is only the blinking of the ACT LED that is significant. A dim ACT LED also has no significance beyond the fact that you are using a B. From the model B+ onwards, the LED is driven differently, and it wont be dim.


With no SD card inserted, note how the ACT LED behaves (hint, it won't blink!). Now insert a programmed card and that behaviour should change. If it does not, this indicates that Pi cannot see the necessary files on the SD card. For a demonstration, watch this video of a model B: the ACT LED is the one on the left-hand side. Note that on later models the ACT LED will start on on power up, instead as off like the model B. 


With working firmware, Meaning the PI can read files from the card, the ACT LED will flicker intermittently for 20-30 seconds. The LED is actually driven by the software read from the card using a dedicated GPIO pin turning it on whenever the card is read. It can also blink in a regular "Morse" pattern, which usually indicates an error condition. See the Additional Information section at the end of this post for details.  


[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=58151]

Posted by 구차니
embeded/raspberry pi2016. 10. 8. 17:44

USB의 속도 한계인가

속도가 의외로 늦게 나오네..

일단은.. 라즈베리로 구워서 켜지나 해봐야지



인식 자체를 안한다 -_- 제길


일단 꽂는데 딸깍하면서 꽂히지도 빠지지도 않는다.


샌디스크 SD와 비교해보니

미묘하게 한.. 0.5mm 정도? 슬롯쪽이 짧아서 그런거 같기도 하고..

길면 갈아내기라도 하지.. 짧은건 답이 없네


접촉은 될텐데.. 카드인식을 못하는건지 안뜨고

저렇게 전원 / SD LED가 불 들어와서 켜지질 않는다. ㅠㅠ

망했어 ㅠㅠ


'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 파이 xorg.conf  (0) 2016.11.03
rpi microSD slot  (0) 2016.10.31
크로스 컴파일러와 컴파일러  (0) 2016.09.26
cpufrequtils 와 governor 설정  (0) 2016.09.12
라즈베리 파이 governor 관련  (0) 2016.09.12
Posted by 구차니
embeded/raspberry pi2016. 9. 26. 20:55

커널 빌드 할 때

arm-linux-gnueabihf-gcc

이런걸 볼 수 있는데

ARM용 리눅스에 있는 gcc 패키지랑은 차이가 있을까?


$ gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper

Target: arm-linux-gnueabihf

Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf

Thread model: posix

gcc version 4.9.2 (Raspbian 4.9.2-10) 


~/tools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin $ arm-linux-gnueabihf-gcc -v

Using built-in specs.

COLLECT_GCC=arm-linux-gnueabihf-gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper

Target: arm-linux-gnueabihf

Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf

Thread model: posix

gcc version 4.9.2 (Raspbian 4.9.2-10)


비교해보니 차이가 없다?!?

즉, 우분투에 들은 gcc는 커널빌드 하는데 써도 문제 없는 동일한 녀석이다 라는거?


[링크 : http://stackoverflow.com/.../arm-gcc-toolchain-as-arm-elf-or-arm-none-eabi-what-is-the-difference]

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=99127]

[링크 : http://elinux.org/Raspberry_Pi_Kernel_Compilation]

[링크 : http://elinux.org/RPi_Linaro_GCC_Compilation]


+

~/tools/arm-bcm2708 $ ll

total 20

drwxr-xr-x 7 pi pi 4096 Sep 26 23:28 arm-bcm2708hardfp-linux-gnueabi

drwxr-xr-x 7 pi pi 4096 Sep 26 23:26 arm-bcm2708-linux-gnueabi

drwxr-xr-x 8 pi pi 4096 Sep 26 23:28 arm-rpi-4.9.3-linux-gnueabihf

drwxr-xr-x 7 pi pi 4096 Sep 26 23:30 gcc-linaro-arm-linux-gnueabihf-raspbian

drwxr-xr-x 7 pi pi 4096 Sep 26 23:29 gcc-linaro-arm-linux-gnueabihf-raspbian-x64 


일단은 다 x86/x86-64용 크로스컴파일러네..

$ file arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-gcc

arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=e2801f48a84144e2b40d6083baac317057662b3c, stripped


$ file arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-gcc

arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=7b34f10a2af2e57b673121196522143f50868487, stripped


$ file arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=e0df943f126fe91df411d950dd26652126a1e06d, stripped

$ file gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc-4.8.3
gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc-4.8.3: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, stripped

 $ file gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc-4.8.3
gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc-4.8.3: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=04d49c97b46fb3d971e496e6721137f6bab56342, stripped

얘는 라즈베리 gcc 패키지

 $ file /usr/bin/gcc-4.9

/usr/bin/gcc-4.9: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=f711b7c3e25f3a887b6908bb3ef6d1cefba92340, stripped



Posted by 구차니
embeded/raspberry pi2016. 9. 12. 15:36

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

ondemand


cpufrequtils를 삭제후 리부팅 하니 기본적으로 ondemand 인 것 같고


$ ll /etc/init.d/cpufrequtils

-rwxr-xr-x 1 root root 2489 May  6  2012 cpufrequtils

위의 경로에서 내용을 바꾸어 주면 기본 거버너가 변경/설정이 가능 한 듯.


$ cat /etc/init.d/cpufrequtils

#!/bin/sh

### BEGIN INIT INFO

# Provides:       cpufrequtils

# Required-Start: $remote_fs loadcpufreq

# Required-Stop:

# Default-Start:  2 3 4 5

# Default-Stop:

# Short-Description: set CPUFreq kernel parameters

# Description: utilities to deal with CPUFreq Linux

#       kernel support

### END INIT INFO

#


DESC="CPUFreq Utilities"


PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

CPUFREQ_SET=/usr/bin/cpufreq-set

CPUFREQ_INFO=/usr/bin/cpufreq-info

CPUFREQ_OPTIONS=""


# use lsb-base

. /lib/lsb/init-functions


# Which governor to use. Must be one of the governors listed in:

#   cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors

#

# and which limits to set. Both MIN_SPEED and MAX_SPEED must be values

# listed in:

#   cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

# a value of 0 for any of the two variables will disabling the use of

# that limit variable.

#

# WARNING: the correct kernel module must already be loaded or compiled in.

#

# Set ENABLE to "true" to let the script run at boot time.

#

# eg:   ENABLE="true"

#       GOVERNOR="ondemand"

#       MAX_SPEED=1000

#       MIN_SPEED=500


ENABLE="true"

GOVERNOR="ondemand"

MAX_SPEED="0"

MIN_SPEED="0"


check_governor_avail() {

        info="/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors"

        if [ -f $info ] && grep -q "\<$GOVERNOR\>" $info ; then

                return 0;

        fi

        return 1;

}


[ -x $CPUFREQ_SET ] || exit 0


if [ -f /etc/default/cpufrequtils ] ; then

        . /etc/default/cpufrequtils

fi


# if not enabled then exit gracefully

[ "$ENABLE" = "true" ] || exit 0


if [ -n "$MAX_SPEED" ] && [ $MAX_SPEED != "0" ] ; then

        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --max $MAX_SPEED"

fi


if [ -n "$MIN_SPEED" ] && [ $MIN_SPEED != "0" ] ; then

        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --min $MIN_SPEED"

fi


if [ -n "$GOVERNOR" ] ; then

        CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --governor $GOVERNOR"

fi


CPUS=$(cat /proc/stat|sed -ne 's/^cpu\([[:digit:]]\+\).*/\1/p')

RETVAL=0

case "$1" in

        start|force-reload|restart|reload)

                log_action_begin_msg "$DESC: Setting $GOVERNOR CPUFreq governor"

                if check_governor_avail ; then

                        for cpu in $CPUS ; do

                                log_action_cont_msg "CPU${cpu}"

                                $CPUFREQ_SET --cpu $cpu $CPUFREQ_OPTIONS 2>&1 > /dev/null || \

                                        RETVAL=$?

                        done

                        log_action_end_msg $RETVAL ""

                else

                        log_action_cont_msg "disabled, governor not available"

                        log_action_end_msg $RETVAL

                fi

                ;;

        stop)

                ;;

        *)

                echo "Usage: $0 {start|stop|restart|reload|force-reload}"

                exit 1

esac


exit 0 


Posted by 구차니
embeded/raspberry pi2016. 9. 12. 15:33

머.. 별 차이도 없는 기분? 라즈베리 자체가 600MHz ~ 900Mhz 이긴한데

딱 두단계 뿐이라 클럭 조절에 대한 여유가 없는 걸지도 모르겠다.


$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "ondemand" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.

  cpufreq stats: 600 MHz:52.90%, 900 MHz:47.10%  (9)


$ sudo cpufreq-set -g conservative

$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "conservative" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.

  cpufreq stats: 600 MHz:63.64%, 900 MHz:36.36%  (15) 


$ sudo cpufreq-set -g powersave

$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "powersave" may decide which speed to use

                  within this range.

  current CPU frequency is 600 MHz.

  cpufreq stats: 600 MHz:74.84%, 900 MHz:25.16%  (15)


$ sudo cpufreq-set -g performance

$ cpufreq-info

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009

Report errors and bugs to cpufreq@vger.kernel.org, please.

analyzing CPU 0:

  driver: BCM2835 CPUFreq

  CPUs which run at the same hardware frequency: 0 1 2 3

  CPUs which need to have their frequency coordinated by software: 0 1 2 3

  maximum transition latency: 355 us.

  hardware limits: 600 MHz - 900 MHz

  available frequency steps: 600 MHz, 900 MHz

  available cpufreq governors: conservative, ondemand, userspace, powersave, performance

  current policy: frequency should be within 600 MHz and 900 MHz.

                  The governor "performance" may decide which speed to use

                  within this range.

  current CPU frequency is 900 MHz.

  cpufreq stats: 600 MHz:79.71%, 900 MHz:20.29%  (16)


Posted by 구차니
embeded/raspberry pi2016. 9. 9. 10:58

xming 통해서 끌어 올려니 죽어가는거 빼면 실행은 됨..


아무튼 설치시에도 

Get:13 http://mirrordirector.raspbian.org/raspbian/ jessie/main blender armhf 2.72.b+dfsg0-3 [18.2 MB]

odroid 대비 port쪽이 아닌 mirror라 더 빠른건가 싶기도 하고...


$ which blender

/usr/bin/blender

$ ldd /usr/bin/blender

        linux-vdso.so.1 (0x7eb0d000)

        /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f04000)

        libGL.so.1 => /usr/lib/arm-linux-gnueabihf/libGL.so.1 (0x76e52000)

        libGLU.so.1 => /usr/lib/arm-linux-gnueabihf/libGLU.so.1 (0x76df4000)

        libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0x76dc4000)

        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x76d9d000)

        libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0x76d05000)

        libpython3.4m.so.1.0 => /usr/lib/arm-linux-gnueabihf/libpython3.4m.so.1.0 (0x76949000)

        libGLEW.so.1.10 => /usr/lib/arm-linux-gnueabihf/libGLEW.so.1.10 (0x768b8000)

        libopenal.so.1 => /usr/lib/arm-linux-gnueabihf/libopenal.so.1 (0x76864000)

        libfftw3.so.3 => /usr/lib/arm-linux-gnueabihf/libfftw3.so.3 (0x76765000)

        libjack.so.0 => /usr/lib/arm-linux-gnueabihf/libjack.so.0 (0x7671d000)

        libsndfile.so.1 => /usr/lib/arm-linux-gnueabihf/libsndfile.so.1 (0x766b1000)

        libSDL-1.2.so.0 => /usr/lib/arm-linux-gnueabihf/libSDL-1.2.so.0 (0x76619000)

        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x765f1000)

        libtiff.so.5 => /usr/lib/arm-linux-gnueabihf/libtiff.so.5 (0x76579000)

        libOpenImageIO.so.1.4 => /usr/lib/libOpenImageIO.so.1.4 (0x75ffe000)

        libjpeg.so.62 => /usr/lib/arm-linux-gnueabihf/libjpeg.so.62 (0x75fa8000)

        libboost_filesystem.so.1.55.0 => /usr/lib/arm-linux-gnueabihf/libboost_filesystem.so.1.55.0 (0x75f83000)

        libboost_regex.so.1.55.0 => /usr/lib/arm-linux-gnueabihf/libboost_regex.so.1.55.0 (0x75e90000)

        libboost_system.so.1.55.0 => /usr/lib/arm-linux-gnueabihf/libboost_system.so.1.55.0 (0x75e7d000)

        libboost_thread.so.1.55.0 => /usr/lib/arm-linux-gnueabihf/libboost_thread.so.1.55.0 (0x75e59000)

        libboost_date_time.so.1.55.0 => /usr/lib/arm-linux-gnueabihf/libboost_date_time.so.1.55.0 (0x75e39000)

        libboost_locale.so.1.55.0 => /usr/lib/arm-linux-gnueabihf/libboost_locale.so.1.55.0 (0x75d67000)

        libHalf.so.6 => /usr/lib/arm-linux-gnueabihf/libHalf.so.6 (0x75d14000)

        libIex.so.6 => /usr/lib/arm-linux-gnueabihf/libIex.so.6 (0x75cee000)

        libIlmImf.so.6 => /usr/lib/arm-linux-gnueabihf/libIlmImf.so.6 (0x75c40000)

        libIlmThread.so.6 => /usr/lib/arm-linux-gnueabihf/libIlmThread.so.6 (0x75c2a000)

        libImath.so.6 => /usr/lib/arm-linux-gnueabihf/libImath.so.6 (0x75c15000)

        libOpenColorIO.so.1 => /usr/lib/libOpenColorIO.so.1 (0x75b0b000)

        libopenjpeg.so.5 => /usr/lib/arm-linux-gnueabihf/libopenjpeg.so.5 (0x75adc000)

        libavformat.so.56 => /usr/lib/arm-linux-gnueabihf/neon/vfp/libavformat.so.56 (0x759b9000)

        libavcodec.so.56 => /usr/lib/arm-linux-gnueabihf/neon/vfp/libavcodec.so.56 (0x74d5a000)

        libavutil.so.54 => /usr/lib/arm-linux-gnueabihf/neon/vfp/libavutil.so.54 (0x74d26000)

        libavdevice.so.55 => /usr/lib/arm-linux-gnueabihf/neon/vfp/libavdevice.so.55 (0x74d07000)

        libswscale.so.3 => /usr/lib/arm-linux-gnueabihf/neon/vfp/libswscale.so.3 (0x74ccd000)

        libspnav.so.0 => /usr/lib/libspnav.so.0 (0x74cc2000)

        libutil.so.1 => /lib/arm-linux-gnueabihf/libutil.so.1 (0x74cae000)

        libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0x74b98000)

        libXi.so.6 => /usr/lib/arm-linux-gnueabihf/libXi.so.6 (0x74b83000)

        libXxf86vm.so.1 => /usr/lib/arm-linux-gnueabihf/libXxf86vm.so.1 (0x74b76000)

        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x74b63000)

        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x74a21000)

        /lib/ld-linux-armhf.so.3 (0x54ae5000)

        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x749a6000)

        libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x748ca000)

        libgomp.so.1 => /usr/lib/arm-linux-gnueabihf/libgomp.so.1 (0x748a5000)

        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x74878000)

        libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0x74845000)

        libxcb-dri3.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-dri3.so.0 (0x7483a000)

        libxcb-present.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-present.so.0 (0x7482f000)

        libxcb-sync.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb-sync.so.1 (0x74822000)

        libxshmfence.so.1 => /usr/lib/arm-linux-gnueabihf/libxshmfence.so.1 (0x74810000)

        libglapi.so.0 => /usr/lib/arm-linux-gnueabihf/libglapi.so.0 (0x747c6000)

        libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0x747a7000)

        libXdamage.so.1 => /usr/lib/arm-linux-gnueabihf/libXdamage.so.1 (0x7479c000)

        libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0x7478f000)

        libX11-xcb.so.1 => /usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1 (0x74785000)

        libxcb-glx.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-glx.so.0 (0x7476c000)

        libxcb-dri2.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-dri2.so.0 (0x74760000)

        libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0x74741000)

        libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0x74724000)

        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x7470d000)

        libXmu.so.6 => /usr/lib/arm-linux-gnueabihf/libXmu.so.6 (0x746f0000)

        libopus.so.0 => /usr/lib/arm-linux-gnueabihf/libopus.so.0 (0x746a2000)

        libFLAC.so.8 => /usr/lib/arm-linux-gnueabihf/libFLAC.so.8 (0x74666000)

        libvorbisenc.so.2 => /usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2 (0x745d4000)

        libasound.so.2 => /usr/lib/arm-linux-gnueabihf/libasound.so.2 (0x744fa000)

        libpulse-simple.so.0 => /usr/lib/arm-linux-gnueabihf/libpulse-simple.so.0 (0x744e5000)

        libpulse.so.0 => /usr/lib/arm-linux-gnueabihf/libpulse.so.0 (0x7448f000)

        libbcm_host.so => /opt/vc/lib/libbcm_host.so (0x74469000)

        libvcos.so => /opt/vc/lib/libvcos.so (0x7444f000)

        libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so (0x74439000)

        libdirectfb-1.2.so.9 => /usr/lib/arm-linux-gnueabihf/libdirectfb-1.2.so.9 (0x743bf000)

        libfusion-1.2.so.9 => /usr/lib/arm-linux-gnueabihf/libfusion-1.2.so.9 (0x743a8000)

        libdirect-1.2.so.9 => /usr/lib/arm-linux-gnueabihf/libdirect-1.2.so.9 (0x74384000)

        libcaca.so.0 => /usr/lib/arm-linux-gnueabihf/libcaca.so.0 (0x742b7000)

        liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0x74290000)

        libjbig.so.0 => /usr/lib/arm-linux-gnueabihf/libjbig.so.0 (0x74272000)

        libatomic.so.1 => /usr/lib/arm-linux-gnueabihf/libatomic.so.1 (0x7425c000)

        libopencv_core.so.2.4 => /usr/lib/arm-linux-gnueabihf/libopencv_core.so.2.4 (0x74043000)

        libopencv_highgui.so.2.4 => /usr/lib/arm-linux-gnueabihf/libopencv_highgui.so.2.4 (0x73ff2000)

        libwebp.so.5 => /usr/lib/arm-linux-gnueabihf/libwebp.so.5 (0x73f9e000)

        libgif.so.4 => /usr/lib/arm-linux-gnueabihf/libgif.so.4 (0x73f85000)

        libraw_r.so.10 => /usr/lib/arm-linux-gnueabihf/libraw_r.so.10 (0x73edb000)

        libicuuc.so.52 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.52 (0x73d93000)

        libicui18n.so.52 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.52 (0x73bd3000)

        libicudata.so.52 => /usr/lib/arm-linux-gnueabihf/libicudata.so.52 (0x72556000)

        libboost_atomic.so.1.55.0 => /usr/lib/arm-linux-gnueabihf/libboost_atomic.so.1.55.0 (0x72543000)

        libboost_chrono.so.1.55.0 => /usr/lib/arm-linux-gnueabihf/libboost_chrono.so.1.55.0 (0x7252c000)

        libtinyxml.so.2.6.2 => /usr/lib/arm-linux-gnueabihf/libtinyxml.so.2.6.2 (0x72512000)

        libyaml-cpp.so.0.3 => /usr/lib/arm-linux-gnueabihf/libyaml-cpp.so.0.3 (0x724a2000)

        librtmp.so.1 => /usr/lib/arm-linux-gnueabihf/librtmp.so.1 (0x72478000)

        libgnutls-deb0.so.28 => /usr/lib/arm-linux-gnueabihf/libgnutls-deb0.so.28 (0x7236b000)

        libbz2.so.1.0 => /lib/arm-linux-gnueabihf/libbz2.so.1.0 (0x72353000)

        libavresample.so.2 => /usr/lib/arm-linux-gnueabihf/neon/vfp/libavresample.so.2 (0x72334000)

        libxvidcore.so.4 => /usr/lib/arm-linux-gnueabihf/libxvidcore.so.4 (0x72235000)

        libx264.so.142 => /usr/lib/arm-linux-gnueabihf/neon/vfp/libx264.so.142 (0x720c8000)

        libvpx.so.1 => /usr/lib/arm-linux-gnueabihf/vfp/neon/libvpx.so.1 (0x71f3f000)

        libvorbis.so.0 => /usr/lib/arm-linux-gnueabihf/libvorbis.so.0 (0x71f07000)

        libtheoraenc.so.1 => /usr/lib/arm-linux-gnueabihf/libtheoraenc.so.1 (0x71ec0000)

        libtheoradec.so.1 => /usr/lib/arm-linux-gnueabihf/libtheoradec.so.1 (0x71e9d000)

        libspeex.so.1 => /usr/lib/arm-linux-gnueabihf/libspeex.so.1 (0x71e76000)

        libschroedinger-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libschroedinger-1.0.so.0 (0x71dca000)

        libmp3lame.so.0 => /usr/lib/arm-linux-gnueabihf/libmp3lame.so.0 (0x71d51000)

        libgsm.so.1 => /usr/lib/arm-linux-gnueabihf/libgsm.so.1 (0x71d3f000)

        libva.so.1 => /usr/lib/arm-linux-gnueabihf/libva.so.1 (0x71d1b000)

        libcdio_paranoia.so.1 => /usr/lib/libcdio_paranoia.so.1 (0x71d04000)

        libcdio_cdda.so.1 => /usr/lib/libcdio_cdda.so.1 (0x71cee000)

        libdc1394.so.22 => /usr/lib/arm-linux-gnueabihf/libdc1394.so.22 (0x71c6c000)

        libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0x71c61000)

        libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0x71c54000)

        libXt.so.6 => /usr/lib/arm-linux-gnueabihf/libXt.so.6 (0x71bfe000)

        libogg.so.0 => /usr/lib/arm-linux-gnueabihf/libogg.so.0 (0x71bf0000)

        libpulsecommon-5.0.so => /usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-5.0.so (0x71b79000)

        libcap.so.2 => /lib/arm-linux-gnueabihf/libcap.so.2 (0x71b64000)

        libjson-c.so.2 => /lib/arm-linux-gnueabihf/libjson-c.so.2 (0x71b53000)

        libdbus-1.so.3 => /lib/arm-linux-gnueabihf/libdbus-1.so.3 (0x71b07000)

        libslang.so.2 => /lib/arm-linux-gnueabihf/libslang.so.2 (0x719b2000)

        libncursesw.so.5 => /lib/arm-linux-gnueabihf/libncursesw.so.5 (0x71975000)

        libtinfo.so.5 => /lib/arm-linux-gnueabihf/libtinfo.so.5 (0x71947000)

        libSM.so.6 => /usr/lib/arm-linux-gnueabihf/libSM.so.6 (0x71938000)

        libICE.so.6 => /usr/lib/arm-linux-gnueabihf/libICE.so.6 (0x7191a000)

        libopencv_imgproc.so.2.4 => /usr/lib/arm-linux-gnueabihf/libopencv_imgproc.so.2.4 (0x716cc000)

        libjasper.so.1 => /usr/lib/arm-linux-gnueabihf/libjasper.so.1 (0x71670000)

        libgtk-x11-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so.0 (0x712ac000)

        libgdk-x11-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgdk-x11-2.0.so.0 (0x71208000)

        libpangocairo-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libpangocairo-1.0.so.0 (0x711ee000)

        libatk-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libatk-1.0.so.0 (0x711c1000)

        libcairo.so.2 => /usr/lib/arm-linux-gnueabihf/libcairo.so.2 (0x710d0000)

        libgdk_pixbuf-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgdk_pixbuf-2.0.so.0 (0x7109f000)

        libgio-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0 (0x70f52000)

        libpangoft2-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libpangoft2-1.0.so.0 (0x70f31000)

        libpango-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libpango-1.0.so.0 (0x70eef000)

        libgobject-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 (0x70e95000)

        libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0x70d91000)

        libfontconfig.so.1 => /usr/lib/arm-linux-gnueabihf/libfontconfig.so.1 (0x70d4f000)

        libgthread-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgthread-2.0.so.0 (0x70d3d000)

        libgtkglext-x11-1.0.so.0 => /usr/lib/libgtkglext-x11-1.0.so.0 (0x70d32000)

        libgdkglext-x11-1.0.so.0 => /usr/lib/libgdkglext-x11-1.0.so.0 (0x70ce6000)

        libpangox-1.0.so.0 => /usr/lib/arm-linux-gnueabihf/libpangox-1.0.so.0 (0x70cb9000)

        libgmodule-2.0.so.0 => /usr/lib/arm-linux-gnueabihf/libgmodule-2.0.so.0 (0x70ca5000)

        libv4l1.so.0 => /usr/lib/arm-linux-gnueabihf/libv4l1.so.0 (0x70c8f000)

        liblcms2.so.2 => /usr/lib/arm-linux-gnueabihf/liblcms2.so.2 (0x70c43000)

        libhogweed.so.2 => /usr/lib/arm-linux-gnueabihf/libhogweed.so.2 (0x70c09000)

        libnettle.so.4 => /usr/lib/arm-linux-gnueabihf/libnettle.so.4 (0x70bc9000)

        libgmp.so.10 => /usr/lib/arm-linux-gnueabihf/libgmp.so.10 (0x70b57000)

        libp11-kit.so.0 => /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0 (0x70b16000)

        libtasn1.so.6 => /usr/lib/arm-linux-gnueabihf/libtasn1.so.6 (0x70af6000)

        liborc-0.4.so.0 => /usr/lib/arm-linux-gnueabihf/liborc-0.4.so.0 (0x70a75000)

        libcdio.so.13 => /usr/lib/libcdio.so.13 (0x70a47000)

        libraw1394.so.11 => /usr/lib/arm-linux-gnueabihf/libraw1394.so.11 (0x70a33000)

        libusb-1.0.so.0 => /lib/arm-linux-gnueabihf/libusb-1.0.so.0 (0x70a17000)

        libXtst.so.6 => /usr/lib/arm-linux-gnueabihf/libXtst.so.6 (0x70a09000)

        libsystemd.so.0 => /lib/arm-linux-gnueabihf/libsystemd.so.0 (0x709d8000)

        libwrap.so.0 => /lib/arm-linux-gnueabihf/libwrap.so.0 (0x709c9000)

        libasyncns.so.0 => /usr/lib/arm-linux-gnueabihf/libasyncns.so.0 (0x709bc000)

        libattr.so.1 => /lib/arm-linux-gnueabihf/libattr.so.1 (0x709a7000)

        libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1 (0x70993000)

        libXcomposite.so.1 => /usr/lib/arm-linux-gnueabihf/libXcomposite.so.1 (0x70987000)

        libXrender.so.1 => /usr/lib/arm-linux-gnueabihf/libXrender.so.1 (0x70976000)

        libXinerama.so.1 => /usr/lib/arm-linux-gnueabihf/libXinerama.so.1 (0x7096b000)

        libXrandr.so.2 => /usr/lib/arm-linux-gnueabihf/libXrandr.so.2 (0x7095b000)

        libXcursor.so.1 => /usr/lib/arm-linux-gnueabihf/libXcursor.so.1 (0x7094a000)

        libpixman-1.so.0 => /usr/lib/arm-linux-gnueabihf/libpixman-1.so.0 (0x7089c000)

        libxcb-shm.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-shm.so.0 (0x70891000)

        libxcb-render.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-render.so.0 (0x70882000)

        libselinux.so.1 => /lib/arm-linux-gnueabihf/libselinux.so.1 (0x70855000)

        libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0x7082f000)

        libharfbuzz.so.0 => /usr/lib/arm-linux-gnueabihf/libharfbuzz.so.0 (0x707d3000)

        libthai.so.0 => /usr/lib/arm-linux-gnueabihf/libthai.so.0 (0x707c3000)

        libffi.so.6 => /usr/lib/arm-linux-gnueabihf/libffi.so.6 (0x707b3000)

        libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0x70740000)

        libv4l2.so.0 => /usr/lib/arm-linux-gnueabihf/libv4l2.so.0 (0x70722000)

        libudev.so.1 => /lib/arm-linux-gnueabihf/libudev.so.1 (0x70705000)

        libgcrypt.so.20 => /lib/arm-linux-gnueabihf/libgcrypt.so.20 (0x70662000)

        libnsl.so.1 => /lib/arm-linux-gnueabihf/libnsl.so.1 (0x7063e000)

        libgraphite2.so.3 => /usr/lib/arm-linux-gnueabihf/libgraphite2.so.3 (0x70610000)

        libdatrie.so.1 => /usr/lib/arm-linux-gnueabihf/libdatrie.so.1 (0x70604000)

        libv4lconvert.so.0 => /usr/lib/arm-linux-gnueabihf/libv4lconvert.so.0 (0x7057f000)

        libgpg-error.so.0 => /lib/arm-linux-gnueabihf/libgpg-error.so.0 (0x70561000) 



[링크 : https://www.raspberrypi.org/forums/viewtopic.php?p=719816]

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=102847]


Eric anholt 라는 사람이 opengl이 되도록 라즈베리를 업데이트 ㄷ ㄷ 


Posted by 구차니
embeded/raspberry pi2016. 9. 5. 11:01

odroid u3도 한번 해봐야지..


$ sysbench --help

Usage:

  sysbench [general-options]... --test=<test-name> [test-options]... command


General options:

  --num-threads=N            number of threads to use [1]

  --max-requests=N           limit for total number of requests [10000]

  --max-time=N               limit for total execution time in seconds [0]

  --forced-shutdown=STRING   amount of time to wait after --max-time before forcing shutdown [off]

  --thread-stack-size=SIZE   size of stack per thread [32K]

  --init-rng=[on|off]        initialize random number generator [off]

  --test=STRING              test to run

  --debug=[on|off]           print more debugging info [off]

  --validate=[on|off]        perform validation checks where possible [off]

  --help=[on|off]            print help and exit

  --version=[on|off]         print version and exit


Compiled-in tests:

  fileio - File I/O test

  cpu - CPU performance test

  memory - Memory functions speed test

  threads - Threads subsystem performance test

  mutex - Mutex performance test

  oltp - OLTP test


Commands: prepare run cleanup help version


See 'sysbench --test=<name> help' for a list of options for each test. 


sysbench --test=fileio --file-total-size=1G prepare

sysbench 0.4.12:  multi-threaded system evaluation benchmark


128 files, 8192Kb each, 1024Mb total

Creating files for the test... 


8메가 짜리로 128개 생성하다 보니 시간이 좀 걸린다.

$ ls

Desktop        test_file.105  test_file.121  test_file.23  test_file.4   test_file.56  test_file.72  test_file.89

Documents      test_file.106  test_file.122  test_file.24  test_file.40  test_file.57  test_file.73  test_file.9

Downloads      test_file.107  test_file.123  test_file.25  test_file.41  test_file.58  test_file.74  test_file.90

Music          test_file.108  test_file.124  test_file.26  test_file.42  test_file.59  test_file.75  test_file.91

Pictures       test_file.109  test_file.125  test_file.27  test_file.43  test_file.6   test_file.76  test_file.92

Public         test_file.11   test_file.126  test_file.28  test_file.44  test_file.60  test_file.77  test_file.93

Templates      test_file.110  test_file.127  test_file.29  test_file.45  test_file.61  test_file.78  test_file.94

Videos         test_file.111  test_file.13   test_file.3   test_file.46  test_file.62  test_file.79  test_file.95

python_games   test_file.112  test_file.14   test_file.30  test_file.47  test_file.63  test_file.8   test_file.96

src            test_file.113  test_file.15   test_file.31  test_file.48  test_file.64  test_file.80  test_file.97

test_file.0    test_file.114  test_file.16   test_file.32  test_file.49  test_file.65  test_file.81  test_file.98

test_file.1    test_file.115  test_file.17   test_file.33  test_file.5   test_file.66  test_file.82  test_file.99

test_file.10   test_file.116  test_file.18   test_file.34  test_file.50  test_file.67  test_file.83

test_file.100  test_file.117  test_file.19   test_file.35  test_file.51  test_file.68  test_file.84

test_file.101  test_file.118  test_file.2    test_file.36  test_file.52  test_file.69  test_file.85

test_file.102  test_file.119  test_file.20   test_file.37  test_file.53  test_file.7   test_file.86

test_file.103  test_file.12   test_file.21   test_file.38  test_file.54  test_file.70  test_file.87

test_file.104  test_file.120  test_file.22   test_file.39  test_file.55  test_file.71  test_file.88 


테스트에 5분 제한을 걸고 하는건가...

$ sysbench --test=fileio --file-total-size=1G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run

sysbench 0.4.12:  multi-threaded system evaluation benchmark


Running the test with following options:

Number of threads: 1

Initializing random number generator from timer.



Extra file open flags: 0

128 files, 8Mb each

1Gb total file size

Block size 16Kb

Number of random requests for random IO: 0

Read/Write ratio for combined random IO test: 1.50

Periodic FSYNC enabled, calling fsync() each 100 requests.

Calling fsync() at the end of test, Enabled.

Using synchronous I/O mode

Doing random r/w test

Threads started!

Time limit exceeded, exiting...

Done.


Operations performed:  1320 Read, 880 Write, 2730 Other = 4930 Total

Read 20.625Mb  Written 13.75Mb  Total transferred 34.375Mb  (117.19Kb/sec)

    7.32 Requests/sec executed


Test execution summary:

    total time:                          300.3619s

    total number of events:              2200

    total time taken by event execution: 1.0915

    per-request statistics:

         min:                                  0.04ms

         avg:                                  0.50ms

         max:                                  4.20ms

         approx.  95 percentile:               1.93ms


Threads fairness:

    events (avg/stddev):           2200.0000/0.00

    execution time (avg/stddev):   1.0915/0.00 



Posted by 구차니
embeded/raspberry pi2016. 9. 2. 15:38

fdisk로 파일명을 넣어주고 나서 offset 이용해서 마운트하면 되는구나...


$ fdisk -l whatever.img

Device         Boot     Start       End  Blocks  Id System

whatever.img1            8192    122879   57344   c W95 FAT32 (LBA)

whatever.img2          122880   5785599 2831360  83 Linux


$ mount -v -o offset=4194304 -t vfat whatever.img /mnt/img/one

$ mount -v -o offset=62914560 -t ext4 whatever.img /mnt/img/two


1st partition 512 * 8192 = 4194304

2nd partition 512 * 122880 = 62914560


[링크 : http://raspberrypi.stackexchange.com/.../how-can-i-mount-a-raspberry-pi-linux-distro-image]

Posted by 구차니