how to put an ext3 fs on a 64Mb SanDisk MultiMediaCard (mmc)

From: Stuart Pook <pook.a.t.enst.fr>
Date: Mon Jul 29 2002 - 09:04:20 EDT

Many thanks for kernel-2.4.18-rmk3_hh12_arm.ipk. I installed it on my
iAQ HP3800 and was able to mount the VFAT partition on my mmc card.

I would rather have a more Linux type of file system on my mmc card.
What sort of filesystem should I use? And what command should I use to
create it?

I tried to put an ext3 filesystem on my mmc card as follows:

        sh-2.03# /sbin/mkfs.ext3 /dev/mmc/part1
        mke2fs 1.25 (20-Sep-2001)
        Filesystem label=
        OS type: Linux
        Block size=1024 (log=0)
        Fragment size=1024 (log=0)
        15680 inodes, 62576 blocks
        3128 blocks (5.00%) reserved for the super user
        First data block=1
        8 block groups
        8192 blocks per group, 8192 fragments per group
        1960 inodes per group
        Superblock backups stored on blocks:
                8193, 24577, 40961, 57345
        
        Writing inode tables: done
        Writing superblocks and filesystem accounting information:
        
The /sbin/mkfs.ext3 doesn't make any more progress and cannot be killed
even with a kill -9. And I get lots of error messages on the console
(see the end of this email). I have to reset my iPAQ HP3800 to get out
of this situation.

The mkfs.ext3 certainyl did something because Windows is no longer able
to mount the card.

I reboot my iPAQ. and in /proc/partitions I have
        major minor #blocks name
        
         254 0 62720 mmc/disc
         254 1 62576 mmc/part1
fsck.ext3 seems to be happy
        sh-2.03# fsck.ext3 /dev/mmc/part1
        e2fsck 1.25 (20-Sep-2001)
        /dev/mmc/part1: clean, 11/15680 files, 2000/62576 blocks
but a fsck.ext3 -fy /dev/mmc/part1
gives lots of error messages
        
        Inode 13637 (...) has a bad mode (0177777).
        Clear? yes
        
        Inode 13638 (...) has a bad mode (0177777).
        Clear? yes
        
and on the console I get lots of messages similar to those provoked
by mkfs.ext3. Time for another reset.

Should I try and put an ext3 filesystem on an mmc card? If so
how does one do it? Perhaps I should have just left the VFAT
filesystem.

thanks
Stuart

mmc_h3800_handle_int: write re-enabling IRQ mask=0x0005
mmc_h3800_int sd=c493a034 status=0x2040 (FIFO_EMPTY END_COMMAND_RESPONSE )
mmc_h3800_handle_int: write re-enabling IRQ mask=0x0005
mmc_h3800_int sd=c493a034 status=0x3840 (FIFO_EMPTY DATA_TRANSFER_DONE END_PROGRAM END_COMMAND_RESPONSE )
mmc_h3800_handle_int: terminating status=0x3840
mmc_cmd_complete: request=c4924db8 retval=0
mmc_tasklet_action: dev=c4924d1c flags=03
mmc_cim_read_write_block first=0
mmc_unpack_r1 cmd=24 status=00000900
mmc_h3800_send_command: request=c4924db8 cmd=24 (WRITE_BLOCK) arg=03d13200 status=3840
mmc_h3800_exec_command: request=c4924db8 status=3840
mmc_h3800_set_command: cmd=24 arg=0x03d13200
mmc_h3800_set_transfer: block_len=512 nob=1
mmc_h3800_exec_command: enabling irq mask=0005 status=0x0040 (FIFO_EMPTY )
mmc_h3800_irq_timeout: irq_mask=0005 status=0x2140 (FIFO_EMPTY CLOCK_ENABLE END_COMMAND_RESPONSE )
Request info:
  index 0
  cmd 24
  arg 0x03d13200
  rtype 1
  nob 1
  bl_len 512
  buffer c2cc4200
  result -1
