[Yaffs-archive] yaffs build problem

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Skumar
Date:  
To: yaffs
Subject: [Yaffs-archive] yaffs build problem
Hi,
i am trying to build yaffs along with kernel. i am using mtd layer . the
problem is with the following line of code in yaffs_guts.c

#if 0
// Use Steven Hill's ECC struff instead
// External functions for ECC on data
void nand_calculate_ecc (const u_char *dat, u_char *ecc_code);
int nand_correct_data (u_char *dat, u_char *read_ecc, u_char *calc_ecc);
#define yaffs_ECCCalculate(data,ecc) nand_calculate_ecc(data,ecc)
#define yaffs_ECCCorrect(data,read_ecc,calc_ecc)
nand_correct_ecc(data,read_ecc,calc_ecc)
#else
#include "yaffs_ecc.h"
#endif


when i try to build the kernel ,yaffs_ECCCorrect is not getting resolved
can anybody to which approach to go

1st approach
yaffs_ECCCorrect is defined in yaffs_ecc.c & this file is not getting
compiled in the Makefile
i can include yaffs_ecc.c in Makefile & build

2nd approach
change #if 0 to #if 1 & tried to compile, nand_correct_ecc is not getting
reolved
there is function nand_correct_data
so i changed linne
#define yaffs_ECCCorrect(data,read_ecc,calc_ecc)
nand_correct_ecc(data,read_ecc,calc_ecc)
to
#define yaffs_ECCCorrect(data,read_ecc,calc_ecc)
nand_correct_data(data,read_ecc,calc_ecc)
.now i am able to build.

can anybody to which approach to go

Regards & thanks
SKumar


---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by
sending an email to with the text "unsubscribe"
(without the quotes) as the subject.