R: R: I: Jffs2 space problem

Calò Massimo m.calo at ctsgroup.it
Wed Jul 27 12:16:29 EDT 2005


	I have downloaded the MTD from :

Then I followed the instruction to patch it.

I'm facing a lot of problem to build it under uClinux (2.4.27-uc1).

Am I patched wrong kernel version? Where can I find the right for me ?


Erro messages after make :

make[5]: Entering directory
make[5]: Circular
/home/max/uClinux-dist-patched/linux-2.4.x/include/asm/arch/memory.h <-
/home/max/uClinux-dist-patched/linux-2.4.x/include/asm/page.h dependency
arm-elf-gcc -D__KERNEL__
-I/home/max/uClinux-dist-patched/linux-2.4.x/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  -c -o chipreg.o chipreg.c
In file included from chipreg.c:14:
asm/bug.h: No such file or directory
#error "No bus width supported. What's the point?"
In file included from chipreg.c:14:
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h: In
function `map_bankwidth_supported':
warning: unreachable code at beginning of switch statement
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h: At top
`MAX_MAP_BANKWIDTH' undeclared here (not in a function)
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h:161: size
of array `x' has non-integer type
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h: In
function `map_word_equal':
warning: implicit declaration of function
h: In function `map_word_load':
warning: implicit declaration of function `map_bankwidth_is_large'
make[5]: *** [chipreg.o] Error 1
make[5]: Leaving directory
make[4]: *** [first_rule] Error 2
make[4]: Leaving directory
make[3]: *** [_subdir_chips] Error 2
make[3]: Leaving directory
make[2]: *** [_subdir_mtd] Error 2
make[2]: Leaving directory
make[1]: *** [_dir_drivers] Error 2
make[1]: Leaving directory `/home/max/uClinux-dist-patched/linux-2.4.x'
make: *** [linux] Error 1
[root at mcalolinux uClinux-dist-patched]#

-----Messaggio originale-----
Da: Artem B. Bityuckiy [mailto:dedekind at yandex.ru] 
Inviato: mercoledì 27 luglio 2005 12.06
A: Calò Massimo
Oggetto: Re: R: I: Jffs2 space problem

Calò Massimo wrote:
> Hi Artem,
> 	I'm looking for "flash_eraseall" but I don't have it.
> I'm working on uClinux : do you think that I need "flash_eraseall" ? 
> Do I have to port it to uClinux??
flash_eraseall is in the util/ directory in the MTD tree. You probably 
want fresh MTD utilities and you may find them in that directory. Its a
userspace utility. So just compile is and use...

Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.

More information about the linux-mtd mailing list