Jump to content
173 posts in this topic

Recommended Posts

On 7/26/2021 at 7:16 PM, Austere.J said:

 

Yes, but you need the latest version of `RealtekCardReader` (See Below).

 

 

You should use `RealtekCardReaderFriend`.

 

 

Correct.

 

 

GenericCardReaderFriend is to be used with USB-based card readers that are powered by Apple's USB Mass Storage driver.

 

There are three types of drivers for USB-based card readers:

1) Apple's USB Mass Storage driver (your card reader works like a thumb drive)

2) Apple's USB Card Reader driver (you probably need to modify its Info.plist to make it work with your device)

3) Realtek USB Card Reader driver (i.e., this driver and RTS5129, 5139 and 5179 only)

 

In the first case, you need Generic Card Reader Friend to make your card reader show up in System Information,

In the second case, you do not need any Lilu plugins, because from the perspective of System Information your card reader is natively supported.

In the third case, you need Realtek Card Reader Friend to make both your card reader and the card information show up in System Information.

 

 

That's why I keep the second bullet, but I think I should make a table to clarify things more clearly.

 

 

Your card failed to switch to 1.8V. Please try the latest one and add the boot argument `-rtsx3v3` to initialize the card at 3.3V.

 

Links: https://github.com/0xFireWolf/RealtekCardReader/files/6874896/RealtekCardReader_0.9.6_4213fa4_DEBUG.zip

 

here is log when booting with inserted sdcard. not recognized sd card

rtsx_with -rtsx3v3.log

rtsx_without -rtsx3v3.log

 

1046754207_2021-07-2812_14_50.png.9f544e295fd76f270b1676a24181d322.png

 

Link to comment
Share on other sites

@Austere.J 

 

Here is the log from latest version with inserted card BEFORE boot (without any special boot-args) > RTS5129

 

1) I can see info about SD card reader in "System report" (no difference if i boot with SD card inserted or not) 

