* Modules Problem on ML403
@ 2006-11-10 16:50 alayrac christophe
0 siblings, 0 replies; 3+ messages in thread
From: alayrac christophe @ 2006-11-10 16:50 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
We succeed to port linux2-4.26 on ML403 board with Montavista RFS on CF
or NFS.
Problems arise when we try to use modules.
We have include 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 fail during depmod process because it no 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
r/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 to a very hold
date during the boot process. Thus the modules.conf is declared as more
recent than modules.dep.
Any help would be appreciated .
Kinds regards
Chris
^ permalink raw reply [flat|nested] 3+ messages in thread
* Modules Problem on ML403
@ 2006-11-13 7:47 alayrac
0 siblings, 0 replies; 3+ messages in thread
From: alayrac @ 2006-11-13 7:47 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 2349 bytes --]
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>
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
[-- Attachment #2: Type: text/html, Size: 17613 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Modules Problem on ML403
[not found] <8506C3905ED0764F889ADEB33E3A9E8062CF28@MAIA.scopus.net>
@ 2006-11-13 15:39 ` alayrac
0 siblings, 0 replies; 3+ messages in thread
From: alayrac @ 2006-11-13 15:39 UTC (permalink / raw)
To: Sharon Feldman, linuxppc-embedded
Thank you Sharon
I forget to precise that of course adapter.c should be corrected because
its is not compatible with last GPO IP of Xilinx (the last one is dual
port while old version was single port, thus API functions needs a port
number to be specified).
Unfortunalty even with correction then modules did not works.
With have included the gpio driver in ther kernel and a /dev/xgpio
et /dev/misc/xgpio are created but I've no idea then of how to use
theses GPIO from user space.
I suppose that it should be something like
int fgpoi;
fgpio = open("/dev/misc/xgpio",O_RDWR);
...
what are the functions to access the IO port in write or read mode?
The second question is why is there taht kernel version error when using
module?
Regards
Chris
Re"
Le lundi 13 novembre 2006 à 10:52 +0200, Sharon Feldman a écrit :
> we had also problems with montavista gpio, it turnd out the montavista
> adaptor file need to be modified, since it is not suitable for latest
> xilinx libraries.
>
>
> -----Original Message-----
> From: linuxppc-embedded-bounces+sharonf=scopus.net@ozlabs.org
> [mailto:linuxppc-embedded-bounces
> +sharonf=scopus.net@ozlabs.org]On Behalf Of alayrac
> Sent: Monday, November 13, 2006 9:47 AM
> To: linuxppc-embedded@ozlabs.org
> Subject: Modules Problem on ML403
>
>
> 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
>
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-13 17:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <8506C3905ED0764F889ADEB33E3A9E8062CF28@MAIA.scopus.net>
2006-11-13 15:39 ` Modules Problem on ML403 alayrac
2006-11-13 7:47 alayrac
-- strict thread matches above, loose matches on Subject: below --
2006-11-10 16:50 alayrac christophe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).