기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.

안녕하세요.

현재 리눅스에서 u-boot 소스와 ELDK를 사용하여 컴파일해서 사용했습니다. 그랬더니 많이 불편하네요

윈도우즈 상에서 사용할려면 cygwin이라는 에뮬레이터 비슷한 쉘을 써야한다고 나와있습니다.

그래서 문서 찾고 해봤는데 잘 안되네요.

[진행내용]
1. cygwin 설치
2. gnuarm을 cygwin 폴더의 usr/local/GNUARM/이라는 폴더를 만들어 설치
3. cygwin의 /etc/profile 에서 path에다 아래와 같이 추가
PATH=/usr/local/GNUARM/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
export PATH

4. u-boot의 makefile에서 arm-linux- 를 arm-elf로 수정
5.  make clobber, make distclean, make clean을 해주고
6. make test_config 까지 완성
7. make all 을 했더니 아래와 같이 에러가 납니다.

=================================================================================================
test@test /home/u-boot134/u-boot-1.3.4
$ make all
Generating include/autoconf.mk.dep
for dir in tools examples api_examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/u-boot134/u-boot-1.3.4/tools'
ln -s ../common/environment.c environment.c
ln -s ../include/zlib.h zlib.h
ln -s ../lib_generic/crc32.c crc32.c
ln -s ../lib_generic/md5.c md5.c
ln -s ../lib_generic/sha1.c sha1.c
ln -s ../common/image.c image.c
if [ ! -f mkimage.h ] ; then
                        ln -s ../tools/mkimage.h mkimage.h;
                fi
if [ ! -f fdt_host.h ] ; then
                        ln -s ../tools/fdt_host.h fdt_host.h;
                fi
make[1]: Leaving directory `/home/u-boot134/u-boot-1.3.4/tools'
make[1]: Entering directory `/home/u-boot134/u-boot-1.3.4/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/u-boot134/u-boot-1.3.4/tools'
make[1]: Entering directory `/home/u-boot134/u-boot-1.3.4/examples'
make[1]: Leaving directory `/home/u-boot134/u-boot-1.3.4/examples'
make[1]: Entering directory `/home/u-boot134/u-boot-1.3.4/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/u-boot134/u-boot-1.3.4/examples'
make[1]: Entering directory `/home/u-boot134/u-boot-1.3.4/api_examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/u-boot134/u-boot-1.3.4/api_examples'
Generating include/autoconf.mk
make -C tools all
make[1]: Entering directory `/home/u-boot134/u-boot-1.3.4/tools'
gcc -Wall -pedantic -ansi -idirafter /home/u-boot134/u-boot-1.3.4/include -idira
fter /home/u-boot134/u-boot-1.3.4/include2 -idirafter /home/u-boot134/u-boot-1.3
.4/include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -ansi -idirafter /home/u-boot134/u-boot-1.3.4/include -idira
fter /home/u-boot134/u-boot-1.3.4/include2 -idirafter /home/u-boot134/u-boot-1.3
.4/include -DTEXT_BASE=0xa3080000 -DUSE_HOSTCC -O  -o img2srec.exe img2srec.o
strip img2srec.exe
gcc -g -Wall -idirafter /home/u-boot134/u-boot-1.3.4/include -idirafter /home/u-
boot134/u-boot-1.3.4/include2 -idirafter /home/u-boot134/u-boot-1.3.4/include -D
TEXT_BASE=0xa3080000 -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c
In file included from fdt_host.h:25,
                 from mkimage.h:36,
                 from mkimage.c:25:
../include/libfdt.h: In function `fdt_set_magic':
../include/libfdt.h:162: warning: implicit declaration of function `__cpu_to_be3
2'
In file included from mkimage.c:26:
/home/u-boot134/u-boot-1.3.4/include/image.h: At top level:
/home/u-boot134/u-boot-1.3.4/include/image.h:202: error: parse error before "ulo
ng"
/home/u-boot134/u-boot-1.3.4/include/image.h:224: error: parse error before '}'
token
/home/u-boot134/u-boot-1.3.4/include/image.h:334: error: parse error before "ima
ge_get_data"
/home/u-boot134/u-boot-1.3.4/include/image.h: In function `image_get_data':
/home/u-boot134/u-boot-1.3.4/include/image.h:336: error: `ulong' undeclared (fir
st use in this function)
/home/u-boot134/u-boot-1.3.4/include/image.h:336: error: (Each undeclared identi
fier is reported only once
/home/u-boot134/u-boot-1.3.4/include/image.h:336: error: for each function it ap
pears in.)
/home/u-boot134/u-boot-1.3.4/include/image.h:336: error: parse error before "hdr
"
/home/u-boot134/u-boot-1.3.4/include/image.h: At top level:
/home/u-boot134/u-boot-1.3.4/include/image.h:343: error: parse error before "ima
ge_get_image_end"
/home/u-boot134/u-boot-1.3.4/include/image.h: In function `image_get_image_end':

/home/u-boot134/u-boot-1.3.4/include/image.h:345: error: `ulong' undeclared (fir
st use in this function)
/home/u-boot134/u-boot-1.3.4/include/image.h:345: error: parse error before "hdr
"
/home/u-boot134/u-boot-1.3.4/include/image.h: At top level:
/home/u-boot134/u-boot-1.3.4/include/image.h:402: error: parse error before "ima
ge_multi_count"
/home/u-boot134/u-boot-1.3.4/include/image.h:403: error: parse error before "ulo
ng"
/home/u-boot134/u-boot-1.3.4/include/image.h:477: error: parse error before "ulo
ng"
/home/u-boot134/u-boot-1.3.4/include/image.h:479: error: parse error before "ulo
ng"
/home/u-boot134/u-boot-1.3.4/include/image.h:493: error: parse error before "fit
_get_size"
/home/u-boot134/u-boot-1.3.4/include/image.h:505: error: parse error before "fit
_get_end"
/home/u-boot134/u-boot-1.3.4/include/image.h: In function `fit_get_end':
/home/u-boot134/u-boot-1.3.4/include/image.h:507: error: `ulong' undeclared (fir
st use in this function)
/home/u-boot134/u-boot-1.3.4/include/image.h:507: error: parse error before "fit
"
/home/u-boot134/u-boot-1.3.4/include/image.h: At top level:
/home/u-boot134/u-boot-1.3.4/include/image.h:532: error: parse error before "ulo
ng"
/home/u-boot134/u-boot-1.3.4/include/image.h:533: error: parse error before "ulo
ng"
make[1]: *** [mkimage.o] Error 1
make[1]: Leaving directory `/home/u-boot134/u-boot-1.3.4/tools'
make: *** [tools] Error 2
=================================================================================================

리눅스상에서 컴파일 완료하여 부팅까지 시켰던 소스인데
윈도우즈 환경에서 컴파일 에러가 나네요 parse error인데 구글 찾아봐도 잘 모르겠습니다.

혹시 이것을 해결할 방법이 있나요? 아님 애초부터 u-boot는 리눅스의 ELDK 상에서만 해야되는것인지요?

제생각에는 cygwin에서도 될것 같은데 방법이나 순서를 아시면 도움 좀 부탁드리겠습니다.

그럼 수고하십시오.


이제현

2009.03.04 09:00:12
*.40.239.195

4년 전쯤 cygwin에서 u-boot뿐 아니라 커널 컴파일도 해보았습니다.
경로 구성이나 CR 차이로 인해 엄청난 패치로 삽이 닳아빠지도록 삽질을 했었습니다.
3주 넘는 긴 시간동안 삽질을 하고 성공은 하였습니다만....  별 소득은 없었죠.

그 삽질하는 동안에 vmware나 virtualbox에 리눅스깔고 samba로 연결하여 XP/Vista위에서 에디터/파일관리
하는 방향으로 개발환경을 구축하는것을 추천합니다. 이건 길어야 2~3일이면 가능합니다. 

삽질은 가능하나 툴체인이나 커널이 바뀌면 그 엄청난 삽질을 또 시작해야하는다는 불편함이 있습니다.
시간이 많거나, 아님 특별히 cygwin에대한 승부욕이 불탄다면 말릴수는 없겠습니다만.... ^.^

한석준

2009.03.04 19:04:19
*.110.91.31

먼저 답변 감사드립니다.
역시 해보니깐 잘몰라서 그런지 계속 막히고 그러네요.
말씀해주신데로  vmware에 깔고 있습니다. 해당 목적에 가장 효율적인 방법을 찾는것도 중요한것 같네요.
이제 samba 연결법 찾으러 가야겠습니다.
좋은 하루 되십시오.
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
6128 aESOP 가지고놀기 라는 PDF 자료중 yaffs 관련 문의 입니다.-&gt... [1] 공경준 2006-08-28 2685
6127 [질문] LX800 보드 부품수급 관련 질문` [2] 박명대 2007-11-03 2675
6126 [질문]RTC 오차 관련해서 질문 드립니다. [3] 백승준 2008-06-10 2674
6125 YAFFS2 마운트는 되는데 파일쓰기 에러... [1] 공정표 2009-08-03 2673
6124 터치 스크린.. [3] 이재철 2006-09-16 2667
6123 mf2530f의 연산 성능은 s3c2440a에 비해서 어떠한가요? [3] 성진호 2007-10-24 2664
6122 안드로이드 디바이스 드라이버 [1] jacket 2010-01-13 2653
6121 log 출력에 관해서. [3] 권윤택 2009-07-15 2652
» cygwin을 사용하여 u-boot 컴파일 가능? [2] 한석준 2009-03-03 2648
6119 안드로이드 overlay 서정민 2009-06-09 2642
6118 NAND 변경시 나온 문제 (OverWrite 문제) [2] cshqq 2013-12-09 2634
6117 XPe용 VGA 비디오 드라이버를 구할곳이 있나요 [3] 정인수 2007-05-30 2634
6116 [질문]LCD 백라이트 하드웨어적으로 ON 시키는 방범좀...(완료) [6] 안문기 2007-05-14 2630
6115 Android Kernel 2.6.29로 업데이트 방법? [1] 김태준 2009-05-15 2628
6114 mkyaffsimage 질문입니다...[완료] [4] 이홍석 2006-05-07 2624
6113 Android kernel 2.6.28 재업 smdk6410 커널용 [2] 최종환 2009-04-09 2622
6112 화면잔상 해결법? [1] 이동술 2007-05-14 2621
6111 Android 동작시 mtd부분에서 uevent관련 하여 죽어 버립니다. [3] 최종환 2009-03-26 2614
6110 U-boot상에서 Ping 테스트 에러(LAN91C111 이더넷 드라이브 사용) [2] 한석준 2009-03-11 2612
6109 tftp 파일 수신 시 timeout 이 발생 [8] blue0sky 2012-08-23 2608

사용자 로그인