linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RTAI module install problem
@ 2003-05-14  8:39 Toni Van Remortel
  2003-05-14  9:07 ` wolfgang.grandegger
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Toni Van Remortel @ 2003-05-14  8:39 UTC (permalink / raw)
  To: linuxppc-embedded


Hi all.

I'll first tell you in short what I use.

Kernel: linuxppc_2_4_devel (from CVS on may 7th 2003)
RTAI Patch: ppc_devel_patch_2003_05_04_1125
Patch went perfect.

Cross-compiler: ELDK ppc_4xx
Target: EP405
Host: x86
INSTALL_MOD_PATH: /tmp/rmdisk_large

Config and vmlinux-compile don't give errors, RTAI is enabled.
Modules compile OK.
When installing the modules, I get this error:

cd /tmp/rmdisk_large/lib/modules/2.4.20-rthal5; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b
/tmp/rmdisk_large -r 2.4.20-rthal5; fi
depmod: ELF file
/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-core.o not for this architecture
depmod: ELF file
/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-dev.o
not for this architecture
depmod: ELF file
/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-proc.o not for this architecture
...
depmod: ELF file
/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/net/ipv4/netfilter/iptable_filter.o not for this architecture
depmod: ELF file
/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/net/ipv4/netfilter/iptable_nat.o not for this architecture
make: *** [_modinst_post] Error 1

OK, this tells me that I'm using a somewhat wrong architecture (probably
wrong configured).
Does anybody know how I can solve this?

Thnx.
--
Toni Van Remortel <t.vanremortel@ha.be>
D-science lab


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: RTAI module install problem
  2003-05-14  8:39 RTAI module install problem Toni Van Remortel
@ 2003-05-14  9:07 ` wolfgang.grandegger
  2003-05-14  9:36   ` Alex Zeffertt
  2003-05-14  9:37 ` Wolfgang Denk
  2003-05-14 10:11 ` Michael Grimborounis
  2 siblings, 1 reply; 5+ messages in thread
From: wolfgang.grandegger @ 2003-05-14  9:07 UTC (permalink / raw)
  To: t.vanremortel; +Cc: linuxppc-embedded


Hi,

the problem is that depmod is for x86 and it can
therefore not handle PPC binaries. But the errors
should not harm. On the target you may need to install
the modules with "insmod" because module.dep is
not correct. Typically, on an embedded target you
link the drivers statically into the kernel.

Hope it helps,

Wolfgang.


>-- Original Message --
>Subject: RTAI module install problem
>From: Toni Van Remortel <t.vanremortel@ha.be>
>Reply-To: t.vanremortel@ha.be
>To: linuxppc-embedded@lists.linuxppc.org
>Date: 14 May 2003 10:39:55 +0200
>
>
>
>Hi all.
>
>I'll first tell you in short what I use.
>
>Kernel: linuxppc_2_4_devel (from CVS on may 7th 2003)
>RTAI Patch: ppc_devel_patch_2003_05_04_1125
>Patch went perfect.
>
>Cross-compiler: ELDK ppc_4xx
>Target: EP405
>Host: x86
>INSTALL_MOD_PATH: /tmp/rmdisk_large
>
>Config and vmlinux-compile don't give errors, RTAI is enabled.
>Modules compile OK.
>When installing the modules, I get this error:
>
>cd /tmp/rmdisk_large/lib/modules/2.4.20-rthal5; \
>mkdir -p pcmcia; \
>find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
>pcmcia
>if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b
>/tmp/rmdisk_large -r 2.4.20-rthal5; fi
>depmod: ELF file
>/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-core.o
>not for this architecture
>depmod: ELF file
>/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-dev.o
>not for this architecture
>depmod: ELF file
>/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-proc.o
>not for this architecture
>...
>depmod: ELF file
>/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/net/ipv4/netfilter/iptable_filter.o
>not for this architecture
>depmod: ELF file
>/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/net/ipv4/netfilter/iptable_nat.o
>not for this architecture
>make: *** [_modinst_post] Error 1
>
>OK, this tells me that I'm using a somewhat wrong architecture (probably
>wrong configured).
>Does anybody know how I can solve this?
>
>Thnx.
>--
>Toni Van Remortel <t.vanremortel@ha.be>
>D-science lab
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: RTAI module install problem
  2003-05-14  9:07 ` wolfgang.grandegger
@ 2003-05-14  9:36   ` Alex Zeffertt
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Zeffertt @ 2003-05-14  9:36 UTC (permalink / raw)
  To: linuxppc-embedded@lists.linuxppc.org


Hi,

I use the depmod.pl perl script that comes with busybox to create
modules.dep.  This appears to be platform independent.  You need to
apply the patch below to your linux/Makefile (and then change the
definition of DEPMOD to the path of your depmod.pl).  Then you just run

make -C linux INSTALL_MOD_PATH=path/to/target/root/fs modules_install

on your build machine.

This will create the path/to/target/root/fs/lib/modules tree which
includes the modules.dep file.

modprobe should then work on your target.

Alex

diff -u -r1.2 -r1.3
--- Makefile    2003/04/30 12:35:27     1.2
+++ Makefile    2003/05/08 14:32:44     1.3
@@ -38,7 +38,7 @@
 OBJDUMP                = $(CROSS_COMPILE)objdump
 MAKEFILES      = $(TOPDIR)/.config
 GENKSYMS       = /sbin/genksyms
-DEPMOD         = /sbin/depmod
+DEPMOD         =  $(TOPDIR)/../ramdisk/busybox/scripts/depmod.pl
 MODFLAGS       = -DMODULE
 CFLAGS_KERNEL  =
 PERL           = perl
@@ -409,11 +409,11 @@
 ifeq "$(strip $(INSTALL_MOD_PATH))" ""
 depmod_opts    :=
 else
-depmod_opts    := -b $(INSTALL_MOD_PATH) -r
+depmod_opts    := -b $(INSTALL_MOD_PATH)/lib/modules -k $(TOPDIR)/vmlinux > $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)/modules.dep
 endif
 .PHONY: _modinst_post
 _modinst_post: _modinst_post_pcmcia
-       if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
+       if [ -r System.map ]; then $(DEPMOD) -F System.map $(depmod_opts); fi

 # Backwards compatibilty symlinks for people still using old versions
 # of pcmcia-cs with hard coded pathnames on insmod.  Remove



On Wed, 2003-05-14 at 10:07, wolfgang.grandegger@bluewin.ch wrote:
>
> Hi,
>
> the problem is that depmod is for x86 and it can
> therefore not handle PPC binaries. But the errors
> should not harm. On the target you may need to install
> the modules with "insmod" because module.dep is
> not correct. Typically, on an embedded target you
> link the drivers statically into the kernel.
>
> Hope it helps,
>
> Wolfgang.
>
>
> >-- Original Message --
> >Subject: RTAI module install problem
> >From: Toni Van Remortel <t.vanremortel@ha.be>
> >Reply-To: t.vanremortel@ha.be
> >To: linuxppc-embedded@lists.linuxppc.org
> >Date: 14 May 2003 10:39:55 +0200
> >
> >
> >
> >Hi all.
> >
> >I'll first tell you in short what I use.
> >
> >Kernel: linuxppc_2_4_devel (from CVS on may 7th 2003)
> >RTAI Patch: ppc_devel_patch_2003_05_04_1125
> >Patch went perfect.
> >
> >Cross-compiler: ELDK ppc_4xx
> >Target: EP405
> >Host: x86
> >INSTALL_MOD_PATH: /tmp/rmdisk_large
> >
> >Config and vmlinux-compile don't give errors, RTAI is enabled.
> >Modules compile OK.
> >When installing the modules, I get this error:
> >
> >cd /tmp/rmdisk_large/lib/modules/2.4.20-rthal5; \
> >mkdir -p pcmcia; \
> >find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
> >pcmcia
> >if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b
> >/tmp/rmdisk_large -r 2.4.20-rthal5; fi
> >depmod: ELF file
> >/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-core.o
> >not for this architecture
> >depmod: ELF file
> >/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-dev.o
> >not for this architecture
> >depmod: ELF file
> >/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-proc.o
> >not for this architecture
> >...
> >depmod: ELF file
> >/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/net/ipv4/netfilter/iptable_filter.o
> >not for this architecture
> >depmod: ELF file
> >/tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/net/ipv4/netfilter/iptable_nat.o
> >not for this architecture
> >make: *** [_modinst_post] Error 1
> >
> >OK, this tells me that I'm using a somewhat wrong architecture (probably
> >wrong configured).
> >Does anybody know how I can solve this?
> >
> >Thnx.
> >--
> >Toni Van Remortel <t.vanremortel@ha.be>
> >D-science lab
> >
> >
> >
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: RTAI module install problem
  2003-05-14  8:39 RTAI module install problem Toni Van Remortel
  2003-05-14  9:07 ` wolfgang.grandegger
@ 2003-05-14  9:37 ` Wolfgang Denk
  2003-05-14 10:11 ` Michael Grimborounis
  2 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2003-05-14  9:37 UTC (permalink / raw)
  To: t.vanremortel; +Cc: linuxppc-embedded


In message <1052901595.7115.5.camel@toni> you wrote:
>
> Kernel: linuxppc_2_4_devel (from CVS on may 7th 2003)
> RTAI Patch: ppc_devel_patch_2003_05_04_1125
> Patch went perfect.

If you run bleeding edge you might see some problems.

We have validated RTAI patches for RTAI on our FTP server. Please see
ftp://ftp.denx.de/pub/RTAI/README  (a  new  validated   version   for
24.1.11 will be available soon).

Also note that normally you will get better response to RTAI specific
questions if you ask on the RTAI mailing list.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
"Ja, mach' nur einen Plan,    sei nur ein grosses Licht
und mach' dann noch 'nen zweiten Plan,    geh'n tun sie beide nicht."
                                     -- Bert Brecht, Dreigroschenoper

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: RTAI module install problem
  2003-05-14  8:39 RTAI module install problem Toni Van Remortel
  2003-05-14  9:07 ` wolfgang.grandegger
  2003-05-14  9:37 ` Wolfgang Denk
@ 2003-05-14 10:11 ` Michael Grimborounis
  2 siblings, 0 replies; 5+ messages in thread
From: Michael Grimborounis @ 2003-05-14 10:11 UTC (permalink / raw)
  To: t.vanremortel; +Cc: linuxppc-embedded


Hi,
Try googling arround for depmod.pl by David Schleef, Erik Andersen and
Stuart Hughes. This is a Perl script you can run on your host system
(sort of a cross-platform depmod.) You will have to modify your makefile
to use that instead of depmod. I get some warnings from it, but
otherwise it works just fine for me. HTH.

Bye,
Michael

Toni Van Remortel wrote:
>
> Hi all.
>
> I'll first tell you in short what I use.
>
> Kernel: linuxppc_2_4_devel (from CVS on may 7th 2003)
> RTAI Patch: ppc_devel_patch_2003_05_04_1125
> Patch went perfect.
>
> Cross-compiler: ELDK ppc_4xx
> Target: EP405
> Host: x86
> INSTALL_MOD_PATH: /tmp/rmdisk_large
>
> Config and vmlinux-compile don't give errors, RTAI is enabled.
> Modules compile OK.
> When installing the modules, I get this error:
>
> cd /tmp/rmdisk_large/lib/modules/2.4.20-rthal5; \
> mkdir -p pcmcia; \
> find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
> pcmcia
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b
> /tmp/rmdisk_large -r 2.4.20-rthal5; fi
> depmod: ELF file
> /tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-core.o not for this architecture
> depmod: ELF file
> /tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-dev.o
> not for this architecture
> depmod: ELF file
> /tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/drivers/i2c/i2c-proc.o not for this architecture
> ...
> depmod: ELF file
> /tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/net/ipv4/netfilter/iptable_filter.o not for this architecture
> depmod: ELF file
> /tmp/rmdisk_large/lib/modules/2.4.20-rthal5/kernel/net/ipv4/netfilter/iptable_nat.o not for this architecture
> make: *** [_modinst_post] Error 1
>
> OK, this tells me that I'm using a somewhat wrong architecture (probably
> wrong configured).
> Does anybody know how I can solve this?
>
> Thnx.
> --
> Toni Van Remortel <t.vanremortel@ha.be>
> D-science lab
>

--
Michael G. Grimborounis  <mgry@intracom.gr>
Intracom S.A.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-14 10:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-14  8:39 RTAI module install problem Toni Van Remortel
2003-05-14  9:07 ` wolfgang.grandegger
2003-05-14  9:36   ` Alex Zeffertt
2003-05-14  9:37 ` Wolfgang Denk
2003-05-14 10:11 ` Michael Grimborounis

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).