LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1194|回复: 3

求助关于S3C44B0X上建立jffs2文件系统的问题

[复制链接]
发表于 2007-1-24 16:23:59 | 显示全部楼层 |阅读模式
使用S3C44B0X开发板,flash为SST39VF160(norflash),系统为uClinux。参考文章
《S3C44B0X开发板上flash(SST39VF160)建立jffs2文件系统方法》
http://www.hzlitai.com.cn/articl ... help/200610132.html
在启动信息中可以看到jffs2的信息,也看到了mtd的分区成功。启动uclinux ,运行earseall /dev/mtd1的时候遇到了以下问题,以下是我的出错信息:

>erase /dev/mtd1
MTD_open
Erase Total 1 UniMTD_ioctl
MTD_ioctl
MTD_ioctl
ts
Erase Unit SS3C44B0 flash device: verify error at 0x190000, size 4096.
Bad mode in data abort handler detected: mode IRQ_32
Vectors:
Stubs:
Internal error: Oops: 0
CPU: 0
pc : [<0001e494>]    lr : [<00140638>]    Not tainted
sp : 0c5b1fb8  ip : 00000008  fp : 00000000
r10: 0c7fc004  r9 : 00000000  r8 : 0c7fd010
r7 : 00000000  r6 : 00000001  r5 : 00000003  r4 : 0c7ff91c
r3 : 00000000  r2 : 0c7fff20  r1 : 40084d02  r0 : 00000000
Flags: nzCv  IRQs off  FIQs on  Mode IRQ_32  Segment user
Control: 0
Process erase (pid: 21, stackpage=0c5b1000)
Stack:
0c5b1fe0:                                      00140638 0001e494 20000092 ffffffff
Backtrace: no frame pointer
Code: f365e228 2564f604 (7583e5ce) 7ceb6cbd 9db61aae
MTD_close
Performing Flash Erase of length 4096 at offset 0x0pid 21: failed 11
不知道这是什么问题,还请赐教。


附上我的启动信息:
Embest S3CEV40 Bootloader version 1.1
.Loading kernel from flash ... done

Starting kernel ...

Now jumping ...

Decompress to 0x0c008000
Uncompressing Linux.........................................Kernel decompress OK
done, booting the kernel.
Linux version 2.4.17-uc1 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #237 日 1月 21 17:17:55 CST 2007
Kernel command line:root=/dev/rom0Linux version 2.4.17-uc1 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #237 日 1月 21 17:17:55 CST 2007
Processor: Samsung S3C44B0 revision 1
Architecture: S3CEV40
On node 0 totalpages: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 32.87 BogoMIPS
start_kernel 8:before mem_init
Memory: 8MB = 8MB total
Memory: 6688KB available (1124K code, 195K data, 40K init)
after mem_init
start_kernel 9
Dentry-cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode-cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
ttyS0 at I/O 0x1d00000 (irq = 3) is a S3C44B0
ttyS1 at I/O 0x1d04000 (irq = 2) is a S3C44B0
block: 64 slots per queue, batch=16
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: C0000-16B3FF [VIRTUAL C0000-16B3FF] (RO)
loop: loaded (max 8 devices)
S3CEV40 board  Rtl8019as driver start
eth0: 00:06:98:02:7e:8f
PPP generic driver version 2.4.1
PPP Deflate Compression module registered
PPP BSD Compression module registered
S3C44B0 flash device: 200000 at 0
S3C44B0 flash device: Probing for AMD compatible flash...
mfr_id=bf dev_id=2782
S3C44B0 flash device: Found 1 x 2MiB SST SST39LF160 at 0x0
s3c44b0 flash device: regions=2
Creating 2 MTD partitions on "S3C44B0 flash device":
0x00000000-0x00190000 : "Reversed for bootloader & kernel & romfs (1600K)"
mtd: Giving out device 0 to Reversed for bootloader & kernel & romfs (1600K)
0x00190000-0x00200000 : "Jffs2 (448K)"
mtd: Giving out device 1 to Jffs2 (448K)
ret = 0
init_mtdchar: allocated major number 90.
init_mtdblock: allocated major number 30.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 40K
Shell invoked to run file: /etc/rc
Command: hostname S3CEV40
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: /bin/expand /etc/ramfs2048.img /dev/ram1
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram0 /var
Command: mount -t ext2 /dev/ram1 /ramdisk
Command: chmod 777 /ramdisk
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: ifconfig lo 127.0.0.1
Command: route add -net 127.0.0.0 netmask 255.255.255.0 lo
Command: ifconfig eth0 192.192.192.30
Command: route add -net 192.192.192.0 netmask 255.255.255.0 eth0
Command:
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

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

Command:
Execution Finished, Exiting

Sash command shell (version 1.1.1)
发表于 2007-4-9 17:38:43 | 显示全部楼层

MTD &amp; JFFS2 problem - HELP !!!!!!

