embeded/raspberry pi2015. 3. 23. 22:03

ATOM 330 + ION 보다 동영상 재생 성능이 낫네 ㄷㄷ


라즈베리 파이 2

openELEC

600MHz / NEON


H.264 high profile 1080p 30fps 재생 문제 없음

H.264 high profile 1080p 60fps 프레임 드랍 있음 (kodi/xbmc 환경설정에서 44fps 로 출력됨 / 1600x900 해상도)

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

심심해서 일단 받아봄

리눅스 커널은 대략 빌드 중이라 늘어난 것일수도 있으니 크게 의미는 없으나 대략 840MB 정도 예상되고

크로스 컴파일러가 무려 945MB ㄷㄷㄷ

rootfs는 11M로 저렴하다 -ㅁ-!


~/rasp$ du -h -d 1

851M    ./linux

945M    ./tools

11M     ./target_fs

1.8G    . 


$ sudo apt-get install libncurses5-dev 

[링크 : http://askubuntu.com/questions/78749/what-provides-curses-headers-named-curses-h]


$ mkdir rasp

$ cd rasp

$ git clone --depth=1 https://github.com/raspberrypi/tools

$ git clone --depth=1 https://github.com/raspberrypi/linux

$ git clone --depth=1 https://github.com/raspberrypi/target_fs

$ export PATH=$PATH:~/rasp/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin

$ cd linux

$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig menuconfig

$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j 4 

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


커널 menuconfig 에서 보니

일단.. BCM2709로 설정되고


NEON은 켜져있도록 되어있다.



+

그나저나.. ATOM 330 / 1.6GHz 로 어느 세월에 컴파일 하지? ㅋㅋㅋ


+

오후 8:40 2015-03-23

오후 10:02 2015-03-23

무려 1시간 20분 만에 컴파일 완료 -_ㅠ


~/rasp/linux$ file vmlinux

vmlinux: ELF 32-bit LSB  executable, ARM, EABI5 version 1 (SYSV), statically linked, BuildID[sha1]=44adda67f6686154f7eb71069c144f84d4ee6c20, not stripped



린필드 i7 으로는 3분만에 컴파일 끝나던데 흑흑
역시 듀얼 코어 + HT ATOM으로는 무리였어 ㅠㅠ


+ 2015.04.09 추가
시작 오후 10:16 2015-04-09
끝 2015. 04. 09. (목) 22:47:18 KST
AMD 4850e / 2.5GHz 듀얼 코어로 30분 걸림 -_ㅠ -j4 인데도 불구하고!!! ㅠㅠ




+ 2015.05.31 추가

2015년 05월 31일 (일) 오후 07시 55분 25초 

2015. 05. 31. (일) 20:05:59 KST

AMD 945 / 3.0GHz 드코어로 10분..  클럭빨로 4850e보다는 줄지만

역시나.. i7이 짱짱이구나 싶은 결과랄까 ㅜㅜ

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

라즈비안에서는 tvservice라는 걸로 해상도는 확인/변경이 가능한데

영구적으로 바뀌는것은 아니고 런타임으로 1회성으로 변경이 가능하며

모니터 특성을 타는지 출력 변경 직후 ctrl-alt-F1 / ctrl-alt-F7을 눌러

다른 터미널로 갔다가 Xwindow로 복귀해야 화면이 제대로 나왔다.


pi@raspberrypi ~ $ sudo tvservice

Usage: tvservice [OPTION]...

  -p, --preferred                   Power on HDMI with preferred settings

  -e, --explicit="GROUP MODE DRIVE" Power on HDMI with explicit GROUP (CEA, DMT, CEA_3D_SBS, CEA_3D_TB)

                                      MODE (see --modes) and DRIVE (HDMI, DVI)

  -t, --ntsc                        Use NTSC frequency for HDMI mode (e.g. 59.94Hz rather than 60Hz)

  -c, --sdtvon="MODE ASPECT"        Power on SDTV with MODE (PAL or NTSC) and ASPECT (4:3 14:9 or 16:9)

  -o, --off                         Power off the display

  -m, --modes=GROUP                 Get supported modes for GROUP (CEA, DMT)

  -M, --monitor                     Monitor HDMI events

  -s, --status                      Get HDMI status

  -a, --audio                       Get supported audio information

  -d, --dumpedid <filename>         Dump EDID information to file

  -j, --json                        Use JSON format for --modes output

  -n, --name                        Print the device ID from EDID

  -h, --help                        Print this information


pi@raspberrypi ~ $ sudo tvservice -p

Powering on HDMI with preferred settings


pi@raspberrypi ~ $ sudo tvservice -modes=CEA

Group CEA has 0 modes:


pi@raspberrypi ~ $ sudo tvservice -modes=DMT

Group DMT has 19 modes:

           mode 4: 640x480 @ 60Hz 4:3, clock:25MHz progressive

           mode 5: 640x480 @ 72Hz 4:3, clock:31MHz progressive

           mode 6: 640x480 @ 75Hz 4:3, clock:31MHz progressive

           mode 8: 800x600 @ 56Hz 4:3, clock:36MHz progressive

           mode 9: 800x600 @ 60Hz 4:3, clock:40MHz progressive

           mode 10: 800x600 @ 72Hz 4:3, clock:50MHz progressive

           mode 11: 800x600 @ 75Hz 4:3, clock:49MHz progressive

           mode 16: 1024x768 @ 60Hz 4:3, clock:65MHz progressive

           mode 17: 1024x768 @ 70Hz 4:3, clock:75MHz progressive

           mode 18: 1024x768 @ 75Hz 4:3, clock:78MHz progressive

           mode 28: 1280x800 @ 60Hz 16:10, clock:83MHz progressive

           mode 32: 1280x960 @ 60Hz 4:3, clock:108MHz progressive

           mode 35: 1280x1024 @ 60Hz 5:4, clock:108MHz progressive

           mode 36: 1280x1024 @ 75Hz 5:4, clock:135MHz progressive

           mode 47: 1440x900 @ 60Hz 16:10, clock:106MHz progressive

           mode 51: 1600x1200 @ 60Hz 4:3, clock:162MHz progressive

           mode 58: 1680x1050 @ 60Hz 16:10, clock:146MHz progressive

           mode 82: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive

  (prefer) mode 83: 1600x900 @ 60Hz 16:9, clock:108MHz progressive


pi@raspberrypi ~ $ sudo tvservice -e "DMT 83"

Powering on HDMI with explicit settings (DMT mode 83)


pi@raspberrypi ~ $ sudo tvservice -s

state 0x120016 [DVI DMT (82) RGB full 16:9], 1920x1080 @ 60.00Hz, progressive 


영구적으로 손을 보기 위해서는

config.txt 파일에

#These values are valid if hdmi_group=2 (DMT)

hdmi_group=2

hdmi_mode=82   #1080p      60 Hz  

#hdmi_mode=83   #1600x900          Reduced blanking 

부분을 넣어줘야 한다.

단, 위와 같이 hdmi_group을 지정해 버리면 DVI로만 쓸 수 있고 HDMI로는 안되니 이 것 역시 문제네.. -_-


[링크 : https://pidome.wordpress.com/2013/08/22/raspberry-pi-monitordisplay-resolution-problems/]

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

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

Posted by 구차니
embeded/AVR (ATmega,ATtiny)2015. 3. 12. 20:17

AVR Studio 5에 연결만 해보고

실행은 제대로 안해봄.. -_-a


Title : USBAsp

Command : avrdude.exe

Arguments : -c usbasp -p atmega16 -B12 -U flash:w:$(ProjectDir)Debug\$(ItemFileName).hex


본인이 사용할 칩에 맞춰서 -p 뒤에 칩을 기재해주면 된다.


[링크 : http://www.avrfreaks.net/forum/how-install-usbasp-avr-studio-6]

[링크 : http://www.atmel.com/webdoc/atmelstudio/ch10s05s01.html]

[링크 : http://dthoughts.com/blog/2014/04/09/interfacing-usbasp-programmer-with-atmel-studio/]


GUI 상에는 USBasp는 존재하지 않는다. -_ㅠ

또한 강제로 입력해도 콤보박스로 선택되는거라.. 입력이 되지 않는다.



[링크 : http://sourceforge.net/projects/avrdude-gui/]


이녀석은 싸긴한데..

이걸쓰려면 불편을 감수하고 빌드(AVR Studio) / 플래싱(avrdude.exe) 로 나누어서 해야 할 듯

Posted by 구차니
embeded/AVR (ATmega,ATtiny)2015. 3. 11. 22:03

결론 : AVR studio 4.x 대에서는 기본적으로 호환불가

AVR Studio 5.x 이후에서는 External tools로 avrdude를 연결해서 사용가능 -_-


---

싼거래서 일단 구매하고 해보는데...

생각해보니까 블로그 하는 컴퓨터에는 WinAVR 이나 AVRstudio 가 없잖아? ㅠㅠ

일단 드라이버만 다운로드 받아서 설치!




With WinAVR version 20100110 or older, please use libusb_0.1.12.1

라는 README 파일이 있으니까

버전에 맞추어서

libusb_0.1.12.1 아래에서 깔던가 (WinAVR 2010.01.10 이전 버전)

libusb_1.2.4.0 아래에서 깔면된다.


[링크 : http://itempage3.auction.co.kr/DetailView.aspx?ItemNo=A915268257] 12900원

[링크 : http://www.fischl.de/usbasp/]


---

AVR Studio 4.14 에서 시도해보니.

USB로 되어있는 어떠한 장치도 인식을 하지 못한다 -_-




AVRDUDE를 이용해서 읽어오는 건 된다.

일단.. AVR Studio 5.x 이후 부터 외부 프로그램을 통해 구을수 있으니..

4.X 대에서는 포기해야 할 지도?

[링크 : http://khazama.com/project/programmer/]


+

음.. 펌웨어 바꾸던가 해야하려나?

[링크 : http://www.avrfreaks.net/forum/usbasp-avr-studio-new] AVR studio 4.x

[링크 : http://shannonstrutz.com/engineering/setting-up-usbasp-for-use-with-atmel-studio-6] AVR studio 6

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

핀 배열은 B+ 것을 참고!

2015/02/26 - [개소리 왈왈/라즈베리 파이 2] - 라즈베리 2 하드웨어 관련 정보 및 win10 IoT


외곽의 위에것 부터

+5 +5 GND TX RX 이니 3개를 띄우고 4번째 5번째를 연결한다. 



그리고 TX와 RX를 서로 꼬아 연결해주면

(USB TO TTL의 TX는(보라) RX는(회색) <-> 라즈베리의 4번 핀 TX(회색) 5번핀 RX(보라)


시리얼로 접속하면 펄풱!

115200 bps 로 접속하면 된다.


드라이버는 옥션 페이지 상에 연결된 scipia 에 업로드 되어 있는데

PL2303으로 나중에 찾을일이 생길 지...도?

[링크 : http://www.scipia.com/downloads/PL2303_Prolific_DriverInstaller_v1.5.0.rar]

[링크 : http://itempage3.auction.co.kr/DetailView.aspx?ItemNo=A615604872]


아무튼 가격은 2800원으로

내가 개고생 해가면서 MAX232 로 땜질하며 쑈하는거 보다 싸고 간편하고 깔끔하다! ㅋ



특이(?)하게도 부트로더 없이 바로 뜨는 듯한 콘솔 메시지의 시작이 보인다.

Uncompressing Linux... done, booting the kernel.

[    0.000000] Booting Linux on physical CPU 0xf00

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Initializing cgroup subsys cpuacct

[    0.000000] Linux version 3.18.7-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015

[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d

[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

[    0.000000] Machine model: Raspberry Pi 2 Model B

[    0.000000] cma: Reserved 8 MiB at 0x3a800000

[    0.000000] Memory policy: Data cache writealloc

[    0.000000] [bcm2709_smp_init_cpus] enter (8620->f3003010)

[    0.000000] [bcm2709_smp_init_cpus] ncores=4

[    0.000000] PERCPU: Embedded 11 pages/cpu @ba05d000 s12864 r8192 d24000 u45056

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239776

[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1600 bcm2708_fb.fbheight=900 bcm2709.boardrev=0xa21041 bcm2709.serial=0xa37ce24e smsc95xx.macaddr=B8:27:EB:7C:E2:4E bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 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 rootwait

[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

[    0.000000] Memory: 940740K/966656K available (5785K kernel code, 377K rwdata, 1760K rodata, 396K init, 771K bss, 25916K reserved)

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)

[    0.000000]     vmalloc : 0xbb800000 - 0xff000000   (1080 MB)

[    0.000000]     lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)

[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)

[    0.000000]       .text : 0x80008000 - 0x80766748   (7546 kB)

[    0.000000]       .init : 0x80767000 - 0x807ca000   ( 396 kB)

[    0.000000]       .data : 0x807ca000 - 0x808287ec   ( 378 kB)

[    0.000000]        .bss : 0x808287ec - 0x808e96d4   ( 772 kB)

[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

[    0.000000] Preemptible hierarchical RCU implementation.

[    0.000000] NR_IRQS:480

[    0.000000] Architected cp15 timer(s) running at 19.20MHz (virt).

[    0.000014] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 3579139424256ns

[    0.000039] Switching to timer-based delay loop, resolution 52ns

[    0.000331] Console: colour dummy device 80x30

[    0.001758] console [tty1] enabled

[    0.001808] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)

[    0.001891] pid_max: default: 32768 minimum: 301

[    0.002311] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)

[    0.002371] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)

[    0.003650] Initializing cgroup subsys memory

[    0.003734] Initializing cgroup subsys devices

[    0.003789] Initializing cgroup subsys freezer

[    0.003840] Initializing cgroup subsys net_cls

[    0.003899] Initializing cgroup subsys blkio

[    0.004012] CPU: Testing write buffer coherency: ok

[    0.004125] ftrace: allocating 19969 entries in 59 pages

[    0.053357] CPU0: update cpu_capacity 1024

[    0.053436] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00

[    0.053473] [bcm2709_smp_prepare_cpus] enter

[    0.053638] Setting up static identity map for 0x536c78 - 0x536cd0

[    0.113315] [bcm2709_boot_secondary] cpu:1 started (0) 18

[    0.113621] CPU1: Booted secondary processor

[    0.113629] [bcm2709_secondary_init] enter cpu:1

[    0.113682] CPU1: update cpu_capacity 1024

[    0.113691] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01

[    0.133285] [bcm2709_boot_secondary] cpu:2 started (0) 17

[    0.133545] CPU2: Booted secondary processor

[    0.133552] [bcm2709_secondary_init] enter cpu:2

[    0.133581] CPU2: update cpu_capacity 1024

[    0.133589] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02

[    0.153350] [bcm2709_boot_secondary] cpu:3 started (0) 18

[    0.153588] CPU3: Booted secondary processor

[    0.153595] [bcm2709_secondary_init] enter cpu:3

[    0.153626] CPU3: update cpu_capacity 1024

[    0.153634] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03

[    0.153725] Brought up 4 CPUs

[    0.153845] SMP: Total of 4 processors activated (153.60 BogoMIPS).

[    0.153879] CPU: All CPU(s) started in SVC mode.

[    0.154887] devtmpfs: initialized

[    0.178040] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5

[    0.180208] pinctrl core: initialized pinctrl subsystem

[    0.183253] NET: Registered protocol family 16

[    0.188873] DMA: preallocated 4096 KiB pool for atomic coherent allocations

[    0.213129] cpuidle: using governor ladder

[    0.243161] cpuidle: using governor menu

[    0.243559] bcm2709.uart_clock = 3000000

[    0.246342] No ATAGs?

[    0.246407] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.

[    0.246462] hw-breakpoint: maximum watchpoint size is 8 bytes.

[    0.246523] mailbox: Broadcom VideoCore Mailbox driver

[    0.246655] bcm2708_vcio: mailbox at f300b880

[    0.247039] bcm_power: Broadcom power driver

[    0.247077] bcm_power_open() -> 0

[    0.247103] bcm_power_request(0, 8)

[    0.747805] bcm_mailbox_read -> 00000080, 0

[    0.747837] bcm_power_request -> 0

[    0.747995] Serial: AMBA PL011 UART driver

[    0.748152] dev:f1: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev3

[    1.266554] console [ttyAMA0] enabled

[    1.336554] SCSI subsystem initialized

[    1.340574] usbcore: registered new interface driver usbfs

[    1.346240] usbcore: registered new interface driver hub

[    1.351699] usbcore: registered new device driver usb

[    1.358672] Switched to clocksource arch_sys_counter

[    1.393500] FS-Cache: Loaded

[    1.396746] CacheFiles: Loaded

[    1.412173] NET: Registered protocol family 2

[    1.417795] TCP established hash table entries: 8192 (order: 3, 32768 bytes)

[    1.425049] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

[    1.431750] TCP: Hash tables configured (established 8192 bind 8192)

[    1.438219] TCP: reno registered

[    1.441497] UDP hash table entries: 512 (order: 2, 16384 bytes)

[    1.447482] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

[    1.454244] NET: Registered protocol family 1

[    1.459089] RPC: Registered named UNIX socket transport module.

[    1.465031] RPC: Registered udp transport module.

[    1.469820] RPC: Registered tcp transport module.

[    1.474543] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    1.482053] bcm2708_dma: DMA manager at f3007000

[    1.486874] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)

[    1.496835] futex hash table entries: 1024 (order: 4, 65536 bytes)

[    1.503296] audit: initializing netlink subsys (disabled)

[    1.508824] audit: type=2000 audit(1.299:1): initialized

[    1.530418] VFS: Disk quotas dquot_6.5.2

[    1.534719] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

[    1.544398] FS-Cache: Netfs 'nfs' registered for caching

[    1.550782] NFS: Registering the id_resolver key type

[    1.555909] Key type id_resolver registered

[    1.560136] Key type id_legacy registered

[    1.565272] msgmni has been set to 1853

[    1.570917] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)

[    1.578527] io scheduler noop registered

[    1.582512] io scheduler deadline registered (default)

[    1.587977] io scheduler cfq registered

[    1.594499] BCM2708FB: allocated DMA memory fac00000

[    1.599561] BCM2708FB: allocated DMA channel 0 @ f3007000

[    1.629716] Console: switching to colour frame buffer device 200x56

[    1.651630] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver

[    1.659439] uart-pl011 dev:f1: no DMA platform data

[    1.664969] vc-cma: Videocore CMA driver

[    1.669004] vc-cma: vc_cma_base      = 0x00000000

[    1.673797] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)

[    1.679313] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)

[    1.696715] brd: module loaded

[    1.706033] loop: module loaded

[    1.709650] vchiq: vchiq_init_state: slot_zero = 0xba800000, is_master = 0

[    1.717498] Loading iSCSI transport class v2.0-870.

[    1.723522] usbcore: registered new interface driver smsc95xx

[    1.729489] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)

[    1.935662] Core Release: 2.80a

[    1.938913] Setting default values for core params

[    1.943832] Finished setting default values for core params

[    2.149946] Using Buffer DMA mode

[    2.153332] Periodic Transfer Interrupt Enhancement - disabled

[    2.159290] Multiprocessor Interrupt Enhancement - disabled

[    2.164965] OTG VER PARAM: 0, OTG VER FLAG: 0

[    2.169428] Dedicated Tx FIFOs mode

[    2.173360] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xbac14000 dma = 0xfac14000 len=9024

[    2.187568] FIQ FSM acceleration enabled for :

[    2.187568] Non-periodic Split Transactions

[    2.187568] Periodic Split Transactions

[    2.187568] High-Speed Isochronous Endpoints

[    2.221070] WARN::hcd_init_fiq:412: FIQ on core 1 at 0x803e4200

[    2.231180] WARN::hcd_init_fiq:413: FIQ ASM at 0x803e455c length 36

[    2.241627] WARN::hcd_init_fiq:438: MPHI regs_base at 0xbb806000

[    2.251886] dwc_otg bcm2708_usb: DWC OTG Controller

[    2.261049] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1

[    2.272578] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000

[    2.282326] Init: Port Power? op_state=1

[    2.290404] Init: Power Port (0)

[    2.297995] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

[    2.308951] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    2.320341] usb usb1: Product: DWC OTG Controller

[    2.329197] usb usb1: Manufacturer: Linux 3.18.7-v7+ dwc_otg_hcd

[    2.339346] usb usb1: SerialNumber: bcm2708_usb

[    2.349055] hub 1-0:1.0: USB hub found

[    2.356911] hub 1-0:1.0: 1 port detected

[    2.365917] usbcore: registered new interface driver usb-storage

[    2.376416] mousedev: PS/2 mouse device common for all mice

[    2.386832] bcm2835-cpufreq: min=600000 max=900000

[    2.396147] sdhci: Secure Digital Host Controller Interface driver

[    2.406448] sdhci: Copyright(c) Pierre Ossman

[    2.415127] DMA channels allocated for the MMC driver

[    2.458718] Load BCM2835 MMC driver

[    2.472698] sdhci-pltfm: SDHCI platform and OF driver helper

[    2.483169] ledtrig-cpu: registered to indicate activity on CPUs

[    2.493638] hidraw: raw HID events driver (C) Jiri Kosina

[    2.505528] usbcore: registered new interface driver usbhid

[    2.515318] usbhid: USB HID core driver

[    2.525664] TCP: cubic registered

[    2.533124] Initializing XFRM netlink socket

[    2.541571] NET: Registered protocol family 17

[    2.550379] Key type dns_resolver registered

[    2.559294] Registering SWP/SWPB emulation handler

[    2.568822] Indeed it is in host mode hprt0 = 00021501

[    2.579317] registered taskstats version 1

[    2.589077] vc-sm: Videocore shared memory driver

[    2.595566] mmc0: host does not support reading read-only switch, assuming write-enable

[    2.598748] mmc0: new high speed SDHC card at address aaaa

[    2.599327] mmcblk0: mmc0:aaaa SL08G 7.40 GiB

[    2.600800]  mmcblk0: p1 p2

[    2.635271] [vc_sm_connected_init]: start

[    2.644133] [vc_sm_connected_init]: end - returning 0

[    2.668060] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)

[    2.680502] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.

[    2.692523] devtmpfs: mounted

[    2.700426] Freeing unused kernel memory: 396K (80767000 - 807ca000)

[    2.758834] usb 1-1: new high-speed USB device number 2 using dwc_otg

[    2.769812] Indeed it is in host mode hprt0 = 00001101

[    2.979141] usb 1-1: New USB device found, idVendor=0424, idProduct=9514

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

[    3.002735] hub 1-1:1.0: USB hub found

[    3.010919] hub 1-1:1.0: 5 ports detected

[    3.298934] usb 1-1.1: new high-speed USB device number 3 using dwc_otg

[    3.409588] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00

[    3.421193] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

[    3.436656] smsc95xx v1.0.4

[    3.503866] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7c:e2:4e

[    3.599007] usb 1-1.5: new low-speed USB device number 4 using dwc_otg

[    3.724916] usb 1-1.5: New USB device found, idVendor=1bcf, idProduct=0007

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

[    3.749319] usb 1-1.5: Product: USB Optical Mouse

[    3.778897] input: USB Optical Mouse as /devices/platform/bcm2708_usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:1BCF:0007.0001/input/input0

[    3.796697] hid-generic 0003:1BCF:0007.0001: input,hiddev0,hidraw0: USB HID v1.10 Mouse [USB Optical Mouse] on usb-bcm2708_usb-1.5/input0

[    3.798749] udevd[174]: starting version 175

[    6.114789] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

[    6.382726] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

▒▒

Raspbian GNU/Linux 7 raspberrypi ttyAMA0


raspberrypi login: pi

Password:

Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l


The programs included with the Debian GNU/Linux system are free software;

the exact distribution terms for each program are described in the

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


Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

permitted by applicable law.


NOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config'


pi@raspberrypi:~$ 


Posted by 구차니
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 구차니