Welcome to the Rockbox Technical Forums!
Launch the VMgit clone git://git.rockbox.org/rockbox ./Desktop/rockboxcd ./Desktop/rockboxmkdir buildcd build../tools/configure62patch -p0 -R < 8351a1aa9db98bab1f66274ee7b7e33839a31c60
--------------------------|--- a/apps/plugins/SOURCES|+++ b/apps/plugins/SOURCES--------------------------File to patch: ../apps/plugins/SOURCESpatching file ../apps/plugins/SOURCESUnreversed patch detected! Ignore -R? [n]
--- a/firmware/target/arm/as3525/sd-as3525v2.c+++ b/firmware/target/arm/as3525/sd-as3525v2.c@@ -549,40 +549,11 @@ static int sd_init_card(const int drive) /* Card back to full speed */ MCI_CLKDIV &= ~(0xFF); /* CLK_DIV_0 : bits 7:0 = 0x00 */ - if (sd_v2)- {- /* Attempt to switch cards to HS timings, non HS cards just ignore this */- /* CMD7 w/rca: Select card to put it in TRAN state */- if(!send_cmd(drive, SD_SELECT_CARD, card_info[drive].rca, MCI_RESP, &response))- return -7;-- if(sd_wait_for_tran_state(drive))- return -8;-- /* CMD6 */- if(!send_cmd(drive, SD_SWITCH_FUNC, 0x80fffff1, MCI_RESP, &response))- return -9;-- /* This delay is a bit of a hack, but seems to fix card detection- problems with some SD cards (particularly 16 GB and bigger cards).- Preferably we should handle this properly instead of using a delay,- see also FS#11870. */- sleep(HZ/10);-- /* We need to go back to STBY state now so we can read csd */- /* CMD7 w/rca=0: Deselect card to put it in STBY state */- if(!send_cmd(drive, SD_DESELECT_CARD, 0, MCI_NO_RESP, NULL))- return -10;- }- /* CMD9 send CSD */ if(!send_cmd(drive, SD_SEND_CSD, card_info[drive].rca, MCI_RESP|MCI_LONG_RESP, card_info[drive].csd)) return -11; - /* Another delay hack, see FS#11798 */- mci_delay();- sd_parse_csd(&card_info[drive]); if(drive == INTERNAL_AS3525) /* The OF is stored in the first blocks */
Thank you 404_user_not_found, we need people to test this as for the moment I'm like the only person in the world who have noted this so I don't expect it to make it to the master branch.
All I know is it greatly reduced the noise to a state where it were prior 3.8.1
I'm pretty sure this is just a hardware defect with some Clip+ players, so I don't think any patch is going to help you.
Page created in 0.111 seconds with 14 queries.