R: R: I: Jffs2 space problem
Calò Massimo
m.calo at ctsgroup.it
Wed Jul 27 12:16:29 EDT 2005
Artem,
I have downloaded the MTD from :
http://ftp.debian.org/debian/pool/main/m/mtd/mtd_20050122.orig.tar.gz
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 ?
Thanks!
************************************
Erro messages after make :
make[5]: Entering directory
`/home/max/uClinux-dist-patched/linux-2.4.x/drivers/mtd/chips'
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
dropped.
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:
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h:15:
asm/bug.h: No such file or directory
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h:127:
#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':
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h:151:
warning: unreachable code at beginning of switch statement
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h: At top
level:
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h:161:
`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':
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h:248:
warning: implicit declaration of function
`map_words'/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.
h: In function `map_word_load':
/home/max/uClinux-dist-patched/linux-2.4.x/include/linux/mtd/map.h:303:
warning: implicit declaration of function `map_bankwidth_is_large'
make[5]: *** [chipreg.o] Error 1
make[5]: Leaving directory
`/home/max/uClinux-dist-patched/linux-2.4.x/drivers/mtd/chips'
make[4]: *** [first_rule] Error 2
make[4]: Leaving directory
`/home/max/uClinux-dist-patched/linux-2.4.x/drivers/mtd/chips'
make[3]: *** [_subdir_chips] Error 2
make[3]: Leaving directory
`/home/max/uClinux-dist-patched/linux-2.4.x/drivers/mtd'
make[2]: *** [_subdir_mtd] Error 2
make[2]: Leaving directory
`/home/max/uClinux-dist-patched/linux-2.4.x/drivers'
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