public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* help me --- end_request: I/O error, dev 1f:02 (mtdblock), sector 32768
@ 2001-04-30 15:47 modream
  2001-04-30 16:05 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: modream @ 2001-04-30 15:47 UTC (permalink / raw)
  To: mtd

[-- Attachment #1: Type: text/plain, Size: 3009 bytes --]

Hello.
I am JUN from seoul Korea

I have any question for using flash filesystem(ext2).
 
I use intel assabet board.
and I used    kernel-2.4.1 
.                   patch-2.4.1-rmk1
.                   diff-2.4.1-rmk1-np2

and "make xconfig" checked
   Memory Technology Devices (MTD) 
         --->    Memory Technology Device (MTD) support  (*)               ----> check
                   and   other item check....

  File systems  
   Journalling Flash File System (JFFS) support (EXPERIMENTAL) (*)      ---->check
            -----------  this item is not relation to ext2 filesystem.

and kernel source modified.  
 linux/init/main.c                
 #ifdef CONFIG_MTD
  { "mtdblock", 0x1f00 },
  { "mtd2", 0x1f02 },               -------------------> add
 #endif

 linux/drivers/mtd/sa1100-flash.c
 static struct mtd_partition assabet_partitions[] = {
  { offset: 0,   size: 0x00040000,  },
  { offset: MTDPART_OFS_APPEND, size: 0x007c0000,  },           ------------->  modify
  { offset: MTDPART_OFS_APPEND, size: MTDPART_SIZ_FULL  }
 };

next, I compiled kernel
"make dep"
"make zImage"
"make modules"
"make modules_install"
 
and download kernel & ramdisk
after booting,  I try make filesystem.
 
"cat /proc/mtd"
      dev:    size   erasesize  name
      mtd0: 00040000 00040000 "<NULL>" 
      mtd1: 007c0000 00040000 "<NULL>"
      mtd2: 01800000 00040000 "<NULL>"
"mknod /dev/mtd2 b 31 2"
"mke2fs /dev/mtd2"

But not made filesystem with error.
message when make filesystem is:
 
#mke2fs /dev/mtd2
mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
6144 inodes, 24576 blocks
1228 blocks (5.00%) reserved for the super user
First data block=1
3 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks: 
8193

Writing inode tables: 0/31/32/3done                            
Writing superblocks and filesystem accounting information: 

mtdblock: erase of region [0x840000, 0x40000] on "<NULL>" failed
end_request: I/O error, dev 1f:02 (mtdblock), sector 32768
mtdblock: erase of region [0x840000, 0x40000] on "<NULL>" failed
end_request: I/O error, dev 1f:02 (mtdblock), sector 32776
.                                               .
.                                               .
.                                               .
.                                               .
mtdblock: erase of region [0x840000, 0x40000] on "<NULL>" failed
end_request: I/O error, dev 1f:02 (mtdblock), sector 32784
mtdblock: erase of region [0x840000, 0x40000] on "<NULL>" failed
end_request: I/O error, dev 1f:02 (mtdblock), sector 32792
 
What is problem?
I try kernel compile, modified and downloading in the last 4days.
But I don't making flash filesystem. 

please Help me.

I am sorry that my poor english.

Thank you for read this mail.
Best regard JUN.

[-- Attachment #2: Type: text/html, Size: 7676 bytes --]

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

* Re: help me --- end_request: I/O error, dev 1f:02 (mtdblock), sector 32768
  2001-04-30 15:47 help me --- end_request: I/O error, dev 1f:02 (mtdblock), sector 32768 modream
@ 2001-04-30 16:05 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-04-30 16:05 UTC (permalink / raw)
  To: modream; +Cc: mtd

xitron@modream.co.kr said:
>   { "mtd2", 0x1f02 },               -------------------> add

mtd2 should be a character device. Major 90, minor 4. Don't do that.

I think you meant mtdblock2 (block major 31, minor 2). Which is covered by 
the 'mtdblock' line just above. 


xitron@modream.co.kr said:
> mtdblock: erase of region [0x840000, 0x40000] on "<NULL>" failed
> end_request: I/O error, dev 1f:02 (mtdblock), sector 32776

Does it work if you try to 'eraseall /dev/mtd2' - once you've actually made 
the correct device node, of course.

--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

end of thread, other threads:[~2001-04-30 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-30 15:47 help me --- end_request: I/O error, dev 1f:02 (mtdblock), sector 32768 modream
2001-04-30 16:05 ` David Woodhouse

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