The notes that were written after succeeding to cross compile Python 2.7.10 and 3.4.3 for MIPSel OpenWrt via uClibc.

I’m not gonna write a very detailed guide. I post my build script on the GitHub, please leave a comment if you have any question.

Build log (3.4.3)

Run test cases on the device (3.4.3)

bin/python3 lib/python3.4/test/


  • 2.7.10 is 100% passed
  • 3.4.3’s xml.parsers.expat module will cause segmentation fault.


  1. Cross Compiling Python for Embedded Linux

Thanks to

Cheng Wig, he showed me the positive attitude at work.