From: red dot <vvlook@gmail.com>
To: linux-mtd@lists.infradead.org
Subject: mtd partitions can't be writed
Date: Wed, 29 Jun 2005 10:15:47 +0800 [thread overview]
Message-ID: <6394389005062819152a4be743@mail.gmail.com> (raw)
hi,
I have built the jffs2 image as
mkfs.jffs2 -e 0x20000 --pad=0x1e0000 -l -d b -o jffs2.bin,
and i wirte the image into the flash . When the system was started, i
can't write anything.
Following the information:
*****************************************************
* ARM Monitor v1.2 by Hynix
* CPU = HMS30C7202
* Programmed by Jungjun Kim
* Modify by Byunghwan Jun
* email: byunghwan.jun@hynix.com
*****************************************************
DMA Memory base=0x40700000, end=0x40780000
BUFFER Memory base=0x40780000, end=0x40800000
Linux version 2.6.9-linux-2.6.9-hnx3 (root@yy.yy.com) (gcc version
3.4.2) #39 Thu Jun 23 17:30:56 CST 2005
CPU: ARM720T [41807202] revision 2 (ARMv4T)
Machine: Hynix HMS30C7202
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists
Kernel command line: console=ttyS2,57600 mem=8M rootfstype=jffs2
root=/dev/mtdblock2 rw
Trying to install chained handler for IRQ16
PID hash table entries: 64 (order: 6, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 8MB = 8MB total
Memory: 6784KB available (971K code, 240K data, 52K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Linux NoNET1.0 for Linux 2.6
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
h720x Framebuffer driver
h720xfb_init_fbinfo
h720xfb_set_par
RGBT length = 8:8:8:0
RGBT offset = 0:0:0:0
h7202 PS/2 port driver
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at MMIO 0x0 (irq = is a 16550A
ttyS1 at MMIO 0x0 (irq = 9) is a 16550A
ttyS2 at MMIO 0x0 (irq = 10) is a 16550A
ttyS3 at MMIO 0x0 (irq = 11) is a 16550A
Using anticipatory io scheduler
H720x remap virt=c1080000
H720x-MTD probing 16bit FLASH
cmdlinepart partition parsing not available
Using builtin partition table
Creating 3 MTD partitions on "H720X":
0x00000000-0x00040000 : "ARMo"
0x00040000-0x00220000 : "Kernel"
0x00220000-0x00400000 : "Jffs2"
h7202_udc: Hynix HMS30C7202 USB Device Controller (2004-05-21)
mice: PS/2 mouse device common for all mice
atkbd.c: keyboard reset failed on h7202ps2
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 52K
Write of 70 bytes at 0x000dd040 failed. returned -30, retlen 3223895968
Write of 70 bytes at 0x000dd088 failed. returned -30, retlen 3221828160
Write of 70 bytes at 0x000dd0d0 failed. returned -30, retlen 4294967266
Write of 70 bytes at 0x000dd118 failed. returned -30, retlen 3221828160
Welcome to the Erik's uClibc development environment.
(none) login: root
Write of 70 bytes at 0x000dd160 failed. returned -30, retlen 70
Write of 70 bytes at 0x000dd1a8 failed. returned -30, retlen 3221828160
Write of 70 bytes at 0x000dd1f0 failed. returned -30, retlen 4294967266
Write of 70 bytes at 0x000dd238 failed. returned -30, retlen 3221828160
Dec 31 17:00:10 login[19]: root login on `ttyS2'
BusyBox v1.00 (2005.06.15-02:17+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
# ls
# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00020000 "ARMo"
mtd1: 001e0000 00020000 "Kernel"
mtd2: 001e0000 00020000 "Jffs2"
# ls
# mkdir a
Write of 68 bytes at 0x000dd280 failed. returned -30, retlen 3222743552
Write of 68 bytes at 0x000dd2c4 failed. returned -30, retlen 3221828160
mkdir: Cannot create directory `a': Read-only file system
#
# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / jffs2 rw,noatime 0 0
proc /proc proc rw,nodiratime 0 0
devpts /dev/pts devpts rw 0 0
tmpfs /tmp tmpfs rw 0 0
#
# cat /etc/fstab
# <file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 rw,noauto 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
tmpfs /tmp tmpfs defaults 0 0
Can you anybody give me a suggest?
thanks.
next reply other threads:[~2005-06-29 2:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-29 2:15 red dot [this message]
2005-07-01 7:57 ` mtd partitions can't be writed Konstantin Kletschke
2005-07-01 8:11 ` red dot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6394389005062819152a4be743@mail.gmail.com \
--to=vvlook@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox