embeded/ARM2015. 1. 7. 11:15

SD 메모리 미 삽입

#define ERROR_DDI_SD_MMC_DEVICE_NOT_SUPPORTED (ERROR_DDI_GROUP | ERROR_DDI_SD_DRIVER_GROUP | 0x14)

0x8020A014 ?


빈 SD 메모리

#define ERROR_DDI_SD_MBR_NOT_FOUND (ERROR_DDI_GROUP | ERROR_DDI_SD_DRIVER_GROUP | 0x1D)

0x8020A01D ?


부팅 안될경우 일정 시간뒤 출력

#define ERROR_ROM_USB_CONNECT_TIMEOUT (ERROR_ROM_GROUP | ERROR_ROM_USB_DRIVER_GROUP | 0x8)

0x80502008

'embeded > ARM' 카테고리의 다른 글

ltib on ubuntu  (0) 2015.01.12
i.mx283 부팅모드  (0) 2015.01.09
Unknown HZ value! (91) Assume 100.  (0) 2015.01.05
크로스 컴파일 옵션 configure --host  (0) 2014.10.13
iWMMX / iWMMXt - Intel XScale SIMD instructions  (0) 2014.10.08
Posted by 구차니
Programming/web 관련2015. 1. 7. 09:12

web socket은 웹 서버/클라이언트에서 socket을 열어

ajax 보다 편하고 가볍고 빠르게 통신하는 표준규약으로 현재 표준은 아니며 draft 상태이다.


node.js에서는

조금은 더 자동화 시킨 Socket.io 를 제공하지만, node.js 서버 외에는 구현체가 없어서 사용이 용이하지 않다.


web socket은

http, 80번 포트를 사용하며

Protocol Overhead 라는 방식으로 동일 프로토콜 / 커넥션을 이용해

헤더로 구분 복수개의 커넥션을 처리하는 식으로 처리하게 된다.


websocket 헤더는 "Upgrade"로 붙는다.



