Вход:  Пароль:  
FreeSource: EvgenyYugov/DebBuildKernel ...
Free Source | Каталог | Изменения | НовыеКомментарии | Пользователи | Регистрация |

1) apt-get source linux-image-2.6.18–6-amd64 -t stable

2) cp 4130_linux-2.6-aic9400-adp94xx-updates.patch /usr/src/linux-2.6–2.6.18.dfsg.1/debian/patches/features/all/drivers/

3) cd /usr/src/linux-2.6–2.6.18.dfsg.1/debian/

4) dch -v 2.6.18.dfsg.1–18etch6.soi1

5) echo "+ features/all/drivers/4130_linux-2.6-aic9400-adp94xx-updates.patch" > /usr/src/linux-2.6–2.6.18.dfsg.1/debian/patches/series/18etch6.soi1

6) cd /usr/src/linux-2.6–2.6.18.dfsg.1/

7) fakeroot debian/rules debian/build debian/stamps

8) fakeroot make -f debian/rules.gen setup-amd64-xen

9) script -c 'time fakeroot make -f debian/rules.gen binary-arch-amd64-xen DEBIAN_KERNEL_JOBS=1' ../typescript.`date +%F`

($ fakeroot debian/rules clean)

for long time i was fighting with IBM 306m server with aic94xx sas controller on board, some time ago I've installed debian 3.1 with self compiled kernel 2.6.17 witch 'old' driver to this controller and this runs well. some time ago I've decided to change kernel to 2.6.19 in this kernel there is a new (different) driver for the controller, I've thought 'this will be simple' when I've decided to compile this driver with newest kernel. this was my mistake – driver wanted a file: aic94xx-seq.fw and when boot up, kernel panic ends after message:

/ aic94xx: Failed to load sequencer firmware file aic94xx-seq.fw, error -2 /

so after few days tests and making modifications in initramfs package I think this is it (based on qlogic package):


+++ /usr/share/initramfs-tools/hooks/firmware_aic94xx 2007–01–25 14:55:12.000000000 +0100 @@ -0,0 +1,23 @@

+ echo "$PREREQ"
+case $1 in
+ prereqs
+ exit 0
+ ;;
+. /usr/share/initramfs-tools/hook-functions
+copy_exec /lib/udev/firmware.agent /lib/udev/
+mkdir -p $DESTDIR/lib/firmware
+cp /lib/firmware/aic94xx-seq.fw $DESTDIR/lib/firmware

we need the firmware file ofc (from eg. http://kernel.org/pub/linux/kernel/people/jejb/aic94xx-seq.fw ) copied to /lib/firmware

uff, sorry if similar modification was publicated, I'm never find complete solution for aic94xx in google that's why I'm decided to put here the solution.

Ссылки на использованные документы


Файлов нет. [Показать файлы/форму]
Комментариев нет. [Показать комментарии/форму]