embeded/ARM2015. 3. 3. 23:36

그래도. 라즈베리 파이 2 이녀석

Cortex-A7 700Mhz~900MHz 작동하는 녀석인데

700MHz 치고는 너무 낮은 36MHz 정도의 bogoMIPS를 출력한다.

이상해서 찾아보다 보니


"무한루프(busy-wait loop)가 아닌 타이머 기반의 딜레이를 이용하여 udealy() 함수를 사용함으로서

cpu의 부하를 줄이고 프로세서의 클럭 변경시에 강인하도록 변경되었고 부팅시에 calibration이 필요없어 졌지만

역효과로 bogoMIPS를 측정할때 CPU 클럭이 측정이 되는게 아닌 타이머 클럭이 측정되게 되는 문제가 발생했다."

정도?

Timer-based delays

In 2012, ARM contributed a new udelay implementation allowing the system timer built into many ARMv7 CPUs to be used instead of a busy-wait loop.[8] Timer based delays are more robust on systems that use frequency scaling to dynamically adjust the processor's speed at runtime, as loops_per_jiffies values may not necessarily scale linearly. Also, since the timer frequency is known in advance, no calibration is needed at boot time.


One side effect of this change is that the BogoMIPS value will reflect the timer frequency, not the CPU's core frequency. Typically the timer frequency is much lower than the processor's maximum frequency, and some users may be surprised to see an unusually low BogoMIPS value when comparing against systems that use traditional busy-wait loops.


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


ARM: 7452/1: delay: allow timer-based delay implementation to be selected

This patch allows a timer-based delay implementation to be selected by

switching the delay routines over to use get_cycles, which is

implemented in terms of read_current_timer. This further allows us to

skip the loop calibration and have a consistent delay function in the

face of core frequency scaling.


To avoid the pain of dealing with memory-mapped counters, this

implementation uses the co-processor interface to the architected timers

when they are available. The previous loop-based implementation is

kept around for CPUs without the architected timers and we retain both

the maximum delay (2ms) and the corresponding conversion factors for

determining the number of loops required for a given interval. Since the

indirection of the timer routines will only work when called from C,

the sa1100 sleep routines are modified to branch to the loop-based delay

functions directly.

