Raja,
We ported Python to a Davinci board few months ago by following this procedure:

* Instruction to get Python 2.5 in Target 
1. google it and download the compressed file under NFS for target (i.e. 
/usr/workdir/filesys/usr/local/)

* Instruction to do Cross-Compiling of Python 
1. in Python top directory inside NFS workarea (i.e. 
/usr/workdir/filesys/usr/local/Python-x.x.x/), run 'sudo ./configure'

2. in 'sudo vim Makefile.pre', do:
CC=             arm_v5t_le-gcc -pthread
CXX=            arm_v5t_le-gcc -pthread

3. run 'sudo make'

4. You may overwrite '/usr/bin/python' by copying this newly created 'python' .

5. make sure it was compiled for ARM. See following:
[:/tftpboot/target-reduced/yan]file Python-2.5.1/python
Python-2.5.1/python: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for 
GNU/Linux 2.4.17, dynamically linked 
(uses shared libs), not stripped

6. check if Python work on target.
i.e. .../Python-2.5.1/python
Python 2.5.1 (r251:54863, Feb 20 2008, 17:23:01)
[GCC 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a=2
>>> b=3
>>> c=a+b
>>> print c
5
>>>


Regards,
Carlos.


------------------------------

Message: 2
Date: Fri, 26 Sep 2008 15:41:42 +0530
From: "rajasubramaniam" <[EMAIL PROTECTED]>
Subject: Python support for Davinci...
To: "'Naveena M.'" <[EMAIL PROTECTED]>, "'Kamoolkar, Mugdha'"
        <[EMAIL PROTECTED]>,    <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

Hi,
 
I need to port python to davinci platform. Could you please give me some
details of how give python support for davinci. Finally i need to run
python scripts in my davinci DM6446 Board.
 
Regards,
Raja

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to