mmc_h3800_get_response Raw byte stream: 18 00 00 09 00 00
mmc_h3800_transmit_data: nob=1 block_len=512
mmc_h3800_transmit_data: irq_mask=0005 status=0x2140 (FIFO_EMPTY CLOCK_ENABLE END_COMMAND_RESPONSE )
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
mmc_h3800_handle_int: write re-enabling IRQ mask=0x0005
mmc_h3800_int sd=c493a034 status=0x2040 (FIFO_EMPTY END_COMMAND_RESPONSE )
mmc_h3800_handle_int: write re-enabling IRQ mask=0x0005
mmc_h3800_int sd=c493a034 status=0x3840 (FIFO_EMPTY DATA_TRANSFER_DONE END_PROGRAM END_COMMAND_RESPONSE )
mmc_h3800_handle_int: terminating status=0x3840
mmc_cmd_complete: request=c4924db8 retval=0
mmc_tasklet_action: dev=c4924d1c flags=03
mmc_cim_read_write_block first=0
mmc_unpack_r1 cmd=24 status=00000900
mmc_media_transfer_done: result=1
mmc_media_request (c395cba0): cmd 1 sec 125050 (nr. 2)
mmc_media_transfer: minor=1
mmc_media_transfer: id=0 cmd=1 sector=125082 nr_sectors=2 block_len=512 buf=c2cc4400
mmc_handle_io_request id=0 cmd=1 sector=125082 nr_sectors=2 block_len=512 buf=c2cc4400
mmc_has_valid_request (c4925020)
mmc_cim_read_write_block first=1
mmc_fix_request_block_size: io_request id=0 cmd=1 sector=125082 nr_sectors=2 block_len=512 buf=c2cc4400
mmc_h3800_send_command: request=c4924db8 cmd=16 (SET_BLOCKLEN) arg=00000200 status=3840
mmc_h3800_exec_command: request=c4924db8 status=3840
mmc_h3800_set_command: cmd=16 arg=0x00000200
mmc_h3800_exec_command: enabling irq mask=000b status=0x0040 (FIFO_EMPTY )
mmc_h3800_int sd=c493a034 status=0x2040 (FIFO_EMPTY END_COMMAND_RESPONSE )
mmc_h3800_get_response Raw byte stream: 10 00 00 09 00 00
mmc_h3800_handle_int: terminating status=0x2040
mmc_cmd_complete: request=c4924db8 retval=0
mmc_tasklet_action: dev=c4924d1c flags=03
mmc_cim_read_write_block first=0
mmc_unpack_r1 cmd=16 status=00000900
mmc_h3800_send_command: request=c4924db8 cmd=24 (WRITE_BLOCK) arg=03d13400 status=2040
mmc_h3800_exec_command: request=c4924db8 status=2040
mmc_h3800_set_command: cmd=24 arg=0x03d13400
mmc_h3800_set_transfer: block_len=512 nob=1
mmc_h3800_exec_command: enabling irq mask=0005 status=0x0040 (FIFO_EMPTY )
mmc_h3800_int sd=c493a034 status=0x2140 (FIFO_EMPTY CLOCK_ENABLE END_COMMAND_RESPONSE )
mmc_h3800_get_response Raw byte stream: 18 00 00 09 00 00
mmc_h3800_transmit_data: nob=1 block_len=512
mmc_h3800_transmit_data: irq_mask=0005 status=0x2140 (FIFO_EMPTY CLOCK_ENABLE END_COMMAND_RESPONSE )
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
mmc_h3800_handle_int: write re-enabling IRQ mask=0x0005
mmc_h3800_int sd=c493a034 status=0x2040 (FIFO_EMPTY END_COMMAND_RESPONSE )
mmc_h3800_handle_int: write re-enabling IRQ mask=0x0005
mmc_h3800_int sd=c493a034 status=0x3840 (FIFO_EMPTY DATA_TRANSFER_DONE END_PROGRAM END_COMMAND_RESPONSE )
mmc_h3800_handle_int: terminating status=0x3840
mmc_cmd_complete: request=c4924db8 retval=0
mmc_tasklet_action: dev=c4924d1c flags=03
mmc_cim_read_write_block first=0
mmc_unpack_r1 cmd=24 status=00000900
mmc_h3800_send_command: request=c4924db8 cmd=24 (WRITE_BLOCK) arg=03d13600 status=3840
mmc_h3800_exec_command: request=c4924db8 status=3840
mmc_h3800_set_command: cmd=24 arg=0x03d13600
mmc_h3800_set_transfer: block_len=512 nob=1
mmc_h3800_exec_command: enabling irq mask=0005 status=0x0040 (FIFO_EMPTY )
mmc_h3800_irq_timeout: irq_mask=0005 status=0x2140 (FIFO_EMPTY CLOCK_ENABLE END_COMMAND_RESPONSE )
Request info:
  index 0
  cmd 24
  arg 0x03d13600
  rtype 1
  nob 1
  bl_len 512
  buffer c2cc4600
  result -1
mmc_h3800_get_response Raw byte stream: 18 00 00 09 00 00
mmc_h3800_transmit_data: nob=1 block_len=512
mmc_h3800_transmit_data: irq_mask=0005 status=0x2140 (FIFO_EMPTY CLOCK_ENABLE END_COMMAND_RESPONSE )
Received on Mon Jul 29 16:52:57 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:38:55 EDT