[링크 : https://git.kernel.org/.../linux.git/commit/?id=d0a533b18235d36206b9b422efadb7cee444dfdb] 


아무튼.. 뜬금없는 결론은...

ARMv7 부터는 bogoMIPS가 그리 신뢰할 만한(?) CPU 클럭 예측 방법이 아니게 되었다 정도이려나?

Posted by 구차니
embeded/raspberry pi2015. 3. 3. 20:16

USB Wireless / EFM-G054UA

$ dmesg

[ 9052.747682] usb 1-1.2: USB disconnect, device number 9

[ 9052.748051] MOSCHIP usb-ethernet driver 1-1.2:1.0 eth1: unregister 'MOSCHIP usb-ethernet driver' usb-bcm2708_usb-1.2, MOSCHIP 7830/7832/7730 usb-NET adapter

[ 9054.028020] usb 1-1.4: USB disconnect, device number 8

[ 9096.507202] usb 1-1.4: new high-speed USB device number 10 using dwc_otg

[ 9096.760443] usb 1-1.4: New USB device found, idVendor=148f, idProduct=2573

[ 9096.760468] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[ 9096.760485] usb 1-1.4: Product: 802.11 bg WLAN

[ 9096.760502] usb 1-1.4: Manufacturer: Ralink

[ 9096.887401] usb 1-1.4: reset high-speed USB device number 10 using dwc_otg

[ 9097.331348] ieee80211 phy2: rt2x00_set_chip: Info - Chipset detected - rt: 2573, rf: 0002, rev: 000a

[ 9097.332541] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht'

[ 9097.335102] usbcore: registered new interface driver rt73usb

[ 9097.433128] ieee80211 phy2: rt2x00lib_request_firmware: Info - Loading firmware file 'rt73.bin'

[ 9097.434590] ieee80211 phy2: rt2x00lib_request_firmware: Info - Firmware detected - version: 1.7


$ lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/5p, 480M
        |__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M
        |__ Port 4: Dev 10, If 0, Class=vend., Driver=rt73usb, 480M
        |__ Port 5: Dev 5, If 0, Class=HID, Driver=usbhid, 1.5M

$ lsmod
Module                  Size  Used by
rt73usb                22995  0
mcs7830                 5295  0
arc4                    1745  2
rt2800usb              17898  0
rt2800lib              71839  1 rt2800usb
rt2x00usb               8764  2 rt73usb,rt2800usb
rt2x00lib              37292  4 rt73usb,rt2x00usb,rt2800lib,rt2800usb
mac80211              483934  3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211              395318  2 mac80211,rt2x00lib
crc_ccitt               1153  1 rt2800lib
rfkill                 16651  2 cfg80211
snd_bcm2835            18850  0
snd_pcm                75388  1 snd_bcm2835
snd_seq                53078  0
snd_seq_device          5628  1 snd_seq
snd_timer              17784  2 snd_pcm,snd_seq
snd                    51667  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
joydev                  8903  0
evdev                   9950  1
uio_pdrv_genirq         2958  0

uio                     8119  1 uio_pdrv_genirq 


USB Wireless / Buffalo WLI-UC-GNM

$ dmesg

[ 7446.882346] usb 1-1.2: new high-speed USB device number 6 using dwc_otg

[ 7446.998227] usb 1-1.2: New USB device found, idVendor=0411, idProduct=01a2

[ 7446.998251] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[ 7446.998269] usb 1-1.2: Product: 802.11 n WLAN

[ 7446.998285] usb 1-1.2: Manufacturer: Ralink

[ 7446.998301] usb 1-1.2: SerialNumber: 1.0

[ 7447.106556] cfg80211: Calling CRDA to update world regulatory domain

[ 7447.272356] usb 1-1.2: reset high-speed USB device number 6 using dwc_otg

[ 7447.381554] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3070, rev 0201 detected

[ 7447.413690] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected

[ 7447.436162] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'

[ 7447.438442] usbcore: registered new interface driver rt2800usb

[ 7447.505538] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'

[ 7447.516358] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29


$ lsusb -t

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M

    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/5p, 480M

        |__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M

        |__ Port 2: Dev 6, If 0, Class=vend., Driver=rt2800usb, 480M

        |__ Port 5: Dev 5, If 0, Class=HID, Driver=usbhid, 1.5M


$ lsmod

Module                  Size  Used by

arc4                    1745  2

rt2800usb              17898  0

rt2800lib              71839  1 rt2800usb

rt2x00usb               8764  1 rt2800usb

rt2x00lib              37292  3 rt2x00usb,rt2800lib,rt2800usb

mac80211              483934  3 rt2x00lib,rt2x00usb,rt2800lib

cfg80211              395318  2 mac80211,rt2x00lib

crc_ccitt               1153  1 rt2800lib

rfkill                 16651  2 cfg80211

snd_bcm2835            18850  0

snd_pcm                75388  1 snd_bcm2835

snd_seq                53078  0

snd_seq_device          5628  1 snd_seq

snd_timer              17784  2 snd_pcm,snd_seq

snd                    51667  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device

joydev                  8903  0

evdev                   9950  1

uio_pdrv_genirq         2958  0

uio                     8119  1 uio_pdrv_genirq


USB Ethernet / NEXT 220-UL

확실히 동일 모델인지는 모르겠으나 생김새랑 구매한 곳은 맞음 -_-a

[링크 : http://lanstore.co.kr/goods_detail.php?goodsIdx=7188]

$ dmesg

[ 8474.601826] usb 1-1.4: new high-speed USB device number 7 using dwc_otg

[ 8474.706348] usb 1-1.4: New USB device found, idVendor=9710, idProduct=7830

[ 8474.706373] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[ 8474.706391] usb 1-1.4: Product: USB-MAC Controller

[ 8474.706408] usb 1-1.4: Manufacturer: Moschip Semiconductor

[ 8474.706424] usb 1-1.4: SerialNumber: 00001809

[ 8474.779485] usb 1-1.4: applying rev.C fixup

[ 8474.791907] usb 1-1.4: applying rev.C fixup

[ 8474.813989] MOSCHIP usb-ethernet driver 1-1.4:1.0 eth1: register 'MOSCHIP usb-ethernet driver' at usb-bcm2708_usb-1.4, MOSCHIP 7830/7832/7730 usb-NET adapter, 00:00:00:00:18:09

[ 8474.814649] usbcore: registered new interface driver MOSCHIP usb-ethernet driver

[ 8477.695159] usb 1-1.2: USB disconnect, device number 6


$ lsusb -t

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M

    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/5p, 480M

        |__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M

        |__ Port 4: Dev 7, If 0, Class=vend., Driver=MOSCHIP usb-ethernet driver, 480M

        |__ Port 5: Dev 5, If 0, Class=HID, Driver=usbhid, 1.5M


$ lsmod

Module                  Size  Used by

mcs7830                 5295  0

arc4                    1745  0

rt2800usb              17898  0

rt2800lib              71839  1 rt2800usb

rt2x00usb               8764  1 rt2800usb

rt2x00lib              37292  3 rt2x00usb,rt2800lib,rt2800usb

mac80211              483934  3 rt2x00lib,rt2x00usb,rt2800lib

cfg80211              395318  2 mac80211,rt2x00lib

crc_ccitt               1153  1 rt2800lib

rfkill                 16651  1 cfg80211

snd_bcm2835            18850  0

snd_pcm                75388  1 snd_bcm2835

snd_seq                53078  0

snd_seq_device          5628  1 snd_seq

snd_timer              17784  2 snd_pcm,snd_seq

snd                    51667  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device

joydev                  8903  0

evdev                   9950  1

uio_pdrv_genirq         2958  0

uio                     8119  1 uio_pdrv_genirq 


USB to RS232 / NXT-NEXT-RS232-SC

$ dmesg

[ 9305.688989] usb 1-1.4: new full-speed USB device number 11 using dwc_otg

[ 9305.817745] usb 1-1.4: New USB device found, idVendor=0403, idProduct=6001

[ 9305.817770] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[ 9305.817787] usb 1-1.4: Product: USB <-> Serial Cable

[ 9305.817805] usb 1-1.4: Manufacturer: FTDI

[ 9305.817821] usb 1-1.4: SerialNumber: 12345678

[ 9305.865409] usbcore: registered new interface driver usbserial

[ 9305.865552] usbcore: registered new interface driver usbserial_generic

[ 9305.865675] usbserial: USB Serial support registered for generic

[ 9305.876605] usbcore: registered new interface driver ftdi_sio

[ 9305.877497] usbserial: USB Serial support registered for FTDI USB Serial Device

[ 9305.878479] ftdi_sio 1-1.4:1.0: FTDI USB Serial Device converter detected

[ 9305.878696] usb 1-1.4: Detected FT232RL

[ 9305.880363] usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0


$ lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/5p, 480M
        |__ Port 1: Dev 3, If 0, Class=vend., Driver=smsc95xx, 480M
        |__ Port 4: Dev 11, If 0, Class=vend., Driver=ftdi_sio, 12M
        |__ Port 5: Dev 5, If 0, Class=HID, Driver=usbhid, 1.5M

$ lsmod
Module                  Size  Used by
ftdi_sio               30412  0
usbserial              22397  1 ftdi_sio
rt73usb                22995  0
mcs7830                 5295  0
arc4                    1745  0
rt2800usb              17898  0
rt2800lib              71839  1 rt2800usb
rt2x00usb               8764  2 rt73usb,rt2800usb
rt2x00lib              37292  4 rt73usb,rt2x00usb,rt2800lib,rt2800usb
mac80211              483934  3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211              395318  2 mac80211,rt2x00lib
crc_ccitt               1153  1 rt2800lib
rfkill                 16651  1 cfg80211
snd_bcm2835            18850  0
snd_pcm                75388  1 snd_bcm2835
snd_seq                53078  0
snd_seq_device          5628  1 snd_seq
snd_timer              17784  2 snd_pcm,snd_seq
snd                    51667  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
joydev                  8903  0
evdev                   9950  1
uio_pdrv_genirq         2958  0
uio                     8119  1 uio_pdrv_genirq


그래도 은근 다양한 종류(?)의 USB를 다 인식해주는게 기특하네

Posted by 구차니
embeded/raspberry pi2015. 3. 3. 19:38

전에 찍어 올렸던 사진인데..

overvolt 라는 내용이 있는데..




내용으로 봐서는 

[-16,8] equates to [0.8 V,1.4 V] with 0.025 V steps.

+8 은 1.4V를 CPU/RAM에 인가한다는 의미이고

기본값은 0 / 1.2V 인 것으로 보인다.


즉, 입력 전압은 5V로 고정되어도 상관없다는 의미.

(전류만 넉넉하다면야)


그리고 GPU에는 전원공급이 없는 이유로는 SoC 니까 CPU에 내장되어서!


Overclocking options

OptionDescription
arm_freqFrequency of ARM in MHz. Default 700
gpu_freqSets core_freq, h264_freq, isp_freq, v3d_freq together. Default 250
core_freqFrequency of GPU processor core in MHz. It has an impact on ARM performance since it drives L2 cache. Default 250
h264_freqFrequency of hardware video block in MHz. Default 250
isp_freqFrequency of image sensor pipeline block in MHz. Default 250
v3d_freqFrequency of 3D block in MHz. Default 250
avoid_pwm_pllDon't dedicate a pll to PWM audio. This will reduce analogue audio quality slightly. The spare PLL allows the core_freq to be set independently from the rest of the gpu allowing more control over overclocking. Default 0
sdram_freqFrequency of SDRAM in MHz. Default 400
over_voltageARM/GPU core voltage adjust. [-16,8] equates to [0.8 V,1.4 V] with 0.025 V steps. [5] Default is 0 (1.2 V). Values above 6 are only allowed when force_turbo or current_limit_override are specified (which set the warranty bit).
over_voltage_sdramSets over_voltage_sdram_c, over_voltage_sdram_i, over_voltage_sdram_p together
over_voltage_sdram_cSDRAM controller voltage adjust. [-16,8] equates to [0.8 V,1.4 V] with 0.025 V steps. Default 0 (1.2 V) [5]
over_voltage_sdram_iSDRAM I/O voltage adjust. [-16,8] equates to [0.8 V,1.4 V] with 0.025 V steps. Default 0 (1.2 V)[5]
over_voltage_sdram_pSDRAM phy voltage adjust. [-16,8] equates to [0.8 V,1.4 V] with 0.025 V steps. Default 0 (1.2 V)[5]
force_turboDisables dynamic cpufreq driver and minimum settings below. Enables H.264/V3D/ISP overclock options. Default 0. May set warranty bit.
initial_turboEnables turbo mode from boot for the given value in seconds (up to 60) or until cpufreq sets a frequency. Default 0 [6]
arm_freq_minMinimum value of arm_freq used for dynamic clocking. Default 700
core_freq_minMinimum value of core_freq used for dynamic clocking. Default 250
sdram_freq_minMinimum value of sdram_freq used for dynamic clocking. Default 400
over_voltage_minMinimum value of over_voltage used for dynamic clocking. Default 0
temp_limitOverheat protection. Sets clocks and voltages to default when the SoC reaches this Celsius value. Setting this higher than default voids warranty. Default 85
current_limit_overrideThis is enabled by default.[7]


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

Posted by 구차니
embeded/raspberry pi2015. 3. 3. 18:41

라즈베리에서 라즈비언에 startx로 들어가서 봤을때

mathematica가 있어서 음? 비슷한건가 했었는데 같은게 맞다!

그런데 이녀석.. 요즘 유명한(!) 울프람 사의 제품이었을 줄이야?


우리 누나가 예전에 수학과에서 쓰던거 보고는 잊고 있었는데 ㅋㅋㅋㅋ




[링크 : http://www.wolfram.com/raspberry-pi/]

[링크 : http://matrix.skku.ac.kr/sglee/algebra/atlast/usage/] 4.0 대 도움말 번역(성균관대)

Posted by 구차니
embeded/raspberry pi2015. 3. 3. 18:15

음.. 솔찍히 우분투에 익숙해져서 apt-get을 벗어 날수 없는지라

가장 무난한 녀석은.. ubuntu nappy가 아니라 raspbian인듯?


원인불명으로 1600x900으로 잡히지만

기본적인 프로그램들이라던가는 다 되니까(무려! raspbian에는 build-essential이 기본 설치!)

이녀석을 메인으로 쓰게 될지도?



클럭을 800MHz로 약간 오버클럭했는데

$ cat /proc/cpuinfo

processor       : 0

model name      : ARMv7 Processor rev 5 (v7l)

BogoMIPS        : 38.40

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

CPU implementer : 0x41

CPU architecture: 7

CPU variant     : 0x0

CPU part        : 0xc07

CPU revision    : 5 

보고 밉스가 조금 높게 나오는 기분 같기도 하고?
(이전 700MHz 설정과 비교하니 38.00 에서 38.40.. -_-)

$ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq

800000

$ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

600000



그나저나 800 으로 했는데 현재 클럭이 600으로 잡히는건 왜지? -_-???

Posted by 구차니
embeded/raspberry pi2015. 3. 2. 18:41

LAN9512의 경우 자체적으로 1 upstream / 2 downstream의 USB HUB를 제공하는데

라즈베리 파이 2 에서는 LAN9512의 다운스트림을 사용하지 않고

USB ROOT HUB 5port 짜리 하나를 사용해서

1번 포트에 SMSC LAN9512를 연결하고

나머지는 순서대로 2/3/4/5 를 사용하는 것으로 보인다.

즉.. USB to Ethernet으로 인한 대역폭을 고려하면..

외장 HDD를 연결해서 사용하려는 나의 장대한(?) 음모는 꽤나 빛을 바래는 듯? ㅠㅠ


 

 Port 2 

 Port 4

 LAN (Port 1)

 Port 3 

 Port 5 



OpenELEC:~ # lsusb -t

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M

    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M

        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M

        |__ Port 5: Dev 8, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M


OpenELEC:~ # lsusb -t

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M

    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M

        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M

        |__ Port 3: Dev 9, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M


OpenELEC:~ # lsusb -t

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M

    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M

        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M

        |__ Port 2: Dev 10, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M


OpenELEC:~ # lsusb -t

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M

    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M

        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M

        |__ Port 4: Dev 11, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M




---

방열칩 뜯고 보니

smsc lan9514

이녀석은 5포트 USB 허브 내장한 녀석이다

즉 broadcom bcm 칩에는 루트 허브 하나만 있고

lan9514 와 연결해서 4개 포트를 빼내는 형식이다


[링크 : http://ww1.microchip.com/downloads/en/DeviceDoc/9514.pdf]

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

매스매티카 in raspbian/NOOBS  (0) 2015.03.03
라즈베리 2 / 라즈비언 가지고 놀기  (0) 2015.03.03
라즈베리 2 - NOOB / Scratch  (0) 2015.03.01
라즈베리 파이 2 ubuntu / snappy  (4) 2015.03.01
라즈베리 빌드 관련  (0) 2015.03.01
Posted by 구차니
embeded/raspberry pi2015. 3. 1. 21:09

NOOBS로 부팅하니 이것저것 깔라고 나오는데


다 체크하려니 용량 부족으로 + 다운로드 귀찮아서 네트워크를 필요로 하지 않는

Raspbian / Data Partition / Boot to Scratch를 설치하는데

크어어어엌 -_-a 겁내 오래 걸린다. 걍 파일 받아서 직접 굽는게 빠르니 다시는 그닥 하고 싶지 않은 방법이 되어버림 -_-


암튼 한 10분 넘게 방치해놓고 딴짓하니 끝!

근데 키보드 안붙여 놓고 마우스만 있어서 Shift를 누를수가 없어! ㅠㅠ


Raspbian 과 Raspbian - Boot to Scratch를 둘다 선택해서 설치했더니

다음 부팅시에 어느걸로 켤지 물어 보고 라즈비언은 써봤으니 Boot to Scratch를 해봤더니


으어어어엌 콘솔이다 ㅋㅋ

그냥 냅두면 마우스가 뜨는데 SD 로딩 불도 안들어 오고 고장났나? 해서 마우스를 움직여보니


헐 먼가 이상한 고양이가 나온다 -_-


귀찮아서 About을 누르고 턴 종료!


일종의 애니메이션/게임 저작도구 라고 한다.


Scratch is a visual programming tool which allows the user to create animations and games with a drag-and-drop interface. It allows you to create your own computer games, interactive stories, and animations using some programming techniques without actually having to write code. It’s a great way to get started programming on the Raspberry Pi with young people. To find out more about Scratch, visit the website at scratch.mit.edu or see the Computing At School Raspberry Pi Education Manual.

[링크 : http://www.raspberrypi.org/documentation/usage/scratch/]

Posted by 구차니
embeded/raspberry pi2015. 3. 1. 19:03

로그인은 ubuntu : ubuntu

그런데.. 일단 이녀석.. 콘솔이 기본이다 -_ㅠ

apt-get은 지원안하고 snappy를 사용하래서 써봤더니
야임마!!!! -_-+

login as: ubuntu

ubuntu@192.168.219.165's password:

Welcome to Ubuntu Vivid Vervet (development branch) (GNU/Linux 3.18.3-v7+ armv7l)


 * Documentation:  https://help.ubuntu.com/


The programs included with the Ubuntu system are free software;

the exact distribution terms for each program are described in the

individual files in /usr/share/doc/*/copyright.


Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by

applicable law.


Welcome to the Ubuntu Core rolling development release.


 * See https://ubuntu.com/snappy


It's a brave new world here in snappy Ubuntu Core! This machine

does not use apt-get or deb packages. Please see 'snappy --help'

for app installation and transactional updates.


To run a command as administrator (user "root"), use "sudo <command>".

See "man sudo_root" for details.


ubuntu@localhost:~$ sudo apt-get update

Ubuntu Core does not use apt-get, see 'snappy --help'!

ubuntu@localhost:~$ snappy

Usage:snappy [-h] [-v]

             {info,versions,search,update-versions,update,rollback,install,uninstall,tags,config,build,booted,chroot,framework,fake-version,nap}

             ...

ubuntu@localhost:~$ snappy update

This command needs root, please run with sudo

ubuntu@localhost:~$ sudo snappy update

Traceback (most recent call last):

  File "/usr/bin/snappy", line 25, in <module>

    status = Main().__main__()

  File "/usr/lib/python3/dist-packages/snappy/main.py", line 195, in __main__

    return callback(args)

  File "/usr/lib/python3/dist-packages/snappy/main.py", line 511, in _do_update

    for pkg in ClickDataSource().upgradable_apps]

  File "/usr/lib/python3/dist-packages/snappy/click.py", line 180, in upgradable_apps

    all_updates_list = repo.get_upgradable()

  File "/usr/lib/python3/dist-packages/click/repository.py", line 183, in get_upgradable

    headers={"content-type": "application/json"})

  File "/usr/lib/python3/dist-packages/click/network.py", line 70, in http_request

    curl.perform()

pycurl.error: (60, 'server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none')



로컬에서 xwindow 켜고 해야 하려나? -_-

Posted by 구차니
embeded/raspberry pi2015. 3. 1. 11:42

라즈베리를 남이 만들어 놓은것만 쓰려고 산건 아니니 ㅋ

일단 크로스 컴파일러와 커널 소스는 github상에 존재하고

그 외에는 받아서 천천히 보면 어찌 알게 되겠지 머


[링크 : http://www.raspberrypi.org/documentation/linux/kernel/building.md]

[링크 : https://github.com/raspberrypi/tools/tree/master/usbboot] 부트로더

[링크 : https://github.com/raspberrypi/linux] 커널

[링크 : https://github.com/raspberrypi/target_fs] rootfs / busybox 기반

[링크 : https://github.com/raspberrypi/tools] 크로스 컴파일러 - 리눅스 용인듯?



+ 2015.03.01

The BCM2835 device has a number of different modes for booting, the most obvious one is the SD card which looks for a file called bootcode.bin on the first FAT partition of the SD card to boot from.


올 -_-a

칩에서 SD 메모리 인식해서 FAT 면은 자동으로 bootconde.bin을 찾아서 부팅하다니

겁나 똑똑한 칩일세 ㄷㄷ

Posted by 구차니
embeded/raspberry pi2015. 3. 1. 09:56

다 설치는 아직 못해보고 부팅만 해봄



pre-installed NOOBS SD card도 파는데

먼데 돈 받고 팔어!? 라는 생각에 한번 시도


설치법은 의외로 쉬운데

SD 위원회의 SDFormatter라는 프로그램을 받아 설치후 포맷하면 된다.

[링크 : https://www.sdcard.org/downloads/formatter_4/]


다른건 필요없고 option의 FORMAT SIZE ADJUSTMENT를 ON으로 해주면

볼륨 사이즈 상관없이 전체 파티션을 하나로 잡고 자동으로 밀어 준다.

수동으로 한다면.. 단일 파티션으로 잡고 FAT로 포맷하면 될 것 같기도 한데? 문제는...


NOOBS_v1_4_0.zip을 다운로드 받아

옆의 경로 부터 전체를 복사해주면 설치 끝!(엥? 부트섹터도 없어!??!)


[링크 : http://www.raspberrypi.org/help/noobs-setup/]


아무튼 그렇게 하고 나서 켜보니

이런저런걸 install 할 수 있도록 되어 있는데..

NOOB이라고 해서 머 대단한걸 기대했는데 꼴랑랑(?) raspbian이라니 -_ㅠ


+ 2015.03.01

랜선 연결하고 하니

다른 배포판들도 네트워크로 접속해서 다운로드 받을 수 있도록 된다!!!



Posted by 구차니