Hello Richard,
The two logs bellow are our unsuccessful tries to load a module mounted on
devfs.
Two of the 1st log errors were fixed by pointing to the same KERNEL_DIR and
adding the MODULE_LICENCE("GPL") line.
Still, we get unresolved symbols as seen in the 2nd log.
We think we made all the necessary includes; see bellow.
Please advice.
Sincerely,
Tsvika Hirst
System Development Engineer
Minicom Advanced Systems Ltd.
16 Hartom St., Har Hotsvim, Jerusalem 91450, Israel
Phone +972 2 535 9657 Fax +972 2 535 9693
Surf: http://www.minicom.com
1st log:
-sh-2.05b# insmod -f /home/mu_pq/gpio_drv_flash.o
Warning: kernel-module version mismatch
/home/mu_pq/gpio_drv_flash.o was compiled for kernel version 2.4.23
while this kernel is version 2.4.24
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol unregister_chrdev
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol register_chrdev
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol __save_flags_ptr
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol __restore_flags
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol printk
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol __cli
/home/mu_pq/gpio_drv_flash.o:
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols. Contact the module supplier for
assistance, only they can help you.
2nd log:
...
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@xxxxxxxxxxxxx)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications
AB.
pty: 256 Unix98 ptys configured
Generic RTC Driver v1.07
devsoc: devsoc_init:
...
Starting portmap daemon: portmap.
INIT: Entering runlevel: 2
Warning: kernel-module version mismatch
/home/mu_pq/gpio_drv_flash.o was compiled for kernel version 2.4.24
while this kernel is version 2.4.24-MUPQ-04
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol devfs_register
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol __save_flags_ptr
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol devfs_unregister
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol __restore_flags
/home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved
symbol __cli
192.168.0.152 login: error on open of /dev/gpio: No such file or directory
...
from gpio_drv_flash.c:
#include <linux/config.h>
#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/ioctl.h>
#include <linux/fcntl.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/devfs_fs_kernel.h>
#include <asm/system.h>
#include <asm/pq2defs.h>
#include "gpio_drv_flash.h"
|