회사일/STLinux2010. 3. 8. 17:22
STLinux2.2에서 크로스 컴파일을 시도하는데
sh4-linux-gcc -DHAVE_AV_CONFIG_H -I. -I"/home/morpheuz/st7109/target_ori/root/ffmpeg" --sysroot=/home/morpheuz/st7109/target_ori -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -Wmissing-prototypes -O3 -fno-math-errno -fno-tree-vectorize        -MMD -MF ffserver.d -MT ffserver.o -c -o ffserver.o ffserver.c

libavcodec/vorbis_dec.c:1409: warning: no previous prototype for 'vorbis_inverse_coupling'
libavcodec/vorbis_dec.c: In function 'vorbis_decode_init':
libavcodec/vorbis_dec.c:575: warning: 'book_idx' is used uninitialized in this function
libavcodec/vorbis_dec.c:998: internal compiler error: in schedule_insns, at sched-rgn.c:2605
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://bugzilla.stlinux.com> for instructions.
make: *** [libavcodec/vorbis_dec.o] Error 1 
요런 에러가 발생한다.

물론, 컴파일도 제대로 완료되지 못하고 결과물도 생성되지 않는다.
버그리폿하려다가 그냥 STLinux2.3에 들어있는 sh4-linux-gcc로 하니 문제없이 해결!

뭥미? ㄱ-




아무튼, PATH 변수의 경로를 바꾸는 법이 있다지만, 귀차니즘으로 인해
config.mak 파일의 CC= AS= 등에
전부 절대경로로 바꾸어 넣어주었다.

# ./configure --enable-shared --target-os=linux --arch=sh4 --cross-prefix=sh4-linux- --enable-cross-compile

# vi config.mak
CC=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
AS=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
LD=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
DEPCC=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
AR=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-ar
RANLIB=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-ranlib
STRIP=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-strip

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

glibc 타겟보드 컴파일  (2) 2010.03.15
VLC 와 pkg-config  (0) 2010.03.09
python 2.5.4 컴파일시 bzip 에러  (0) 2010.02.25
python2.4 on STLinux with google api(gdata)  (0) 2010.02.23
cross compiled python2.4 on STLinux2.3  (2) 2010.02.23
Posted by 구차니
회사일2010. 3. 4. 17:28
은행 인증서
C:\Program Files\NPKI

사회보험EDI 인증서(c:\ktedi 에는 없음)
C:\windows\pkiclient\cn=id(6xxxxxxx)

