compile error with 2.4.26 kernel

李海红 lhh at nbicc.com
Tue Apr 15 02:25:32 EDT 2008


Dear linux-mtd
    
 
I didn't know which version of mtd-snapshot-xxxx, suit for 2.4.26 kernel.
now use the 20050519 and 20050801,both print the same informaion
and I saw many people had met the same problem, does any body know how to fix it up?
and I have done some changes following the web :http://linux.derkeiler.com/Mailing-Lists/Kernel/2007-08/msg04245.html
but it also have the similar error
following is the error message printed:

make[5]: Entering directory `/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/drivers/mtd/chips'
arm-elf-gcc -D__KERNEL__ -I/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/include  -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -D__linux__ -DNO_MM -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -msoft-float   -nostdinc -iwithprefix include -DKBUILD_BASENAME=chipreg  -DEXPORT_SYMTAB -c chipreg.c
	In file included from /mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/include/linux/mtd/map.h:11,
                 from chipreg.c:14:
/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/include/linux/mtd/compatmac.h:203: linux/suspend.h: No such file or directory
In file included from chipreg.c:14:
/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/include/linux/mtd/map.h:128: warning: #warning "No CONFIG_MTD_MAP_BANK_WIDTH_xx selected. No NOR chip support can work"
In file included from chipreg.c:14:
/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/include/linux/mtd/map.h: In function `map_bankwidth_supported':
/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/include/linux/mtd/map.h:161: warning: unreachable code at beginning of switch statement
make[5]: *** [chipreg.o] Error 1
make[5]: Leaving directory `/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/drivers/mtd/chips'
make[4]: *** [first_rule] Error 2
make[4]: Leaving directory `/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/drivers/mtd/chips'
make[3]: *** [_subdir_chips] Error 2
make[3]: Leaving directory `/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/drivers/mtd'
make[2]: *** [_subdir_mtd] Error 2
make[2]: Leaving directory `/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/drivers'
make[1]: *** [_dir_drivers] Error 2
make[1]: Leaving directory `/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx'
make: *** [/mnt/linux/lhh-sigma/armutils_2.5.138.0/build_arm/linux-2.4.26-em86xx/linux.bin] Error 2



Best Regards!
      
Li Haihong
Hardware Engineer
Ningbo CAS IC Design Center     
Fax: 86-574-87908484
Tel: 86-574-87910104
Web: www.nbicc.com
E-Mail:lhh at nbicc.com


More information about the linux-mtd mailing list