Install Python for MIPS

2 replies [Last post]
johnnygal
Offline
Joined: 17 May 2010

Hi,

 

I have just flashed my recently acquired livebox with the HAH firmware - great instructions guys.

 

I see that you have a download on your site for usr.tar.bz2 which includes the gcc compiler also as well as Python runtime. Is it just a case of extracting the files into the /opt directory?

 

How do you run a python script?

 

Thanks,

John

admin
Offline
Joined: 26 Oct 2009
The usr.tar.bz2 bundle is too

The usr.tar.bz2 bundle is too large to fit in the available flash memory.  What you need to do it format up on a USB memory stick with a filesystem and expand the contents into it.  I suggest you do this on a full linux distro.  Once you've got your tools on the memory stick you can mount it up locally.  Mounting a USB drive is covered on the wiki.

http://www.dbzoo.com/livebox/development#usb_filesystem_support

Alternatively you an expand these tool onto you linux computer and then just NFS mount the location onto your livebox.

http://www.dbzoo.com/livebox/development#nfs_mounting

If you are using the MIPS native GCC its also a good idea to create some additional swap space using a memory stick too.

You might find it easier to just cross-compile on your i386 machine into an NFS mounted directory and then run them directly on your livebox.  This is how I tend to do development.

How to run python...  Just like any other python build.

# python python_script.py

Brett

johnnygal
Offline
Joined: 17 May 2010
Cheers Brett.

Cheers Brett.

Hardware Info