* Re: Problem in Cross compiling Pwlib for LINUX
[not found] <200401300952.AA178585798@actinium.org>
@ 2004-01-30 8:43 ` Ale ppc
2004-01-30 10:22 ` question on PPC performance John Zhou
0 siblings, 1 reply; 4+ messages in thread
From: Ale ppc @ 2004-01-30 8:43 UTC (permalink / raw)
To: arunkumar; +Cc: linuxppc-embedded
Hi Arunkumar,
I have changed ptbuildopts.mak in this way :
ENDLDLIBS += -lpthread -lcrypto -lresolv
HAS_OPENSSL =
HAS_OPENLDAP =
HAS_EXPAT =
HAS_SDL =
TRY_1394AVC =
TRY_1394DC =
and in ptbuildopts.h undefine :
#define P_LDAP 1
#define P_EXPAT 1
#define P_SSL 1
#define P_USE_SYSTEM_SWAB 1
I have erased the default library lber, dap, dap_r, ssl, expat, dl because I
did not need of them.
In fact then I have well cross-compiled openH323 src file.
To test my board I have used the callgen323 (v 1.2.6) application program
that came from openh323 sourceforge site.
I don't test other application prg.
Because I work fine with Motorola MPC82xx and ARM7TDMI tecnology, and we are
interested to port H323 on uClinux for ARM7 too. But we have found several
problems using siap-uClinx-xx cross-compile tool. If you know about related
problem can give me a search path to solve the question?
Regards,
Alessandro
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* question on PPC performance
2004-01-30 8:43 ` Problem in Cross compiling Pwlib for LINUX Ale ppc
@ 2004-01-30 10:22 ` John Zhou
2004-01-30 11:32 ` John Zhou
0 siblings, 1 reply; 4+ messages in thread
From: John Zhou @ 2004-01-30 10:22 UTC (permalink / raw)
To: 'linuxppc-embedded'
Dear all,
I have an question on PPC performance:
I have linux running based on mpc8250 with 200/166/66 clock configuration. But, I found that every CPU instruction used about 5 ns when accessing SDRAM, otherwise, every CPU instruction used about 15 ns when accessing other devices such as port A/B/C/D, immr, etc, except accessing SDRAM.
Thanks any help!
John
=================================================
The function I used is:
void performance_test(void)
{
unsigned long i, d1, d2;
static unsigned long kkk;
unsigned short time;
volatile unsigned long* portC = ( volatile unsigned long*)0xF0010D50;
volatile unsigned long * tmp = &kkk;
*(volatile unsigned char*)0xF0010D80 &= ~0xB0;
*(volatile unsigned short*)0xF0010D92 = 0x0002;
*(volatile unsigned char*)0xF0010D80 |= 0x10;
*(volatile unsigned long*)0xF0010D44 &= ~0x00000002;
d1 = *(volatile unsigned long*)0xF0010D50;
d1 &= ~0x00000003;
d2 = d1 | 0x00000002;
d1 |= 0x00000001;
*(volatile unsigned short*)0xF0010D9E = 0;
for (i=0; i<1000; i++)
{
*portC = d1;
*portC = d2;
}
time = *(volatile unsigned short*)0xF0010D9E;
printk ("#test2: 2 access loop 1000 times use %dns\r\n", time*15);
*(volatile unsigned short*)0xF0010D9E = 0;
for (i=0; i<1000; i++)
{
*tmp = d1;
*tmp = d2;
}
time = *(volatile unsigned short*)0xF0010D9E;
printk ("#test3: 2 access loop 1000 times use %dns\r\n", time*15);
}
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: question on PPC performance
2004-01-30 10:22 ` question on PPC performance John Zhou
@ 2004-01-30 11:32 ` John Zhou
0 siblings, 0 replies; 4+ messages in thread
From: John Zhou @ 2004-01-30 11:32 UTC (permalink / raw)
To: 'linuxppc-embedded'
my questions is:
why is it 15 ns when accessing other devices such as port A/B/C/D, immr, etc, except accessing SDRAM, but about 5 ns when accessing SDRAM?
Thanks in advance!
John
-----Original Message-----
From: owner-linuxppc-embedded@lists.linuxppc.org
[mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of John
Zhou
Sent: Friday, January 30, 2004 6:22 PM
To: 'linuxppc-embedded'
Subject: question on PPC performance
Dear all,
I have an question on PPC performance:
I have linux running based on mpc8250 with 200/166/66 clock configuration. But, I found that every CPU instruction used about 5 ns when accessing SDRAM, otherwise, every CPU instruction used about 15 ns when accessing other devices such as port A/B/C/D, immr, etc, except accessing SDRAM.
Thanks any help!
John
=================================================
The function I used is:
void performance_test(void)
{
unsigned long i, d1, d2;
static unsigned long kkk;
unsigned short time;
volatile unsigned long* portC = ( volatile unsigned long*)0xF0010D50;
volatile unsigned long * tmp = &kkk;
*(volatile unsigned char*)0xF0010D80 &= ~0xB0;
*(volatile unsigned short*)0xF0010D92 = 0x0002;
*(volatile unsigned char*)0xF0010D80 |= 0x10;
*(volatile unsigned long*)0xF0010D44 &= ~0x00000002;
d1 = *(volatile unsigned long*)0xF0010D50;
d1 &= ~0x00000003;
d2 = d1 | 0x00000002;
d1 |= 0x00000001;
*(volatile unsigned short*)0xF0010D9E = 0;
for (i=0; i<1000; i++)
{
*portC = d1;
*portC = d2;
}
time = *(volatile unsigned short*)0xF0010D9E;
printk ("#test2: 2 access loop 1000 times use %dns\r\n", time*15);
*(volatile unsigned short*)0xF0010D9E = 0;
for (i=0; i<1000; i++)
{
*tmp = d1;
*tmp = d2;
}
time = *(volatile unsigned short*)0xF0010D9E;
printk ("#test3: 2 access loop 1000 times use %dns\r\n", time*15);
}
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Problem in Cross compiling Pwlib for LINUX
@ 2004-02-05 15:59 Antonello Lombardinilo
0 siblings, 0 replies; 4+ messages in thread
From: Antonello Lombardinilo @ 2004-02-05 15:59 UTC (permalink / raw)
To: linuxppc-embedded
Hi all,
I work on embedded system based on MPC860L. I cross compiled PWLIB 1.5.2 in
the
following way:
1) Edit file ~/pwlib/configure, commenting the sentences => "cannot check"
2) $ ./configure --host=ppc-linux --target=ppc-linux
3) Edit file ~/pwlib/include/ptbuildopts.h and undefine:
#undefine P_LDAP
#undefine P_EXPAT
//#define P_SSL 1
//#define USE_SYSTEM_SWAB 1
4) Edit file ~/pwlib/ptbuildopts.mak:
CC=ppc-linux-gcc
CPLUS=ppc-linux-g++
change ENDLIBS flag in this way:
ENDLIBS += -lpthread -lcrypto -lresolv
and setting flag as following:
HAS_OPENSSL =
HAS_OPENLDAP =
HAS_EXPAT =
HAS_SDL =
TRY_1394AVC =
TRY_1394DC =
5) Alter ~/pwlib/src/ptlib/unix/Makefile this:
repalce:
VIDEO_CAPTURE_SOURCE = video4linux.cxx
with:
VIDEO_CAPTURE_SOURCE = dummyvideo.cxx
6) $ make optnoshared
I then compiled OpenH323 in the following way:
1) Edit file ~/pwlib/configure, commenting the sentences => "cannot check"
2) copy file for asnparser for x86 patform in PWLIB directory
3) add LDFLAGS += -L/opt/eldk/ppc_8xx/usr/lib/gcc-lib/ppc-linux/2.95.4/
to file ~/opnh323/openh323u.mak
3) make optnoshared
The problem is that when I lanch example application
~/opnh323/samples/simple/obj_linux_ppc_r/simph323
a segnemtation fault verified.
Do we have any suggestion?
Do we have cross compiled in correct way? (I'am using eldk from denx)
Could anyone explain me how I have to cross compile?
Thanks
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-02-05 15:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200401300952.AA178585798@actinium.org>
2004-01-30 8:43 ` Problem in Cross compiling Pwlib for LINUX Ale ppc
2004-01-30 10:22 ` question on PPC performance John Zhou
2004-01-30 11:32 ` John Zhou
2004-02-05 15:59 Problem in Cross compiling Pwlib for LINUX Antonello Lombardinilo
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).