Re: 2.6.x Kernel selber bauen

2004-08-06 Diskussionsfäden Mario Guenterberg
On Thu, Aug 05, 2004 at 09:52:47AM +0200, frank paulsen wrote:
 Ralph Bergmann [EMAIL PROTECTED] writes:
 
  Damit es nun auch funktioniert und weil ich wie gesagt mich noch nie
  dafür interessiert habe, wollte ich mal nach einer deutschen Anleitung
  speziell für Debian (unstable) fragen.
 
 englisch, und etwas veraltet, aber ansonsten ueberaus nuetzlich, wenn
 man kernel 'the Debian way' uebersetzen will:
 
 http://newbiedoc.sourceforge.net/system/kernel-pkg.html
Das ganze steht sehr schön und eindeutig in unter
/usr/share/doc/kernel-package. Zwar in english aber halt in
einzelnen Schritten...
Muß natürlich kernel-package installiert sein...;-)

Gruß
Mario

-- 
Grau ist alle Theorie, und schwierig die Praxis!
(Goethe, Faust I)



Re: 2.6.x Kernel selber bauen

2004-08-05 Diskussionsfäden Elmar Hinz
Vielleicht ist das ein Einstig:
http://groups.google.de/groups?hl=delr=ie=UTF-8frame=rightth=3f66a112558b1dedseekm=2nguq-7Pk-3%40gated-at.bofh.it#link1
Darin findest Du auch den link zu einem Brauchbaren Tutorial.
Gruß
Elmar

--
Haeufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)


Re: 2.6.x Kernel selber bauen

2004-08-05 Diskussionsfäden Dirk Schleicher
On Thu, 05 Aug 2004 06:43:33 +0200
Ralph Bergmann [EMAIL PROTECTED] wrote:

 Hallo!
 
 
 Wenn Ihr Euch die untere Mail durchlesst, dann seht Ihr, dass ich nen 
 eigenen Kernel bauen muss. Doch hatte ich dies noch nie gemacht und 
 wollte es eigentlich auch nie, auch wenn man es mal gemacht haben
 sollte ;)
 
 Damit es nun auch funktioniert und weil ich wie gesagt mich noch nie 
 dafür interessiert habe, wollte ich mal nach einer deutschen Anleitung
 
 speziell für Debian (unstable) fragen.
 
 Hat jemand einen Link für mich? Oder ist es nicht so schwer wie ich
 denke?
 
Hallo Ralph,

es ist nicht so schwer. Ich habe es nach dieser Anleitung [1] ganz gut
zu Stande bekommen. Diese ist leider in Englisch.
Unter [2] Step3 sind noch Programme aufgeführt die zu installieren sind
wenn Du einen 2.6.x backen willst.

Dann benötigst Du noch einen neuen Kernel von kernel.org und ne
laufende .config.

Das war es.

Gruss

Dirk

PS: ich der letzten Zeit wurde hierzu auch einiges geposted. Schau mal
in google.


[1] http://newbiedoc.sourceforge.net/system/kernel-pkg.html.en
[2] http://kerneltrap.org/node/view/799



Re: 2.6.x Kernel selber bauen

2004-08-05 Diskussionsfäden frank paulsen
Ralph Bergmann [EMAIL PROTECTED] writes:

 Damit es nun auch funktioniert und weil ich wie gesagt mich noch nie
 dafür interessiert habe, wollte ich mal nach einer deutschen Anleitung
 speziell für Debian (unstable) fragen.

englisch, und etwas veraltet, aber ansonsten ueberaus nuetzlich, wenn
man kernel 'the Debian way' uebersetzen will:

http://newbiedoc.sourceforge.net/system/kernel-pkg.html

-- 
frobnicate foo



2.6.x Kernel selber bauen

2004-08-04 Diskussionsfäden Ralph Bergmann
Hallo!
Wenn Ihr Euch die untere Mail durchlesst, dann seht Ihr, dass ich nen 
eigenen Kernel bauen muss. Doch hatte ich dies noch nie gemacht und 
wollte es eigentlich auch nie, auch wenn man es mal gemacht haben sollte ;)

Damit es nun auch funktioniert und weil ich wie gesagt mich noch nie 
dafür interessiert habe, wollte ich mal nach einer deutschen Anleitung 
speziell für Debian (unstable) fragen.

Hat jemand einen Link für mich? Oder ist es nicht so schwer wie ich denke?
Ralph
 Original Message 
