Hi,
 
I am using my M5208EVB (Freescale evaluating board ) to make a GPRS
router using uClinux. It was going fine, but now I need a non-volatile
memory to save some files and initialize them when then uclinux starts.
So I am trying to mount jffs2 to create a folder (/mnt/flash) where I
can save my files.
I have built a different uClinux image (using menuconfig – toolchain:
m68k-uclinux-tools-20060615.sh) with some programs to make my router
works (for example: pppd, chat, ifconfig …), but I am having problems to
mount my jffs2.
I’ve found this site
http://www.enseirb.fr/~kadionik/embedded/uclinux/mtd/howto_mtd.html that
teaches how to mount jffs2 for a M5407C3 Motorola board and FLASH memory
(AMD Am29PL160C). I tried to build 2 different images: one where I
change the uClinux-dist/linux-2.4.x/drivers/mtd/maps/physmap.c to choose
the partitions that I want in my flash memory, and the other way that I
choose in menuconfig to use
uClinux-dist/linux-2.4.x/drivers/mtd/maps/m5208.c (default file for
M5208EVB), but in both cases I get errors during the make process.
Bellow I’m coping these errors messages:
 
////////////////////////////////////////////////////////////////////////
////////////////////
Error when I try to modify
uClinux-dist/linux-2.4.x/drivers/mtd/maps/physmap.c
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\
      /home/roger/uClinux-dist/user/busybox/libbb/bb_vfprintf.o
/home/roger/uClinux-dist/user/busybox/libbb/bb_vprintf.o
/home/roger/uClinux-dist/user/busybox/libbb/bb_fprintf.o
/home/roger/uClinux-dist/user/busybox/libbb/bb_printf.o
/home/roger/uClinux-dist/user/busybox/libbb/xgetularg_bnd_sfx.o
/home/roger/uClinux-dist/user/busybox/libbb/xgetlarg_bnd_sfx.o
/home/roger/uClinux-dist/user/busybox/libbb/getlarg10_sfx.o
/home/roger/uClinux-dist/user/busybox/libbb/xgetularg_bnd.o
/home/roger/uClinux-dist/user/busybox/libbb/xgetularg10_bnd.o
/home/roger/uClinux-dist/user/busybox/libbb/xgetularg10.o
/home/roger/uClinux-dist/user/busybox/libbb/safe_strtoi.o
/home/roger/uClinux-dist/user/busybox/libbb/safe_strtod.o
/home/roger/uClinux-dist/user/busybox/libbb/safe_strtol.o
/home/roger/uClinux-dist/user/busybox/libbb/safe_strtoul.o
m68k-elf-ar: creating
/home/roger/uClinux-dist/user/busybox/libbb/libbb.a
ucfront-gcc m68k-elf-gcc -m5307 -DCONFIG_COLDFIRE -Wl,--fatal-warnings
-Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,--fatal-warnings
-Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,-warn-common
-Wl,-warn-common -o busybox -Wl,--start-group
/home/roger/uClinux-dist/user/busybox/applets/applets.a
/home/roger/uClinux-dist/user/busybox/archival/archival.a
/home/roger/uClinux-dist/user/busybox/archival/libunarchive/libunarchive
.a /home/roger/uClinux-dist/user/busybox/coreutils/coreutils.a
/home/roger/uClinux-dist/user/busybox/console-tools/console-tools.a
/home/roger/uClinux-dist/user/busybox/debianutils/debianutils.a
/home/roger/uClinux-dist/user/busybox/editors/editors.a
/home/roger/uClinux-dist/user/busybox/findutils/findutils.a
/home/roger/uClinux-dist/user/busybox/init/init.a
/home/roger/uClinux-dist/user/busybox/miscutils/miscutils.a
/home/roger/uClinux-dist/user/busybox/modutils/modutils.a
/home/roger/uClinux-dist/user/busybox/networking/networking.a
/home/roger/uClinux-dist/user/busybox/networking/libiproute/libiproute.a
/home/roger/uClinux-dist/user/busybox/networking/udhcp/udhcp.a
/home/roger/uClinux-dist/user/busybox/procps/procps.a
/home/roger/uClinux-dist/user/busybox/loginutils/loginutils.a
/home/roger/uClinux-dist/user/busybox/shell/shell.a
/home/roger/uClinux-dist/user/busybox/sysklogd/sysklogd.a
/home/roger/uClinux-dist/user/busybox/util-linux/util-linux.a
/home/roger/uClinux-dist/user/busybox/libpwdgrp/libpwdgrp.a
/home/roger/uClinux-dist/user/busybox/coreutils/libcoreutils/libcoreutil
s.a /home/roger/uClinux-dist/user/busybox/libbb/libbb.a  -Wl,--end-group
#m68k-elf-strip --remove-section=.note --remove-section=.comment busybox
/bin/sh /home/roger/uClinux-dist/user/busybox/applets/busybox.mkll
include/config.h /home/roger/uClinux-dist/user/busybox/include/applets.h
>busybox.links
mkdir -p docs
( cat /home/roger/uClinux-dist/user/busybox/docs/busybox_header.pod; \
    /home/roger/uClinux-dist/user/busybox/docs/autodocifier.pl
/home/roger/uClinux-dist/user/busybox/include/usage.h; \
    cat /home/roger/uClinux-dist/user/busybox/docs/busybox_footer.pod )
