RE: [LINUX-KERNEL] Problem loading any custom driver

From: Libershteyn, Vladimir
Date: Mon May 22 2006 - 00:05:12 EST


Here is a makefile
-------------------------------------------------
#
# Makefile for the Los Angeles PCI Adapter
# This file supports Red Hat Linux kernel 2.6(included) and above
#
HPATH := /usr/src/kernels/2.6.9-34.EL-i686/include
CFLAGS = -I$(HPATH) -Wall -O2 -fomit-frame-pointer -c
CFLAGS := $(CFLAGS) -DHOST_LITTLE_ENDIAN -DHOST_SIZE_32

obj-m += atf_host.o
-------------------------------------------------

Our group does not have ability to put files for outside access.
Can you specify what parts of the code you need me to attach?
Im not familiar with rules, is it allowed to attach source files?

Regards,
Vlad


-----Original Message-----
From: Arjan van de Ven [mailto:arjan@xxxxxxxxxxxxx]
Sent: Sunday, May 21, 2006 8:51 PM
To: Libershteyn, Vladimir
Cc: linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: [LINUX-KERNEL] Problem loading any custom driver


On Sun, 2006-05-21 at 20:42 -0700, Libershteyn, Vladimir wrote:
> Greetings,
>
> I need a help on understanding and possible resolution on a problem I have while trying to load driver(s) to a server running Linux_IA32_RH_EL4_Update3 either AS or WS
> I have a few (actually four) device drivers for different type of devices.
> These drivers compile and run fine on any 2.4.x kernels for both desktops/workstations and servers.
> The same drivers run fine on desktops/workstations and on slected servers, like IA64 Itanium servers, AMD64 servers, however I can't make it run on IA32 servers.
> I've noticed one common among all IA32 servers drivers won't run. All of them have dual processors motherboard with only one processor installed.
> The actual problem is: the first kernel function call from the driver (I'm running "insmod drivername" that calls driver_init function) cause kernel to panic.
> I believe the problem is either with kernel configuration/setup or with development environment configuration/setup.
> Any help/ideas are greatly appretiated. Below are part of a source code and related part of /var/log/messages. Please let me know if more information needed
>
> Regards,

you forgot to put a URL to your source code.......

however it strongly points towards a broken Makefile on your side.... if
we'd have that URL I could say for sure ..


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/