날씨가 더워서인지 먼지는 모르겠지만...
그래픽카드에 캔 타입 캐패시터 하나 터졌다..



장난으로 하드웨어 한테 그래픽 카드 고쳐달라고 드렸더니...


캔 타입 떼고..
저렴한 전액콘덴서를 달아주셨다...
Posted by 구차니
회사일2009. 6. 30. 11:12
개발중인 프론트 보드의 VFD가 이상하게 출력되는 현상이 발생되었다.

증상은
글씨가 깨져 나오는것 - 정확하게는 상단 2줄이 shift 된 듯 나오는 것이다.
아무래도VFD로는 ASCII index를 보내주는 것이니,
micom과의 문제라기 보다는 VFD문제로 생각이 되었는데

테스트를 해보니.. 혹시나 싶었던
VFD 칩의 리셋 타이밍 문제였던 것으로 판명이 났다.



결론 : 데이터시트를 경배하라 /ㅁ/

'회사일' 카테고리의 다른 글

ERP, SCM, CRM, EIS, MIS, DSS  (0) 2009.12.17
MP@ML MP@HL  (0) 2009.09.29
mpeg-2 Transport Stream packet analyser  (0) 2009.06.24
ASIX AX88xxx 드라이버 호환 USB 랜카드  (0) 2009.06.18
CBM - CuBic Meter  (0) 2009.06.16
Posted by 구차니
Linux2009. 6. 29. 18:04
*** glibc detected *** [filename+dir] : corrupted double-linked list: [0x%08X address] ***
라는 에러가 발생하고 죽는건, glibc에 추가된 메모리 보호기능이라는데

export MALLOC_CHECK_=0
으로 하면 출력도 안하고, 죽이지도 않는다고 한다.

