Regarding parallel port in MPC8245...

m madhuker mythri_madhuker at
Mon Aug 2 17:25:37 EST 2004

Hello all...
         Im working on MPC8245 board..
with timesys GPL-linux..

I want to transfer data(just glow a light) in serial
port or parallel port...

so i worte a simple program to glow a light in
parallel port as follows:

#include "asm/io.h"
        printf("Data sent out \n");

but when i compiled,it showing errors as follows:

[root at mail root]# powerpc-linux-gcc out.c
/tmp/ccED5Jlo.o: In function `main':
/tmp/ccED5Jlo.o(.text+0x20): undefined reference to
/tmp/ccED5Jlo.o(.text+0x20): relocation truncated to
fit: R_PPC_REL24 outb
collect2: ld returned 1 exit status
[root at mail root]#

the oub function  defination is in  "asm/io.h"..which
i included but also it is showing error undefined

in x86 it was executed perfectly...

Please can anybody help out from this problem....


** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list