Problems with SD-MMC cards

From: Epelde Gorka <GEpelde_at_ikerlan.es>
Date: Fri, 7 May 2004 08:12:46 +0200

Hi all,
        It's about 6 months since i bought my Ipaq h5450 and flashed it. It
only needs SD-MMC to be perfect. I've been following this mailing list, and
looks like it finally works. Although, i haven't been able to make it work.
I have tried twice but no good result.
1.- Flashed with a stable bersion 0.7.2 +opie. Unstable feeds
        src/gz base http://handhelds.org/feeds/unstable
2.- Unstable image. Unstable feeds.
        
http://handhelds.org/~pb/unstable/bootopie-v0.7.2+unstable16-h3900.jffs2
        src/gz base http://handhelds.org/feeds/unstable

Here are the steps that i usually follow:
~ #
~ # modprobe mmc_h5400
Using /lib/modules/2.4.19-rmk6-pxa1-hh36/kernel/drivers/mmc/mmc_base.o
Using /lib/modules/2.4.19-rmk6-pxa1-hh36/kernel/drivers/mmc/mmc_samsung.o
Using /lib/modules/2.4.19-rmk6-pxa1-hh36/kernel/drivers/mmc/mmc_h5400.o
~ #

and i get

~ # dmesg
MER Ox0000FFFF
[mmc_samsung.c:651] mmc_s3c_exec_command Real Start clocking
[mmc_samsung.c:730] mmc_s3c_send_command retval 0x00000000
[mmc_protocol.c:406] mmc_cim_single_card_acq <== MMC_SET_RELATIVE_ADDR
[mmc_samsung.c:1272] mmc_s3c_general_mmc_interrupt rSDIIMSK 0x0000C000 cmd
0x00
001A3F data 0x00000002 fifo 0x00000000
[mmc_samsung.c:1273] mmc_s3c_general_mmc_interrupt rSDICON 0x00000001 CCON
0x
00000649 DCONdata 0x001E2001
[mmc_samsung.c:1107] mmc_s3c_split_status DUMMY MMC_ERROR_CRC
[mmc_samsung.c:1120] mmc_s3c_split_status get_response
mmc_s3c_get_response: Raw byte stream: 3f 44 26 00 2a 1f f9 81 e9 e4 b4 81
ff 1
2 40 40 d3
[mmc_samsung.c:1172] mmc_s3c_split_status RT_RESPONSE_ONLY
[mmc_samsung.c:1246] mmc_s3c_split_status Before mmc_cmd_complete
[mmc_core.c:548] mmc_cmd_complete request=cca52ddc retval=0
[mmc_core.c:524] mmc_tasklet_action : dev=cca52d38 flags=03
[mmc_protocol.c:288] mmc_cim_single_card_acq
[mmc_protocol.c:410] mmc_cim_single_card_acq <== MMC_SEND_CSD ()
[mmc_core.c:179] mmc_unpack_csd csd_structure=1 spec_vers=1 taac=26
nsac=00
tran_speed=2a
  ccc=01ff read_bl_len=9 read_bl_partial=1 write_blk_misalign=0
  read_blk_misalign=0 dsr_imp=0 c_size=1959 vdd_r_curr_min=4
  vdd_r_curr_max=4 vdd_w_curr_min=5 vdd_w_curr_max=5 c_size_mult=1
  wp_grp_size=31 wp_grp_enable=0 default_ecc=0 r2w_factor=4
  write_bl_len=9 write_bl_partial=0 file_format_grp=0 copy=1
  perm_write_protect=0 tmp_write_protect=0 file_format=0 ecc=0
[mmc_core.c:185] mmc_unpack_csd V22 sector_size=0 erase_grp_size=15
[mmc_protocol.c:63] mmc_configure_card slot=0
[mmc_protocol.c:67] mmc_configure_card ==> mmc_configure_card (rate=
20000000)
[mmc_core.c:607] mmc_match_media_driver slot=cca52d3c
[mmc_media.c:361] mmc_media_load slot=cca52d3c nr_sect=15680
write_block_length
=512 read_block_len=512
[mmc_protocol.c:422] mmc_cim_single_card_acq ==> MMC_SEND_CSD ()
[mmc_protocol.c:470] mmc_cim_default_state
[mmc_core.c:378] mmc_check_eject dev state=0
[mmc_core.c:415] mmc_check_insert dev state=0
[mmc_protocol.c:46] mmc_has_valid_request (00000000)
[mmc_media.c:335] mmc_media_load_task_handler slot_id=0
[mmc_media.c:149] mmc_media_revalidate : index=0
 first_minor 0x00000000
Partition check:
 /dev/mmc:[mmc_media.c:294] mmc_media_request (c282d600): cmd 0 sec 0 (nr.
2)
[mmc_media.c:251] mmc_media_transfer : minor=0
[mmc_media.c:271] mmc_media_transfer : id=0 cmd=0 sector=0 nr_sectors=2
block_le
n=512 buf=c2830000
[mmc_core.c:583] mmc_handle_io_request id=0 cmd=0 sector=0 nr_sectors=2
block_le
n=512 buf=c2830000
[mmc_core.c:524] mmc_tasklet_action : dev=cca52d38 flags=00
[mmc_protocol.c:470] mmc_cim_default_state
[mmc_core.c:378] mmc_check_eject dev state=0
[mmc_core.c:415] mmc_check_insert dev state=0
[mmc_protocol.c:46] mmc_has_valid_request (cca53390)
[mmc_protocol.c:246] mmc_cim_handle_request first=1
[mmc_protocol.c:218] mmc_cim_get_status first=1
[mmc_samsung.c:716] mmc_s3c_send_command : request=cca52ddc cmd=13
(SEND_STATUS)
 arg=00010000 Cmd status=003f Data status=0002
       FIFO status=0000
[mmc_samsung.c:621] mmc_s3c_exec_command request = cca52ddc request->rtype
0x0
0000001
[mmc_samsung.c:521] mmc_s3c_set_command
[mmc_samsung.c:550] mmc_s3c_set_command : rSDICCON 0x0000024D rSDIDTIMER
Ox0000
FFFF
[mmc_samsung.c:651] mmc_s3c_exec_command Real Start clocking
[mmc_samsung.c:730] mmc_s3c_send_command retval 0x00000000
[mmc_samsung.c:1272] mmc_s3c_general_mmc_interrupt rSDIIMSK 0x0000C000 cmd
0x00
000A0D data 0x00000002 fifo 0x00000000
[mmc_samsung.c:1273] mmc_s3c_general_mmc_interrupt rSDICON 0x00000001 CCON
0x
0000024D DCONdata 0x001E2001
[mmc_samsung.c:1120] mmc_s3c_split_status get_response
mmc_s3c_get_response: Raw byte stream: 0d 00 00 07 00 fb
[mmc_samsung.c:1172] mmc_s3c_split_status RT_RESPONSE_ONLY
[mmc_samsung.c:1246] mmc_s3c_split_status Before mmc_cmd_complete
[mmc_core.c:548] mmc_cmd_complete request=cca52ddc retval=0
[mmc_core.c:524] mmc_tasklet_action : dev=cca52d38 flags=03
[mmc_protocol.c:218] mmc_cim_get_status first=0
[mmc_core.c:210] mmc_unpack_r1 cmd=13 status=00000700
[mmc_protocol.c:137] mmc_cim_read_write_block first=1
[mmc_protocol.c:91] mmc_fix_request_block_size io_request id=0 cmd=0
sector=0 nr
_sectors=2 block_len=512 buf=c2830000
[mmc_samsung.c:716] mmc_s3c_send_command : request=cca52ddc cmd=7
(SELECT_CARD)
arg=00010000 Cmd status=000d Data status=0002
      FIFO status=0000
[mmc_samsung.c:621] mmc_s3c_exec_command request = cca52ddc request->rtype
0x0
0000002
[mmc_samsung.c:521] mmc_s3c_set_command
[mmc_samsung.c:550] mmc_s3c_set_command : rSDICCON 0x00000247 rSDIDTIMER
Ox0000
FFFF
[mmc_samsung.c:651] mmc_s3c_exec_command Real Start clocking
[mmc_samsung.c:730] mmc_s3c_send_command retval 0x00000000
[mmc_samsung.c:1272] mmc_s3c_general_mmc_interrupt rSDIIMSK 0x0000C000 cmd
0x00
000A07 data 0x00000002 fifo 0x00000000
[mmc_samsung.c:1273] mmc_s3c_general_mmc_interrupt rSDICON 0x00000001 CCON
0x
00000247 DCONdata 0x001E2001
[mmc_samsung.c:1120] mmc_s3c_split_status get_response
mmc_s3c_get_response: Raw byte stream: 07 00 00 07 00 75
[mmc_samsung.c:1172] mmc_s3c_split_status RT_RESPONSE_ONLY
[mmc_samsung.c:1246] mmc_s3c_split_status Before mmc_cmd_complete
[mmc_core.c:548] mmc_cmd_complete request=cca52ddc retval=0
[mmc_core.c:524] mmc_tasklet_action : dev=cca52d38 flags=03
[mmc_protocol.c:137] mmc_cim_read_write_block first=0
[mmc_core.c:210] mmc_unpack_r1 cmd=7 status=00000700
[mmc_samsung.c:716] mmc_s3c_send_command : request=cca52ddc cmd=16
(SET_BLOCKLEN
) arg=00000200 Cmd status=0007 Data status=0002
        FIFO status=0000
[mmc_samsung.c:621] mmc_s3c_exec_command request = cca52ddc request->rtype
0x0
0000001
[mmc_samsung.c:521] mmc_s3c_set_command
[mmc_samsung.c:550] mmc_s3c_set_command : rSDICCON 0x00000250 rSDIDTIMER
Ox0000
FFFF
[mmc_samsung.c:651] mmc_s3c_exec_command Real Start clocking
[mmc_samsung.c:730] mmc_s3c_send_command retval 0x00000000
[mmc_samsung.c:1272] mmc_s3c_general_mmc_interrupt rSDIIMSK 0x0000C000 cmd
0x00
000A10 data 0x00000002 fifo 0x00000000
[mmc_samsung.c:1273] mmc_s3c_general_mmc_interrupt rSDICON 0x00000001 CCON
0x
00000250 DCONdata 0x001E2001
[mmc_samsung.c:1120] mmc_s3c_split_status get_response
mmc_s3c_get_response: Raw byte stream: 10 00 00 09 00 0b
[mmc_samsung.c:1172] mmc_s3c_split_status RT_RESPONSE_ONLY
[mmc_samsung.c:1246] mmc_s3c_split_status Before mmc_cmd_complete
[mmc_core.c:548] mmc_cmd_complete request=cca52ddc retval=0
[mmc_core.c:524] mmc_tasklet_action : dev=cca52d38 flags=03
[mmc_protocol.c:137] mmc_cim_read_write_block first=0
[mmc_core.c:210] mmc_unpack_r1 cmd=16 status=00000900
[mmc_samsung.c:716] mmc_s3c_send_command : request=cca52ddc cmd=17
(READ_SINGLE_
BLOCK) arg=00000000 Cmd status=0010 Data
status=0002
             FIFO status=0000
[mmc_samsung.c:621] mmc_s3c_exec_command request = cca52ddc request->rtype
0x0
0000001
[mmc_samsung.c:566] mmc_s3c_set_transfer : block_len=512 nob=1
[mmc_samsung.c:521] mmc_s3c_set_command
[mmc_samsung.c:550] mmc_s3c_set_command : rSDICCON 0x00000A51 rSDIDTIMER
Ox0000
FFFF
[mmc_samsung.c:651] mmc_s3c_exec_command Real Start clocking
[mmc_samsung.c:730] mmc_s3c_send_command retval 0x00000000
[mmc_samsung.c:1272] mmc_s3c_general_mmc_interrupt rSDIIMSK 0x0002C006 cmd
0x00
000A11 data 0x00000002 fifo 0x00000000
[mmc_samsung.c:1273] mmc_s3c_general_mmc_interrupt rSDICON 0x00000001 CCON
0x
00000A51 DCONdata 0x001E2001
[mmc_samsung.c:1120] mmc_s3c_split_status get_response
mmc_s3c_get_response: Raw byte stream: 11 00 00 09 00 67
[mmc_samsung.c:1187] mmc_s3c_split_status : read SDIIMSK mask=0x0002c006
~ #

Which looks like ok. A new folder is generated in /dev called "mmc". So i
have /dev/mmc

But there is nothing inside. And in the many howtos i found googling to use
the card, they say it should appear part1 o something..

Any help is really appreciated.

Have a good weekend to all.

Gorka
Received on Fri May 07 2004 - 06:18:08 EDT

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:20:10 EDT