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/kernel/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

[email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Reply via email to