public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mtd partitions can't be writed
@ 2005-06-29  2:15 red dot
  2005-07-01  7:57 ` Konstantin Kletschke
  2005-07-01  8:11 ` red dot
  0 siblings, 2 replies; 3+ messages in thread
From: red dot @ 2005-06-29  2:15 UTC (permalink / raw)
  To: linux-mtd

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mtd partitions can't be writed
  2005-06-29  2:15 mtd partitions can't be writed red dot
@ 2005-07-01  7:57 ` Konstantin Kletschke
  2005-07-01  8:11 ` red dot
  1 sibling, 0 replies; 3+ messages in thread
From: Konstantin Kletschke @ 2005-07-01  7:57 UTC (permalink / raw)
  To: linux-mtd

* red dot <vvlook@gmail.com> [Wed, Jun 29, 2005 at 10:15:47AM +0800]:

> Can you anybody give me a suggest?

What flash device(s) are you using? Who unlocks it, if that is required?

K

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mtd partitions can't be writed
  2005-06-29  2:15 mtd partitions can't be writed red dot
  2005-07-01  7:57 ` Konstantin Kletschke
@ 2005-07-01  8:11 ` red dot
  1 sibling, 0 replies; 3+ messages in thread
From: red dot @ 2005-07-01  8:11 UTC (permalink / raw)
  To: linux-mtd

I use the AMD flash(am29lv320db).
I probe my flash with "map_rom", and i don't understand the
distinguish between "map_rom" and "cfi_probe". So i am not sure it can
be wrote.

Thanks in advance

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-01  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-29  2:15 mtd partitions can't be writed red dot
2005-07-01  7:57 ` Konstantin Kletschke
2005-07-01  8:11 ` red dot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox