LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   HighPoint RocketRaid 1640 on Fedora16 (https://www.linuxquestions.org/questions/linux-hardware-18/highpoint-rocketraid-1640-on-fedora16-913778/)

amaj1407 11-16-2011 01:27 AM

HighPoint RocketRaid 1640 on Fedora16
 
I have this RAID controller and I need to use them with fedora 16. Now fedora is using driver 'pata_hpt37x', I dont think it's the right driver so I went to HighPoint site and downloaded the opensource driver but it was meant to 2.4, 2.6 kernels.

My question is simply, can I use this source to compile the driver for kernel 3.1, which Fedora 16 has after update? If I can is there any general rules to port sources from 2.6 to 3.1. Keep in mind my that my knowledge in compiling kernel modules is almost 0.


This is what I got when I tried to compile it:
Code:

[root@fedora16-eplab opensource_driver]# make KERNELDIR=/usr/src/kernels/3.1.1-1.fc16.x86_64/
gcc -DDRIVER_VERSION=\"2.14\" -DLIST_H_INCLUDED -DMODVERSIONS -DMODULE -DLINUX -D_LINUX_ -D__KERNEL__=1 -DCONFIG_PCI -DRR154X -DHPT3XX_SATA_RESET -DNO_CROSS_CTRL=0 -DSUPPORT_ARRAY -DSUPPORT_OLD_ARRAY -DDBG=0 -Wall -O2 -Wstrict-prototypes -fomit-frame-pointer -I. -I/usr/src/kernels/3.1.1-1.fc16.x86_64//include -I/usr/src/kernels/3.1.1-1.fc16.x86_64//drivers/scsi -mcmodel=kernel -c hpt.c -o hpt.o
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64//include/linux/kernel.h:13:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64//include/linux/sched.h:55,
                from hpt.c:8:
/usr/src/kernels/3.1.1-1.fc16.x86_64//include/linux/linkage.h:5:25: fatal error: asm/linkage.h: No such file or directory
compilation terminated.
make: *** [hpt.o] Error 1
[root@fedora16-eplab opensource_driver]#


Then I did:
Code:

export C_INCLUDE_PATH=/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include
And make again, and I got:
Code:

[root@fedora16-eplab opensource_driver]# make KERNELDIR=/usr/src/kernels/3.1.1-1.fc16.x86_64
gcc -DDRIVER_VERSION=\"2.14\" -DLIST_H_INCLUDED -DMODVERSIONS -DMODULE -DLINUX -D_LINUX_ -D__KERNEL__=1 -DCONFIG_PCI -DRR154X -DHPT3XX_SATA_RESET -DNO_CROSS_CTRL=0 -DSUPPORT_ARRAY -DSUPPORT_OLD_ARRAY -DDBG=0 -Wall -O2 -Wstrict-prototypes -fomit-frame-pointer -I. -I/usr/src/kernels/3.1.1-1.fc16.x86_64/include -I/usr/src/kernels/3.1.1-1.fc16.x86_64/drivers/scsi -mcmodel=kernel -c hpt.c -o hpt.o
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/bitops.h:449:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/bitops.h:22,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/kernel.h:17,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/sched.h:55,
                from hpt.c:8:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/arch_hweight.h: In function ‘__arch_hweight64’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/arch_hweight.h:53:7: error: expected ‘:’ or ‘)’ before ‘POPCNT64’
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/thread_info.h:22:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/thread_info.h:53,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/preempt.h:9,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/spinlock.h:50,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/seqlock.h:29,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/time.h:8,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/timex.h:56,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/sched.h:57,
                from hpt.c:8:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/processor.h: At top level:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/processor.h:114:30: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/processor.h:114:1: error: requested alignment is not a constant
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/processor.h: In function ‘load_cr3’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/processor.h:187:1: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/processor.h:187:1: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/processor.h: At top level:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/processor.h:236:1: error: requested alignment is not a constant
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/processor.h:267:1: error: requested alignment is not a constant
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic.h:318:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/atomic.h:4,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/thread_info.h:24,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/thread_info.h:53,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/preempt.h:9,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/spinlock.h:50,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/seqlock.h:29,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/time.h:8,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/timex.h:56,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/sched.h:57,
                from hpt.c:8:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:19:1: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h: In function ‘atomic64_read’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:21:32: error: request for member ‘counter’ in something not a structure or union
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h: At top level:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:31:33: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:43:41: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:57:41: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:73:49: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:89:33: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:102:33: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:117:41: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:135:41: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:154:49: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:171:48: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:180:48: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:188:37: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:193:34: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:207:39: error: unknown type name ‘atomic64_t’
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/atomic64_64.h:231:45: error: unknown type name ‘atomic64_t’
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/sched.h:58:0,
                from hpt.c:8:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:39:3: error: #error Invalid value of HZ.
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/jiffies.h:43:42: error: division by zero in #if
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/sem.h:81:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/sched.h:72,
                from hpt.c:8:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/rcupdate.h:160:2: error: #error "Unknown RCU implementation specified to kernel configuration"
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/elf.h:7:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/module.h:14,
                from hpt.c:9:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/elf.h: In function ‘elf_common_init’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/elf.h:167:3: error: ‘struct thread_struct’ has no member named ‘fs’
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/module.h:21:0,
                from hpt.c:9:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/module.h: At top level:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/module.h:59:2: error: #error unknown processor family
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/x86_init.h:5:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/pgtable.h:19,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/mm.h:42,
                from hpt.c:17:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/bootparam.h:106:19: error: field ‘edid_info’ has incomplete type
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/mm.h:42:0,
                from hpt.c:17:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/pgtable.h: In function ‘pmd_page_vaddr’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/pgtable.h:430:1: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/pgtable.h: In function ‘pud_page_vaddr’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/pgtable.h:501:1: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/pgtable.h: In function ‘pgd_page_vaddr’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/pgtable.h:541:1: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
