{"id":423,"date":"2018-02-14T14:50:37","date_gmt":"2018-02-14T06:50:37","guid":{"rendered":"https:\/\/play.datalude.com\/blog\/?p=423"},"modified":"2018-02-14T14:50:37","modified_gmt":"2018-02-14T06:50:37","slug":"realtek-sd-card-reader-problems-on-ubuntu-mint-16-04-on-a-dell-inspiron-3421","status":"publish","type":"post","link":"https:\/\/play.datalude.com\/blog\/2018\/02\/realtek-sd-card-reader-problems-on-ubuntu-mint-16-04-on-a-dell-inspiron-3421\/","title":{"rendered":"Realtek SD card reader problems on Ubuntu Mint 16.04 on a Dell Inspiron 3421"},"content":{"rendered":"<p>Pretty specific huh? Well the thing is I have the exact same card reader, OS,\u00a0 version on one Lenovo laptop. The SD card works on the Lenovo, but not on the Dell\u00a0Inspiron 3421.<\/p>\n<p>The error it made on the Dell was the following in \/var\/log\/syslog<\/p>\n<p>Feb 14 08:30:46 raspberry kernel: [ 216.319736] mmc0: error -22 whilst initialising SD card<br \/>\nFeb 14 08:30:48 raspberry kernel: [ 219.151052] mmc0: tuning execution failed: -22<\/p>\n<p>Lots of googling down dead ends ensued. Here's a little more info about the device in question.<\/p>\n<p><!--more--><\/p>\n<p>lsusb:<br \/>\nBus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller<\/p>\n<p>usb-devices:<\/p>\n<p>T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=02 Dev#= 3 Spd=480 MxCh= 0<br \/>\nD: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1<br \/>\nP: Vendor=0bda ProdID=0129 Rev=39.60<br \/>\nS: Manufacturer=Generic<br \/>\nS: Product=USB2.0-CRW<br \/>\nS: SerialNumber=20100201396000000<br \/>\nC: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA<br \/>\nI: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=06 Prot=50 Driver=rtsx_usb<\/p>\n<p>lsmod | grep sd:<br \/>\nrtsx_usb_sdmmc 28672 0<br \/>\nrtsx_usb 24576 2 rtsx_usb_sdmmc,rtsx_usb_ms<\/p>\n<p>All this was exactly the same on both machines. Works on one. Not on the other.<\/p>\n<p>Kernel version was different. 4.4 on the Lenovo, 4.10 on the Dell. Tried booting into old kernel. Same same.<\/p>\n<p>So, here's what actually worked.<\/p>\n<p>https:\/\/github.com\/asymingt\/rts5139<\/p>\n<p>I tried this for both the 4.4 kernel and the 4.10 kernel. Only the 4.10 kernel worked.<br \/>\nThis sounds like it only took a few minutes but it was half a day of BS. Hoping this helps someone else.<\/p>\n<p>This is the first driver\/kernel problem I've had on Linux for about 5 years, so I guess that's not too bad. But just spooky how it affected one machine and not the other.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pretty specific huh? Well the thing is I have the exact same card reader, OS,\u00a0 version on one Lenovo laptop. The SD card works on the Lenovo, but not on the Dell\u00a0Inspiron 3421. The error it made on the Dell was the following in \/var\/log\/syslog Feb 14 08:30:46 raspberry kernel: [ 216.319736] mmc0: error -22 &#8230; <a title=\"Realtek SD card reader problems on Ubuntu Mint 16.04 on a Dell Inspiron 3421\" class=\"read-more\" href=\"https:\/\/play.datalude.com\/blog\/2018\/02\/realtek-sd-card-reader-problems-on-ubuntu-mint-16-04-on-a-dell-inspiron-3421\/\" aria-label=\"Read more about Realtek SD card reader problems on Ubuntu Mint 16.04 on a Dell Inspiron 3421\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1,4],"tags":[],"class_list":["post-423","post","type-post","status-publish","format-standard","hentry","category-it","category-linux"],"_links":{"self":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/comments?post=423"}],"version-history":[{"count":0,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/423\/revisions"}],"wp:attachment":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/media?parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/categories?post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/tags?post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}