From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by ozlabs.org (Postfix) with ESMTP id EA9E167D86 for ; Mon, 13 Nov 2006 18:47:32 +1100 (EST) Received: from CRESITTLAB (sou45-1-82-229-118-71.fbx.proxad.net [82.229.118.71]) by smtp3-g19.free.fr (Postfix) with ESMTP id C569444706 for ; Mon, 13 Nov 2006 08:47:29 +0100 (CET) From: "alayrac" To: Subject: Modules Problem on ML403 Date: Mon, 13 Nov 2006 08:47:26 +0100 Message-ID: <006801c706f7$f671a440$c900a8c0@CRESITTLAB> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0069_01C70700.58360C40" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_NextPart_000_0069_01C70700.58360C40 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi all, I succeed to port linux2-4.26 on ML403 board with Montavista RFS on CF or NFS. Problems arise when I try to use modules. I have included gpio modules in the kernel and build follow make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- dep uImage make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- modules the modules_install The last make command fail during depmod process because it did not supports cross compiling I've then think to use the Klingauf scripts (make_modules_install.sh,depmod.pl) but I was afraid that the command make modules_install copy modules in the host lib/modules directory. So I manually proceed as follow from the kernel root : make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- modules_install INSTALL_MOD_PATH=/home/alayrac/ and then ./depmod.pl -k ./vmlinux -F ./System.map -b /home/alayrac/lib/modules -n > /home/alayrac/lib/modules/2.4.26/modules.dep Modules seems to be created properly but after board and linux start up I receive the following error message: $>insmod xilinx_gpio Using /lib/modules/2.4.26/kernel/drivers/char/xilinx_gpio/xilinx_gpio.o /lib/modules/2.4.26/kernel/drivers/char/xilinx_gpio/xilinx_gpio.o: couldn't find the kernel version the module was compiled for $>modprobe xilinx_gpio /lib/modules/2.4.26/kernel/drivers/char/xilinx_gpio/xilinx_gpio.o: couldn't find the kernel version the module was compiled for/lib/modules/2.4.26/kernel/drivers/char/xilinx_gpio/xilinx_gpio.o: insmod /lib/modules/2.4.26/kernel/drivers/char/xilinx_gpid/lib/modules/2.4.26/k ernel/drivers/char/xilinx_gpio.o: couldn't find the kernel version the module was compiled for /lib/modules/2.4.26/kernel/drivers/char/xilinx_gpio.o: insmod /lib/modules/2.4.26/kernel/drivers/char/xilinx_gpio.o failed /lib/modules/2.4.26/kernel/drivers/char/xilinx_gpio.o: insmod xilinx_gpio failed Further more the date of files in /lib/modules/2.4.26 are modified to old date during the boot process (I think its because there is no real time clock on ML403). Thus the modules.conf is declared as more recent than modules.dep. Any help would be appreciated . Kinds regards Chris _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded ------=_NextPart_000_0069_01C70700.58360C40 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi = all,

 

I succeed to port linux2-4.26 on = ML403 board with Montavista RFS on CF or NFS.

 

Problems arise when I try to use modules.

I have included gpio modules in = the kernel and build follow

 

make ARCH=3Dppc CROSS_COMPILE=3Dpowerpc-405-linux-gnu- dep = uImage

make ARCH=3Dppc CROSS_COMPILE=3Dpowerpc-405-linux-gnu- modules the = modules_install

 

The last make command fail during = depmod process because it did not supports cross = compiling

 

I've then think to use the = Klingauf scripts (make_modules_install.sh,depmod.pl) but I was afraid that the = command

make modules_install copy modules = in the host lib/modules directory.

 

So I manually proceed as follow = from the kernel root :

make ARCH=3Dppc CROSS_COMPILE=3Dpowerpc-405-linux-gnu- modules_install = INSTALL_MOD_PATH=3D/home/alayrac/

 

and then =

./depmod.pl -k ./vmlinux -F = ./System.map -b /home/alayrac/lib/modules –n > = /home/alayrac/lib/modules/2.4.26/modules.dep<= /span>

 

Modules seems to be created = properly but after board and linux start up I receive the following error = message:

 

$>insmod = xilinx_gpio

Using /lib/modules/2.4.26/kernel/drivers/char/xilinx_gpio/xilinx_gpio.o

/lib/modules/2.4.26/kernel/drivers/char/xil= inx_gpio/xilinx_gpio.o:

couldn't find the kernel version = the module was compiled for

 

$>modprobe = xilinx_gpio

/lib/modules/2.4.26/kernel/drivers/char/xil= inx_gpio/xilinx_gpio.o:

couldn't find the kernel version = the module was compiled = for/lib/modules/2.4.26/kernel/drivers/char/xilinx_gpio/xilinx_gpio.o:

insmod /lib/modules/2.4.26/kernel/drivers/char/xilinx_gpid/lib/modules/2.4.26/ke= rnel/drivers/char/xilinx_gpio.o: couldn't find the kernel version the module was compiled = for

/lib/modules/2.4.26/kernel/drivers/char/xil= inx_gpio.o:

insmod = /lib/modules/2.4.26/kernel/drivers/char/xilinx_gpio.o failed

/lib/modules/2.4.26/kernel/drivers/char/xil= inx_gpio.o: insmod xilinx_gpio failed

 

Further more the date of files in /lib/modules/2.4.26 are modified to old date during the boot process (I = think its because there is no real time clock on ML403). Thus the modules.conf = is declared as more recent than modules.dep.

 

Any help would be appreciated = .

 

Kinds = regards

 

Chris

 

___________________________________________= ____

Linuxppc-embedded mailing = list

Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/lin= uxppc-embedded

------=_NextPart_000_0069_01C70700.58360C40--