[yocto] Web frameworks on embedded linux

Gary Thomas gary at mlbassoc.com
Fri Nov 14 09:18:25 PST 2014


On 2014-11-14 10:10, Edward Wingate wrote:
> On Fri, Nov 14, 2014 at 12:13 AM, Maciek Borzecki <maciej.borzecki at open-rnd.pl <mailto:maciej.borzecki at open-rnd.pl>> wrote:
>
>     On czw, 2014-11-13 at 23:12 -0800, Edward Wingate wrote:
>     > I've been trying to get an existing python flask application running
>     > on an embedded linux distro (Poky).  The web app was originally
>     > deployed on a Debian distro.  I need to move the application to a less
>     > heftier board and wanted to try a distro created by Yocto, rather than
>     > try to pare down Debian.
>     >
>     > I've been following the chain of dependencies for the web application
>     > and adding them to Yocto to try and get the app to work (nginx, uwsgi,
>     > python, pyserial, etc.), and hit a bump - Python's built-in logging
>     > and codecs modules are not provided by Yocto.  Maybe I can add them
>     > myself, or maybe I'll rip them out of the application, but I wanted to
>     > take a step back and see if maybe Python/Flask is not the best app
>     > framework to use in an embedded linux distro.
>     Have you installed python-modules pacakge? This package pulls in all
>     standard python modules as dependencies.
>
>
> No, I haven't.  I still have a lot to learn about Yocto and recipes.  I went ahead and pulled python-modules in and and got a lot further in making this app work.  Thanks, Maciek,
> for your help.
>
> The ramdisk image ballooned to 22MB though.  It's expected, but due to flash size constraints, Python may not be an option in this case.

You can always just bring in the packages you need (python-modules is a
pretty heavy hammer!)  Python is split into ~90 separate packages, each
with a [small] set of modules/functionality.

>     I've used Tornado to provide a REST-ful API for an Android application
>     and some basic web pages with status information and so on. Worked quite well.
>
>
> Do you remember what your final ramdisk image size was?
>
> I would still love to hear what web frameworks others here have used on embedded linux.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list