[링크 : http://blog.daum.net/j020259/9927090]

glibc

    * Red Hat 엔터프라이즈 리눅스 4에 포함된 버전 glibc는 데이터 손상을 최대할 빨리 검색하여 방지할 수 있도록 내부 정상 감시 기능을 추가로 수행합니다. 데이터 손상이 감지되면 다음과 같은 메시지가 표준 오류로 나타날 것입니다 (만일 표준 오류(stderr)이 열려있지 않은 경우에는 syslog으로 기록됩니다):

      *** glibc detected *** double free or corruption: 0x0937d008 ***

      이 오류 메시지를 생성하는 프로그램은 디폴트로 제거(kill)됩니다; MALLOC_CHECK_ 환경 변수를 이용하여 오류 메시지 생성 여부를 선택하실 수 있습니다. 다음과 같은 설정이 가능합니다:

          o  0 ? 오류 메시지를 생성하지 않고, 프로그램을 제거하지 않음
          o  1 ? 오류 메시지를 생성하지만, 프로그램을 제거하지 않음
          o  2 ? 오류 메시지를 생성하지는 않지만, 프로그램은 제거함
          o  3 ? 오류 메시지를 생성하고 프로그램을 제거함

알림

      만일 MALLOC_CHECK_ 변수를 0이 아닌 다른 값으로 설정할 경우,
      glibc는 기본 설정 보다 광범위한 검사를 수행하므로결국 시스템 성능에 영향을 미칠 수 있습니다.

      만일 제삼자 ISV의 프로그램로 인해 이러한 데이터 손상 검사가 수행되고 오류 메시지가 나타난다면,
      심각한 문제일 수 있으니 어플리케이션의 제조업체에 보고하시기 바랍니다.


[링크 : http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ko/release-notes/as-zseries/]


Posted by 구차니
개소리 왈왈2009. 6. 29. 12:22
메일로 보낼게 있어, gmail로 보냈더니..
메일이 반송되어 돌아왔다.

내용이 수북히 써져있길래 먼가 하고 봤떠니 아래 링크 하나 걸어준거..

실행 파일을 보내거나 받을 수 있나요?

바이러스 감염을 예방하기 위한 보안 조치로 Gmail은 유해한 실행 코드가 들어있을 수 있는 실행 파일(예: .exe 파일)의 수신을 허용하지 않습니다.

Gmail은 이러한 유형의 파일이 압축된 형식(.zip, .tar, .tgz, .taz, .z, .gz)으로 전송되는 경우에도 받지 않습니다. Gmail 계정으로 이러한 유형의 메일이 발송되면 발신자에게 반송됩니다.


[링크 : http://mail.google.com/support/bin/answer.py?answer=6590]


문득, 네이버나 다음, 네이트에서 저런 확장자를 못 보내도록 막아 놨다면
바이러스/보안을 위해서 노력하는구나 라고 생각을 할까, 이런 미친 쉥퀴들 이라고 욕을할까 궁금해진다.

'개소리 왈왈' 카테고리의 다른 글

구글/티스토리 방문자수 누굴 믿어야 하나?  (4) 2009.07.02
지하철에서 멋진 글귀  (2) 2009.07.01
티스토리 증후근 + 월요병 + 늬우스  (0) 2009.06.29
덥다..  (2) 2009.06.28
천백이 키보드 두둥!  (0) 2009.06.27
Posted by 구차니
개소리 왈왈2009. 6. 29. 09:57
아무생각없이 포털에서 q를 누르고 있었다....
(Q는 티스토리 관리메뉴 단축키)









월요일에 비가 와서 그런가... 일이 손에 안 잡힌다.
후우...


그냥 꿀꿀해서 생각나는김에 각종 언론사 출처 이미지는 삭제
네이버는 아예 없애야 하나..

---------
뉴스를 보다 보니 피식 웃게 하는 기사가 있었다.
[링크 : http://media.daum.net/politics/view.html?cateid=1002&newsid=20090629074606547&cp=]

우리의 대통령께서 "임기내에 대운하" 하지 않으시겠다고 이야기 하셨다는데~
내 귀에는 왜... 임기후에 끝나도록 진행하겠다고 들릴까?
(일단 삽은 떠놓고 다음 대통령에게 떠넘기고, 앞에서 땅 보상으로 돈은 챙기게 해주겠다는 걸로 해석됨)

'개소리 왈왈' 카테고리의 다른 글

지하철에서 멋진 글귀  (2) 2009.07.01
구글 메일은 첨부 파일을 싫어해?  (4) 2009.06.29
덥다..  (2) 2009.06.28
천백이 키보드 두둥!  (0) 2009.06.27
어느 공대생 이야기 - 도전 만화가  (0) 2009.06.25
Posted by 구차니
개소리 왈왈2009. 6. 28. 21:28
비도 초큼와서 시원해 지지도 않고..
Posted by 구차니
개소리 왈왈2009. 6. 27. 23:14
오늘 영준아빠님에게 구매를 하러
수원을 갔는데..!!
주소를 헷갈려서

경희대를 가야 할 것을
경기대로 가버렸다 OTL


아무튼 덕분에 좋은 부품 잘 사용합니다!!!!

'개소리 왈왈' 카테고리의 다른 글

티스토리 증후근 + 월요병 + 늬우스  (0) 2009.06.29
덥다..  (2) 2009.06.28
어느 공대생 이야기 - 도전 만화가  (0) 2009.06.25
구글 애널리틱스 - 브라우저 점유율  (6) 2009.06.24
도를 아십니까?  (2) 2009.06.24
Posted by 구차니
gdb 내부 명령어 모음집

가장 눈여겨 볼 만한 부분은
help breakpoints
help running
help stack
으로

gdb에서 한줄 실행, 함수 들어가기, 나가기 등은 running에
함수 불려진 순서등의추적은 stack에
브레이크 포인트 생성/삭제는 breakpoints의 항목에 들어 있다.

일단 Visual Studio에서 많이 쓰는것들로

브레이크 포인트 설정은 break 와 delete breakpoints 이다. (F8)
(gdb) help break
Set breakpoint at specified line or function.
break [LOCATION] [thread THREADNUM] [if CONDITION]
LOCATION may be a line number, function name, or "*" and an address.
If a line number is specified, break at start of code for that line.
If a function is specified, break at start of code for that function.
If an address is specified, break at that exact address.
With no LOCATION, uses current execution address of selected stack frame.
This is useful for breaking on return to a stack frame.

THREADNUM is the number from "info threads".
CONDITION is a boolean expression.

Multiple breakpoints at one place are permitted, and useful if conditional.

Do "help breakpoints" for info on other commands dealing with breakpoints.
--------------------------------------------------------------------------------
(gdb) help delete breakpoints
Delete some breakpoints or auto-display expressions.
Arguments are breakpoint numbers with spaces in between.
To delete all breakpoints, give no argument.
This command may be abbreviated "delete".

그리고 한줄 실행은 next(행단위 실행 F10) / step(함수단위 실행 F11) 으로
원하는 곳까지 실행은 breakpoint를 잡은후 continue를 하면 된다.

(gdb) help next
Step program, proceeding through subroutine calls.
Like the "step" command as long as subroutine calls do not happen;
when they do, the call is treated as one instruction.
Argument N means do this N times (or till program stops for another reason).

(gdb) help step
Step program until it reaches a different source line.
Argument N means do this N times (or till program stops for another reason).

(gdb) help jump
Continue program being debugged at specified line or address.
Give as argument either LINENUM or *ADDR, where ADDR is an expression for an address to start at.

gdb의 차이점은, 현재 실행중인 라인을 보기가 조금은 힘들다는 것인데,
소스를 보기 위해서는 list를 입력하면 된다.
(gdb) help list
List specified function or line.
With no argument, lists ten more lines after or around previous listing.
"list -" lists the ten lines before a previous ten-line listing.
One argument specifies a line, and ten lines are listed around that line.
Two arguments with comma between specify starting and ending lines to list.
Lines can be specified in these ways:
  LINENUM, to list around that line in current file,
  FILE:LINENUM, to list around that line in that file,
  FUNCTION, to list around beginning of that function,
  FILE:FUNCTION, to distinguish among like-named static functions.
  *ADDRESS, to list around the line containing that address.
With two args if one is empty it stands for ten lines away from the other arg.




Posted by 구차니
회사일/STLinux2009. 6. 26. 15:28
왜 -pg 옵션으로 프로파일링을 해놔도 gmon.out이 생성이 안되는지
혹시 sh4-linux-gcc가 잘못된 건가? 하고 생각을 했었는데 이유는 다른데 있었다.

For users interested in tuning the performance of their applications, the STLinux distribution includes two profilers - gprof and OProfile.

The standard GNU profiler, gprof, has two key limitations for embedded Linux development:

    * It will only profile a single user mode application.
    * It will only profile an entire run of that application, and requires it to exit.

Many embedded applications are never intended to exit!

[링크 : http://stlinux.com/docs/manual/howto/how_to_guide37.php]

이래서 gprof 대신에 다른 걸 언급해 놓은 거구나 ㄱ-
Posted by 구차니
gdb는 GNU DeBugger 이고
gdbserver는 타겟보드나 원격지의 시스템을 디버깅하는데 쓰이는 서버 프로그램이다.
insight는 위의 것을 통괄적으로 사용하는 GUI 툴이다.



일단 (실패는 했지만) 간단하게 설명하자면

개발 타겟 보드에서, 프로그램 실행시에
1. gdbserver localhost:port program 으로 실행한다.
port는 딱히 정해진 well-known port가 없으므로, 임의로 설정을 하면되는 것으로 보인다.

서버측에서는
2. gdb program으로 실행한다.
3. gdb가 구동하면 target remote ipaddr:port 로 접속한다.
4. 그 다음에는 gdb 사용하듯 사용하면 된다.


insight는 사용을 해보기에는, gdb를 내장하고 있는것으로 보이며

1. File 메뉴의 Target Setting 항목에서

2. 원하는 방법을 고른 후 설정한다.

3. 나의 경우에는 시리얼에는 각종 디버그 메시지로 인해서 맘편하게 TCP로 하기로 했으니..
   아무튼 Hostname은 Target 보드의 IP, 포트는 gdbserver에서 설정했던 포트를 사용하면 된다.

크로스컴파일 실패로 실질적으로 디버깅은 불가 ㅠ.ㅠ

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

gdb 명령어 - next / step / [엔터]  (0) 2009.07.01
gdb help  (0) 2009.06.26
gdb/insight configure 도움말  (0) 2009.06.26
GDB Insight FAQ - support target list  (0) 2009.06.26
insight - GDB GUI frontend  (0) 2009.06.26
Posted by 구차니