> docs/busybox.pod
 
BusyBox Documentation
 
mkdir -p docs
pod2text docs/busybox.pod > docs/BusyBox.txt
mkdir -p docs
pod2man --center=BusyBox --release="version 1.00" \
        docs/busybox.pod > docs/BusyBox.1
pod2html --noindex docs/busybox.pod > \
    docs/busybox.net/BusyBox.html
mkdir -p docs
make[4]: Leaving directory `/home/roger/uClinux-dist/user/busybox'
make[3]: Leaving directory `/home/roger/uClinux-dist/user/busybox'
make[2]: Leaving directory `/home/roger/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/roger/uClinux-dist/user'
make: *** [subdirs] Error 1
[EMAIL PROTECTED] uClinux-dist]#
 
////////////////////////////////////////////////////////////////////////
////////////////////
Erro Error when I use uClinux-dist/linux-2.4.x/drivers/mtd/maps/m5208.c
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\
 
/home/roger/uClinux-dist/linux-2.4.x/include/linux/ncp.h:174: warning:
�packed’ attribute ignored for field of type �__u8’
binfmt_flat.c: In function �calc_v5_reloc’:
binfmt_flat.c:385: warning: unused variable �opcode’
binfmt_flat.c:385: warning: unused variable �offset’
binfmt_flat.c:384: warning: unused variable �usptr’
rm -f fs.o
m68k-elf-ld   -r -o fs.o open.o read_write.o devices.o file_table.o
buffer.o super.o block_dev.o char_dev.o stat.o exec.o pipe.o namei.o
fcntl.o ioctl.o readdir.o select.o fifo.o locks.o dcache.o inode.o
attr.o bad_inode.o file.o iobuf.o dnotify.o filesystems.o namespace.o
seq_file.o xattr.o quota.o binfmt_script.o binfmt_flat.o proc/proc.o
partitions/partitions.o ext2/ext2.o ramfs/ramfs.o nfs/nfs.o nfsd/nfsd.o
lockd/lockd.o nls/nls.o smbfs/smbfs.o jffs2/jffs2.o romfs/romfs.o
make[3]: Leaving directory `/home/roger/uClinux-dist/linux-2.4.x/fs'
make[2]: Leaving directory `/home/roger/uClinux-dist/linux-2.4.x/fs'
m68k-elf-ld -T arch/m68knommu/platform/5208/M5208EVB/ram.ld
arch/m68knommu/platform/5208/M5208EVB/crt0_ram.o init/main.o
init/version.o init/do_mounts.o \
        --start-group \
        arch/m68knommu/kernel/kernel.o arch/m68knommu/mm/mm.o
arch/m68knommu/platform/5208/platform.o kernel/kernel.o
mmnommu/mmnommu.o fs/fs.o ipc/ipc.o \
         drivers/char/char.o drivers/serial/serial.o
drivers/block/block.o drivers/misc/misc.o drivers/net/net.o
drivers/net/wan/wan.o drivers/mtd/mtdlink.o drivers/media/media.o \
        net/network.o \
        /home/roger/uClinux-dist/linux-2.4.x/lib/lib.a
arch/m68knommu/lib/lib.a
/usr/local/lib/gcc/m68k-uclinux/4.1.1//m5307/libgcc.a \
        --end-group \
        -o linux
drivers/mtd/mtdlink.o: In function `cleanup_m5208':
/home/roger/uClinux-dist/linux-2.4.x/drivers/mtd/maps/m5208.c:321:
undefined reference to `del_mtd_partitions'
drivers/mtd/mtdlink.o: In function `init_m5208':
/home/roger/uClinux-dist/linux-2.4.x/drivers/mtd/maps/m5208.c:267:
undefined reference to `add_mtd_partitions'
drivers/mtd/mtdlink.o: In function `m5208_ram_probe':
/home/roger/uClinux-dist/linux-2.4.x/drivers/mtd/maps/m5208.c:216:
undefined reference to `add_mtd_partitions'
make[1]: *** [linux] Error 1
make[1]: Leaving directory `/home/roger/uClinux-dist/linux-2.4.x'
make: *** [linux] Error 1
[EMAIL PROTECTED] uClinux-dist]#
 
In that site it says to build uClinux image using kernel 2.4.x, is there
any problem in using kernel 2.6.x? (ps: I also tried to build an image
using kernel 2.6.x and I also got errors during the compilation)
Does any one have any idea how I can solve my problem? Is there any
documentation that teaches how to do it?
 
Thanks,
 
Roger
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to