FreeBSD 7.2 и Lsi SAS2008
Добавлено: 2009-10-15 20:26:25
Добрым словом и кулаком, добьёшься больше чем одним добрым словом.
https://forum.lissyara.su/
Код: Выделить всё
pcib5: <ACPI PCI-PCI bridge> at device 9.0 on pci0
pci5: <ACPI PCI bus> on pcib5
pci5: <mass storage, SAS> at device 0.0 (no driver attached)Код: Выделить всё
none13@pci0:5:0:0: class=0x010700 card=0x00721000 chip=0x00721000 rev=0x02 hdr=0x00
vendor = 'LSI Logic (Was: Symbios Logic, NCR)'
class = mass storage
subclass = SAS
Код: Выделить всё
../../../dev/mfi/mfi.c: In function 'mfi_alloc_skinny_memory':
../../../dev/mfi/mfi.c:688: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c:722: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c:723: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c:728: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c:728: warning: format '%lld' expects type 'long long int', but argument 3 has type 'uint64_t'
../../../dev/mfi/mfi.c:766: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c:769: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c:807: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c:811: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c:821: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c: In function 'mfi_free_skinny_memory':
../../../dev/mfi/mfi.c:1142: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c:1146: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c:1156: warning: cast to pointer from integer of different size
../../../dev/mfi/mfi.c: In function 'mfi_bio_command':
../../../dev/mfi/mfi.c:2104: warning: cast from pointer to integer of different size
../../../dev/mfi/mfi.c:2106: warning: cast from pointer to integer of different size
../../../dev/mfi/mfi.c: In function 'mfi_ioctl':
../../../dev/mfi/mfi.c:2955: warning: cast to pointer from integer of different size
На форуме нага сказали "Видимо код не приспособлен для amd64. Такие ошибки возникают из-за попытки присвоения 64-битному указателю значения 32-битной переменной. Если других проблем нет, то можно и самому допилить. "
а вот если по другому
как то странно щас собралось
billing# make
Warning: Object directory not changed from original /usr/home/anton/mfi
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
:> opt_mfi.h
:> opt_cam.h
cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c mfi.c
mfi.c: In function 'mfi_alloc_skinny_memory':
mfi.c:688: warning: cast to pointer from integer of different size
mfi.c:722: warning: cast to pointer from integer of different size
mfi.c:723: warning: cast to pointer from integer of different size
mfi.c:728: warning: cast to pointer from integer of different size
mfi.c:728: warning: format '%lld' expects type 'long long int', but argument 3 has type 'uint64_t'
mfi.c:766: warning: cast to pointer from integer of different size
mfi.c:769: warning: cast to pointer from integer of different size
mfi.c:807: warning: cast to pointer from integer of different size
mfi.c:811: warning: cast to pointer from integer of different size
mfi.c:821: warning: cast to pointer from integer of different size
mfi.c: In function 'mfi_free_skinny_memory':
mfi.c:1142: warning: cast to pointer from integer of different size
mfi.c:1146: warning: cast to pointer from integer of different size
mfi.c:1156: warning: cast to pointer from integer of different size
mfi.c: In function 'mfi_bio_command':
mfi.c:2104: warning: cast from pointer to integer of different size
mfi.c:2106: warning: cast from pointer to integer of different size
mfi.c: In function 'mfi_ioctl':
mfi.c:2955: warning: cast to pointer from integer of different size
cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c mfi_pci.c
cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c mfi_disk.c
cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c mfi_syspd.c
cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c mfi_cam.c
cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c mfi_debug.c
ld -d -warn-common -r -d -o mfi.ko mfi.o mfi_pci.o mfi_disk.o mfi_syspd.o mfi_cam.o mfi_debug.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk mfi.ko export_syms | xargs -J% objcopy % mfi.ko
objcopy --strip-debug mfi.ko
billing# make install
install -o root -g wheel -m 555 mfi.ko /boot/kernel
kldxref /boot/kernel
billing# uname -a
FreeBSD billing.pskovline.ru 7.2-STABLE FreeBSD 7.2-STABLE #0: Thu Oct 15 22:27:27 MSD 2009 anton@billing.123.ru:/usr/src/sys/amd64/compile/billing amd64Код: Выделить всё
module_register: module pci/mfi already exists!
Module pci/mfi failed to register: 17
module_register: module mfi/mfid already exists!
Module mfi/mfid failed to register: 17Александ. Вообще тема такая. Хотел воткнуть на эту железку виртуалку. vmware esxiAlex Keda писал(а):нету поддержки этого, насколько я помню
у меня тоже сервер c таким есть - пришлось 3ware купить и поставить
Алексей решил забить накрутил софтварный рейд и радуюсьAlex Keda писал(а):ВмТварь вообще капризная. зато на поддерживаемом железе работает стабильно
--
и я алексей