embeded/raspberry pi2015. 6. 18. 13:03

떔질하다가 태워먹었나 -_- << 아마도 결론?

이번에는 잘 됨 ㅠㅠ
(C8 내 천원 ㅠㅠ)


먼가 파형이 이상하다는 말이 있긴한데..

음.. 잘못 잡은걸려나?

아무튼.. 파형은 나오니 일단 패스 ㅠㅠ



음.. 그럴린 없겠지만.. GND / Vs를 반대로 체크했나 -ㅁ-?

잘보니.. optical test signal과 output signal이 반대로 있네? 헐.. -_-?!



[링크 : https://www.sparkfun.com/datasheets/Sensors/Infrared/tsop382.pdf]


+

pi@raspberrypi ~ $ dmesg | grep -i lirc

[    5.288497] lirc_dev: IR Remote Control driver registered, major 246

[    5.522143] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.

[    6.664110] lirc_rpi: auto-detected active low receiver on GPIO pin 18

[    6.771417] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0

[    7.014398] lirc_rpi: driver registered! 


low active니 상관없으려나? 흐음...

Posted by 구차니
embeded/raspberry pi2015. 6. 18. 11:08

이따 밥 먹고 쉬는시간에 하나 달아봐야지 ㅋㅋㅋ



Posted by 구차니

분유 6통인가? 12만..

마스크랑 손가락 다친거 해서 또 10만

옥션에 자잘하게 취미생활 + 아내 선물로 산거 8만

집 수리한다고 산 것들 3만


평소에 안나갈거 35만 + 해서

카드값 69만원 ㄷㄷㄷ





Posted by 구차니

마우스 축 뒤집히는 것만 손보면..

umid mbook m1 에서 쾌적하게 쓸수 있지 않으려나?

그리고.. 절대좌표가 문제네 끄응.....


설정 파일은.. config.mnt?


To run games (Quake,Doom,3Dmaze,..) at full speed, it's enough to define mtrr_default in config.mnt.

[링크 : http://www.menuetos.net/faq.txt]

[링크 : http://www.menuetos.net/download.htm]


37 - Get mouse data

         In : rbx - 0 Mouse coordinates, screen relative

         Out: rax - X shl 32 + Y

         In : rbx - 1 Mouse coordinates, window relative

         Out: rax - X shl 32 + Y

         In : rbx - 2 Mouse buttons state

         Out: rax - State

         In : rbx - 3 Scroll wheel change

         Out: rax - Change



+

집에와서 보니 config.mnt 는 32비트 버전에는 존재하지 않는다 -_-


config.dat

# Menuet32 kernel setup

#

# This file lists the video, mouse and RAM setup that the kernel will use.

# Blank lines, or lines beginning with # are ignored - they are comments.

# The format for each line is: [KERNEL PARAMETER] value

# The allowable values for 'KERNEL PARAMETER' and corresponding 'value' are

# defined below. The file may be Unix or DOS format; <cr>s are ignored.

# A value of 0 => ask the user


# Select the video mode to use: there are 3 basic groups.

# Specify a value within the appropriate group.

# Vesa 2.0+ 16 M LFB:  {1} 640x480, {2} 800x600, {3} 1024x768, {4} 1280x1024

# Vesa 1.2  16 M Bnk:  {5} 640x480, {6} 800x600, {7} 1024x768, {8} 1280x1024

# EGA/CGA   256 Cols:  {9} 320x200, {A} VGA: 16 Color 640x480.

# {9} => VGA mode 0x13. {A} => VGA mode 0x12.


[VIDEO] 0


# Direct LFB write, paging (available VESA 2+ only)

# Use predefined settings or probe video mode.

# Probing enabled {1} no, {2} yes.


[PROBE] 0


# Hardware accelerated graphics

# Vesa 2.0+ (only): MTRR graphics acceleration {1} yes, {2} no.


[VACCEL] 0


# Mouse at: {1} PS/2 (USB), {2} Com1, {3} Com2.


[MOUSE] 0


# Amount of RAM (MB) available on the system

# {1} 32, {2} 64, {3} 128, {4} 256, {5} 512,{6} 1024, {7} 2048.


[RAM] 0


# Cached information from floppy or hard disk (boot device)

# When floppy is selected, the entire disk is copied to RAM as a RAM_Disk (/RD)

# Load disk image from: {1} floppy (default), {2} hd/msetup.exe (hdboot.txt), 

# {3} use preloaded ram-image from kernel restart.


[RSOURCE] 0 


비슷한 느낌의.. kernel.mnt는 있는데

바이너리 커널 파일인 것으로 추측된다.



+

64비트 버전에는 config.mnt가 존재한다.

#

#  MenuetOS 64 configuration

#


config_version          = 0x000025   # For kernel.


# Default screen resolution


screen_resolution       = 0x000002   # 1 = 640x480  , 2 = 800x600

                                     # 3 = 1024x768 , 4 = 1280x1024

                                     # 5 = 1440x900 , 9 = Custom


# Custom resolution must be supported by both

# graphics card and display.


custom_res_x            = 00000000   # Custom X resolution

custom_res_y            = 00000000   # Custon Y resolution


# PS/2 Mouse settings


mouse_scroll_wheel      = 0x000000   # 0/1 = disabled/enabled


# Window transparency

#

# 512MB of RAM required for resolutions up to 1280x1024.

# 1GB of RAM required for HD resolutions.

# Define with parameter amount_of_ram.


window_transparency     = 0x000001   # 0 = Disabled

                                     # 1 = Enabled for Title and Frames

                                     # 2 = Enabled for Title, Menu and Frames


transparency_opacity    = 0x000002   # 0 = 75:25, 1 = 50:50, 2 = 25:75


# Memory

#

# 128 MB required (0x080)


amount_of_ram           = 0x000200   # 0x100 = 256 MB, 0x200 = 512 MB


# Verify the amount for ram from Bios


ram_verify              = 0x000001   # 0x000 = Disabled, 0x001 = Enabled


# Verify OS memory map from Bios

#

# Map:0x8000-0x58000,1M-14M,16M-amount_of_ram


map_verify              = 0x000001   # 0x000 = Disabled, 0x001 = Enabled


# Memory acceleration

#

# Mtrr_default works without defining mtrr_vesa_lfb or mtrr_mask.

# Some multiprocessor systems require enabling SMP at parameter smp_enable.

# Unstable, if defined by BIOS at bootup.


mtrr_default            = 0x000100   # 0x006 = write-back, 0x100 = disabled


# Graphics acceleration

#

# Mtrr_mask is required for defining mtrr_vesa_lfb

# Unstable, if defined by BIOS at bootup.


mtrr_vesa_lfb           = 0x000100     # 0x001 = write-combine, 0x100 = disabled

mtrr_mask               = 0xffffffff   # 4 Gigabytes (default), CPU dependent


# Mtrr cache writeback

#

# If display update seems late or out of sync, enabling this feature

# results to faster display updates.


mtrr_wbinvd             = 0x000000     # 0x000 = disabled, 0x001 = enabled


# Mtrr cache delay

#

# If display has residuals from mouse or other gui events, increasing 

# this value results to cleaner display updates.


mtrr_delay              = 00000010     # 5-1000ms, default:10ms


# USB 2.0 (ehci)

#

# Webcam, TV/Radio, Printer, Mass storage (read/write, Fat32)

#

# Note: 1) USB Legacy support in BIOS must be disabled, unless

#          the computer boots from USB device. See usb_legacy_disable.

#       2) Sandisk flash drives and regular backups are recommended,

#          since not all of the mass storage functions are supported.

#       3) If motherboard has multiple ehci controllers, the first pci 

#          device is activated.


usb_enable              = 0x000000     # 0x000 = Disabled, 0x001 = Enabled


# USB 2.0 - Disable BIOS legacy support after bootup

#

# If the computer boots from USB drive, enabling this feature

# enables access to USB drive when Menuet is running.

# Not all BIOSs support this feature.


usb_legacy_disable      = 0x000000     # 0x000 = Disabled, 0x001 = Enabled


# USB 2.0 - Ehci driver cache mode

#

# To debug cache coherency between driver and controller.

# 0x000       = Normal     (non-cacheable pages)

# 0x001/0x002 = Invalidate (cache writeback and invalidate,slower)

#                          (0x001/0x002=all cpus/single cpu)

#                          (Amd sb600 and sb700 rev 3a & 3b)


usb_ehci_cache_mode     = 0x000000     # 0x000 = Normal

                                       # 0x001/0x002 = Invalidate


# USB 1.X (ohci/amd - uhci/intel)

#

# USB keyboard and mouse


usb_ohci_enable         = 0x000000     # 0x000 = Disabled, 0x001 = Enabled

usb_uhci_enable         = 0x000000     # 0x000 = Disabled, 0x001 = Enabled


# Display window content while moving


display_window          = 00000001  # 0x000 = Disabled, 0x001 = Enabled

display_interval        = 00000025  # times/second


# Window skin


window_skin             = '/FD/1/SKIN.BMP'


# Fat12 floppy


fd_1_enable             = 0x000001  # 0 = disable, 1 = enable

fd_1_write              = 0x000000  # 0/1 = disable/enable direct write


# Fat32 partition


hd_1_enable             = 0x000000  # 0x000 disabled, 0x001 enabled

hd_1_base               = 0x000000  # 0x1f0 primary, 0x170 secondary

hd_1_id                 = 0x000000  # 0x00 master, 0x10 slave

hd_1_partition          = 0x000001  # 1 first, fixed to first now

hd_1_irq                = 0x000000  # hd 1 irq, not yet implemented


# CD/DVD


cd_1_enable             = 0x000000  # 0x000 disabled, 0x001 enabled

cd_1_base               = 0x000000  # 0x1f0 primary, 0x170 secondary

cd_1_id                 = 0x000000  # 0x00 master, 0x10 slave

cd_1_irq                = 0x000000  # cd 1 irq, not yet implemented


# System directory


system_directory        = '/FD/1/'  # System file location


# Window shape


window_corners          = 0x000000  # 0 = round, 1 = sharp


# Network at boot


network_driver          = '/FD/1/DRIVER/I8254X' # Ethernet driver


network_card_enable     = 0x00000000  # 0/1 = network card disabled/enabled

                                      # When enabled, requires also selecting 

                                      # ethernet interface at network_config


network_ip              = 0x1800a8c0  # 192.168.0.24

network_gateway         = 0x0100a8c0  # 192.168.0.1

network_subnet_mask     = 0x00FFFFFF  # 255.255.255.0

network_dns             = 0x0100a8c0  # 192.168.0.1

network_config          = 0x03f80400  # Bits 16- Com port

                                      # Bits 08- Com IRQ

                                      # Bit  07  Server assigned

                                      # Bits 00- Interface 0=disabled 

                                      #                    3=ethernet


# Audio at boot


audio_driver            = '/FD/1/DRIVER/INTELHDA'

audio_card_enable       = 0x00000000  # 0/1 = audio card disabled/enabled


# Midi at boot


midi_driver             = '/FD/1/DRIVER/MPU401'

midi_card_enable        = 0x00000000  # 0/1 = midi card disabled/enabled


# Graphics


graphics_driver         = '/FD/1/DRIVER/GRX'

graphics_driver_enable  = 00000000   # 0/1 = no/yes

graphics_boot_driver    = 00000000   # 0/1 = vesa/driver

graphics_boot_x         = 00000000   # Driver boot X resolution

graphics_boot_y         = 00000000   # Driver boot Y resolution

graphics_boot_hz        = 00000000   # Driver boot frequency


# Email


email_pop_server        = 'pop.server'

email_pop_user          = 'Username'

email_smtp_server       = 'smtp.server'

email_smtp_user         = 'Username@smtp.server'


# File browser

#

# 00XY - X=Contents(0/1=close/open), Y=Paths(0/1=close/open)


file_browser_setup      = 00000001   # Contents,Paths


# Background at bootup

#

# bmp, png, jpg or gif

# [Default] = Default Menuet background


background              = '/fd/1/bgr.jpg'


# Main Menu Position

#

# 0 = up, 1 = down


main_menu_position      = 0x000001


# Multi-Processor support

#

# Upto 8 processors are supported. Pressing ctrl-alt-pageup

# moves all processes to CPU-0 and disables SMP.


smp_enable              = 0x000000   # 0x000/0x001 = disabled/enabled


# MCE

#

# CPU is disabled at machine check exception 

# (dot at top-left screen)


mce_enable              = 0x000000   # 0x000/0x001 = disabled/enabled


# Keyboard layout

#

# See app kbd-map for values (1=fin,2=eng,3=est,..)


keyboard_layout         = 00000000   # 000 = Default western


# System font default size


system_font_size        = 0x00000A   # Values: 0x009-0x00C


# Font type

#

# 0x000/0x001/0x002 = Upper/Capitalized/Lower


icon_font               = 0x000000   # 0x000-0x002

main_menu_font          = 0x000000   # 0x000-0x002

file_browser_font       = 0x000000   # 0x000-0x002


# Configuration edit delay


configuration_delay     = 0x000003   # Seconds 


'프로그램 사용 > menuetos' 카테고리의 다른 글

Menuet OS 테스트  (0) 2015.06.14
KolibriOS / MenuetOS  (0) 2015.06.13
Posted by 구차니
하드웨어2015. 6. 17. 09:07
아니 어떤넘이 허니 버터 메모리라고 뻥쳐논거야? 정말 믿었는데 -_-


일단 기본 컨셉은...
stack?

반도체 레벨의 수직 증착인지 (그럼 곧 3d memory?!?!)
아니면 웨어퍼 수준의 스택인지 모르겠지만

대역폭 / 소비전력에서의 향상이 있다고 한다.


[링크 : http://gigglehd.com/zbxe/11406988]

[링크 : http://www.itworld.co.kr/news/93293]






[링크 : http://www.amd.com/en-us/innovations/software-technologies/hbm]

'하드웨어' 카테고리의 다른 글

문득 떠오른 유기EL  (0) 2016.12.23
MPU-6050 / ADXL345  (2) 2016.03.25
HBA - Host Bus Adaptor  (0) 2015.03.19
LG NAS N2R1 + Mediawiki 성능  (0) 2014.10.10
LG NAS N2R1DD2 리셋  (0) 2014.09.23
Posted by 구차니

서버내에서 프로젝트 파일들 버전별로 엉성하게 관리하던거 정리하면서

로컬 저장소의 경로를 바꾼다고 switch 하는데 "shares no common ancestry with" 에러 발생 -_-

찾아봐도 무슨 소리인지 모르겠고..



걍 아래 ignore ancestry 하면 저장소 이동 완료

먼가 찜찜해...


[링크 : http://svnbook.red-bean.com/en/1.7/svn.branchmerge.switchwc.html]


+

고민을 해보니.. 리비전 이력상 구버전을 신버전 위치로 바꾸려고 하지만

신버전 위치에 구버전 리비전 이력이 없다면... 그럴거 같기도 하고.. 조금은 더 파악해 봐야겠다



음.. switch는 relocate와 달리.. 머랄까.. branch간 update + merge 기능이라고 해야하려나?

결론은.. 내가 한 행위에 대해서는(서버측 경로 변경) relocate로 해결해주는게 옳다


The svn switch command transforms an existing working copy to reflect a different branch.

Because svn switch is essentially a variant of svn update, it shares the same behaviors; any local modifications in your working copy are preserved when new data arrives from the repository.

[34] You can, however, use svn relocate if the URL of your server changes and you don't want to abandon an existing working copy. See svn relocate in Chapter 9, Subversion Complete Reference for more information and an example.

'프로그램 사용 > Version Control' 카테고리의 다른 글

svnadmin dump로 덤프/합치기  (0) 2015.11.26
svn merge  (0) 2015.08.19
svn 저장소 합치기  (0) 2015.06.06
svn diff syntax highlight 적용해서 보기  (0) 2015.01.30
svn add *.so ignored / --no-ignore  (0) 2015.01.06
Posted by 구차니
embeded/raspberry pi2015. 6. 15. 21:30

다운클럭된(?) 옴니아 2였어 ㄷㄷㄷ




CPU 700 MHz single-core ARM1176JZF-S (model A, A+, B, B+, CM)

[링크 : https://en.wikipedia.org/wiki/Raspberry_Pi]


CPU 삼성 S3C6410 ARM 1176 800 MHz

[링크 : http://ko.wikipedia.org/wiki/삼성_옴니아_II]

Posted by 구차니
embeded/raspberry pi2015. 6. 15. 10:10

회사 들고 와서 오실로스코프 찍어봤더니

영 데이터가 안나와서 포기하고

걍 내 땜실실력이 초 구려서 태워먹었구나 라고 결론 <<



---

어제는 1.4만원(USB 허브 + SD 리더 + USB 젠더)

오늘은 IR Receiver


만원 안넘게 조절하다가 7개 했는데

10개 해보니 어라? 천원밖에 차이가 안나네?

10개 쿠궁!!!




됐고 4일이면... 다음주 월요일에나 받을수 있겠....

주말에는 이래저래 바쁘니 이래저래 회사로 돌려놔야겠...

Posted by 구차니
embeded/raspberry pi2015. 6. 14. 22:02

powered USB hub 사서

웹캠을 연결해도 문제가 발생


1개를 하던 2개를 허브에 연결하던

라즈베리 파이에 직접 연결하던


처음 한두프레임만 나오고 시스템이 바보가 된다.



혹시나 해서.. motion 패키지를 이용해

스트리밍을 해보는데 되는거 봐서는..

vlc 패키지에서 사용하는 libavcodec 이나

v4l 라이브러리가 문제가 있을지도..


아무튼

motion 패키지를 이용해서 스트리밍 할때

웹캠을 라즈베리 파이에 직접 연결해도 작동을 잘 하는거 봐서는

간당간당하게 소비전력 제한 이하로 냠냠냠 하고 있는 것으로 보인다.




결론1 : 라즈비안 vlc 따위 -_-

결론2 : 웹캠 종류에 따라 다르겠지만.. 라즈베리에 웹캠을 직접 연결해도 작동하는 녀석도 있다?

Posted by 구차니
embeded/raspberry pi2015. 6. 14. 21:46

테스트 환경

2015-05-05-raspbian-wheezy.img

라즈비안 파이 2

UVC 지원 웹캠

motion 패키지


[링크 : http://www.rasplay.org/?p=2673] 

[링크 : http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome]


$ sudo apt-get install motion


$ sudo vi /etc/motion/motion.conf

daemon on

width 640

height 480

framerate 15

webcam_maxrate 15

webcam_localhost off

control_localhost off

$ sudo vi /etc/default/motion

start_motion_daemon=yes


기본값으로는

8080 은 제어용 페이지 

8081은 웹캠 영상 페이지


thread 라는 용어로 여러개의 카메라를 쓸수 있을거 같긴한데... 끄응..


--

일단은 제어용 페이지


라즈베리 파이 / 라즈비안에 브라우저는 바로 띄우던데..

PC 버전의 크롬/IE는 띄위지 못해 VLC로 스트리밍 주소로 연결하니 나온다.


음.. 원본이 MJPEG 인가? 트랜스코딩된건가?


1개 채널만 하는데도.. cpu를 23% 정도 먹는게 두개? 하나인가?

아무튼 .. 단순산술로는 16채널까지 가능할지도?!

(물론 USB 카메라 대역폭이 불가능 하겠지만..)


Posted by 구차니