help me --- end_request: I/O error, dev 1f:02 (mtdblock), sector 32768
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>" failedend_request: I/O error, dev 1f:02 (mtdblock), sector 32768
mtdblock: erase of region [0x840000, 0x40000] on "<NULL>" failedend_request: I/O error, dev 1f:02 (mtdblock), sector 32776
. . . . . . . .
mtdblock: erase of region [0x840000, 0x40000] on "<NULL>" failedend_request: I/O error, dev 1f:02 (mtdblock), sector 32784
mtdblock: erase of region [0x840000, 0x40000] on "<NULL>" failedend_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.
Quoted 1 line · [email protected] 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.
Quoted 2 lines · [email protected] said:
mtdblock: erase of region [
0x840000,0x40000] on "<NULL>" failedend_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 [email protected]