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

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
6228 [NFS] 뭔 문제인지 잘 모르겠습니다. [완료!] [3] 이제현 2006-09-21 3245
6227 bootcmd 개수 늘리기 or fatload buffer size 변경? [4] 마빡 2014-06-20 3242
6226 [질문] LX800 보드 전원 Range [3] 김증일 2007-05-14 3233
6225 자료실에 있는 WINCE 5.0 workspace로 컴파일 하는데.. [8] 오주열 2008-04-17 3225
6224 [질문] 최대절전모드와 대기모드에 진입할 방법이 없나요? [3] 임장욱 2007-05-12 3224
6223 부팅시 disk image starting at 0. 나오고 부팅이 멈추는데요 [1] biokk 2013-11-04 3200
6222 완료) 부품 구매할 수 있는 곳 좀 알려주세요 [1] 김형기 2007-07-03 3198
6221 [완료]터치 반응이 없습니다(아래의 글과 조금차이가 있습니다). [4] 황철진 2007-05-13 3196
6220 [질문] USB 주변기기를 많이 사용하는거 같은데... [4] 류충렬 2007-05-10 3184
6219 OS별 부팅속도가 얼마나 되는지 알고 싶습니다.. [1] 정현 2008-01-28 3180
6218 2G SD카드 인식문제 [9] 문철민 2008-01-12 3176
6217 origen_quad 4412 mt6620 wifi 관련 link 문제 [6] 준쓰아빠 2013-06-17 3160
6216 android 2.1 부팅 후 suspend 되는 현상? (추가) file [4] 김상범 2010-02-21 3148
6215 nfs로 안드로이 부팅중 "System UIDs inconsistent" 에러 팝업 창... [3] 이성호 2009-04-01 3148
6214 [질문] Aesop-LX800 Wince 5.0 800x480 LCD출력? [1] 김정렬 2007-09-29 3143
6213 LX800 + CS5536 가격과 구입처 좀 가르쳐 주세요. [1] 김정렬 2007-09-07 3143
6212 [질문] CD롬을 제거하면 부팅이 안된다...?!!! 이런 경우 보신분 ... [6] 임장욱 2007-05-17 3142
6211 serial gadget 이 안되네요... [6] 이율삼 2006-06-28 3139
6210 SMDK6410에서 Android 포팅.. [4] 정경진 2009-04-16 3137
6209 질문) Wince에서 LCD 출력 [2] 김형기 2007-07-28 3134

사용자 로그인