Skip to contentSkip to conversation

QM_MODULES

DISCUSSION [email protected] 3 participants 3 messages Oct 26, 2000 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

hello all!!

I have a problum.

I made the test.c file for device driver test.

========== test.c ===================
#define MODULE
#include <linux/kernel.h>
#include <linux/module.h>

#if CONFIG_MODVERSIONS==1
#define MODVERSION
#include <linux/modversions.h>
#endif

int init_module(void) { printk("Hello, kim\n"); return 0; }
void cleanup_module(void) { printk("Goodbye Kim\n"); }
======================================
And, compile options
powerpc-linux-gcc -D__KERNEL__ -O -c test.c
/tmp/cc8k7ews.s: Assembler messages:
/tmp/cc8k7ews.s:6: Warning: Ignoring changed section attributes for .modinfo

warning message and i execute the insmod

insmod test.o
insmod : QM_MODULES function not implmented

I don't know, warning message and error message.

help me~~!!

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

#1 lore raw

Have you built the modutils package so that
you can use insmod, modprobe and others?
Cal

Quoted 24 lines · [email protected] wrote:

hello all!!

I have a problum.

I made the test.c file for device driver test.

========== test.c ===================
#define MODULE
#include <linux/kernel.h>
#include <linux/module.h>

#if CONFIG_MODVERSIONS==1
#define MODVERSION
#include <linux/modversions.h>
#endif

int init_module(void) { printk("Hello, kim\n"); return 0; }
void cleanup_module(void) { printk("Goodbye Kim\n"); }
======================================
And, compile options
powerpc-linux-gcc -D__KERNEL__ -O -c test.c
/tmp/cc8k7ews.s: Assembler messages:
/tmp/cc8k7ews.s:6: Warning: Ignoring changed section attributes for .modinfo

Quoted 9 lines

warning message and i execute the insmod

insmod test.o
insmod : QM_MODULES function not implmented

I don't know, warning message and error message.

help me~~!!

--
===========================================================================

Cal Erickson                 MontaVista Software Inc.
Customer Support Engineer    490 Potrero Avenue
Phone (408) 328-0304         Sunnyvale CA 94085
Fax   (408) 328-9204         e-mail [email protected]
Pager 877-566-2012           support 1-800-759-8888 pin 202-7489
web http://www.mvista.com    support e-mail: [email protected]

eCode: http://[email protected]
===========================================================================

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

A message that is not in the archive (sent off-list or not yet received): [email protected]'s

#3 lore raw
Quoted 11 lines · [email protected] writes:

hello all!!

I have a problum.

I made the test.c file for device driver test.

========== test.c ===================
#define MODULE
#include <linux/kernel.h>
#include <linux/module.h>

Quoted 4 lines

#if CONFIG_MODVERSIONS==1
#define MODVERSION
#include <linux/modversions.h>
#endif

That should read:
========== test.c ===================
#define MODULE
#include <linux/config.h>
#ifdef CONFIG_MODVERSIONS

# define MODVERSIONS
# include <linux/modversions.h>
#endif

#include <linux/kernel.h>
#include <linux/module.h>

Quoted 7 lines

int init_module(void) { printk("Hello, kim\n"); return 0; }
void cleanup_module(void) { printk("Goodbye Kim\n"); }
======================================
And, compile options
powerpc-linux-gcc -D__KERNEL__ -O -c test.c
/tmp/cc8k7ews.s: Assembler messages:
/tmp/cc8k7ews.s:6: Warning: Ignoring changed section attributes for .modinfo

Haven't seen that message before. If the above doesn't help, try changing the -O flag to -O2.

Also, what version of binutils are you using?

//Marcus
--
-------------------------------+-----------------------------------

        Marcus Sundberg        |       Phone: +46 707 452062
  Embedded Systems Consultant  |      Email: [email protected]
       Cendio Systems AB       |       http://www.cendio.com

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