回复:[uClinux-dev] Problems with jffs2 on MTDBlock Device

MrGates 120368262 at qq.com
Mon Nov 15 03:58:43 EST 2010


could you please tell me what are you using with the cross-compiler?
 
 
------------------ 原始邮件 ------------------
发件人: "Wilfried Busalski"; 
发送时间: 2010年11月15日(星期一) 下午4:53
收件人: "uclinux-dev"; 
主题: [uClinux-dev] Problems with jffs2 on MTDBlock Device

 
Hi

I'm using a Coldfire MC5235 with the latest Port uClinux-dist-20101026.

When I use the MTD-Block device with romfs it work correctly.
Using I with jffs2 I got this execption:

=============================================================
TFTP from server 172.16.64.28; our IP address is 172.16.2.1
Filename 'TestLinux/image.bin'.
Load address: 0x20000
Loading: #################################################################
         #################################################################
         #################################################################
         #
done
Bytes transferred = 2866180 (2bbc04 hex)
## Starting application at 0x00020000 ...
Linux version 2.6.36-uc0 (wbusalski at wibu-linux) (gcc version 4.3.3 (Sourcery 
G++ Lite 4.3-209) ) #9 Mon Nov 15 09:30:54 CET 2010


uClinux/COLDFIRE(m523x)
COLDFIRE port done by Greg Ungerer, gerg at snapgear.com
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
Motorola M5235EVB support (C)2005 Syn-tech Systems, Inc. (Jate Sujjavanich)
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock4 rw rootfstype=romfs 
mtdparts=physmap-flash.0:16k(U-BootVect),8k(Env),40k(U-Bootp1),192k(U-Bootp2),1792k(flash),6M(jffs2)
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory available: 13248k/16384k RAM, (1612k kernel code, 178k data)
SLUB: Genslabs=12, HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:256
Calibrating delay loop... 97.28 BogoMIPS (lpj=486400)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MCF523X MTD Info : Start=$FF800000 Size=$800000 Bandwidth=2
bio: create slab <bio-0> at 0
Switching to clocksource coldfire_dma_timer
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 512 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND)  2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
io scheduler noop registered
io scheduler cfq registered (default)
ColdFire internal UART serial driver
ttyS0 at MMIO 0x40000200 (irq = 77) is a ColdFire UART
console [ttyS0] enabled
ttyS1 at MMIO 0x40000240 (irq = 78) is a ColdFire UART
ttyS2 at MMIO 0x40000280 (irq = 79) is a ColdFire UART
brd: module loaded
physmap platform flash device: 00800000 at ff800000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 
0x0000c2 Chip ID 0x0022cb
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.1.
number of CFI chips: 1
6 cmdlinepart partitions found on MTD device physmap-flash.0
Creating 6 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000004000 : "U-BootVect"
0x000000004000-0x000000006000 : "Env"
0x000000006000-0x000000010000 : "U-Bootp1"
0x000000010000-0x000000040000 : "U-Bootp2"
0x000000040000-0x000000200000 : "flash"
0x000000200000-0x000000800000 : "jffs2"
uclinux[mtd]: RAM probe address=0x1dfde8 size=0x108000
uclinux[mtd]: set ROMfs to be root filesystem
Creating 1 MTD partitions on "RAM":
0x000000000000-0x000000108000 : "ROMfs"
FEC Ethernet Driver
fec_enet_mii_bus: probed
PPP generic driver version 2.4.2
TCP cubic registered
NET: Registered protocol family 17
VFS: Mounted root (romfs filesystem) readonly on device 31:4.
Freeing unused kernel memory: 52k freed (0x1c6000 - 0x1d2000)
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: ifconfig lo 127.0.0.1
Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo
Command: dhcpcd -p -a eth0 &
[26]
Command: cat /etc/motd
Welcome to
    eth0: no PHY, assuming direct connection to switch
  PHY 0:00 not found
 eth0: could not attach to PHY
   ____ _  _
         /  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

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

Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> Nov 30 00:00:07 dhcpcd[26]: dhcpStart: ioctl SIOCSIFFLAGS: No such device


/> mount -t jffs2 /dev/rom5 /mnt
/> ls /mnt
/> cp /bin/sh /mnt/sh
BUG: failure at mm/slub.c:2833/kfree()!
Kernel panic - not syncing: BUG!
Stack from 00defca4:
        00defcdc 00189e2e 0019ded8 001d4193 001d4193 00000400 0019c7fc 
00defce8
        00000001 00e0a000 00000006 00db4600 00308140 00daa830 00001000 
00060e86
        0019c7fc 0019c7df 001a305d 00000b11 0018f466 00daa830 00000006 
00fa1000
        00daa830 000b6758 00e0a000 00fa4000 00db4600 00001000 00000000 
00000000
        00001000 0000000c 00fa1000 00f9a164 00000000 0030b480 00defda4 
00000000
        00000000 00000a8e 00001000 0000ff84 00e0a000 000b0f74 00db4600 
00f9a13c
Call Trace with CONFIG_FRAME_POINTER disabled:
 [00189e2e]  [0019ded8]  [0019c7fc]  [00060e86]  [0019c7fc]
 [0019c7df]  [001a305d]  [0018f466]  [000b6758]  [000b0f74]
 [0004dac4]  [00192e80]  [0004f0ee]  [0004f324]  [00063f84]
 [00064178]  [00064ca8]  [00064b6e]  [00064ca8]  [00064ce8]
 [00022fa8]
=========================================================================

What can I do to get this working ?

Regards
Wilfried 



_______________________________________________
uClinux-dev mailing list
uClinux-dev at uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev at uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20101115/e4fe79d7/attachment.html>


More information about the uClinux-dev mailing list