building mtd: DECLARE_MUTEX?
I am trying to build mtd (checked out from the CVS version) on my Red Hat Linux 6.2 box (2.2.14).
I can't find where DECLARE_MUTEX is defined, which referenced in mtdcore.c (line 89).
Btw, there isn't a file named compatmac.h under /usr/include/linux, except the one came with mtd package, which refers to it.
Thank you,
Qiuyuan
To unsubscribe, send "unsubscribe mtd" to [email protected]
/include/linux/compatmac.h was introduced in 2.2.16 You shoud get it from there. Once have this done, you find DECLARE_MUTEX defined.
Nick
Quoted 6 lines · Qiuyuan Liu
I am trying to build mtd (checked out from the CVS version) on my Red Hat Linux 6.2 box (2.2.14).
I can't find where
DECLARE_MUTEXis defined, which referenced inmtdcore.c(line 89).
Quoted 7 lines
Btw, there isn't a file named
compatmac.hunder/usr/include/linux, except the one came with mtd package, which refers to it.Thank you,
QiuyuanTo unsubscribe, send "unsubscribe mtd" to [email protected]
To unsubscribe, send "unsubscribe mtd" to [email protected]
building mtd: put_module_symbol?
Thank you, Nick.
I installed the linux-2.2.17.tar.gz directly on my box. Now I got the following 3 new errors:
1. where is put_module_symbol defined referred in mtd/map.h:do_map_probe().
2. set_current_state redefinition
* $Id: cfi_cmdset_0001.c,v 1.41 2000/10/19 14:26:34 nico Exp $
#if LINUX_VERSION_CODE < 0x20300
#define set_current_state(x) current->state = (x); //line 36:
#endif
* mtd/include/compatmac.h
* $Id: compatmac.h,v 1.6 2000/10/23 16:56:28 sjhill Exp $
#if LINUX_VERSION_CODE < 0x20300
#define set_current_state(state_value) \ //line : 203
do { current->state = (state_value); } while (0)#endif
3. physmap.c, line 65:
'CONFIG_MTD_PHYSMAP_BUSWIDTH' undeclared here (not in a function) initializer elemennt for 'physmap_map.buswidth' is not constant
error exit.
struct map_info physmap_map = {
name: "Physically mapped flash",
size: WINDOW_SIZE,
buswidth: BUSWIDTH, // line 65
read8: physmap_read8,
read16: physmap_read16,
read32: physmap_read32,
copy_from: physmap_copy_from,
write8: physmap_write8,
write16: physmap_write16,
write32: physmap_write32,
copy_to: physmap_copy_to
};Thank you,
Qiuyuan Liu
To unsubscribe, send "unsubscribe mtd" to [email protected]
Re: building mtd: put_module_symbol?
Quoted 2 lines · Qiuyuan Liu
1. where is
put_module_symboldefined referred inmtd/map.h:do_map_probe().
Apply put_module_symbol-2.2.18.patch to your kernel.
Quoted 1 line
2.
set_current_stateredefinition
Fixed in cvs tree.
Quoted 3 lines
3.
physmap.c, line 65:
'CONFIG_MTD_PHYSMAP_BUSWIDTH' undeclared here (not in a function) initializer elemennt for 'physmap_map.buswidth' is not constant
Likewise.
Signature · 6 lines
dwmw2 To unsubscribe, send "unsubscribe mtd" to [email protected]