embeded/raspberry pi2015. 6. 20. 18:01

리모컨 인식은 하는데..

인식 속도가 끊어서 한번 눌렀다가 바로 떼어야 할 정도로 

KEY_LEFT를 누르는데 두번이 한번에 눌리는 느낌?


아무튼 검색을 해보니

delay나 repeat 값을 조절해서

빠르게 입력되는 키를 좀 둔감하게 쓸 수 있는 듯


[링크 : http://forum.kodi.tv/showthread.php?tid=57488]

[링크 : http://www.lirc.org/html/configure.html]


+

젠장 PWM 하다가 포트 날려먹었나 -_ㅠ

라즈베리 2 에서 갑자기 입력이 안된다 ㅠㅠ 라즈 b로 테스트 ㅠㅠ

+

켜기 전에 연결하고 하니 되네.. 머지?

초기에 자동 감지라 그런가?


remoterepeat 라는걸 해봤는데 차이가 없네 -_-

$ sudo vi /usr/share/kodi/system/advancedsettings.xml

<?xml version="1.0" encoding="UTF-8"?>

<advancedsettings>

  <video>

    <defaultplayer>dvdplayer</defaultplayer>

    <defaultdvdplayer>dvdplayer</defaultdvdplayer>

  </video>

        <remoterepeat>2000</remoterepeat>

        <gui>

                <algorithmdirtyregions>3</algorithmdirtyregions>

                <nofliptimeout>0</nofliptimeout>

        </gui>


        <splash>false</splash>


        <lookandfeel>

                <enablerssfeeds>false</enablerssfeeds>

        </lookandfeel>


        <cputempcommand>sed -e 's/\([0-9]*\)[0-9]\{3\}.*/\1 C/' /sys/class/thermal/thermal_zone0/temp</cputempcommand>

        <gputempcommand>/opt/vc/bin/vcgencmd measure_temp | sed "s,temp=\([0-9]*\)\.[0-9]'C,\1 C,"</gputempcommand>


</advancedsettings> 


실험적으로 해보니.. suppress_repeat가 잘 먹는다.

리모컨 마다 특성이 달라서 그럴려나?(내가 쓰는건 미친듯이 반복입력한다.)

$ sudo vi /etc/lirc/lircd.conf

min_repeat    1

suppress_repeat 2 // #suppress_repeat 1

#  uncomment to suppress unwanted repeats 

Posted by 구차니
embeded/raspberry pi2015. 6. 20. 09:04

주말이니 상큼하게 라즈베리? ㅋㅋ

+ b와 2b에서 확인완료






요약본

$ sudo vi /boot/config.txt

dtoverlay=lirc-rpi

$ sudo reboot

$ sudo apt-get install lirc

$ sudo vi /etc/lirc/hardware.conf

LIRCD_ARGS="--uinput"

LOAD_MODULES=true

DRIVER="default"

DEVICE="/dev/lirc0"

MODULES="lirc_rpi"

LIRCD_CONF=""

LIRCMD_CONF=""

$ sudo service lirc stop

$ irrecord -d /dev/lirc0 ~/lircd.conf

$ sudo cp lircd.conf /etc/lirc/lircd.conf

$ sudo service lirc start 


[링크 : http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/]


lircd.conf 파일이 있긴한데.. 멀 써야 하지?

[링크 : http://lirc.sourceforge.net/remotes/]



-------------------

Step 1. config.txt의 내용에서 

# Uncomment this to enable the lirc-rpi module

dtoverlay=lirc-rpi 


Step 2. irw 해서 명령어가 실행안됨 -> lirc 미설치

$ sudo apt-get install lirc 


Step 3. hardware 파일수정

$sudo vi /etc/lirc/hardware.conf

# /etc/lirc/hardware.conf

#

# Arguments which will be used when launching lircd

LIRCD_ARGS=""


#Don't start lircmd even if there seems to be a good config file

#START_LIRCMD=false


#Don't start irexec, even if a good config file seems to exist.

#START_IREXEC=false


#Try to load appropriate kernel modules

LOAD_MODULES=true


# Run "lircd --driver=help" for a list of supported drivers.

DRIVER="UNCONFIGURED"

# usually /dev/lirc0 is the correct setting for systems using udev

DEVICE=""

MODULES=""


# Default configuration files for your hardware if any

LIRCD_CONF=""

LIRCMD_CONF="" 

을 다음과 같이

# /etc/lirc/hardware.conf

#

# Arguments which will be used when launching lircd

LIRCD_ARGS="--uinput"


#Don't start lircmd even if there seems to be a good config file

#START_LIRCMD=false


#Don't start irexec, even if a good config file seems to exist.

#START_IREXEC=false


#Try to load appropriate kernel modules

LOAD_MODULES=true


# Run "lircd --driver=help" for a list of supported drivers.

DRIVER="default"

# usually /dev/lirc0 is the correct setting for systems using udev

DEVICE="/dev/lirc0"

MODULES="lirc_rpi"


# Default configuration files for your hardware if any

LIRCD_CONF=""

LIRCMD_CONF=""


일단.. 설정한거 같으니.. 실행해보는데.. 당연히(?) 안된다.

$ sudo service lirc restart

[ ok ] No valid /etc/lirc/lircd.conf has been found..

[ ok ] Remote control support has been disabled..

[ ok ] Reconfigure LIRC or manually replace /etc/lirc/lircd.conf to enable.. 


Step 4. 혹시 모르니 lircd 데몬 종료

$ sudo service lirc restart 


Step 5. 리모컨의 특성을 설정해주어야 하는데 그게 바로 lircd.conf

$ irrecord -d /dev/lirc0 ~/lircd.conf

irrecord -  application for recording IR-codes for usage with lirc


Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)


This program will record the signals from your remote control

and create a config file for lircd.



A proper config file for lircd is maybe the most vital part of this

package, so you should invest some time to create a working config

file. Although I put a good deal of effort in this program it is often

not possible to automatically recognize all features of a remote

control. Often short-comings of the receiver hardware make it nearly

impossible. If you have problems to create a config file READ THE

DOCUMENTATION of this package, especially section "Adding new remote

controls" for how to get help.


If there already is a remote control of the same brand available at

http://www.lirc.org/remotes/ you might also want to try using such a

remote as a template. The config files already contain all

parameters of the protocol used by remotes of a certain brand and

knowing these parameters makes the job of this program much

easier. There are also template files for the most common protocols

available in the remotes/generic/ directory of the source

distribution of this package. You can use a template files by

providing the path of the file as command line parameter.


Please send the finished config files to <lirc@bartelmus.de> so that I

can make them available to others. Don't forget to put all information

that you can get about the remote control in the header of the file.


Press RETURN to continue.



Now start pressing buttons on your remote control.


It is very important that you press many different buttons and hold them

down for approximately one second. Each button should generate at least one

dot but in no case more than ten dots of output.

Don't stop pressing buttons until two lines of dots (2x80) have been

generated.


Press RETURN now to start recording.

................................................................................

Found const length: 108417

Please keep on pressing buttons like described above.

................................................................................

Space/pulse encoded remote control found.

Signal length is 67.

Found possible header: 4543 4506

Found trail pulse: 614

Found repeat code: 618 490

Signals are space encoded.

Signal length is 32

Now enter the names for the buttons.


Please enter the name for the next button (press <ENTER> to finish recording)


Checking for toggle bit mask.

Please press an arbitrary button repeatedly as fast as possible.

Make sure you keep pressing the SAME button and that you DON'T HOLD

the button down!.

If you can't see any dots appear, then wait a bit between button presses.


Press RETURN to continue.

..............................

No toggle bit mask found.

Successfully written config file.


엔터만 치고 star recording 에서 아무키나 눌러주면 되는데

처음에는 반복을 인식하는데

두번째는 반복 인식을 안해서 미친듯이 눌러줘야 한다 ㅠㅠ

아무튼 다 하고 나면 다음과 같은 lircd.conf 파일 생성

# Please make this file available to others

# by sending it to <lirc@bartelmus.de>

#

# this config file was automatically generated

# using lirc-0.9.0-pre1(default) on Fri Jun 19 23:54:38 2015

#

# contributed by

#

# brand:                       /home/pi/lircd.conf

# model no. of remote control:

# devices being controlled by this remote:

#


begin remote


  name  /home/pi/lircd.conf

  bits           32

  flags SPACE_ENC|CONST_LENGTH|REPEAT_HEADER

  eps            30

  aeps          100


  header       4543  4506

  one           607  1621

  zero          607   508

  ptrail        614

  repeat        618   490

  gap          108417

  toggle_bit_mask 0x0


      begin codes

      end codes


end remote 


Step 6. /etc/lirc/lircd.conf로 복사해주고 서비스 시작

$ sudo cp lircd.conf /etc/lirc/lircd.conf

$ sudo service lirc start

[ ok ] Loading LIRC modules:.

[ ok ] Starting remote control daemon(s) : LIRC :. 




irrecord로 녹화하기 위해서는 키를 입력해야 하는데 지정된 녀석만 일단은 쓸 수 있다.

Now enter the names for the buttons.


Please enter the name for the next button (press <ENTER> to finish recording)

KEY_CHUP

'KEY_CHUP' is not in name space (use --disable-namespace to disable checks)

Use 'irrecord --list-namespace' to see a full list of valid button names

Please try again. 


사용가능한 키 이름은 아래와 같다.

$ irrecord --list-namespace

KEY_0

KEY_102ND

KEY_1

KEY_2

KEY_3

KEY_4

KEY_5

KEY_6

KEY_7

KEY_8

KEY_9

KEY_A

KEY_AB

KEY_ADDRESSBOOK

KEY_AGAIN

KEY_ALTERASE

KEY_ANGLE

KEY_APOSTROPHE

KEY_ARCHIVE

KEY_AUDIO

KEY_AUX

KEY_B

KEY_BACK

KEY_BACKSLASH

KEY_BACKSPACE

KEY_BASSBOOST

KEY_BATTERY

KEY_BLUE

KEY_BLUETOOTH

KEY_BOOKMARKS

KEY_BREAK

KEY_BRIGHTNESS_CYCLE

KEY_BRIGHTNESSDOWN

KEY_BRIGHTNESSUP

KEY_BRIGHTNESS_ZERO

KEY_BRL_DOT10

KEY_BRL_DOT1

KEY_BRL_DOT2

KEY_BRL_DOT3

KEY_BRL_DOT4

KEY_BRL_DOT5

KEY_BRL_DOT6

KEY_BRL_DOT7

KEY_BRL_DOT8

KEY_BRL_DOT9

KEY_C

KEY_CALC

KEY_CALENDAR

KEY_CAMERA

KEY_CANCEL

KEY_CAPSLOCK

KEY_CD

KEY_CHANNEL

KEY_CHANNELDOWN

KEY_CHANNELUP

KEY_CHAT

KEY_CLEAR

KEY_CLOSE

KEY_CLOSECD

KEY_COFFEE

KEY_COMMA

KEY_COMPOSE

KEY_COMPUTER

KEY_CONFIG

KEY_CONNECT

KEY_CONTEXT_MENU

KEY_COPY

KEY_CUT

KEY_CYCLEWINDOWS

KEY_D

KEY_DASHBOARD

KEY_DATABASE

KEY_DEL_EOL

KEY_DEL_EOS

KEY_DELETE

KEY_DELETEFILE

KEY_DEL_LINE

KEY_DIGITS

KEY_DIRECTION

KEY_DIRECTORY

KEY_DISPLAY_OFF

KEY_DISPLAYTOGGLE

KEY_DOCUMENTS

KEY_DOLLAR

KEY_DOT

KEY_DOWN

KEY_DVD

KEY_E

KEY_EDIT

KEY_EDITOR

KEY_EJECTCD

KEY_EJECTCLOSECD

KEY_EMAIL

KEY_END

KEY_ENTER

KEY_EPG

KEY_EQUAL

KEY_ESC

KEY_EURO

KEY_EXIT

KEY_F10

KEY_F11

KEY_F12

KEY_F13

KEY_F14

KEY_F15

KEY_F1

KEY_F16

KEY_F17

KEY_F18

KEY_F19

KEY_F20

KEY_F21

KEY_F22

KEY_F23

KEY_F24

KEY_F2

KEY_F

KEY_F3

KEY_F4

KEY_F5

KEY_F6

KEY_F7

KEY_F8

KEY_F9

KEY_FASTFORWARD

KEY_FAVORITES

KEY_FILE

KEY_FINANCE

KEY_FIND

KEY_FIRST

KEY_FN

KEY_FN_1

KEY_FN_2

KEY_FN_B

KEY_FN_D

KEY_FN_E

KEY_FN_ESC

KEY_FN_F

KEY_FN_F10

KEY_FN_F1

KEY_FN_F11

KEY_FN_F12

KEY_FN_F2

KEY_FN_F3

KEY_FN_F4

KEY_FN_F5

KEY_FN_F6

KEY_FN_F7

KEY_FN_F8

KEY_FN_F9

KEY_FN_S

KEY_FORWARD

KEY_FORWARDMAIL

KEY_FRAMEBACK

KEY_FRAMEFORWARD

KEY_FRONT

KEY_G

KEY_GAMES

KEY_GOTO

KEY_GRAPHICSEDITOR

KEY_GRAVE

KEY_GREEN

KEY_H

KEY_HANGEUL

KEY_HANJA

KEY_HELP

KEY_HENKAN

KEY_HIRAGANA

KEY_HOME

KEY_HOMEPAGE

KEY_HP

KEY_I

KEY_INFO

KEY_INSERT

KEY_INS_LINE

KEY_ISO

KEY_J

KEY_K

KEY_KATAKANA

KEY_KATAKANAHIRAGANA

KEY_KBDILLUMDOWN

KEY_KBDILLUMTOGGLE

KEY_KBDILLUMUP

KEY_KEYBOARD

KEY_KP0

KEY_KP1

KEY_KP2

KEY_KP3

KEY_KP4

KEY_KP5

KEY_KP6

KEY_KP7

KEY_KP8

KEY_KP9

KEY_KPASTERISK

KEY_KPCOMMA

KEY_KPDOT

KEY_KPENTER

KEY_KPEQUAL

KEY_KPJPCOMMA

KEY_KPLEFTPAREN

KEY_KPMINUS

KEY_KPPLUS

KEY_KPPLUSMINUS

KEY_KPRIGHTPAREN

KEY_KPSLASH

KEY_L

KEY_LANGUAGE

KEY_LAST

KEY_LEFT

KEY_LEFTALT

KEY_LEFTBRACE

KEY_LEFTCTRL

KEY_LEFTMETA

KEY_LEFTSHIFT

KEY_LINEFEED

KEY_LIST

KEY_LOGOFF

KEY_M

KEY_MACRO

KEY_MAIL

KEY_MAX

KEY_MEDIA

KEY_MEDIA_REPEAT

KEY_MEMO

KEY_MENU

KEY_MESSENGER

KEY_MHP

KEY_MINUS

KEY_MODE

KEY_MOVE

KEY_MP3

KEY_MSDOS

KEY_MUHENKAN

KEY_MUTE

KEY_N

KEY_NEW

KEY_NEWS

KEY_NEXT

KEY_NEXTSONG

KEY_NUMERIC_0

KEY_NUMERIC_1

KEY_NUMERIC_2

KEY_NUMERIC_3

KEY_NUMERIC_4

KEY_NUMERIC_5

KEY_NUMERIC_6

KEY_NUMERIC_7

KEY_NUMERIC_8

KEY_NUMERIC_9

KEY_NUMERIC_POUND

KEY_NUMERIC_STAR

KEY_NUMLOCK

KEY_O

KEY_OK

KEY_OPEN

KEY_OPTION

KEY_P

KEY_PAGEDOWN

KEY_PAGEUP

KEY_PASTE

KEY_PAUSE

KEY_PAUSECD

KEY_PC

KEY_PHONE

KEY_PLAY

KEY_PLAYCD

KEY_PLAYER

KEY_PLAYPAUSE

KEY_POWER

KEY_POWER2

KEY_PRESENTATION

KEY_PREVIOUS

KEY_PREVIOUSSONG

KEY_PRINT

KEY_PROG1

KEY_PROG2

KEY_PROG3

KEY_PROG4

KEY_PROGRAM

KEY_PROPS

KEY_PVR

KEY_Q

KEY_QUESTION

KEY_R

KEY_RADIO

KEY_RECORD

KEY_RED

KEY_REDO

KEY_REFRESH

KEY_REPLY

KEY_RESERVED

KEY_RESTART

KEY_REWIND

KEY_RFKILL

KEY_RIGHT

KEY_RIGHTALT

KEY_RIGHTBRACE

KEY_RIGHTCTRL

KEY_RIGHTMETA

KEY_RIGHTSHIFT

KEY_RO

KEY_S

KEY_SAT

KEY_SAT2

KEY_SAVE

KEY_SCALE

KEY_SCREEN

KEY_SCROLLDOWN

KEY_SCROLLLOCK

KEY_SCROLLUP

KEY_SEARCH

KEY_SELECT

KEY_SEMICOLON

KEY_SEND

KEY_SENDFILE

KEY_SETUP

KEY_SHOP

KEY_SHUFFLE

KEY_SLASH

KEY_SLEEP

KEY_SLOW

KEY_SOUND

KEY_SPACE

KEY_SPELLCHECK

KEY_SPORT

KEY_SPREADSHEET

KEY_STOP

KEY_STOPCD

KEY_SUBTITLE

KEY_SUSPEND

KEY_SWITCHVIDEOMODE

KEY_SYSRQ

KEY_T

KEY_TAB

KEY_TAPE

KEY_TEEN

KEY_TEXT

KEY_TIME

KEY_TITLE

KEY_TUNER

KEY_TV

KEY_TV2

KEY_TWEN

KEY_U

KEY_UNDO

KEY_UNKNOWN

KEY_UP

KEY_UWB

KEY_V

KEY_VCR

KEY_VCR2

KEY_VENDOR

KEY_VIDEO

KEY_VIDEO_NEXT

KEY_VIDEOPHONE

KEY_VIDEO_PREV

KEY_VOICEMAIL

KEY_VOLUMEDOWN

KEY_VOLUMEUP

KEY_W

KEY_WAKEUP

KEY_WIMAX

KEY_WLAN

KEY_WORDPROCESSOR

KEY_WWW

KEY_X

KEY_XFER

KEY_Y

KEY_YELLOW

KEY_YEN

KEY_Z

KEY_ZENKAKUHANKAKU

KEY_ZOOM

KEY_ZOOMIN

KEY_ZOOMOUT

KEY_ZOOMRESET

BTN_0

BTN_1

BTN_2

BTN_3

BTN_4

BTN_5

BTN_6

BTN_7

BTN_8

BTN_9

BTN_A

BTN_B

BTN_BACK

BTN_BASE

BTN_BASE2

BTN_BASE3

BTN_BASE4

BTN_BASE5

BTN_BASE6

BTN_C

BTN_DEAD

BTN_DIGI

BTN_EXTRA

BTN_FORWARD

BTN_GAMEPAD

BTN_GEAR_DOWN

BTN_GEAR_UP

BTN_JOYSTICK

BTN_LEFT

BTN_MIDDLE

BTN_MISC

BTN_MODE

BTN_MOUSE

BTN_PINKIE

BTN_RIGHT

BTN_SELECT

BTN_SIDE

BTN_START

BTN_STYLUS

BTN_STYLUS2

BTN_TASK

BTN_THUMB

BTN_THUMB2

BTN_THUMBL

BTN_THUMBR

BTN_TL

BTN_TL2

BTN_TOOL_AIRBRUSH

BTN_TOOL_BRUSH

BTN_TOOL_DOUBLETAP

BTN_TOOL_FINGER

BTN_TOOL_LENS

BTN_TOOL_MOUSE

BTN_TOOL_PEN

BTN_TOOL_PENCIL

BTN_TOOL_QUADTAP

BTN_TOOL_RUBBER

BTN_TOOL_TRIPLETAP

BTN_TOP

BTN_TOP2

BTN_TOUCH

BTN_TR

BTN_TR2

BTN_TRIGGER

BTN_WHEEL

BTN_X

BTN_Y

BTN_Z 


irw는 키를 읽어 오는건데 lircd.conf에 저장된 내용만 인식한다.

아무튼.. 아래와 같은 포맷으로 출력이 나온다.

$ irw

000000000000e210 00 KEY_RIGHT /home/pi/lircd.conf

000000000000e210 01 KEY_RIGHT /home/pi/lircd.conf

000000000000e210 02 KEY_RIGHT /home/pi/lircd.conf

000000000000e218 00 KEY_LEFT /home/pi/lircd.conf

000000000000e208 00 KEY_OK /home/pi/lircd.conf

000000000000e208 01 KEY_OK /home/pi/lircd.conf

000000000000e208 02 KEY_OK /home/pi/lircd.conf

000000000000e218 00 KEY_LEFT /home/pi/lircd.conf

000000000000e218 01 KEY_LEFT /home/pi/lircd.conf

000000000000e218 02 KEY_LEFT /home/pi/lircd.conf 



Posted by 구차니

지인이 카톡을 버리는 바람에 텔레그램으로 오셈! 해서

오랫만에 접속했더니


다들 마지막 접속 시간은 2014년...

잠시 카톡 대란으로 인해 이탈했지만

결국은 카톡에 남아있는게 현실... 이랄까


메신저란게 원래.. 사람이 있어야 쓰는거긴 하지만

이렇게 빠르게 이탈할 줄이야






아마도.. 텔레그램... PC버전이 구려서 일려나?!

Posted by 구차니
Programming/C Win32 MFC2015. 6. 18. 15:03

느낌적인 느낌으로는 가변인자는 가장 큰 변수형인 void 형을 취할테니..

printf 함수에서 %f를 double로 처리하면서 float에서는 오류가 발생하는 느낌?


아무튼.. 먼가 미묘한 작동을 하네..


[링크 : http://stackoverflow.com/questions/7295066/using-printf-to-print-out-floating-values]

[링크 : http://todayhumor.com/?programmer_11386]

'Programming > C Win32 MFC' 카테고리의 다른 글

void형 포인터 ++  (0) 2015.07.14
가변인자를 다시 넘겨주기  (2) 2015.07.07
gcc 컴파일러 -D 옵션  (0) 2015.05.19
setjmp, longjmp  (0) 2015.05.19
inline 함수..  (0) 2015.05.12
Posted by 구차니
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 구차니