포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 1GB 입니다.

회사에서 2410 보드에 gdb를 써야 할 일이 생겼습니다.

컴파일 하는데 삽질좀 했네요.
잊어버릴까봐 적어둡니다. toolchain은 AESOP 에 있는걸 썼습니다.


gdb-6.7.tar.gz 파일과 termcap-1.3.1.tar.gz을 받습니다.
적당한 디렉토리에 풀어줍니다.

우선 termcap-1.3.1 부터 cross 컴파일 합니다. ./configure 를 돌려 Makefile을 만들고

다음 부분을 고쳐줍니다.
vi Makefile
----------------
# CROSS 매크로 추가
CROSS   = arm-linux-

# CC 매크로 변경
CC   = $(CROSS)gcc
AR   = $(CROSS)ar
RANLIB   = $(CROSS)ranlib
...
..
# prefix 는 적당히 바꿔줍니다. 나중에 termcap이 설치될 위치를 지정하는 겁니다.
prefix   = /usr/local
...
-----------------

termcap이 설치된 디렉토리로 가서 include/termcap.h 파일과 lib/libtermcap.a 파일을 AESOP toolchain이 설치된 디렉토리에 복사해줍니다.

cp ./include/termcap.h /root/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux/include
cp ./lib/libtermcap.a  /root/aesoptool/gcc-3.3.4-glibc-2.3.3/arm-linux/arm-linux/lib

gdb-6.7.tar.gz을 풀고 ./configure --host=arm-linux 돌려서 Makefile을 만듭니다.

다음 링크를 참고하여 XML 관련 파일을 고쳐줍니다.
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=846309&group_id=10127
-------------------------------------------------------------------------------

Date: 2003-12-30 04:57
Sender: nobody
Logged In: NO

This error occurs an all patforms which do not have an i386
processor.

From GCC 3.3.2 manual:

`cdecl'
     On the Intel 386, the `cdecl' attribute causes the

compiler to
     assume that the calling function will pop off the stack

space used
     to pass arguments.  This is useful to override the

effects of the
     `-mrtd' switch.

The wrong statement is in lib/expat.h line 48

#elif defined(__GNUC__)
#define XMLCALL __attribute__((cdecl))

the #elif statement has to be defined as:
#elif defined(__GNUC__) && defined(__i386)
#define XMLCALL __attribute__((cdecl))

Regards

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

make를 실행하면 ARM용 gdb 가 생성됩니다. 소스 코드가 있어야 디버깅이 가능하므로 NFS환경이 필수적입니다.
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
182 S3C2440용 ARM-LINUX-GCC OABI 툴 체인 패키지 file [3] 김재훈 2009-01-29 14528
181 aesop3차 wince 관련 dnw 사용 방법 입니다. file [3] 류경훈 2008-04-01 14264
180 aesop s3c2440a 3차 보드 wince 6.0 bsp 공개 합니다. file [3] 류경훈 2008-10-20 13925
179 [자료] s3c2440 ac97, amixer 관련 file [1] 강효민 2008-10-02 12337
178 S3C2440용 Legacy NAND(Larger Block) CMD 코드 샘플 file 김재훈 2008-12-11 12337
177 제품출시에 따른 GPL에 관련 사항에 대한 정리 file [3] 고도리 2006-07-02 12218
176 aESOP JTAG file [1] 노희준 2009-03-08 11397
175 aesop-2440 2nd schematic file 고도리 2011-02-08 11364
174 S3C24xx CPU에서 H-JTAG를 이용한 플래시 메모리 퓨징 file [7] 채병철 2009-10-27 11064
173 S3C2440용 ARM-LINUX-GCC OABI Debian Root File System file JhoonKim 2010-01-14 11037
172 aesop3차 보드용 wince 5.0 bsp 입니다 file [6] 류경훈 2008-02-26 10611
171 aesop-2440a 3차보드 회로도를 구합니다. [1] 임의석 2008-04-17 10492
170 [HowTo](수정완료) 이솝보드로 AXD 와 H-JTAG 으로 펌웨어 프로... [20] 이재명 2007-05-23 10331
» AESOP toolchain에 GDB 포팅하기. 유형목 2007-10-30 9946
168 aesop 2440a 3차 보드에서 sd 카드를 쓰기 위한 수정 입니다. file [4] 류경훈 2008-03-03 9811
167 aesop-2440용 touchscreen input device 지원용 tslib configurati... file 고현철 2008-07-11 9651
166 aesop rootfs 부팅 시 "[: 0: unknown operand" [1] 최승훈 2008-04-19 9555
165 [커널] aesop 1차용 2.4.20 kernel [1] 고현철 2008-04-28 9554
164 제가 aesop2440 3rd 보드에 포팅한 wince 5.0 bsp 입니다. file [3] 이재용 2008-03-25 9480
163 S3C2410 mizi 2.4.18 kernel sound driver fixed file 고도리 2007-11-04 9463

사용자 로그인