Hi all,

I wanted to start some testing of the more recent kernels and
distributions on our 5208 platform. The platform itself is almost
identical to the 5208EVB except for a larger FLASH (Macronix 29LV640).

I use uClinux-dist-20070130 and the precompiled toolchain
m68k-uclinux-20061214 on a RH9 machine.

Everythings seems to work quite nicely, until I enable the "Freescale
M520xEVB Flash filesystem support". The make process fails quite early
in the /linux-2.6.x/drivers/mtd/maps/m520x.c file and complains on the
included file:

#include <linux/devfs_fs_kernel.h>

I'm a bit unsure about this, but everything is building OK (seems to) if
I remove this include statement. I check the latest test-dist but this
version also contains the include statement.

When I removed the line and built with my modified MTD partition table
everything looks good when booting. I then enabled JFFS2 and changed the
kernel command line to rootfstype=romfs. When booting everything looks
good I think.

Linux version 2.6.19-uc1 ([EMAIL PROTECTED]) (gcc version
4.1.1) #19 Fri Aug 24 11:42:21 CEST 2007
uClinux/COLDFIRE(m520x)
COLDFIRE port done by Greg Ungerer, [EMAIL PROTECTED]
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
Built 1 zonelists.  Total pages: 8128
Kernel command line: rootfstype=romfs
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 30116k/32768k RAM, (1084k kernel code, 164k data)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
JFFS2 version 2.2. (C) 2001-2006 Red Hat, Inc.
JFFS2: default compression mode: priority
io scheduler noop registered (default)
ColdFire internal UART serial driver version 1.00
ttyS0 at 0xfc060000 (irq = 90) is a builtin ColdFire UART
ttyS1 at 0xfc064000 (irq = 91) is a builtin ColdFire UART
ttyS2 at 0xfc068000 (irq = 92) is a builtin ColdFire UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
FEC ENET Version 0.2
fec: PHY @ 0x1, ID 0x20005c90 -- DP83848
eth0: ethernet 00:50:c2:65:20:03
m520xevb flash probe(0x0,800000,2): 800000 at 0
MACRONIX MX29LV640MT flash device (8MB): Found 1 x16 devices at 0x0 in
16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
MACRONIX MX29LV640MT flash device (8MB): Swapping erase regions for
broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 5 MTD partitions on "MACRONIX MX29LV640MT flash device (8MB)":
0x00000000-0x00060000 : "dBUG (384K)"
0x00060000-0x006c0000 : "User FS (6528K)"
0x006c0000-0x007f0000 : "Kernel + RootFS (1216K)"
0x007fe000-0x00800000 : "dBUG flashwrite (8K)"
0x00000000-0x007f0000 : "Image (8128K)"
m520xevb ram probe(0x401582ec,f5000,4): f5000 at 401582ec
Creating 1 MTD partitions on "RAM":
0x00000000-0x000f5000 : "Romfs"
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 52k freed (0x4013c000 - 0x40148000)
Shell invoked to run file: /etc/rc
Command: hostname uClinux
Command: /bin/expand /etc/ramfs.img /dev/ram1
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram1 /var
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: mkdir /var/dhcpc
Command: ifconfig lo 127.0.0.1
Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _ 
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

For further information check:
http://www.uclinux.org/

Command: mount -t jffs2 /dev/mtdblock1 /mnt/flash
Command: ifconfig eth0 192.168.100.251 netmask 255.255.255.0
eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX.
Execution Finished, Exiting

Sash command shell (version 1.1.1)
/>

When copying files to /mnt/flash problems starts to occur:

/> cp /bin/ftpd /mnt/flash
Data CRC 3f1aceac != calculated CRC 91126571 for node at 0014551c
/>

Smaller files can be written without the CRC error (as far as my tests
show), and also be read back without problems. We have been using JFFS2
on the M5208EVB shipped dist based on 2.4.27-uc1 for almost two years
without this problem. No problems when mounting the JFFS2 partition.
Also, after a powercycle the files are still there, but I get CRC errors
if trying to read files which was written with CRC errors.

So, to summarize...i'm unsure about the m520x.c map file...and the CRC
problems on the JFFS2 partition.

Feel free to share any tips and comments you may have.

/Martin Voss
 

_______________________________________________
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