cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

lugeha
Journeyman III

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

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   /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);

6 Replies
tovarspain
Journeyman III

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.

0 Likes
mawerick
Adept I

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.

thanks and best regards.

0 Likes

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   /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   /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!

#

0 Likes

Hi tymondeusz,

can you please send the output of the following commands:

gcc --version

uname -a

cat /etc/lsb_release

I would prefer if you could enter those at https://github.com/martinkarlweber/rcraid-patches/issues​. This requires a github login, but would avoid unnessecary traffic here. I would post the result if I can locate the problem, so everybody stays informed.

0 Likes

did not work for me, it give a error: error: initialization of ‘int (*)(struct scsi_device *, unsigned int,  void *)’ from incompatible pointer type ‘int (*)(struct scsi_device *, int,  void *)’ [-Werror=incompatible-pointer-types]

0 Likes