From: James Petterson <jpetterson@PARKS.com.br>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: i can't use the function in kernel??
Date: Mon, 16 Jul 2001 10:10:59 -0300 [thread overview]
Message-ID: <01071610105900.01193@james.parks.com.br> (raw)
In-Reply-To: <3B52C152.F5FB58B7@genetel.co.kr>
If you're compiling a module, your output file should be 'network.o':
ppc_8xx-gcc -o network.o network.c
James
On Monday 16 July 2001 07:26, hychon wrote:
> 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/
next prev parent reply other threads:[~2001-07-16 13:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` James Petterson [this message]
2001-07-16 15:07 ` i can't use the function in kernel?? Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=01071610105900.01193@james.parks.com.br \
--to=jpetterson@parks.com.br \
--cc=linuxppc-embedded@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).