Subject: Re: 2.6.6 Kernel + Adaptec aic7890/91 = Kernel panic
Date: Wed, 04 Aug 2004 17:40:24 -0400
From: Luben Tuikov [EMAIL PROTECTED]
To: Ralph Bergmann [EMAIL PROTECTED]
CC: Justin T. Gibbs [EMAIL PROTECTED]
References: [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED]

Hi Ralph,
Can you please apply the attached patch?
It's against 2.6.7 kernel and you should apply it like this:
# cd /usr/src/linux-2.6.7
# patch -p0  the_patch_file
then compile and run the kernel/module, and send
us the output.
Thanks.
Ralph Bergmann wrote:
Justin T. Gibbs wrote:
 Justin T. Gibbs wrote:
 
 
 ...  Can you provide the output of
 lspci -vv -n which will indicate the PCI ID information of your
 controller?
 
 
 yes of course
 
 :02:01.0 Class 0100: 9005:0010
  Subsystem: 9005:a180
 
 
  Hmm.  Those IDs should be supported in the driver.  Can you add
  printk statements in aic7xxx_osm_pci.c just before each location
  where the driver returns -ENODEV.  This should help narrow down
  why the driver is refusing to attach to the controller.  If I
  had to guess, I would say that pci_enable_device() is failing for
  some strange reason.
 
  --
  Justin
 
First of all I have to excuse, because you have to wait so long for my
answer. But I've got good news: the problem is partially fixed. I put
the scsi-adapter in another pci-slot (now a 32bit one in contradiction
to the 64bit one I used before), and now it's working. But I've got some
questions concerning this:
1. should it have worked, no matter, which kind of pci-slot I use? When
i used the 2.4 kernel, there were no error-messages, but when i switched
to 2.6 kernel, I run into trouble as you know... So is it a
kernel-problem or a hardware-thing?
2. And if you want to have the specific output nevertheless,  I would
prefer, that you send me the special adjusted file I have to use,
because I have no idea about kernel-programming at all...
Ralph
--
Luben Tuikov [EMAIL PROTECTED]
Adaptec, Inc., RTP, 919-287-2071

--- drivers/scsi/aic7xxx/aic7xxx_osm_pci.c.old  2004-08-04 17:33:12.0 -0400
+++ drivers/scsi/aic7xxx/aic7xxx_osm_pci.c  2004-08-04 17:37:48.0 -0400
@@ -130,13 +130,17 @@
}
if (ahc != NULL) {
/* Skip duplicate. */
+   printk(KERN_NOTICE %s: skip duplicate\n, __FUNCTION__);
return (-ENODEV);
}
 
dev = aic_pci_dev_to_dev(pdev);
entry = ahc_find_pci_device(dev);
-   if (entry == NULL)
+   if (entry == NULL) {
+   printk(KERN_NOTICE %s: device not found in our tables\n,
+  __FUNCTION__);
return (-ENODEV);
+   }
 
/*
 * Allocate a softc for this card and
@@ -148,16 +152,22 @@
aic_get_pci_slot(dev),
aic_get_pci_function(dev));
name = malloc(strlen(buf) + 1, M_DEVBUF, M_NOWAIT);
-   if (name == NULL)
+   if (name == NULL) {
+   printk(KERN_NOTICE %s: out of memory\n, __FUNCTION__);
return (-ENOMEM);
+   }
strcpy(name, buf);
ahc = ahc_alloc(NULL, name);
-   if (ahc == NULL)
+   if (ahc == NULL) {
+   printk(KERN_NOTICE %s: out of memory\n, __FUNCTION__);
return (-ENOMEM);
+   }
ahc-dev_softc = dev;
 
if (pci_enable_device(pdev)) {
ahc_free(ahc);
+   printk(KERN_NOTICE %s: couldn't enable device\n,
+  __FUNCTION__);
return (-ENODEV);
}
pci_set_master(pdev);
@@ -186,6 +196,8 @@
}
error = ahc_pci_config(ahc, entry);
if (error != 0) {
+   printk(KERN_NOTICE %s: couldn't config the device (%d)\n,
+  __FUNCTION__, error);
ahc_free(ahc);
return (-error);
}
@@ -199,6 +211,7 @@
return (-ENODEV);
 #endif
}
+   printk(KERN_NOTICE %s: returns ok (0)\n, __FUNCTION__);
return (0);
 }