Question on Build a module driver for UltraSpar Linux(RH6.2)

From: Ling Su (lingsu@palmmicro.com)
Date: Wed Jun 21 2000 - 15:51:05 EST


Hello, everyone,

I am not sure if this message is fit for all the mailing list, but I
struggled it for several days, hope somebody could help me.

Basically I am trying to build a Bluetooth Device Driver
(http://developer.axis.com), which is in developement stage. I only have a
UltraSparc workstation runing RedHat6.2. I knew it is a big-endian machine
and x86 is little-endian. The driver consists of several pieces of code. At
first, I just complie it using gcc, and I found it can not be installed into
kernel since gcc just produce a 32 bit ELF code. I changed to use
sparc64-linux-gcc, like following,

sparc64-linux-gcc -D__KERNEL__ -I/usr/src/vger/linux_work/include -Wall -Wst
rict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -m64 -pipe -mn
o-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used
-g7 -Wno-sign-compare -Wa,--undeclared-regs -DMODULE -DEXPORT_SYMTAB -c
xxx.c

and at last, link it by

ld -m elf64_sparc *.o

I think I am ready to install it, unfortunately I met follwoing error when I
"insmod" it,

    bt.o: unresolved symbol tty_register_ldisc_R592af152
    bt.o: unresolved symbol kmalloc_R93d4cfe6
    bt.o: unresolved symbol __memcpy_Rbfaaaa73
    bt.o: unresolved symbol __wake_up_Rdecddc1e
    bt.o: unresolved symbol tty_register_driver_R58e04e55
    bt.o: unresolved symbol clear_page
    bt.o: unresolved symbol tty_std_termios_R7c7b57d9
    bt.o: unresolved symbol __bzero_Rdd42e263
    bt.o: unresolved symbol interruptible_sleep_on_Rd492943b
    bt.o: unresolved symbol __copy_from_user
    bt.o: unresolved symbol tty_unregister_driver_R33b5cd20
    bt.o: unresolved symbol __strncmp_R8c5ff0fd

I don't know where I should go for searching help, and didn't find useful
documents on this evne on the web. Could anyone please give me some hint,
how to build a loadable moudle for UltraSparc Linux? Thanks a lot!

Best Regards,
-Ling

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:22 EST