dlopen causes the program to crash

2003-06-02 Thread kas turi

Hi
   I am running timesys linux 2.4.7-timesys-3.1.180 on
my 8260 board.  I have written a small program that
invokes dlopen and tries to access the shared library.
The program is linked with libdl-2.1.3.so.
The program is shown below:

#include dlfcn.h
#include stdio.h

main()
{
void *handle;

printf (Before dlopen\n);
handle = dlopen (/lib/libpthread.so.0,
RTLD_NOW);
printf (dlopen done\n);

dlclose(handle);
}

When I run on the target I get Illegal instruction
at dlopen even though libpthread.so.0 is present in
/lib directory.

Any idea why the dlopen causes the program to crash?


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





Disabling data cache

2003-04-01 Thread kas turi

Hi
  We have a custom made board and we are running 8250
processor. We are using DMA to transmit and receive
data between peripheral and memory. The data is
getting corrupted while transmitting and receiving. We
are suspecting it might be due to data cache being
enabled. So I disabled data cache in the routine
enable_cache in the file arch/ppc/kernel/head.S. I
rebuilt the kernel and when I run on my board it hangs
after printing Now booting the kernel. I would like
to know why the kernel is not booting up. I have
enclosed the console output:

Transfering control to linux (at address 00400040)
loaded at : 00400040   0040b340
relocated to : 0040 0040b300
board data at: 007FFE40 007FFEF8
relocated to: 0040B148  0040B200
image at: 0040B340  004B6026
avail ram:004B7000  0400

Linux/PPC load: console=ttyS0,9600
root=/dev/mtdblock/1
Uncompressing linux
Now booting the kernel

Also I would like to understand what is the use of ESE
bit in SIUMCR. Should this bit be always enabled
whenever data cache is enabled.

Any help is appreciated.

Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com

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





bash 2.05 not running on MPC8250 processor

2002-10-21 Thread kas turi

Hi
  We are having two custom boards. On one board we are
using 8260 processor. On this board I am able to run
the timesys kernel. I am able to run all the
applications on this board. On the second board we are
having 8250 processor. On this board the kernel boots
up and the init process tries to run bash but, bash
crashes. I am getting a floating point exception. I
downloaded the bash code and I compiled and linked
statically and made sure that there are no floating
point instructions. Even the new compiled doesnt run
on the 8250 board. Is anyone successfully able to run
bash on the 8250 board?.
 Thanks in advance.


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





BD allocation and IDMA driver question

2002-08-19 Thread kas turi

Hi
 I would like to know what is the difference between
m8260_cpm_hostalloc and m8260_dp_alloc. The FCC driver
uses the former API and the serial driver uses the
latter API. When I try to use m8260_cpm_hostalloc to
allocate buffer descriptor for the SPI driver the
timesys 2.4 kernel hangs. When I use m8260_dp_alloc
the SPI driver works.
  Has anybody developed a IDMA driver for 8260 for 2.4
kernel?
  Thanks in advance.


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