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

28페이지에 보면 make mkyaffs 와 make mkyaffsimage를 실행 시켜야 하는데.
make mkyaffs는 보드에서 실행시키위해 크로스 컴파일을 해야하는 한다고 되어 있어

Makefile을 아래와 같이 수정 했습니다.

***************** Makefile  *********************

CREDITS         Makefile     System.map      drivers/  init/     lib/     scripts/   usr/
#Makefile for mkyaffs
#
# NB this is not yet suitable for putting into the kernel tree.
# YAFFS: Yet another FFS. A NAND-flash specific file system.
#
# Copyright (C) 2002 Aleph One Ltd.
#   for Toby Churchill Ltd and Brightstar Engineering
#
# Created by Charles Manning <[email protected]>
#
#Makefile for mkyaffs
#
# NB this is not yet suitable for putting into the kernel tree.
# YAFFS: Yet another FFS. A NAND-flash specific file system.
#
# Copyright (C) 2002 Aleph One Ltd.
#   for Toby Churchill Ltd and Brightstar Engineering
#
# Created by Charles Manning <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#Makefile for mkyaffs
#
# NB this is not yet suitable for putting into the kernel tree.
# YAFFS: Yet another FFS. A NAND-flash specific file system.
#
# Copyright (C) 2002 Aleph One Ltd.
#   for Toby Churchill Ltd and Brightstar Engineering
#
# Created by Charles Manning <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.

## Change or override  KERNELDIR to your kernel

KERNELDIR = /korea-dokdo/linux-2.4.20-aesop2440/            <--------     수정한 부분

CFLAGS =   -I/usr/include -I.. -O2 -Wall -DCONFIG_YAFFS_UTIL
CFLAGS+=   -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations
CFLAGS+=   -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline

## Change if you are using a cross-compiler
MAKETOOLS =

CC=$(MAKETOOLS)arm-linux-gcc                                <---------     수정한 부분


MKYAFFSOBJS = mkyaffs.o

MKYAFFSIMAGEOBJS = mkyaffsimage.o yaffs_ecc.o


all: mkyaffs mkyaffsimage

$(MKYAFFSIMAGEOBJS): %.o: %.c
        $(CC) -c $(CFLAGS) $< -o $@

mkyaffsimage: $(MKYAFFSIMAGEOBJS)
        $(CC) -o $@ $(MKYAFFSIMAGEOBJS)

$(MKYAFFSOBJS): %.o: %.c
        $(CC) -c $(CFLAGS) $< -o $@

mkyaffs: $(MKYAFFSOBJS)
        $(CC) -o $@ $(MKYAFFSOBJS)

yaffs_ecc.c:
        ln -s ../yaffs_ecc.c yaffs_ecc.c

******************************************************



두 부분을 수정하고 아래와 같이 make mkyaffs를 하면 아래와 같습니다.