[링크 : http://helloworld.naver.com/helloworld/textyle/1336]

[링크 : http://caniuse.com/#search=websocket] 지원현황

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

'Programming > web 관련' 카테고리의 다른 글

웹 서버별 특징  (0) 2015.09.11
DASH - Dynamic Adaptive Streaming over HTTP  (0) 2015.09.11
html / input type radio에서의 reset 처리  (0) 2015.01.06
HTML META cache  (0) 2014.10.20
aptana / eclipse  (0) 2014.08.25
Posted by 구차니

svn add나 import 시에

/etc/subversion/config

~/.subversion/config와 상관없이 ignore 되는 확장자가 발생을 하는데

일단 이런 현상을 겪기 싫다면.. --no-ignore를 기본적으로 사용하는게 좋을듯 하다.



$ svn help import

import: 버전관리 대상이 아닌 파일과 디렉토리를 추가합니다.

사용법: import [PATH] URL


  PATH의 하위 디렉토리를 재귀적으로 URL에 추가합니다.

  PATH가 생략되면 '.' 이 사용됩니다. 필요한 경우,

  저장소 상에 상위 디렉토리가 자동으로 생성됩니다.

  PATH가 디렉토리이면, 그 내용은 URL에 모두 추가 됩니다.

  --force가 지정되면 버전관리 할 수 없는 장치 파일이나

  파이프등은 무시됩니다


옵션:

  -q [--quiet]             : 아무것도 출력하지 않거나, 요약 정보만 출력합니다

  -N [--non-recursive]     : obsolete; try --depth=files or --depth=immediates

  --depth ARG              : 적용할 단계를 제한합니다. 가능한 인자 ('empty', 'files',

                            'immediates', or 'infinity')

  --auto-props             : 자동 속성기능을 활성화합니다

  --force                  : 강제로 실행합니다

  --no-auto-props          : 자동 속성기능을 비활성화합니다

  -m [--message] ARG       : 커밋 로그 메시지를 지정합니다

  -F [--file] ARG          : arg에서 로그 메시지를 읽습니다

  --force-log              : 로그 메시지의 유효성을 확인하지 않습니다

  --editor-cmd ARG         : arg를 외부 편집기로 사용합니다

  --encoding ARG           : 값을 arg에 해당하는 문자코드로 취급합니다

  --with-revprop ARG       : set revision property ARG in new revision

                             using the name[=value] format

  --no-ignore              : svn:ignore로 지정한 것과 디폴트로 무시하는 파일들을 무시하지 않습니다


글로벌 옵션:

  --username ARG           : arg를 접속에 필요한 사용자 ID로 사용합니다

  --password ARG           : arg를 접속에 필요한 패스워드로 사용합니다

  --no-auth-cache          : 인증 정보를 캐시에 저장하지 않습니다

  --non-interactive        : 대화식 사용자 입력을 기다리지 않습니다

  --trust-server-cert      : accept unknown SSL server certificates without

                             prompting (but only with '--non-interactive')

  --config-dir ARG         : arg로 지정된 디렉토리에서 사용자 구성화일을 읽습니다

  --config-option ARG      : set user configuration option in the format:

                                 FILE:SECTION:OPTION=[VALUE]

                             For example:

                                 servers:global:http-library=serf 


$ svn help add

add: 파일과 디렉토리를 버전관리 대상에 넣습니다. 저장소에

추가하도록 스케쥴링 되며, 다음 커밋할 때, 추가됩니다.

사용법: add PATH...


옵션:

  --targets ARG            : ARG로 주어진 파일 내용을 옵션으로 추가합니다

  -N [--non-recursive]     : obsolete; try --depth=files or --depth=immediates

  --depth ARG              : 적용할 단계를 제한합니다. 가능한 인자 ('empty', 'files',

                            'immediates', or 'infinity')

  -q [--quiet]             : 아무것도 출력하지 않거나, 요약 정보만 출력합니다

  --force                  : 강제로 실행합니다

  --no-ignore              : svn:ignore로 지정한 것과 디폴트로 무시하는 파일들을 무시하지 않습니다

  --auto-props             : 자동 속성기능을 활성화합니다

  --no-auto-props          : 자동 속성기능을 비활성화합니다

  --parents                : 임시 상위개체 삽입


글로벌 옵션:

  --username ARG           : arg를 접속에 필요한 사용자 ID로 사용합니다

  --password ARG           : arg를 접속에 필요한 패스워드로 사용합니다

  --no-auth-cache          : 인증 정보를 캐시에 저장하지 않습니다

  --non-interactive        : 대화식 사용자 입력을 기다리지 않습니다

  --trust-server-cert      : accept unknown SSL server certificates without

                             prompting (but only with '--non-interactive')

  --config-dir ARG         : arg로 지정된 디렉토리에서 사용자 구성화일을 읽습니다

  --config-option ARG      : set user configuration option in the format:

                                 FILE:SECTION:OPTION=[VALUE]

                             For example:

                                 servers:global:http-library=serf


$ vi /etc/subversion/config

 96 ### Section for configuring miscelleneous Subversion options.

 97 [miscellany]

 98 ### Set global-ignores to a set of whitespace-delimited globs

 99 ### which Subversion will ignore in its 'status' output, and

100 ### while importing or adding files and directories.

101 ### '*' matches leading dots, e.g. '*.rej' matches '.foo.rej'.

102 # global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo

103 #   *.rej *~ #*# .#* .*.swp .DS_Store 


Warning: There is an error in the book: 

The default value of global-ignores was changed in svn 1.5 and 

now includes *.so *.so.[0-9]* files, 

but the one displayed in the book was not updated. 


[링크 : http://svn.haxx.se/users/archive-2009-05/0899.shtml]


[링크 : http://stackoverflow.com/.../svn-propget-svnignore-returns-nothing-but-svn-is-obviously-ignoring-my-files]

[링크 : http://svn.haxx.se/users/archive-2009-02/0821.shtml]

Posted by 구차니

서버키 재 생성할 일 있으면

/etc/sshd/sshd_hosts* 파일들을 삭제하고

sshd 서버를 재시작하면 된다.


[링크 : http://www.softec.lu/site/DevelopersCorner/HowToRegenerateNewSsh]

Posted by 구차니
Programming/web 관련2015. 1. 6. 09:26

checker 어트리뷰트를 통해 설정해두면

reset시 그 값으로 설정된다.


[링크 : http://www.homejjang.com/05/RadioButton.php]

'Programming > web 관련' 카테고리의 다른 글

DASH - Dynamic Adaptive Streaming over HTTP  (0) 2015.09.11
웹소켓(websocket)  (0) 2015.01.07
HTML META cache  (0) 2014.10.20
aptana / eclipse  (0) 2014.08.25
node.js  (0) 2014.07.07
Posted by 구차니
embeded/ARM2015. 1. 5. 15:10



sysinfo.c

 /***********************************************************************

* Some values in /proc are expressed in units of 1/HZ seconds, where HZ * is the kernel clock tick rate. One of these units is called a jiffy. * The HZ value used in the kernel may vary according to hacker desire. * According to Linus Torvalds, this is not true. He considers the values * in /proc as being in architecture-dependant units that have no relation * to the kernel clock tick rate. Examination of the kernel source code * reveals that opinion as wishful thinking. * * In any case, we need the HZ constant as used in /proc. (the real HZ value * may differ, but we don't care) There are several ways we could get HZ: * * 1. Include the kernel header file. If it changes, recompile this library. * 2. Use the sysconf() function. When HZ changes, recompile the C library! * 3. Ask the kernel. This is obviously correct... * * Linus Torvalds won't let us ask the kernel, because he thinks we should * not know the HZ value. Oh well, we don't have to listen to him. * Someone smuggled out the HZ value. :-) * * This code should work fine, even if Linus fixes the kernel to match his * stated behavior. The code only fails in case of a partial conversion. * * Recent update: on some architectures, the 2.4 kernel provides an * ELF note to indicate HZ. This may be for ARM or user-mode Linux * support. This ought to be investigated. Note that sysconf() is still * unreliable, because it doesn't return an error code when it is * used with a kernel that doesn't support the ELF note. On some other * architectures there may be a system call or sysctl() that will work. */ unsigned long long Hertz; static void old_Hertz_hack(void){ unsigned long long user_j, nice_j, sys_j, other_j; /* jiffies (clock ticks) */ double up_1, up_2, seconds; unsigned long long jiffies; unsigned h; char *restrict savelocale; savelocale = setlocale(LC_NUMERIC, NULL); setlocale(LC_NUMERIC, "C"); do{ FILE_TO_BUF(UPTIME_FILE,uptime_fd); sscanf(buf, "%lf", &up_1); /* uptime(&up_1, NULL); */ FILE_TO_BUF(STAT_FILE,stat_fd); sscanf(buf, "cpu %Lu %Lu %Lu %Lu", &user_j, &nice_j, &sys_j, &other_j); FILE_TO_BUF(UPTIME_FILE,uptime_fd); sscanf(buf, "%lf", &up_2); /* uptime(&up_2, NULL); */ } while((long long)( (up_2-up_1)*1000.0/up_1 )); /* want under 0.1% error */ setlocale(LC_NUMERIC, savelocale); jiffies = user_j + nice_j + sys_j + other_j; seconds = (up_1 + up_2) / 2; h = (unsigned)( (double)jiffies/seconds/smp_num_cpus ); /* actual values used by 2.4 kernels: 32 64 100 128 1000 1024 1200 */ switch(h){ case 9 ... 11 : Hertz = 10; break; /* S/390 (sometimes) */ case 18 ... 22 : Hertz = 20; break; /* user-mode Linux */ case 30 ... 34 : Hertz = 32; break; /* ia64 emulator */ case 48 ... 52 : Hertz = 50; break; case 58 ... 61 : Hertz = 60; break; case 62 ... 65 : Hertz = 64; break; /* StrongARM /Shark */ case 95 ... 105 : Hertz = 100; break; /* normal Linux */ case 124 ... 132 : Hertz = 128; break; /* MIPS, ARM */ case 195 ... 204 : Hertz = 200; break; /* normal << 1 */ case 253 ... 260 : Hertz = 256; break; case 393 ... 408 : Hertz = 400; break; /* normal << 2 */ case 790 ... 808 : Hertz = 800; break; /* normal << 3 */ case 990 ... 1010 : Hertz = 1000; break; /* ARM */ case 1015 ... 1035 : Hertz = 1024; break; /* Alpha, ia64 */ case 1180 ... 1220 : Hertz = 1200; break; /* Alpha */ default: #ifdef HZ Hertz = (unsigned long long)HZ; /* <asm/param.h> */ #else /* If 32-bit or big-endian (not Alpha or ia64), assume HZ is 100. */ Hertz = (sizeof(long)==sizeof(int) || htons(999)==999) ? 100UL : 1024UL; #endif fprintf(stderr, "Unknown HZ value! (%d) Assume %Ld.\n", h, Hertz); } }





[링크 : http://lkml.iu.edu/hypermail/linux/kernel/0401.2/0065.html]

[링크 : http://forum.buffalo.nas-central.org/viewtopic.php?f=18&t=13451]

[링크 : http://procps.sourceforge.net/]

[링크 : https://bugs.launchpad.net/ubuntu/+source/procps/+bug/364656]

[링크 : https://launchpadlibrarian.net/29934773/procps_3.2.7-11ubuntu3.debdiff.gz]

[링크 : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460331]

    [링크 : https://lkml.org/lkml/2002/2/18/187]


'embeded > ARM' 카테고리의 다른 글

i.mx283 부팅모드  (0) 2015.01.09
freescale imx283 boot error code  (0) 2015.01.07
크로스 컴파일 옵션 configure --host  (0) 2014.10.13
iWMMX / iWMMXt - Intel XScale SIMD instructions  (0) 2014.10.08
thumb의 장단점?  (0) 2014.09.29
Posted by 구차니

su -c "killall test"

이런식으로 스크립트에서 실행이 되는데

어떠한 이유로 이런 에러가 발생하는지는 미지수.


root     2204    1  0 14:10 ?        00:00:03 /opt/bin/test

root     2212 2204  0 14:10 ?        00:00:00 [sh] <defunct>

root     2220 2204  0 14:10 ?        00:00:00 [sh] <defunct>

root     2228 2204  0 14:10 ?        00:00:00 [sh] <defunct>




...

알고보니 ps 버전이 busybox와 일반 버전의 출력포맷이 달라서 생긴 문제.. 헐.. -_-

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

busybox su가 안될 경우  (0) 2014.12.05
busybox tftp  (0) 2013.06.18
busybox - setconsole  (0) 2011.10.21
busybox ash "cannot open /dev/ttyAS1: no such device"  (0) 2010.04.20
busybox ps는 BSD 스타일?  (0) 2010.01.12
Posted by 구차니

이제 쉬는날이 없어...

으헝헝 설날까지는 이제 죽어라 일하는 날만 남았구나..

회사는 일단 다니고...

천천히 내년을 기약해야지

당장 굶어 죽겠는데 크윽 ㅠㅠ

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

라즈베리파이2 모델B / 비글본 블랙  (0) 2015.02.10
다치고 아프고 정신없고 바쁘고  (0) 2015.02.04
뜬금포 칼 가는 취미!  (0) 2015.01.03
멀 해야 하려나...  (0) 2015.01.02
2015년 계획  (0) 2015.01.01
Posted by 구차니

이상한 취미를 가지게 될 거 같은 기분? ㅋㅋㅋ



[링크 : http://slds2.tistory.com/1277]

[링크 : http://www.dorco.co.kr/customer/kitchen_guide02]


'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

다치고 아프고 정신없고 바쁘고  (0) 2015.02.04
에헤라 디야 좋은날 끝?  (2) 2015.01.04
멀 해야 하려나...  (0) 2015.01.02
2015년 계획  (0) 2015.01.01
수습기간이 끝나가네.. + 수능전날  (0) 2014.11.12
Posted by 구차니

나이가 나이고

결혼해서 인지

더더욱 겁이 많아지는걸까...


실질 급여 마이너스

이직시 다음 급여의 기대 상승분.. 여러가지 고려했을때

영 아닌거 같긴한데... 이래저래 고민이네...

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

에헤라 디야 좋은날 끝?  (2) 2015.01.04
뜬금포 칼 가는 취미!  (0) 2015.01.03
2015년 계획  (0) 2015.01.01
수습기간이 끝나가네.. + 수능전날  (0) 2014.11.12
다음주 부터 출근..  (4) 2014.08.21
Posted by 구차니