0xFireWolf / RealtekCardReader

An unofficial Realtek PCIe/USB-based SD card reader driver for macOS
BSD 3-Clause "New" or "Revised" License
184 stars 18 forks source link

RTS522A unable to initialize card #4

Closed seungjunProgramming closed 3 years ago

seungjunProgramming commented 3 years ago

When I boot, the kext is correctly attached to the reader, but when I insert the card, it fails to initialize the card even with the default frequency, and fails to read the card. Here's my log. rtsx.log (I'm currently using macOS12 Monterey) (This is the log made with the 1bit code that you uploaded at the insainlymac today. I'll present the log with the uploaded 0.9.5 kext if needed!)

seungjunProgramming commented 3 years ago

Here's the log made with the latest commit(5842de3). I built it with MacKernelSDK inside the folder and changed the release OS to 12.0 (Using Xcode beta)

seungjunProgramming commented 3 years ago

Tell me if I have any missing or incomplete logs please!

0xFireWolf commented 3 years ago

Your kernel log indicated that the card became unresponsive (CMD2: timeout) after it switched to 1.8V (CMD11: success).

Unfortunately, I don't have a clue at this moment, but it might be worth trying to initialize the card at 3.3V instead.

seungjunProgramming commented 3 years ago

I recently tried another kext madly another developer, and it successfully read my card. Will I be able to read the card if I find out what V it uses to initialize my card? I'm so sorry about mentioning another developer's kext, but I thought it may be a hint. This is the kext I used. https://github.com/cholonam/Sinetek-rtsx

0xFireWolf commented 3 years ago

Will I be able to read the card if I find out what V it uses to initialize my card?

If I remember correctly, your card is probably operating at 50 MHz under 3.3V with that driver.

Do you have any other SDHC or SDXC cards to test with my driver? Will those cards become unresponsive as well after switching to 1.8V?

I'm so sorry about mentioning another developer's kext, but I thought it may be a hint.

No need to apologize. I am aware of that driver, and Cholonam worked very hard to improve Sinetek's original driver to support RTS525A. Unfortunately, it supports the default and the high speed modes only, so voltage switches are not needed.

seungjunProgramming commented 3 years ago

I have a SDHC I 16GB UHS-1 Card. I'll upload the log right away

seungjunProgramming commented 3 years ago

rtsx.log Here's my log. It was also undetected...

0xFireWolf commented 3 years ago

RealtekCardReader_0.9.6_4213fa4_DEBUG.zip

Add the boot argument -rtsx3v3 to initialize the card at 3.3V and attach the kernel log.

seungjunProgramming commented 3 years ago

rtsx.log Here's my log. It successfully checks the card(GB, etc...), but can not read the card. Screen Shot 2021-07-27 at 4 57 36 PM Screen Shot 2021-07-27 at 4 59 53 PM

seungjunProgramming commented 3 years ago

Screen Shot 2021-07-27 at 4 59 53 PM

0xFireWolf commented 3 years ago

Hello there. Your card also timed out after the driver switched the clock to 50MHz. Please check whether the latest version fixes your issue. You can find compiled version under Artifacts.

lekoOwO commented 3 years ago

Same issue here. Here's the log using nightly build.

It's able to recognize the card and the partition, but unountable and shows card uninitialized warning after login.

image

rtsx.log

0xFireWolf commented 3 years ago

@lekoOwO Your kernel log reveals a different issue that one of inbound DMA transfers is timed out. Please try the latest build and see if it solves your problem.

lekoOwO commented 3 years ago

@lekoOwO Your kernel log reveals a different issue that one of inbound DMA transfers is timed out. Please try the latest build and see if it solves your problem.

It works. Thanks!

0xFireWolf commented 3 years ago

It works. Thanks!

You are welcome. Thanks for the feedback.

0xFireWolf commented 3 years ago

Issue closed as the timeout issue after the driver switches the card clock to 50MHz or higher has been resolved by v0.9.6.