|
使用S3C44B0X开发板,flash为SST39VF160(norflash),系统为uClinux。参考文章
《S3C44B0X开发板上flash(SST39VF160)建立jffs2文件系统方法》
http://www.hzlitai.com.cn/article/ARM7-artilcle/cphelp/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 ([email protected]) (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 ([email protected]) (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) |
|