root@ibthere4u:/jun/yaffs/utils# make mkyaffs
arm-linux-gcc -c -I/usr/include -I.. -O2 -Wall -DCONFIG_YAFFS_UTIL -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline mkyaffs.c -o mkyaffs.o
In file included from mkyaffs.c:29:
/usr/include/unistd.h:1036: warning: redundant redeclaration of `ctermid' in same scope
/usr/include/stdio.h:779: warning: previous declaration of `ctermid'
mkyaffs.c:35:26: mtd/mtd-user.h: No such file or directory
mkyaffs.c:73: error: variable `yaffs_oobinfo' has initializer but incomplete type
mkyaffs.c:74: error: unknown field `useecc' specified in initializer
mkyaffs.c:74: warning: excess elements in struct initializer
mkyaffs.c:74: warning: (near initialization for `yaffs_oobinfo')
mkyaffs.c:75: error: unknown field `eccpos' specified in initializer
mkyaffs.c:75: error: extra brace group at end of initializer
mkyaffs.c:75: error: (near initialization for `yaffs_oobinfo')
mkyaffs.c:75: warning: excess elements in struct initializer
mkyaffs.c:75: warning: (near initialization for `yaffs_oobinfo')
mkyaffs.c:78: error: variable `yaffs_noeccinfo' has initializer but incomplete type
mkyaffs.c:79: error: unknown field `useecc' specified in initializer
mkyaffs.c:79: warning: excess elements in struct initializer
mkyaffs.c:79: warning: (near initialization for `yaffs_noeccinfo')
mkyaffs.c: In function `main':
mkyaffs.c:96: error: variable `oob' has initializer but incomplete type
mkyaffs.c:96: warning: excess elements in struct initializer
mkyaffs.c:96: warning: (near initialization for `oob')
mkyaffs.c:96: warning: excess elements in struct initializer
mkyaffs.c:96: warning: (near initialization for `oob')
mkyaffs.c:96: warning: excess elements in struct initializer
mkyaffs.c:96: warning: (near initialization for `oob')
mkyaffs.c:96: error: storage size of `oob' isn't known
mkyaffs.c:97: error: `mtd_info_t' undeclared (first use in this function)
mkyaffs.c:97: error: (Each undeclared identifier is reported only once
mkyaffs.c:97: error: for each function it appears in.)
mkyaffs.c:97: error: parse error before "meminfo"
mkyaffs.c:98: error: `erase_info_t' undeclared (first use in this function)
mkyaffs.c:99: error: storage size of `oobsel' isn't known
mkyaffs.c:151: error: `MEMGETINFO' undeclared (first use in this function)
mkyaffs.c:151: error: `meminfo' undeclared (first use in this function)
mkyaffs.c:159: error: `MEMSETOOBSEL' undeclared (first use in this function)
mkyaffs.c:190: error: `MEMREADOOB' undeclared (first use in this function)
mkyaffs.c:204: error: `erase' undeclared (first use in this function)
mkyaffs.c:207: error: `MEMERASE' undeclared (first use in this function)
mkyaffs.c:231: error: `MEMWRITEOOB' undeclared (first use in this function)
mkyaffs.c:96: warning: unused variable `oob'
mkyaffs.c:99: warning: unused variable `oobsel'
mkyaffs.c: At top level:
mkyaffs.c:73: error: storage size of `yaffs_oobinfo' isn't known
mkyaffs.c:78: error: storage size of `yaffs_noeccinfo' isn't known
make: *** [mkyaffs.o] Error 1
root@ibthere4u:/jun/yaffs/utils#


에러 나있는 부분을 보면 mtd/mtd-user.h 라는 파일을 찾지 못해서 인거 같은데  

어떻게 해야할지  조언을 부탁드립니다.  읽어주셔서 감사합니다.



고현철

2006.08.28 10:50:25
*.232.213.128

yaffs쪽 유틸의 경우

2.4.x 대 커널에서만 유용합니다. 실제로 mkyaffsimage의 경우도
존재하기는 하나(2.6.13 작업할때도) 컴파일은 에러가 나더군요.

수정할까 하다가 그냥 놔뒀었던 기억이 나네요.

만일 2.4.x 커널을 사용하신다면 2.4.x용의 yaffs source를 가지고
작업하셔야 합니다.

2.6.x용으로 나온 녀석은 필요도 없고, 컴파일도 안되는 듯 하더군요.

yaffs2가 아닌 yaffs의 경우 mkyaffsimage의 경우는 kernel 2.6.x대에서도 2.4.x 대 용으로 컴파일된 녀석을 가지고 image를 만들고
aesop의 u-boot에서 write해도 잘 되긴 합니다.

List of Articles
번호 제목 글쓴이 날짜sort 조회 수
168 AESOP-2440 DVD 받을 곳 없나요? [완료] [6] 강민석 2006-09-20 1074
167 터치 스크린.. [3] 이재철 2006-09-16 2667
166 폰트 관련 질문입니다..[완료] [3] 김대영 2006-09-15 1162
165 간단한 어플리케이션 프로그램 문제입니다. <== 완료 [7] 박영학 2006-09-14 919
164 MPlayer 관련 질문 좀 드립니다. <= 완료 [8] 한승혁 2006-09-14 1340
163 crosstool 질문입니다. <= [완료] [9] 신재곤 2006-09-14 1101
162 [질문] u-boot에 있는 nand write, nand read cmd시에 배드블럭... [5] 김경호 2006-09-13 2050
161 블루투스 포팅해보신분?[미해결] [2] 오용석 2006-09-12 999
160 [질문] kill 에 관해서.. 느닷없이 궁금해서요. [2] 이재훈 2006-09-12 1059
159 바이너리파일을 아스키파일로 변환하는걸 도와주세요 ... [8] 장석원 2006-09-09 1611
158 [질문] cannot execute "/etc/rc.d/rc.S" 에 관한 질문입니다. [3] 이재훈 2006-09-05 1164
157 nand flash bad eraseblock 납니다....[미해결] [2] 오용석 2006-09-02 1282
156 삼바 linking 문제 입니다.<==완료 [1] 윤현승 2006-09-02 971
155 [질문] u-boot에서 2440 USB OHCI의 성능 <= 완료 [4] 김정호 2006-09-01 1535
154 제 2410보드 동작 시험결과입니다. ^^ [1] 한지훈 2006-09-01 1191
153 [질문] Nand Flash Memory 인식에 관한 질문입니다. [3] 이재훈 2006-08-30 1488
152 외부영역의 Address를 배열처럼 쓸려면 어떻게 지정해야 할까요?[완... [2] 조준동 2006-08-28 932
» aESOP 가지고놀기 라는 PDF 자료중 yaffs 관련 문의 입니다.-&gt... [1] 공경준 2006-08-28 2685
150 yaffs file의 repack???? <== 완료 [1] 박현진 2006-08-26 922
149 이솝보드를 휴대해서 다니고 싶어요 [2] 최지훈 2006-08-25 1048

사용자 로그인