linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* i can't use the function in kernel??
@ 2001-07-16 10:26 hychon
  2001-07-16 12:43 ` PCMCIA Nokia Cardphone 2.0 for MPC823 Nguyen Trung Thanh
  2001-07-16 13:10 ` i can't use the function in kernel?? James Petterson
  0 siblings, 2 replies; 7+ messages in thread
From: hychon @ 2001-07-16 10:26 UTC (permalink / raw)
  To: linuxppc-embedded


hi!

I write a  sample network device driver based on MPC860T
but  no experience  any device driver.
I reference  '/kernel/arch/ppc/8xx_io/enet.c' file  and I wirte a
program.

when I compile (ppc_8xx-gcc -o network network.c ) , occur error with
following message

============== -error ============================================
~~/network.c : undefined reference to 'printk'
 ~~/network.c : relocation truncation to fit : R_PPC_REL24 printk

~/network.c : undefined reference to 'kmalloc'
 ~~/network.c : relocation truncation to fit : R_PPC_REL24 kmalloc
.........

collect2: ld returned 1 exit status
make: ***[all] Error 1

==============================================================

 I can't use 'printk()' , kmalloc() etc... function .

I include linux/kernel.h . linux/fs.h , linux/slab.h ...etc ( header
files of  need by function)
(reference  the book 'linux device driver ' by ALESSANDRO RUBIN )

why i don't use  those function?


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-07-18 16:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-16 10:26 i can't use the function in kernel?? hychon
2001-07-16 12:43 ` PCMCIA Nokia Cardphone 2.0 for MPC823 Nguyen Trung Thanh
2001-07-16 17:12   ` Matthew Locke
2001-07-17  7:38     ` Nguyen Trung Thanh
2001-07-18 16:55       ` Matthew Locke
2001-07-16 13:10 ` i can't use the function in kernel?? James Petterson
2001-07-16 15:07   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).