In file included from hpt.c:17:0:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/mm.h: In function ‘virt_to_head_page’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/mm.h:407:9: warning: implicit declaration of function ‘__pfn_to_page’ [-Wimplicit-function-declaration]
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/mm.h:407:1: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
In file included from hpt.c:17:0:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/mm.h: In function ‘lowmem_page_address’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/mm.h:737:2: warning: implicit declaration of function ‘__page_to_pfn’ [-Wimplicit-function-declaration]
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/mm.h:737:1: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/hardirq.h:7:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/interrupt.h:12,
                from hpt.c:18:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/hardirq.h: At top level:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/hardirq.h:29:1: error: requested alignment is not a constant
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/io.h:22:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/pci.h:54,
                from hpt.c:23:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/io.h: In function ‘virt_to_phys’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/io.h:113:1: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/io.h: In function ‘phys_to_virt’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/io.h:131:1: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/dma-mapping.h:8:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/asm-generic/pci-dma-compat.h:7,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/arch/x86/include/asm/pci.h:139,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/pci.h:1309,
                from hpt.c:23:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/scatterlist.h: In function ‘sg_set_buf’:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/scatterlist.h:112:1: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/fs.h:381:0,
                from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/proc_fs.h:5,
                from hpt.c:31:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/dcache.h: At top level:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/dcache.h:172:1: error: requested alignment is not a constant
In file included from /usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/proc_fs.h:5:0,
                from hpt.c:31:
/usr/src/kernels/3.1.1-1.fc16.x86_64/include/linux/fs.h:1622:1: error: requested alignment is not a constant
hpt.c:44:28: fatal error: linux/smp_lock.h: No such file or directory
compilation terminated.
make: *** [hpt.o] Error 1
[root@fedora16-eplab opensource_driver]#


Any help, please?

EDIT: This is the link of the drivers page: http://www.highpoint-tech.cn/BIOS_Dr...age/rr1640.htm

amaj1407 11-16-2011 01:56 AM

I forgot to mention that I have set up the controller with its BIOS utilty for RADI 1 configuration and it seems to be working but I am not sure as I never used RAID in the past. Is there any test I can run to test if it's running even while using pata_hpt37x driver.

The output of 'lsblk' is:
Code:

[kacst-eri@fedora16-eplab rocketraid_gui]$ lsblk
NAME                          MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
loop0                            7:0    0  1.4M  0 loop  /home/kacst-eri/Downloads/test_mount
sda                              8:0    0 465.8G  0 disk 
├─sda1                          8:1    0 368.1G  0 part 
└─sda2                          8:2    0  97.7G  0 part 
sr0                            11:0    1  1024M  0 rom   
sdb                              8:16  0 465.8G  0 disk 
└─hpt45x_cjjhejadeg (dm-0)    253:0    0 465.8G  0 dmraid
  ├─hpt45x_cjjhejadegp1 (dm-1) 253:1    0 457.8G  0 part  /
  └─hpt45x_cjjhejadegp2 (dm-2) 253:2    0    8G  0 part  [SWAP]
sdc                              8:32  0 465.8G  0 disk 
└─hpt45x_cjjhejadeg (dm-0)    253:0    0 465.8G  0 dmraid
  ├─hpt45x_cjjhejadegp1 (dm-1) 253:1    0 457.8G  0 part  /
  └─hpt45x_cjjhejadegp2 (dm-2) 253:2    0    8G  0 part  [SWAP]
[kacst-eri@fedora16-eplab rocketraid_gui]$


amaj1407 11-18-2011 11:46 AM

Please any inputs on the subject>

jefro 11-18-2011 03:52 PM

You may not be aware of this but when you post to your own thread most of us think someone is working on it with you.

Why don't you think that the stock driver is right?

Why don't you try centos or scientific. I think they'd have better support for real hardware raid. Opensuse would too.

It is not easy to compile over kernel unless you either know what tools were used and if they can be down leveled to this F16 system. Compiling over kernel versions would be maybe a bit easier if you built your own kernel. Dunno what is in the current one. Might just remove the one you suspect is bad too and then work on this.

To test a raid you should break it. What kid of array did you make in scsi bios?


All times are GMT -5. The time now is 08:56 PM.