Hi ,

I got a similar problem as you
启动uclinux ,运行earseall /dev/mtd1的时候遇到了以下问题,以下是我的出错信息:
In some website, they said that it has to move the vector table to C000000
but I don't know how to do that.
Please give me a hand if anyone know how to do it.
Many Thanks !!!





/> eraseall /dev/mtd1
MTD_open
MTD_ioctl

Erasing 4 KibyteMTD_ioctl
@ 0 --  0 % compInternal error: Oops - undefined instruction: c100000
CPU: 0
pc : [<00029820>]    lr : [<0c7eb0b0>]    Not tainted
sp : 0c3b0000  ip : 0c7ffbd8  fp : 00000000
r10: 0c7f0e84  r9 : 00000001  r8 : 0c7f0adc
r7 : 00000000  r6 : 00000023  r5 : 00000002  r4 : 00000002
r3 : 00000000  r2 : 00000000  r1 : 0c7ffc80  r0 : 00000023
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  Segment user
Control: 0
Process sh (pid: 30, stackpage=0c3af000)
Stack:
0c3affe0:                                      0c7eb0b0 00029820 20000093 ffffffff
Backtrace: no frame pointer
Code: da7a496d 9c8bcfd9 (2cf225eb) 4f135dc2 21eb50bd

Sash command sheMTD_close
ll (version 1.1.1)

















/> eraseall /dev/mtd1
MTD_open
MTD_ioctl

Erasing 4 KibyteMTD_ioctl
Bad mode in <NULL> handler detected: mode IRQ_32
Vectors:
Stubs:
Internal error: Oops: 0
CPU: 0
pc : [<00022ce8>]    lr : [<0c09c124>]    Not tainted
sp : 0c66de3c  ip : 0c66de84  fp : 0c66def0
r10: 0c66c000  r9 : 0c29cac8  r8 : 0c2e145c
r7 : 00000080  r6 : 0c29cac8  r5 : 0c290cd0  r4 : 0000e8cf
r3 : 00000002  r2 : 0c29cac0  r1 : 00170000  r0 : 0c290cd0
Flags: nZCv  IRQs off  FIQs on  Mode IRQ_32  Segment user
Control: 0
Process eraseall (pid: 39, stackpage=0c66d000)
Stack:
0c66de60:                                               0c09c124 00022ce8 60000092
0c66de80: ffffffff 0c2e145c 0c66c000 00170000  00000000 00001000 00170000 0c2e1420
0c66dea0: 0c2fe5e0 0c2e14a0 00000000 0c66c000  00000000 00000000 00000000 0c66c000
0c66dec0: 00000000 00000000 0c66df50 0c2fe5e0  0c2e2260 0c66df40 0c66c000 00000000
0c66dee0: 0c66c000 0c66df00 0c66def4 0c09e3fc  0c09b810 0c66df88 0c66df04 0c09f1c8
0c66df00: 0c09e3c4 0c66c000 00000000 00000000  00000000 0c66c000 00000000 00000000
0c66df20: 00000000 00000027 0c3dd000 0c5b7c90  00000000 0c66c000 00000000 00000000
0c66df40: 00000000 0c66c000 00000000 00000000  00000000 0c66df54 0c66df54 0c3cd520
0c66df60: 0c3cd4a0 40084d02 ffffffe7 0c5bff40  00000003 00000036 0c5b66e4 0c66dfac
0c66df80: 0c66df8c 0c0404d0 0c09efd8 00000004  00000003 0c5b7b8c 0c66c000 0c014b40
0c66dfa0: 00000000 0c66dfb0 0c0149a0 0c0402ec  00000004 0c01a270 00000003 40084d02
0c66dfc0: 0c5bff40 00000000 00000004 00000003  0c5b7b8c 0c5b7b88 0c5bff40 00000000
0c66dfe0: 0c5b66e4 00000000 00000001 0c5bff24  0c5b2528 0c5b24f4 60000010 00000003
Backtrace:
Function entered at [<0c09b800>] from [<0c09e3fc>]
Function entered at [<0c09e3b4>] from [<0c09f1c8>]
Function entered at [<0c09efc8>] from [<0c0404d0>]
Function entered at [<0c0402dc>] from [<0c0149a0>]
r8 = 0C014B40  r7 = 0C66C000  r6 = 0C5B7B8C  r5 = 00000003
r4 = 00000004
Code: 84378ca2 5eca71be (2a3e4fb1) 7cf13bf3 5d134e3e
Kernel panic: Aiee, killing interrupt handler

In interrupt handler - not syncing
  @ 0 --  0 % complete.
回复 支持 反对

使用道具 举报

发表于 2007-4-11 23:49:29 | 显示全部楼层
NO ONE WILL REPLY IT HERE  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
回复 支持 反对

使用道具 举报

发表于 2007-4-13 22:14:58 | 显示全部楼层
ANYONE HELP !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表