From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266605AbUF3Ju5 (ORCPT ); Wed, 30 Jun 2004 05:50:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266607AbUF3Ju4 (ORCPT ); Wed, 30 Jun 2004 05:50:56 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:23196 "EHLO fmmailgate03.web.de") by vger.kernel.org with ESMTP id S266605AbUF3Jum (ORCPT ); Wed, 30 Jun 2004 05:50:42 -0400 Date: Wed, 30 Jun 2004 11:50:38 +0200 Message-Id: <255146525@web.de> MIME-Version: 1.0 From: "Michael Tasche" To: linux-kernel@vger.kernel.org Subject: Organization: http://freemail.web.de/ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, currently I'm developping a small kernel module for a hardware (which was developped by a friend of mine), which is supposed to load a firmware onto a PCI-card. The development is done together with the friend, who's developping the firmware. We tried the following: He compiled a kernel-independent object (containing the firmware) on his system using kbuild (Dual-AthlonMP, SuSE 8.2 with kernel.org-kernel 2.6.3, module-init-tools 0.9.14-pre2, gcc 3.3.1, ld 2.14.90.0.5 20030722). Afterwards I tried to link it to my kernel-module (using the same kbuild makefile with firmware.o_shipped) on my machine (Fedora2, 2.6.5-3.1smp, module-init-tools 3.0-pre10, gcc 3.3.3, ld 2.15.90.0.3 20040415). This is what happened: Unable to handle kernel paging request at virtual address 82d90700 printing eip: 02135657 *pde = 00000000 Oops: 0002 [#1] PREEMPT SMP CPU: 1 EIP: 0060:[<02135657>] Not tainted EFLAGS: 00010246 (2.6.5-3.1smp) EIP is at module_unload_init+0xa/0x4d eax: 82d90700 ebx: 82c2387c ecx: 82d8f600 edx: 00000000 esi: 82c38f33 edi: 82c40027 ebp: 000005f0 esp: 763c3f38 ds: 007b es: 007b ss: 0068 Process insmod (pid: 1812, threadinfo=763c2000 task=7f3c60b0) Stack: 02136dc0 7864cc40 8282a000 00000000 82d8f600 00000000 00000000 00000000 00000000 00000000 0000000b 00000000 00000010 00000000 00000000 00000009 00000025 00000024 00000026 82c3829c 82c23727 82a94000 0856a008 763c3fc4 Call Trace: [<02136dc0>] load_module+0x53e/0x7fa [<021370da>] sys_init_module+0x5e/0x293 Code: 89 81 00 11 00 00 89 81 04 11 00 00 89 c8 c7 80 00 01 00 00 What puzzles me, is that I don't see any of my code in the calltrace. I had a look into the kernel-code and it seems to crash, before it even jumps into my code. What am I missing? By the way, everything works fine, if I compile the entire module on my machine. Some more testing showed, that we do also expierence a crash, if we do everything vice-versa. Regards, Michael P.S: This was also posted by the driver developer to comp.os.linux.development.system. ________________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193