Skip to content

Instantly share code, notes, and snippets.

@samgooi4189
Last active May 11, 2025 10:29
Show Gist options
  • Save samgooi4189/2e6e18fd1d562acaf39246e5e386d7cb to your computer and use it in GitHub Desktop.
Save samgooi4189/2e6e18fd1d562acaf39246e5e386d7cb to your computer and use it in GitHub Desktop.
Fixing Broadcom Corporation BCM57765/57785 SDXC/MMC Card Reader
Follow the WORKAROUND:
1. Add a comand to /etc/rc.local, add the following line above "exit 0":
setpci -s 00:1c.2 0x50.B=0x41
2. Add the same comand to /etc/apm/resume.d/21aspm (which does not exist yet):
setpci -s 00:1c.2 0x50.B=0x41
3. Add the following to /etc/modprobe.d/sdhci.conf:
options sdhci debug_quirks2=4
4. Re-generate initrd:
sudo update-initramfs -u -k all
5. Reboot or reload sdhci module:
sudo rmmod sdhci-pci sdhci
sudo modprobe sdhci
sudo modprobe sdhci-pci
If SD card still not detected after reboot, type this in command line:
$ sudo setpci -s 00:1c.2 0x50.B=0x41
Tested on Acer V5-171
Reference:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1307674
https://wiki.allensmith.net/kb:linux:14lts-bcm57765-bmc57785
@ancho85
Copy link

ancho85 commented Aug 15, 2022

for setpci to work, secure boot must be disabled at bios level.

@thanksmintmate
Copy link

Guy you have a paid beer if you come to Milan Italy. It worked also on a Acer AO756 , you are great!!!

@rjhornsby
Copy link

thanks! Got a 2011 Macbook pro (8,1) working because of this.

@cch1010
Copy link

cch1010 commented May 11, 2025

Thank you!
itʼs very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment