[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] Saturday, August 08, 1998 (Weekly Updates) (fwd)



On Tue, 11 Aug 1998, Niroshan Carrol Rajadurai wrote:

> When I run these commands =>
> 
> /sbin/insmod /lib/modules/2.0.33/fs/rt_fifo_new.o
> /sbin/insmod
> /lib/modules/2.0.33/misc/rt_prio_sched.o
> /sbin/insmod ./*.o						

No,no,no. Not every *.o file is a module. You need first to link everything
together to the module and then insert.

Like:

ld -r -o my_final_module.o my_module.o obj1.o obj2.o obj3.o

Or look into example in
http://crds.chemie.unibas.ch/PCI-MIO-E/linux-0.1.4/Makefile :

objects=dma.o mem_linux.o linux_pci.o linux_rw.o pcibios.linux.o
libpci-mio-e.a : $(objects)
	ar cr libpci-mio-e.a $(objects)

ni.o : ni_pci_e.o libpci-mio-e.a
	ld -r -o ni.o ni_pci_e.o libpci-mio-e.a

and then insmod ni.o  

Please let me know, if it works.  I would also like to learn more about this
UNOS - copyright type, general info. It may be hard to understand as a whole,
but may contain interesting drivers.  

Regards,
--
Tomasz Motylewski

--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu