5 Replies Latest reply on Jun 19, 2018 11:52 PM by mawerick

    RAID drivers fail to compile for Ubuntu 18.04 (kernel 4.15)

    lugeha

      init_timer has been deprecated (referenced in rc_init.c and rc_msg.c) and the driver no longer compiles.

       

      -----------------------------------------------------------

      - building for kernel 4.15.0-15-generic

      ------------------------------------------------------------

      make -C /lib/modules/4.15.0-15-generic/build SUBDIRS=/home/lucas/src/driver_sdk/src modules

      make[1]: Entering directory '/usr/src/linux-headers-4.15.0-15-generic'

        CC [M]  /home/lucas/src/driver_sdk/src/rc_init.o

      /home/lucas/src/driver_sdk/src/rc_init.c: In function ‘rc_timeout_done’:

      /home/lucas/src/driver_sdk/src/rc_init.c:2391:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]

        init_timer(&state->rc_timeout);

        • Re: RAID drivers fail to compile for Ubuntu 18.04 (kernel 4.15)
          tovarspain

          I do not know if it is possible, but you could ask for an authorization to adapt the code to the new form of core 4.15 or it is not necessary and can be modified. Does anyone know if this is possible? I have seen codes from other controllers adapt the init_timer to the new declaration.

          • Re: RAID drivers fail to compile for Ubuntu 18.04 (kernel 4.15)
            mawerick

            I wrote a patch for 4.15 kernels and it works flawlessly on my system since over one week now. I successfully run Ubuntu 18.04 with it. I got permission from AMD to share it, as long as I point out it is a non-official third-party patch and AMD will not be responsible for it. Have a look at my rcraid-patches github repository.

            1 of 1 people found this helpful
              • Re: RAID drivers fail to compile for Ubuntu 18.04 (kernel 4.15)
                tymondeusz

                Hey mawerick,

                I downloaded your patch and successfully patched the driver, but still not getting any joy.

                I'm using raid_linux_driver_8_01_00_039_public and compiling for kernel 4.15.0-20-generic.

                 

                I'm only getting

                 

                ~/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk$ sudo sh install

                install: 24: install: source: not found

                install: 149: [: !=: unexpected operator

                ln: failed to create symbolic link 'src/rcblob.i686': File exists

                Make kernel for 4.15.0-20-generic

                make: Entering directory '/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src'

                make: Leaving directory '/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src'

                make: Entering directory '/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src'

                ------------------------------------------------------------

                - building for kernel 4.15.0-20-generic

                ------------------------------------------------------------

                make -C /lib/modules/4.15.0-20-generic/build SUBDIRS=/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src modules

                make[1]: Entering directory '/usr/src/linux-headers-4.15.0-20-generic'

                  CC [M]  /home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src/rc_init.o

                cc1: error: code model kernel does not support PIC mode

                scripts/Makefile.build:332: recipe for target '/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src/rc_init.o' failed

                make[2]: *** [/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src/rc_init.o] Error 1

                Makefile:1552: recipe for target '_module_/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src' failed

                make[1]: *** [_module_/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src] Error 2

                make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-20-generic'

                Makefile:60: recipe for target 'all' failed

                make: *** [all] Error 2

                make: Leaving directory '/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src'

                #

                # Driver module not built -- install aborted!

                #

                Make kernel for 4.15.0-23-generic

                make: Entering directory '/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src'

                make: Leaving directory '/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src'

                make: Entering directory '/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src'

                ------------------------------------------------------------

                - building for kernel 4.15.0-23-generic

                ------------------------------------------------------------

                make -C /lib/modules/4.15.0-23-generic/build SUBDIRS=/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src modules

                make[1]: Entering directory '/usr/src/linux-headers-4.15.0-23-generic'

                  CC [M]  /home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src/rc_init.o

                cc1: error: code model kernel does not support PIC mode

                scripts/Makefile.build:332: recipe for target '/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src/rc_init.o' failed

                make[2]: *** [/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src/rc_init.o] Error 1

                Makefile:1552: recipe for target '_module_/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src' failed

                make[1]: *** [_module_/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src] Error 2

                make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-23-generic'

                Makefile:60: recipe for target 'all' failed

                make: *** [all] Error 2

                make: Leaving directory '/home/tski/Downloads/raid_linux_driver_8_01_00_039_public/driver_sdk/src'

                #

                # Driver module not built -- install aborted!

                #