[링크 : http://blog.naver.com/search9/60098723745]

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

oscam - open source CAM  (4) 2010.04.06
VLC 1.0.5 반전!  (2) 2010.03.11
H.26x MPEG2, MPEG4  (6) 2010.01.19
ERP, SCM, CRM, EIS, MIS, DSS  (0) 2009.12.17
MP@ML MP@HL  (0) 2009.09.29
Posted by 구차니
회사일/STLinux2010. 2. 25. 10:22
파이썬을 크로스 컴파일(라고 하지만 엄밀하게는 타겟보드에서 컴파일)하는데 에러가 두가지가 났다.

Python-2.6.4# make
make: Current time: Timestamp out of range; substituting 1970-01-01 00:00:00
make: Warning: File `Makefile' has modification time 1.3e+09 s in the future
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building 'termios' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/root/Python-2.6.4/./Include -I. -II
nclude -I./Include -I/usr/local/include -I/root/Python-2.6.4/Include -I/root/Python-2.6.4 -c /root/Python-2.6.4/Modules/termios.c -o
 build/temp.linux-sh4-2.6/root/Python-2.6.4/Modules/termios.o
/root/Python-2.6.4/Modules/termios.c:753: error: invalid application of 'sizeof' to incomplete type 'struct serial_struct'
/root/Python-2.6.4/Modules/termios.c:753: error: array type has incomplete element type
/root/Python-2.6.4/Modules/termios.c:753: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark
) in c_expr_sizeof_type, at c-typeck.c:2105
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://bugzilla.stlinux.com> for instructions.
building 'bz2' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/root/Python-2.6.4/./Include -I. -II
nclude -I./Include -I/usr/local/include -I/root/Python-2.6.4/Include -I/root/Python-2.6.4 -c /root/Python-2.6.4/Modules/bz2module.c
-o build/temp.linux-sh4-2.6/root/Python-2.6.4/Modules/bz2module.o
gcc -pthread -shared build/temp.linux-sh4-2.6/root/Python-2.6.4/Modules/bz2module.o -L/usr/local/lib -lbz2 -o build/lib.linux-sh4-2.
6/bz2.so
*** WARNING: renaming "bz2" since importing it failed: libbz2.so.1.0: cannot open shared object file: No such file or directory

Failed to find the necessary bits to build these modules:
_bsddb             _sqlite3           _tkinter
bsddb185           dbm                gdbm
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
bz2                termios

running build_scripts
make: warning:  Clock skew detected.  Your build may be incomplete.


아무튼 bzip 다운로드는 아래 링크에서 하면된다.
[링크 : http://www.bzip.org/]


그나저나. 저넘의 termios는 어쩔? ㄱ-
Posted by 구차니
회사일/STLinux2010. 2. 23. 20:27

File "/usr/local/lib/python2.4/random.py", line 68, in ?
import _random
ImportError: /usr/local/lib/python2.4/lib-dynload/_random.so: undefined symbol: _PyArg_NoKeywords

요런 에러를 뱉어주시길래
먼가해서 한참을 골머리를 데굴데굴 굴려보았는데..

STLinux2.3 패키지에서
그냥 /usr/lib/python2.4 하위 폴더를 전부 교체 해주면된다.

아무래도 다른 버전과 꼬이거나 _error.so 파일에서 엉긴듯
(다른 이야기는 2.3과 2.4가 중복설치되면 그럴수도 있다고 한다.)
(이유는 모르겠지만, 2.4가 제대로 작동되는 기본 STLinux2.3 타켓에서는 _error.so가 발견되지 않았다.)



_error.so 를 해결하니, gdata 테스트에서

  File "/usr/lib/python2.4/site-packages/gdata/tlslite/utils/cryptomath.py", line 13, in ?
    from hashlib import sha1
ImportError: No module named hashlib

에러를 뱉어주신다. (뭥미!)
또 검색해보니, python2.5 용으로 추측되며 2.4용으로 backporting 된것이 존재한다고 한다.
문제는, 험난한... 컴파일의 벽 OTL python이 제대로 크로스컴파일 안된건지(ST 죽을래?)
gcc로 하려고 에러가 난다. 심볼릭 링크 걸고 하려니 산넘어 산..
그냥 풀 타겟에서 크로스컴파일 해서 넘기자 ㄱ-

# python setup.py install
Using OpenSSL version 0x0090800f from
 Headers:       /usr/include
 Library:       /usr/lib/libssl.so
running install
running build
running build_py
running build_ext
building '_hashlib' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/python2.4 -c Modules/_hashopenssl.c -o build/temp.
linux-sh4-2.4/Modules/_hashopenssl.o
gcc -shared build/temp.linux-sh4-2.4/Modules/_hashopenssl.o -L/usr/lib -lssl -lcrypto -o build/lib.linux-sh4-2.4/_hashlib.so
running install_lib
copying build/lib.linux-sh4-2.4/_hashlib.so -> /usr/lib/python2.4/site-packages
copying build/lib.linux-sh4-2.4/hashlib.py -> /usr/lib/python2.4/site-packages
byte-compiling /usr/lib/python2.4/site-packages/hashlib.py to hashlib.pyc

[링크 : http://trac.calendarserver.org/ticket/292]
[링크 : http://code.krypto.org/python/hashlib/] << 요기서 다운로드
Posted by 구차니
회사일/STLinux2010. 2. 23. 10:27
/opt/STM/STLinux-2.2/devkit/sh4/target/usr/bin/python
/opt/STM/STLinux-2.2/devkit/sh4/target/lib/libutil-2.5.so
/opt/STM/STLinux-2.2/devkit/sh4/target/lib/libutil.so.1 -> libutil-2.5.so
/opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib/python2.4/

아.. 미리 찾아볼껄 왜 이 삽질을 했을까 ㅠ.ㅠ
Posted by 구차니
회사일/enigma2010. 1. 21. 16:24
위키에서 낙시질을 하다니 ㄱ-

Download
You can get the newest version by using CVS:
cvs -d :pserver:anonymous@dreamboxupdate.com:/cvs co enigma2

[링크 : http://dream.reichholf.net/wiki/Enigma2]

timeout 뜨면서 안된다. 미네랄!

git clone git://git.opendreambox.org/git/enigma2.git

얄리얄리 얄라성 얄라리 얄라~


Enigma / Enigma2는 오픈소스로 진행되는 위성셋탑박스 프로젝트이다.
가장 유명한 제품이 Dreambox 이며(아마도?)
Enigma는 C/C++ 기반으로 (되어있다고 하며)
Enigma2는 Python 기반으로 되어있다.

일반적으로 Enigma 박스는 IBM PowerPC(MIPS) 계열 CPU를 사용한다.
[링크 : http://dream.reichholf.net/wiki/Enigma2]
Posted by 구차니
회사일2010. 1. 19. 11:01
MPEG-1's known weaknesses:
    * an audio compression system limited to two channels (stereo.)
    * no standardized support for interlaced video with poor compression when used for interlaced video
    * only one standardized "profile" (Constrained Parameters Bitstream) which was unsuited for higher resolution video. MPEG-1 could support 4k video but there was no easy way to encode video for higher resolutions, and identify hardware capable of supporting it, as the limitations of such hardware were not defined.
    * Support for only one color space, 4:2:0.

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



MPEG-2 part 1 ~ 11
Part  1 H.222.0
Part  2 H.262
Part  3 MPEG-2 BC - backwards compatible with MPEG-1 Audio
Part  4 - conformance testing
Part  5 - software simulation
Part  6 DSM-CC (Digital Storage Media Command and Control)
Part  7 MPEG-2 NBC (Audio - Non-Backwards Compatible with MPEG-1 Audio) / AAC
Part  8 - drop
Part  9
Part 10 DSM-CC
Part 11 IPMP (Intellectual Property Management and Protection)

Audio encoding
 MPEG-2 also introduces new audio encoding methods. These are:[12]
 MPEG-2 BC (backward compatible with MPEG-1 audio formats)[6][5][9]
     * low bitrate encoding with halved sampling rate (MPEG-1 Layer 1/2/3 LSF)
     * multichannel encoding with up to 5.1 channels
 MPEG-2 NBC (Non-Backward Compatible)[6][5]
     * MPEG-2 AAC
     * multichannel encoding with up to 48 channels

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


MPEG-4 part 1 ~ 27
Part  1 System
Part  2 Visual
Part  3 Audio
Part  4 Conformance testing
Part  5 Reference software
Part  6 DMIF (Delivery Multimedia Integration Framework)
Part  7
Part  8 over IP
Part  9 Reference hardware description
Part 10 AVC (H.264)
Part 11
Part 12 3gp (iso base media file format)
Part 13 IPMP
Part 14 mp4
Part 15 AVC (Advanced Video Coding)
Part 16 AFX (Animation Framework eXtension)
Part 17
Part 18
Part 19
Part 20
Part 21
Part 22
Part 23
Part 24
Part 25
Part 26
Part 27

[링크 : http://en.wikipedia.org/wiki/MPEG-4]



H.262 or MPEG-2 Part 2(known as MPEG-2 Video) is a digital video compression and encoding standard.
H.263 is a video codec standard originally designed as a low-bitrate compressed format for videoconferencing.
H.264/MPEG-4 AVC is a standard for video compression.

H.262 [링크 : http://en.wikipedia.org/wiki/MPEG-2_Part_2]
H.263 [링크 : http://en.wikipedia.org/wiki/H.263]
H.264 [링크 : http://en.wikipedia.org/wiki/H.264]

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

VLC 1.0.5 반전!  (2) 2010.03.11
인증서 복사하기  (0) 2010.03.04
ERP, SCM, CRM, EIS, MIS, DSS  (0) 2009.12.17
MP@ML MP@HL  (0) 2009.09.29
리셋 타이밍은 지켜주세요!  (0) 2009.06.30
Posted by 구차니
회사일/STmicro(JTAG)2010. 1. 14. 19:57
USB to Serial 을 꼽아준다!

USB to Serial은 수-커넥터이고,
ST micro connect는 암-커넥터이므로, 어렵게 케이블을 구할 필요도 없다.


이런 타입의 USB to RS232면 걱정끝!
어허! 왜그래! 회사에 USB to RS232 하나도 없는 사람처럼!


9600-N-8-1 얄리얄리 얄라성 얄라리얄라~ ㅋㅋ

2009/02/13 - [회사일] - ST Micro connect commands

'회사일 > STmicro(JTAG)' 카테고리의 다른 글

ST Micro connect commands  (0) 2009.02.13
Posted by 구차니
회사일2009. 12. 17. 13:50
CRM (customer relationship management) ; 고객 관계 관리
ERP (enterprise resource planning) ; 전사적 자원 관리
SCM (supply chain management) ; 공급 사슬 관리
EIS (executive information system) ; 경영진 정보 시스템
MIS (management information systems) ; 경영정보시스템
DSS (decision support system) ; 의사결정지원시스템

[링크 : http://www.terms.co.kr/CRM.htm]
[링크 : http://www.terms.co.kr/ERP.htm]
[링크 : http://www.terms.co.kr/SCM.htm]
[링크 : http://www.terms.co.kr/EIS.htm]
[링크 : http://www.terms.co.kr/DSS.htm]
[링크 : http://www.terms.co.kr/MIS.htm]

[링크 : http://k.daum.net/qna/view.html?qid=0CFTF]



약자는 싫어! ㅠ.ㅠ
아무튼 CRM 과 ERP와 SCM 은 어떻게 보면 EIS/MIS 을 구성하는 요소중에 하나인것으로 생각된다.

경영 정보를 한눈에 보여주기 위해서는
재무, 자재관리, 판매처관리 등을 해야 하는데
이것을 위한 시스템들이 CRM, ERP, SCM 이다.

그런 이유로 같으면서도 다른 녀석들 같아서 헷갈리게 되는것 같다.
어쩌면.. 하나만 쓰고 다른건 안쓰고 이러한 선택보다는
하나를 쓰게 되면 통합되면서 다른것들과 함께 써야만 하게되는 그런 느낌이랄까..

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

인증서 복사하기  (0) 2010.03.04
H.26x MPEG2, MPEG4  (6) 2010.01.19
MP@ML MP@HL  (0) 2009.09.29
리셋 타이밍은 지켜주세요!  (0) 2009.06.30
mpeg-2 Transport Stream packet analyser  (0) 2009.06.24
Posted by 구차니
회사일2009. 9. 29. 14:06
MP@ML - Main Profile At Main Level
MP@HL - Main Profile At High Level

MP@ML은 SD급
MP@HL은 HD급

[링크 : http://acronyms.thefreedictionary.com/MP@HL]
[링크 : http://acronyms.thefreedictionary.com/MP@ML]

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

H.26x MPEG2, MPEG4  (6) 2010.01.19
ERP, SCM, CRM, EIS, MIS, DSS  (0) 2009.12.17
리셋 타이밍은 지켜주세요!  (0) 2009.06.30
mpeg-2 Transport Stream packet analyser  (0) 2009.06.24
ASIX AX88xxx 드라이버 호환 USB 랜카드  (0) 2009.06.18
Posted by 구차니