2) No SD card shown at all (previously it appeared in IOreg and Disk Utility, but i wasn't able to erase it and initialise in Disk Utility)

 

I will attach IOreg and log here (sd card was inserted before boot)

rts.txt MacBook Air — b0ltun.ioreg

Link to comment
Share on other sites

@Austere.J Hii, I just discovered for RTS5129 (0x129, 0xbda), a partial solution to make it work. I used some variants of realtekcardreader.kext out of which few variants partially worked (maybe developers could help me). I posted screenshots below to explain better than words.

 

My initial try - https://github.com/0xFireWolf/RealtekCardReader/issues/8

 

Variant 5842de3 - Detects sdcard when attached before boot (5842de3-1.png)(sdcard gets detected but as an unknown card, couldn't format); hotplug sdcard not working(5842de3-3.png) (hot plug means plugging sdcard while Mac is running); doesn't show anything in system info

5842de3-3.thumb.png.c6102386baadec9ffa8672fb808be3b7.png5842de3-1.thumb.png.e800a29c347b53794b80aa4a8891253d.png

 

Variant 4213fa4 - It detects some info in system info (similar to GenericCardReaderFriend.kext (as it fakes the card reader) as mentioned in my post - https://github.com/0xFireWolf/RealtekCardReader/issues/8#issuecomment-891726963) but it doesn't detect any sdcard (both pre-boot and hotplug) (both with and without -rtsx3v3 boot-arg)

4213fa4.thumb.png.05102f697f58144fb19d808a551f517a.png

 

Variant 3523d8d - System Info similar to 5842de3 but doesn't detect sdcard

3523d8d.thumb.png.fc03421abe6a54b358532d2f5dff398a.png

 

Variant 3523d8d_1bitbuswidthversion - everything is similar to 5842de3

3523d8d_1bitbuswidth-1.thumb.png.f4de5db8a4771da702a71dcd97b12fb9.png3523d8d_1bitbuswidth-2.thumb.png.3f0f332a2534eab89c0c62dac8a0a0ee.png

 

I doubt if it's the problem with sdcard variation in Mac detection (probably), IOReg shows SDXC reader but I use SDHC Card (Windows 10 could open my SDHC Card very well) and I couldn't test this as I don't have SDXC Card (Developers please find out). Also, please read my whole post and try to identify the problem with kext sir. You are doing a great job.

(I am not sure if that kind of card reader reporting in ioreg is normal or a problem from the original macbook perspective)

 

Note: The kexts which I posted here are taken from previous posts in this discussion and are not compiled by me.

 

5842de3-2.png:

5842de3-2.png

RealtekCardReader_0.9.6_5842de3_DEBUG.zip RealtekCardReader_0.9.6_4213fa4_DEBUG.zip RealtekCardReader_0.9.6_3523d8d_DEBUG.zip

RealtekCardReader_0.9.6_3523d8d_1BitBusWidth_DEBUG.zip

rtsx-5842de3-bootWithSDCard.log rtsx-5842de3-bootWithoutSDCard.log rtsx-4213fa4-bootWithSDCard.log rtsx-4213fa4-bootWithoutSDCard.log rtsx-3523d8d-bootWithSDCard.log rtsx-3523d8d-bootWithoutSDCard.log rtsx-3523d8d-1bitbus-bootWithSDCard.log rtsx-3523d8d-1bitbus-bootWithoutSDCard.log

rtsx-4213fa4-rtsx3v3-bootWithSDCard.log rtsx-4213fa4-rtsx3v3-bootWithoutSDCard.log

Edited by gnpaone
Link to comment
Share on other sites

On 8/3/2021 at 11:55 PM, gnpaone said:

@Austere.J Hii, I just discovered for RTS5129 (0x129, 0xbda), a partial solution to make it work. I used some variants of realtekcardreader.kext out of which few variants partially worked (maybe developers could help me). I posted screenshots below to explain better than words.

 

My initial try - https://github.com/0xFireWolf/RealtekCardReader/issues/8

 

Variant 5842de3 - Detects sdcard when attached before boot (5842de3-1.png)(sdcard gets detected but as an unknown card, couldn't format); hotplug sdcard not working(5842de3-3.png) (hot plug means plugging sdcard while Mac is running); doesn't show anything in system info

5842de3-3.thumb.png.c6102386baadec9ffa8672fb808be3b7.png5842de3-1.thumb.png.e800a29c347b53794b80aa4a8891253d.png

 

Variant 4213fa4 - It detects some info in system info (similar to GenericCardReaderFriend.kext (as it fakes the card reader) as mentioned in my post - https://github.com/0xFireWolf/RealtekCardReader/issues/8#issuecomment-891726963) but it doesn't detect any sdcard (both pre-boot and hotplug) (both with and without -rtsx3v3 boot-arg)

4213fa4.thumb.png.05102f697f58144fb19d808a551f517a.png

 

Variant 3523d8d - System Info similar to 5842de3 but doesn't detect sdcard

3523d8d.thumb.png.fc03421abe6a54b358532d2f5dff398a.png

 

Variant 3523d8d_1bitbuswidthversion - everything is similar to 5842de3

3523d8d_1bitbuswidth-1.thumb.png.f4de5db8a4771da702a71dcd97b12fb9.png3523d8d_1bitbuswidth-2.thumb.png.3f0f332a2534eab89c0c62dac8a0a0ee.png

 

I doubt if it's the problem with sdcard variation in Mac detection (probably), IOReg shows SDXC reader but I use SDHC Card (Windows 10 could open my SDHC Card very well) and I couldn't test this as I don't have SDXC Card (Developers please find out). Also, please read my whole post and try to identify the problem with kext sir. You are doing a great job.

(I am not sure if that kind of card reader reporting in ioreg is normal or a problem from the original macbook perspective)

 

Note: The kexts which I posted here are taken from previous posts in this discussion and are not compiled by me.

 

5842de3-2.png:

5842de3-2.png

RealtekCardReader_0.9.6_5842de3_DEBUG.zip 208.86 kB · 0 downloads RealtekCardReader_0.9.6_4213fa4_DEBUG.zip 209.87 kB · 0 downloads RealtekCardReader_0.9.6_3523d8d_DEBUG.zip 208.46 kB · 1 download

RealtekCardReader_0.9.6_3523d8d_1BitBusWidth_DEBUG.zip 208.37 kB · 0 downloads

rtsx-5842de3-bootWithSDCard.log 93.34 kB · 0 downloads rtsx-5842de3-bootWithoutSDCard.log 0 B · 0 downloads rtsx-4213fa4-bootWithSDCard.log 120.41 kB · 0 downloads rtsx-4213fa4-bootWithoutSDCard.log 86.74 kB · 0 downloads rtsx-3523d8d-bootWithSDCard.log 0 B · 0 downloads rtsx-3523d8d-bootWithoutSDCard.log 0 B · 0 downloads rtsx-3523d8d-1bitbus-bootWithSDCard.log 121.31 kB · 0 downloads rtsx-3523d8d-1bitbus-bootWithoutSDCard.log 0 B · 0 downloads

1346526648_Screenshot2021-08-05at10_49_41AM.thumb.png.ca44de653894c8b4587070f31446bcb9.png

 

Update: The kexts that I mentioned earlier that detect card, it detects only non-uhs card, it doesn't detect uhs-1 card. (NO Hotplug card detection for any cards though)

@Austere.J

Edited by gnpaone
Link to comment
Share on other sites

 

On 7/31/2021 at 8:09 AM, b0ltun said:

1) I can see info about SD card reader in "System report" (no difference if i boot with SD card inserted or not) 

 

On 7/18/2021 at 12:59 AM, Austere.J said:

Problem:

System Information does not list the USB card reader properly under the tab "Card Reader".

User Observation:

Device details are blank under the tab.

 

@b0ltun The version you tried solves this issue only.

 

I fixed a bug in the function that switches the bus block.

Please give a try and let's see whether commands are still timed out after the card reader switches its internal clock.

 

RealtekCardReader_0.9.6_851ede2_DEBUG.zip

Link to comment
Share on other sites

8 minutes ago, Austere.J said:

@gnpaone Your kernel logs are incomplete. Please refer to the FAQs and make sure that logs are complete before you upload it.

Ohh, I waited 2 mins after I boot my mac os and generated my log, you mean I have to wait few more minutes before I generate my logs sir? Some log files are 0 bytes because no sd card is present (I think that's the reason)

Actually, I followed this FAQ sir. I will try using DebugEnhancer kext and upload again sir

Edited by gnpaone
Link to comment
Share on other sites

6 minutes ago, gnpaone said:

Ohh, I waited 2 mins after I boot my mac os and generated my log, you mean I have to wait few more minutes before I generate my logs sir?

 

 

https://github.com/0xFireWolf/RealtekCardReader/blob/main/Docs/FAQ.md

 

Insert your card before your system boots. Once you see your desktop, dump the kernel log and check whether it is complete.

  • Like 1
Link to comment
Share on other sites

47 minutes ago, Austere.J said:

@gnpaone Your kernel logs are incomplete. Please refer to the FAQs and make sure that logs are complete before you upload it.

@Austere.J Done sir 👍

Note: The log files uploaded here are of booting with sdcard inserted

 

rtsx-5842de3.log rtsx-4213fa4.log rtsx-3523d8d.log rtsx-3523d8d_1bitbuswidth-1.log

6 minutes ago, Austere.J said:

 

OK, so now you have the same problem as other testers... :o

Yes sir 😅. But I am sure this problem may get solved soon

Link to comment
Share on other sites

8 hours ago, Austere.J said:

 

 

 

@b0ltun The version you tried solves this issue only.

 

I fixed a bug in the function that switches the bus block.

Please give a try and let's see whether commands are still timed out after the card reader switches its internal clock.

 

RealtekCardReader_0.9.6_851ede2_DEBUG.zip 211.16 kB · 3 downloads

 

Checked that version > booted with sd card injected - nothing on desktop or Disk Utility, but it's force injecting and ejecting itself (you can see that in ioreg - red "stuff" under card reader USB). Also, if you eject card and inject it again it will begin again to "switching ON/OFF" every second. I will attach log (inserted card before boot, after that ejected it and injected again). Also will attach ioreg. 

Thank you again!

 

 

rts.txt MacBook Air — b0ltun.ioreg

Link to comment
Share on other sites

2 hours ago, b0ltun said:

 

Checked that version > booted with sd card injected - nothing on desktop or Disk Utility, but it's force injecting and ejecting itself (you can see that in ioreg - red "stuff" under card reader USB). Also, if you eject card and inject it again it will begin again to "switching ON/OFF" every second. I will attach log (inserted card before boot, after that ejected it and injected again). Also will attach ioreg. 

Thank you again!

 

 

rts.txt 1021.66 kB · 0 downloads MacBook Air — b0ltun.ioreg 7.38 MB · 0 downloads

Hii, I know it's silly to ask this but can you please tell in brief how to extract that text file and ioreg? 😳

Edited by gnpaone
Link to comment
Share on other sites

12 hours ago, gnpaone said:

Hii, I know it's silly to ask this but can you please tell in brief how to extract that text file and ioreg? 😳

enable debug in OC config.plist (AppleDebug and etc) > you can find guide in Dortania how to do that

 

Also you need debug Lilu + debug variant of any kext you want to "debug". You also need that boot-arg: msgbuf=10485760 (it's currently working only on Big Sur, Monterey won't boot with that boot-arg right now)

 

Once you boot your system > open terminal > sudo dmesg | grep "RTS" > ~/Desktop/name_of_file.log

 

@Austere.J actually sent you the link to FAQ and how to do that (https://github.com/0xFireWolf/RealtekCardReader/blob/main/Docs/FAQ.md > "How do I dump the log produced by the driver?"

 

For IOreg dumps you actually need one of that two versions of application > https://github.com/khronokernel/IORegistryClone 

Version 3.0 provide much more info of some types, but the size of dump will be big

Version 2.1 is better for 2 reasons > low size of dumps, most guys use that. 

 

If you did dump with version 2.1 > you can't open it with version 3.0. So the dumps are incompatible to open by different version. 

 

To make dump you need open app and "Save"

 

Edited by b0ltun
add for ioreg
Link to comment
Share on other sites

3 minutes ago, b0ltun said:

enable debug in OC config.plist (AppleDebug and etc) > you can find guide in Dortania how to do that

 

Also you need debug Lilu + debug variant of any kext you want to "debug". You also need that boot-arg: msgbuf=10485760 (it's currently working only on Big Sur, Monterey won't boot with that boot-arg right now)

 

Once you boot your system > open terminal > sudo dmesg | grep "RTS" > ~/Desktop/name_of_file.log

 

@Austere.J actually sent you the link to FAQ and how to do that (https://github.com/0xFireWolf/RealtekCardReader/blob/main/Docs/FAQ.md > "How do I dump the log produced by the driver?"

 

Thanks. Yah, I did like this only. But your file is in txt format instead of log file so I asked, and also how to get the ioreg file?

Link to comment
Share on other sites

On 8/7/2021 at 11:07 AM, Austere.J said:

 

OK, so now you have the same problem as other testers... :o

 

On 8/7/2021 at 7:12 PM, b0ltun said:

 

Checked that version > booted with sd card injected - nothing on desktop or Disk Utility, but it's force injecting and ejecting itself (you can see that in ioreg - red "stuff" under card reader USB). Also, if you eject card and inject it again it will begin again to "switching ON/OFF" every second. I will attach log (inserted card before boot, after that ejected it and injected again). Also will attach ioreg. 

Thank you again!

 

 

rts.txt 1021.66 kB · 3 downloads MacBook Air — b0ltun.ioreg 7.38 MB · 0 downloads

@Austere.J Yah, it is in a continuous infinite loop of ejecting and inserting the card, I just saw something in the kext changelogs, I think it's due to the command to check periodically if the sdcard is present in the socket or not so it is doing the job correctly but don't know why it is ejecting (I think there is an eject command too in that periodic testing command - maybe). The periodic testing stops when sdcard is removed. But there is one improvement, sdcard gets detected while plugged in after boot too (hotplug) as well as booting with sdcard inserted. my IOReg is attached below (thanks to @b0ltun I use ioreg from many months but never seen that save option until today (or maybe seen it and ignored it 🤔)). One more thing, the loop does not happen for uhs 1 cards, it detects as card is connected, in ioreg, but it does not report to system about card information so it does not appear in disk utility and system report (both cases - boot with card connected and card connected after boot).

 

Naveen’s MacBook Pro.ioreg.zip rtsx-851ede2-uhs1.log.zip Naveen’s MacBook Pro 851ede2 uhs-1.ioreg.zip

Edited by gnpaone
Link to comment
Share on other sites

On 8/8/2021 at 3:29 PM, gnpaone said:

 

@Austere.J Yah, it is in a continuous infinite loop of ejecting and inserting the card, I just saw something in the kext changelogs, I think it's due to the command to check periodically if the sdcard is present in the socket or not so it is doing the job correctly but don't know why it is ejecting (I think there is an eject command too in that periodic testing command - maybe). The periodic testing stops when sdcard is removed. But there is one improvement, sdcard gets detected while plugged in after boot too (hotplug) as well as booting with sdcard inserted. my IOReg is attached below (thanks to @b0ltun I use ioreg from many months but never seen that save option until today (or maybe seen it and ignored it 🤔)). One more thing, the loop does not happen for uhs 1 cards, it detects as card is connected, in ioreg, but it does not report to system about card information so it does not appear in disk utility and system report (both cases - boot with card connected and card connected after boot).

 

 

Naveen’s MacBook Pro.ioreg.zip 857.55 kB · 0 downloads rtsx-851ede2-uhs1.log.zip 139.98 kB · 0 downloads Naveen’s MacBook Pro 851ede2 uhs-1.ioreg.zip 910.83 kB · 0 downloads

 

P.S.: I attached my old micro sd card using micro sdcard reader and the Mac detected it successfully (Yay!) (including the sdcard icon), but 5842de3 shows it in disk utility, IOReg along with card details correct (including card model & company) instead of unknown NCard but couldn't initialise it (as usual), 851ede2 is in an infinite loop even though the card make & model is detected correctly in IOReg (both hotplug and boot with sdcard) (it doesn't show up in disk utility). IOReg, log files & screenshots attached below in zip files.

5842de3-microsd.zip rtsx-851ede2-microsd.zip

Link to comment
Share on other sites

17 hours ago, gnpaone said:

 

P.S.: I attached my old micro sd card using micro sdcard reader and the Mac detected it successfully (Yay!) (including the sdcard icon), but 5842de3 shows it in disk utility, IOReg along with card details correct (including card model & company) instead of unknown NCard but couldn't initialise it (as usual), 851ede2 is in an infinite loop even though the card make & model is detected correctly in IOReg (both hotplug and boot with sdcard) (it doesn't show up in disk utility). IOReg, log files & screenshots attached below in zip files.

5842de3-microsd.zip 1.73 MB · 1 download rtsx-851ede2-microsd.zip 1.42 MB · 1 download

 

@Austere.J Note: Last entry (shown in screenshot) is uhs 1 micros card, this 851ede2 kext detects uhs 1 microsd card (without infinite loop) but not uhs 1 sdcard.

851ede2 non-uhs 2gb microsd+non-uhs 16gb microsd+uhs 32gb microsd.zip

Edited by gnpaone
Link to comment
Share on other sites

Hi everyone,

 

just a small feedback: my RTS522A seems fully working using opencore 0.7.2 on BS 11.5 on my HP 450 G5.

I wrote "seems" because I did not test any speed but after just plugging in an SDXC card it was mounted immediately.

And, of course, card reader tab on system profiler is natively populated.

Thanks to @Austere.J and @Hervé for this huge work.

Link to comment
Share on other sites

Feedback on USB3.0-CRW: It's working good, the only issue is that after sleep, the card is ejecting and re-mounting. Well, that's not a problem for me tho, I'm pretty happy with this. 

The reader won't show up in System Info -> Card Reader, only as an USB device (I think that's the normal behaviour)

 

Otherwise, no issue with the card or the card reader.

 

Spoiler

891164851_Screenshot2021-08-13at11_49_33.thumb.png.ce68fa400a8697086b01612fdbc2342a.png

 

884730888_Screenshot2021-08-13at14_14_47.thumb.png.075a770bcb7f4800b3891d6ba053c43d.png

 

IOReg:

Spoiler

1152778586_Screenshot2021-08-13at11_43_48.png.5f8ac6b208ce4bd70358f349c47b7d62.png

 

The speed is slow, but It's not an issue, this particular card is pretty slow.

EDIT: But I had a high-speed one too, I didn't measure the speed of that, but it was pretty quick when I burned a debian iso to that.

Spoiler

160403569_Screenshot2021-08-13at11_45_59.thumb.png.d274e654ce213146fa6154d66ddf4094.png

 

HWInfo64:

Spoiler

764877202_Kpernyfelvtel(3).thumb.png.b35a626d3c89d951998e703304a68400.png

 

System: Lenovo X1 Carbon 6th - Big Sur 11.5.2, RealtekCardReader.kext v0.9.5

 

Thanks for your hard work!

Edited by kushwavez
added kext version
Link to comment
Share on other sites

33 minutes ago, kushwavez said:

Feedback on USB3.0-CRW: It's working good, the only issue is that after sleep, the card is ejecting and re-mounting. Well, that's not a problem for me tho, I'm pretty happy with this. 

The card won't show up in System Info -> Card Reader, only as an USB device (I think that's the normal behaviour)

 

Otherwise, no issue with the card.

 

  Hide contents

891164851_Screenshot2021-08-13at11_49_33.thumb.png.ce68fa400a8697086b01612fdbc2342a.png

 

IOReg:

  Hide contents

1152778586_Screenshot2021-08-13at11_43_48.png.5f8ac6b208ce4bd70358f349c47b7d62.png

 

The speed is slow, but It's not an issue, this particular card is pretty slow.

  Hide contents

160403569_Screenshot2021-08-13at11_45_59.thumb.png.d274e654ce213146fa6154d66ddf4094.png

 

HWInfo64:

  Hide contents

764877202_Kpernyfelvtel(3).thumb.png.b35a626d3c89d951998e703304a68400.png

 

System: Lenovo X1 Carbon 6th - Big Sur 11.5.2

 

Thanks for your hard work!

Which version of kext are you using?

Link to comment
Share on other sites

  • Austere.J changed the title to Realtek PCIe/USB SD Card Reader Driver for macOS
×
×
  • Create New...