Comment 55 for bug 1250605

Revision history for this message
exzemat (exzemat) wrote :

after some manipulations, I succed to install realtek 5286/5289 driver rts-bpp.
In fact it's seems that field proc_info indeed is not presented in kernel sources on ubuntu 13.10.
so, need to commented.
see step 3
https://forums.gentoo.org/viewtopic-t-974708-start-0.html

to resume
WORKAROUND: work for 13.10:
1. Download:
https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/971876/+attachment/2991730/+files/rts_bpp.tar.bz2
2. Extract archive, edit rtsx.c:
2.1. Remove __devinit from rtsx_probe in line 893
2.2. Remove __devexit from rtsx_remove in line 1048
2.3. Extract rtsx_remove from __devexit_p() in line 1074
2.4. Remove line 125 to 156
static int proc_info (struct Scsi_Host *host, char *buffer,
  char **start, off_t offset, int length, int inout)
{
 char *pos = buffer;

 if (inout)
  return length;

 SPRINTF(" Host scsi%d: %s\n", host->host_no, CR_DRIVER_NAME);

 SPRINTF(" Vendor: Realtek Corp.\n");
 SPRINTF(" Product: Barossa Plusplus\n");
 SPRINTF(" Version: %s\n", DRIVER_VERSION);
 SPRINTF(" Build: %s\n", __TIME__);

 /*
  * Calculate start of next buffer, and return value.
  */
 *start = buffer + offset;

 if ((pos - buffer) < offset)
  return (0);
 else if ((pos - buffer - offset) < length)
  return (pos - buffer - offset);
 else
  return (length);
}

2.5 Remove line 259
.proc_info = proc_info,

3. Compile with "make"
4. As root, make install
5. Blacklist rtsx_pci in /etc/modprobe.d/rtsx_blacklist.conf (add "blacklist rtsx_pci")
6. 'modprobe rts_bpp'
7. run mkinitcpio -p linux
8. Restart the machine