RE: Problems with SD-MMC cards

From: Bob Davies <bdavies.a.t.cinnabar.ca>
Date: Fri May 07 2004 - 14:56:29 EDT

Followup to my last.
As Epelde indicated, there does not appear to be anything suspicious in
the logs:
May 7 18:26:47 familiar syslog.warn klogd: [mmc_core.c:841] mmc_init
May 7 18:26:47 familiar syslog.warn klogd: [mmc_media.c:434]
mmc_media_init
May 7 18:26:47 familiar syslog.warn klogd: [mmc_samsung.c:1458]
s3c_mmc_register_slot s3c_mmc_init function start
May 7 18:27:04 familiar syslog.warn klogd: [mmc_core.c:641]
mmc_register_slot_driver max=1 ocr=0x00ff8000
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:1381]
mmc_s3c_slot_init
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:1333]
mmc_s3c_slot_up before slot_up
May 7 18:27:04 familiar syslog.warn klogd:
h5400_mmc_slot_init[mmc_h5400.c:83] h5400_mmc_slot_is_empty is_empty=0
May 7 18:27:04 familiar syslog.warn klogd: [mmc_core.c:556] mmc_insert
slot=0
May 7 18:27:04 familiar syslog.warn klogd: [mmc_core.c:524]
mmc_tasklet_action : dev=ccaabd38 flags=04
May 7 18:27:04 familiar syslog.warn klogd: [mmc_protocol.c:470]
mmc_cim_default_state
May 7 18:27:04 familiar syslog.warn klogd: [mmc_core.c:378]
mmc_check_eject dev state=4
May 7 18:27:04 familiar syslog.warn klogd: [mmc_core.c:415]
mmc_check_insert dev state=4
May 7 18:27:04 familiar syslog.warn klogd: [mmc_h5400.c:83]
h5400_mmc_slot_is_empty is_empty=0
May 7 18:27:04 familiar syslog.warn klogd: [mmc_protocol.c:441]
mmc_cim_init_stack
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:716]
mmc_s3c_send_command : request=ccaabddc cmd=-1 (CIM_RESET) arg=00000000
Cmd status=0010 Data status=0002 FIFO
status=2c00
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:491]
mmc_s3c_reset
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:467] mmc_CMD0
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:407]
chk_CMDend
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:415]
chk_CMDend STATUS=0x00000010
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:417]
chk_CMDend cmd timed out status=0x10
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:725]
mmc_s3c_send_command Before mmc_cmd_complete
May 7 18:27:04 familiar syslog.warn klogd: [mmc_core.c:548]
mmc_cmd_complete request=ccaabddc retval=0
May 7 18:27:04 familiar syslog.warn klogd: [mmc_core.c:524]
mmc_tasklet_action : dev=ccaabd38 flags=03
May 7 18:27:04 familiar syslog.warn klogd: [mmc_protocol.c:441]
mmc_cim_init_stack
May 7 18:27:04 familiar syslog.warn klogd: [mmc_protocol.c:288]
mmc_cim_single_card_acq
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:716]
mmc_s3c_send_command : request=ccaabddc cmd=0 (GO_IDLE_STATE)
arg=00000000 Cmd status=0010 Data
status=0002 FIFO status=2c00
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:491]
mmc_s3c_reset
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:467] mmc_CMD0
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:407]
chk_CMDend
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:415]
chk_CMDend STATUS=0x00000010
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:417]
chk_CMDend cmd timed out status=0x10
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:725]
mmc_s3c_send_command Before mmc_cmd_complete
May 7 18:27:04 familiar syslog.warn klogd: [mmc_core.c:548]
mmc_cmd_complete request=ccaabddc retval=0
May 7 18:27:04 familiar syslog.warn klogd: [mmc_core.c:524]
mmc_tasklet_action : dev=ccaabd38 flags=03
May 7 18:27:04 familiar syslog.warn klogd: [mmc_protocol.c:288]
mmc_cim_single_card_acq
May 7 18:27:04 familiar syslog.warn klogd: [mmc_protocol.c:298]
mmc_cim_single_card_acq ==> MMC_GO_IDLE_STATE
May 7 18:27:04 familiar syslog.warn klogd: [mmc_protocol.c:302]
mmc_cim_single_card_acq ==> before sending MMC_APP_CMD
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:716]
mmc_s3c_send_command : request=ccaabddc cmd=55 (APP_CMD) arg=00000000
Cmd status=0010 Data status=0002 FIFO
status=2c00
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:621]
mmc_s3c_exec_command request = ccaabddc request->rtype 0x00000001
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:521]
mmc_s3c_set_command
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:550]
mmc_s3c_set_command : rSDICCON 0x00000277 rSDIDTIMER Ox0000FFFF
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:651]
mmc_s3c_exec_command Real Start clocking
May 7 18:27:04 familiar syslog.warn klogd: [mmc_samsung.c:730]
mmc_s3c_send_command retval 0x00000000
May 7 18:27:04 familiar syslog.warn klogd: [mmc_protocol.c:304]
mmc_cim_single_card_acq ==> after sending MMC_APP_CMD
May 7 18:27:04 familiar syslog.warn klogd: [mmc_protocol.c:305]
mmc_cim_single_card_acq <== MMC_GO_IDLE_STATE

Anyone have any ideas?
What changes were made in the MMC/SD modules between hh36.8 and hh36.9?
Any chance of going back? Or maybe providing the old modules as well,
for hh36.9?
I've got a bunch of stuff on my SD card which is formatted EXT2, and
inaccessible from my XP notebook right now and would like to get back at
it.
I supposed if all else fails, I could flash back to 36.8, but I'd rather
not.
Thanks
Bob

-----Original Message-----
From: h5400-port-bounces@handhelds.org
[mailto:h5400-port-bounces@handhelds.org] On Behalf Of Bob Davies
Sent: Friday, May 07, 2004 11:16 AM
To: 'Epelde Gorka'; h5400-port@handhelds.org
Subject: RE: [H5400-port] Problems with SD-MMC cards

As a follow up to this, I was using my SD card yesterday (after I
learned the difference between insmod and modprobe. DOH!) and it worked
fine. I did an ipkg update/upgrade, and I am now seeing what Epelde is
seeing as well. I was using the part1 partition in the /dev/mmc
directory, but I don't see it there anymore. Bob

-----Original Message-----
From: h5400-port-bounces@handhelds.org
[mailto:h5400-port-bounces@handhelds.org] On Behalf Of Epelde Gorka
Sent: Friday, May 07, 2004 2:13 AM
To: h5400-port@handhelds.org
Subject: [H5400-port] Problems with SD-MMC cards

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
_______________________________________________
H5400-port mailing list
H5400-port@handhelds.org
https://www.handhelds.org/mailman/listinfo/h5400-port

_______________________________________________
H5400-port mailing list
H5400-port@handhelds.org
https://www.handhelds.org/mailman/listinfo/h5400-port
Received on Fri May 07 18:57:16 2004

This archive was generated by hypermail 2.1.8 : Fri May 07 2004 - 14:57:18 EDT