Skip to content

Instantly share code, notes, and snippets.

@viniciusdaniel
Forked from samgooi4189/bcm57765or57785fix
Created October 26, 2019 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viniciusdaniel/e08d3c7f1f10bec60ad33e988bd14ae9 to your computer and use it in GitHub Desktop.
Save viniciusdaniel/e08d3c7f1f10bec60ad33e988bd14ae9 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment