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

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
6128 혹시, ov2655 사용해 보신 분 있으신가요.. [1] kinsw 2010-09-08 477
6127 궁금한점입니다 다크썩흘 2011-02-25 477
6126 translucnet 질문 jungss 2011-03-25 477
6125 Gingerbread의 qcom 폴더 문의 [1] LeonardKim 2011-04-26 477
6124 오드로이드 관련 질문입니다. [1] 박정락 2009-11-07 478
6123 aESOP의 문서양식이 있나요? [2] just4you 2010-01-05 478
6122 omap_hsmmc driver 문의입니다. file [1] 김병종 2010-01-21 478
6121 qt 에러 ....2440보드 문제 입니다 file [1] 지승화 2010-03-18 478
6120 6410 H.264 인코딩 Container 처리 예제 좀 없을까요? 꿈꾸는자 2010-04-09 478
6119 cat /dev/tts/0 nothing echo but I have connected GPS in ... [1] mosquitos 2010-05-22 478
6118 6410에서 SDIO작업하는중인데.. [1] 박상민 2010-05-25 478
6117 serial port를 통해 flash로 download할수있나요? [1] 김태현 2010-06-15 478
6116 ODROID-T 부팅 [1] hsxxxx 2010-07-02 478
6115 android에서 new product 만들고 compile하기 실습에서...??? [1] 전현철 2010-07-03 478
6114 부트로더 질문입니다. [1] 정필성 2009-08-24 479
6113 odroid vista용 드라이버는 별도로 없나요? [3] 오영종 2009-11-07 479
6112 odroid를 지금 받았습니다...그런데... [6] pertboy 2009-11-19 479
6111 오드로이드 센서 질문이요.. [1] 조용수 2009-11-21 479
6110 odroid suspend에서요 [1] nicknam 2010-02-12 479
6109 jni로 디바이스 제어 문의드립니다 file [1] 김승한 2010-03-10 479

사용자 로그인