Problem with adding new driver

Alexey alexey at vocord.com
Sun May 7 15:47:14 UTC 2000


Hi
I faced with problem adding network driver
There are three files in my network directory - network.c pci.c io.c
So it builds RTEMS but if I try simple application with network support it
tells me:

/usr1/mips64orionel-rtems/bin/mips64orionel-rtems-gcc --pipe -B/usr1/mips64o
rionel-rtems/rtems-4.5.0/p4650/lib/
-specs
bsp_specs -qrtems -g -Wall -ansi -fasm -O4 -fomit-frame-pointer -DP4000 -DCP
U_R4000 -DP3_DIAG -D_R4000
-D__mips=3 -m4650 -G0 -L /usr1/mips64orionel-rtems/rtems-4.5.0/p4650/lib -o
o-optimize/test.exe
o-optimize/test.o
/usr1/mips64orionel-rtems/rtems-4.5.0/p4650/lib/no-dpmem.rel
/usr1/mips64orionel-rtems/rtems-4.5.0/p4650/lib/no-msg.rel
/usr1/mips64orionel-rtems/rtems-4.5.0/p4650/lib/no-mp.rel
/usr1/mips64orionel-rtems/rtems-4.5.0/p4650/lib/no-part.rel
/usr1/mips64orionel-rtems/rtems-4.5.0/p4650/lib/no-signal.rel
/usr1/mips64orionel-rtems/rtems-4.5.0/p4650/lib/no-timer.rel
/usr1/mips64orionel-rtems/rtems-4.5.0//p4650/lib/no-rtmon.rel


/usr/local/rtems/build/rtems-4.5.0/mips64orionel-rtems/c/p4650/lib/libbsp/mi
ps64orionel/p4000/network/../../../../../../../../../../src/rtems-4.5.0-beta
2/c/src/lib/libbsp/mips64orionel/p4000/network/network.c:526: relocation
truncated to fit: R_MIPS_26 outw
/usr/local/rtems/build/rtems-4.5.0/mips64orionel-rtems/c/p4650/lib/libbsp/mi
ps64orionel/p4000/network/../../../../../../../../../../src/rtems-4.5.0-beta
2/c/src/lib/libbsp/mips64orionel/p4000/network/network.c:528: undefined
reference to `inw'
/usr/local/rtems/build/rtems-4.5.0/mips64orionel-rtems/c/p4650/lib/libbsp/mi
ps64orionel/p4000/network/../../../../../../../../../../src/rtems-4.5.0-beta
2/c/src/lib/libbsp/mips64orionel/p4000/network/network.c:528: relocation
truncated to fit: R_MIPS_26 inw
collect2: ld returned 1 exit status
make: *** [o-optimize/test.exe] Error 1
So it's looks like there is no these functions in libraries

But nm libbsp gives me:

io.o:
0000000000000000 t __gnu_compiled_c
0000000000000000 t gcc2_compiled.
00000000000001c8 T inb
0000000000000310 T inl
000000000000026c T inw
                 U mips_get_timer
0000000000000000 T outb
0000000000000130 T outl
0000000000000098 T outw

network.o:
0000000000000000 D DEBUG
                 U find_pci_device
0000000000000000 t gcc2_compiled.
                 U inb
                 U inl
                 U inw
                 U m_clalloc
                 U outb
                 U outl
                 U outw
...
pci.o:
0000000000000000 t __gnu_compiled_c
0000000000000000 T find_pci_device
0000000000000000 t gcc2_compiled.
0000000000000008 T pci_read_config_byte
0000000000000018 T pci_read_config_dword
...

So there is no problem with pci.o but io.o
Can anyone tell me where I did mistake?

Regards
Alexey





More information about the users mailing list