www.flickr.com
tres frijoles' photos More of tres frijoles' photos
You are here: tearsoffire.org > Projects Web > ElectronicsProjects > BlackfinProjects > BlackfinOne > BlackfinPythonTwoFour r4 - 20 Jul 2007 - 03:56 - ChristopherPepe


Start of topic | Skip to actions

BlackfinPythonTwoFour



about

Some people love complexity, especially if they see a chance to make a living out of it. I do not. Wouldn't use Python if I did.

Note that python 2.4.4 is now included in the 2007 releases of the uClinux-dist source from ADI

I can't begin to describe my love affair with python... Rest assured its my favorite language for any use. Servers, P2P application, web development, embedded code, interfacing to hardware, parsing files... There is no end to what python can do and its oh so easy.

This document describes the sets you need to take to get python 2.4 running on the blackfin. I am running it on my BlackfinOne and love it.

howto

Steps list:

  1. Uncompress python2.4.tar.bz2.* in user/blackfin-apps directory by
     > cat python2.4.tar.bz2.* | tar xjv 
  2. Modify user/blackfin-apps/Makefile by adding line
     dir_$(CONFIG_USER_BLACKFIN_PYTHON_NEW)           += python2.4 
  3. Modify config/config-blackfin.in according to the config-blackfin.in by adding
 
bool    'Python 2.4'                                    CONFIG_USER_BLACKFIN_PYTHON_NEW
if [ "$CONFIG_USER_BLACKFIN_PYTHON_NEW" = "y" ]; then
       bool    'Not include documentation in optimized code'                        CONFIG_USER_BLACKFIN_PYTHON_OPTIMIZE_NO_DOC
       bool    'Generate a zip file that include the library'                                CONFIG_USER_BLACKFIN_PYTHON_LIB_ZIP
       if [ "$CONFIG_USER_BLACKFIN_PYTHON_LIB_ZIP" = "y" ]; then
               bool 'Use optimized object code'                                                     CONFIG_USER_BLACKFIN_PYTHON_OPTIMIZE_CODE
               bool 'Use a custom list of file in the library'                                    CONFIG_USER_BLACKFIN_PYTHON_CUSTOM_ZIP
       fi
       bool    'Include python lib sources in romfs (large fs is needed)'       CONFIG_USER_BLACKFIN_PYTHON_LIB_SRC
       bool    'Include python lib objects in romfs (large fs is needed)'        CONFIG_USER_BLACKFIN_PYTHON_LIB_OBJ
       int     'Compile with set stack size option(empty leave default)'         CONFIG_USER_BLACKFIN_PYTHON_SET_STACK   49152
       bool    'Compile with check stack limit option'    CONFIG_USER_BLACKFIN_PYTHON_CHECK_STACK_LIMIT
fi 

  1. touch config/config.in in order to force the building of config/config.tk (there is a missing dependence in config/Makefile)

  • Enable python in blackfin-apps by xconfig (or menuconfig as you prefer) and try it.

Know issues:

  1. Only static library support
  2. Lot of error messages .... (some modules are compiled as shared but without the true compiler flags)
  3. Recompiling all py library whithout checking if it really needed.

Have fun, Good Luck!

the source

the files are kinda big and i don't have a good place to put them yet. email me and i'll send them to you in the meantime.

antics is the name, lumpypear.com is the domain

-- ChristopherPepe - 01 Mar 2007

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding tearsoffire.org? Send feedback