Page 10 of 10 FirstFirst ... 8910
Results 91 to 92 of 92

Thread: [HOWTO] Highpoint RocketRAID 2640x4 Driver Install

  1. #91
    Join Date
    Mar 2017
    Beans
    1

    Re: [HOWTO] Highpoint RocketRAID 2640x4 Driver Install

    Quote Originally Posted by bvanaerde View Post
    Any luck with Ubuntu 16.10?
    I'm getting these errors:

    Downloads/RocketRaid/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/os_linux.c:278:41: error: ‘struct gendisk’ has no member named ‘driverfs_dev’
    Downloads/RocketRaid/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/os_linux.c:283:35: error: ‘struct inode’ has no member named ‘i_mutex’; did you mean ‘i_mode’?
    mutex_lock(&bdev->bd_inode->i_mutex);
    Downloads/RocketRaid/rr174x-linux-src-v2.4/product/rr1740pm/linux/.build/os_linux.c:283:35: error: ‘struct inode’ has no member named ‘i_mutex’; did you mean ‘i_mode’?
    mutex_lock(&bdev->bd_inode->i_mutex);
    https://github.com/NP-Hardass/np-har...traid62x/files

    Code:
    Add support for kernel 4.7Inodes have their own locking function now rather than maintaining a mutex
    to be manually operated on
    
    --- a/osm/linux/os_linux.c    2017-03-06 07:14:19.897941188 -0500
    +++ b/osm/linux/os_linux.c    2017-03-06 07:15:39.660942596 -0500
    @@ -368,13 +368,17 @@
                                 if (vbus_ext->sd_flags[id] & SD_FLAG_REVALIDATE) {
                                     if (bdev->bd_disk->fops->revalidate_disk)
                                         bdev->bd_disk->fops->revalidate_disk(bdev->bd_disk);
    -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
    +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
    +                                inode_lock(bdev->bd_inode);
    +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
                                     mutex_lock(&bdev->bd_inode->i_mutex);
     #else 
                                     down(&bdev->bd_inode->i_sem);
     #endif
                                     i_size_write(bdev->bd_inode, (loff_t)get_capacity(bdev->bd_disk)<<9);
    -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
    +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
    +                                inode_unlock(bdev->bd_inode);
    +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)
                                     mutex_unlock(&bdev->bd_inode->i_mutex);
     #else                                   up(&bdev->bd_inode->i_sem);
    
    Code:
    Support kernels >= 4.8 since driverfs_dev was removed
    
    --- a/osm/linux/os_linux.c    2017-03-06 07:23:27.521950854 -0500
    +++ b/osm/linux/os_linux.c    2017-03-10 22:37:45.280019653 -0500
    @@ -364,7 +364,11 @@
                             blkdev_get(bdev, FMODE_READ, 0 __BDEV_RAW)
     #endif
                             ==0) {
    +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0)
    +                        if (bdev->bd_disk && ((disk_to_dev(bdev->bd_disk)->parent)==&SDptr->sdev_gendev)) {
    +#else
                             if (bdev->bd_disk && bdev->bd_disk->driverfs_dev==&SDptr->sdev_gendev) {
    +#endif
                                 if (vbus_ext->sd_flags[id] & SD_FLAG_REVALIDATE) {
                                     if (bdev->bd_disk->fops->revalidate_disk)
                                         bdev->bd_disk->fops->revalidate_disk(bdev->bd_disk);

  2. #92
    Join Date
    Apr 2017
    Beans
    1

    Re: [HOWTO] Highpoint RocketRAID 2640x4 Driver Install

    Quote Originally Posted by np-hardass View Post
    https://github.com/NP-Hardass/np-har...traid62x/files

    Code:
    Support kernels >= 4.8 since driverfs_dev was removed
    
    --- a/osm/linux/os_linux.c    2017-03-06 07:23:27.521950854 -0500
    +++ b/osm/linux/os_linux.c    2017-03-10 22:37:45.280019653 -0500
    @@ -364,7 +364,11 @@
                             blkdev_get(bdev, FMODE_READ, 0 __BDEV_RAW)
     #endif
                             ==0) {
    +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0)
    +                        if (bdev->bd_disk && ((disk_to_dev(bdev->bd_disk)->parent)==&SDptr->sdev_gendev)) {
    +#else
                             if (bdev->bd_disk && bdev->bd_disk->driverfs_dev==&SDptr->sdev_gendev) {
    +#endif
                                 if (vbus_ext->sd_flags[id] & SD_FLAG_REVALIDATE) {
                                     if (bdev->bd_disk->fops->revalidate_disk)
                                         bdev->bd_disk->fops->revalidate_disk(bdev->bd_disk);


    When I try to run the patch "patch -p1 < /root/rocketraid62x-1.3.3-support-kernel-4.8-fix-gendev-driverfs_dev-ref.patch", I get an error of

    patching file osm/linux/os_linux.c
    patch: **** malformed patch at line 16: bdev->bd_disk->fops->revalidate_disk(bdev->bd_disk);
    what should I do? I've never patched a kernel that I know of so I'm a bit lost.

Page 10 of 10 FirstFirst ... 8910

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •