Skip to contentSkip to conversation

make module_install

DISCUSSION Wolfgang Denk 2 participants 3 messages Dec 17, 2002 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines · In message <001301c2a5ed$1d546ea0$0700a8c0@pc005> you wrote:
Quoted 2 lines

make modules_install INSTALL_MOD_PATH=/opt/eldk/ppc_8xx

By doing that I have solved only the 50% of the problem. In fact now the files are moved in the right place but the message still exist.

I know. I tend to simply ignore it ;-)

Quoted 2 lines

It seems that the architecture of the ELF files was wrong or the depmod runs for an i386 architecture.

The latter is the case: you are running a host-depmod but a cross- depmod is needed. Feel free to change the defintiion of DEPMOD in your top-level makefile to your liking.

IMHO this is overkill, though. For standard desktop/server systems modules are used to be able to run the same kernel version for a wide range of hardware configurations; but the situation is completely different for embedded systems: modules are usually only used for driver development, and then you will manually load and unload the driver anyway. I will even go so far to say that if you need to run "depmod" for your embedded system you should fix your system design because you are doing something wrong.

Of course, YMMV.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] In theory, there is no difference between theory and practice. In practice, however, there is.

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

#2 lore raw
Quoted 5 lines · Wolfgang Denk

different for embedded systems: modules are usually only used for driver development, and then you will manually load and unload the driver anyway. I will even go so far to say that if you need to run "depmod" for your embedded system you should fix your system design because you are doing something wrong.

Someone might use loadable modules because he doesn't want to release his driver under the GPL. I wouldn't exactly consider this wrong.

Regards,
Marius

-----------------------------------------------------------------------------

Marius Groeger           SYSGO Real-Time Solutions AG       [email protected]
Software Engineering     Embedded and Real-Time Software    www.sysgo.de
Voice: +49-6136-9948-0   Am Pfaffenstein 14                 www.osek.de
FAX:   +49-6136-9948-10  55270 Klein-Winternheim, Germany   www.elinos.com

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

#3 lore raw
Quoted 7 lines · In message <[email protected]> you…
Quoted 4 lines

driver anyway. I will even go so far to say that if you need to run "depmod" for your embedded system you should fix your system design because you are doing something wrong.

Someone might use loadable modules because he doesn't want to release his driver under the GPL. I wouldn't exactly consider this wrong.

I do not intend to comment on the issue of binary modules.

But even in such a situation the necessity to run depmod in an embedded system is IMHO an indication of a potential design problem. Things should be kept simple.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] No user-servicable parts inside. Refer to qualified service personnel.

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