Skip to contentSkip to conversation

need help with oaknet.c

DISCUSSION Felix von Leitner 2 participants 2 messages Jun 12, 2003

lore
Share & tools
lore
#0 lore raw

Hi Grant,

I'm trying to cross compile a linux 2.5.70 kernel to ppc, and after removing a few obstacles I'm now stuck in oaknet.c, which bears your email address.

Here are the compile errors. I have no idea where I can get an asm/board.h and a grep did not find the missing defines.

drivers/net/oaknet.c:24:23: asm/board.h: No such file or directory drivers/net/oaknet.c: In function `oaknet_init':
drivers/net/oaknet.c:102: error: `OAKNET_IO_BASE' undeclared (first use in this function)
drivers/net/oaknet.c:102: error: (Each undeclared identifier is reported only once
drivers/net/oaknet.c:102: error: for each function it appears in.) drivers/net/oaknet.c:102: error: `OAKNET_IO_SIZE' undeclared (first use in this function)
drivers/net/oaknet.c:102: warning: initialization makes integer from pointer without a cast
drivers/net/oaknet.c:104: error: cannot convert to a pointer type drivers/net/oaknet.c:123: warning: implicit declaration of function `ei_ibp'
drivers/net/oaknet.c:132: warning: implicit declaration of function `ei_obp'
drivers/net/oaknet.c:165: error: `OAKNET_INT' undeclared (first use in this function)
drivers/net/oaknet.c:228: warning: passing arg 1 of `iounmap' makes pointer from integer without a cast
drivers/net/oaknet.c: In function `oaknet_reset_8390':
drivers/net/oaknet.c:303: error: `E8390_BASE' undeclared (first use in this function)
drivers/net/oaknet.c: In function `oaknet_get_8390_hdr':
drivers/net/oaknet.c:355: error: `OAKNET_CMD' undeclared (first use in this function)
drivers/net/oaknet.c:364: error: `OAKNET_DATA' undeclared (first use in this function)
drivers/net/oaknet.c: In function `oaknet_block_input':
drivers/net/oaknet.c:384: error: `OAKNET_BASE' undeclared (first use in this function)
drivers/net/oaknet.c:398: error: `flags' undeclared (first use in this function)
drivers/net/oaknet.c:410: warning: implicit declaration of function `ei_isw'
drivers/net/oaknet.c:410: error: `E8390_DATA' undeclared (first use in this function)
drivers/net/oaknet.c:412: warning: implicit declaration of function `ei_ib'
drivers/net/oaknet.c:414: error: `bytes' undeclared (first use in this function)
drivers/net/oaknet.c:418: warning: implicit declaration of function `ei_isb'
drivers/net/oaknet.c: In function `oaknet_block_output':
drivers/net/oaknet.c:477: error: `E8390_BASE' undeclared (first use in this function)
drivers/net/oaknet.c:584: warning: implicit declaration of function `ei_osw'
drivers/net/oaknet.c:584: error: `E8390_DATA' undeclared (first use in this function)
drivers/net/oaknet.c:586: warning: implicit declaration of function `ei_osb'
drivers/net/oaknet.c: In function `oaknet_dma_error':
drivers/net/oaknet.c:661: error: structure has no member named `interrupt'
drivers/net/oaknet.c: In function `oaknet_cleanup_module':
drivers/net/oaknet.c:687: error: `OAKNET_IO_SIZE' undeclared (first use in this function)
drivers/net/oaknet.c:688: warning: passing arg 1 of iounmap' makes pointer from integer without a cast drivers/net/oaknet.c:689: error: oaknet_dev' undeclared (first use in this function)
make[2]: *** [drivers/net/oaknet.o] Error 1
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2

Can you help me?

Felix

#1 lore raw
Quoted 7 lines · Felix von Leitner

Envelope-to: [email protected]
Delivery-date: Thu, 12 Jun 2003 11:06:56 +0200
From: Felix von Leitner <[email protected]>
To: [email protected]
Subject: need help with oaknet.c
X-Mailing-List: [email protected]

Quoted 5 lines

Hi Grant,

I'm trying to cross compile a linux 2.5.70 kernel to ppc, and after removing a few obstacles I'm now stuck in oaknet.c, which bears your email address.

Did I miss something or did you forget something in To: or CC:?

Quoted 7 lines

Here are the compile errors. I have no idea where I can get an asm/board.h and a grep did not find the missing defines.

drivers/net/oaknet.c:24:23: asm/board.h: No such file or directory drivers/net/oaknet.c: In function `oaknet_init':
drivers/net/oaknet.c:102: error: `OAKNET_IO_BASE' undeclared (first use in this function)

include/asm-ppc/board.h got removed somewhere between 2.4.19 and 2.4.20 (and between 2.5.0 and 2.5.70, search yourself). Quick fix without thinking is to grab the one from 2.4.19 and add it to 2.5.70. If you want a working system, a bit thinking might help though. :)

Jörn

Signature · 4 lines
To announce that there must be no criticism of the President, or that we
are to stand by the President, right or wrong, is not only unpatriotic
and servile, but is morally treasonable to the American public.
-- Theodore Roosevelt, Kansas City Star, 1918