2 Replies Latest reply on Mar 2, 2016 10:18 AM by BMEJ

    Difference between custom image and just installed packages

    BMEJ

      I'm still in the midst of wrapping this whole concept around my head so any advice is appreciated.  Here are a few conceptual questions:

       

      It took me a while to figure out that Yocto is NOT a distribution, I dont really think there is a an "official" distribution for the Intel Galileo, but I'm contemplating building my own so any tips for that would be appreciated (what skill level is required?). 

       

       

                          1.  Whats the difference between building a package from your own custom image and simply installing a package on top? 

                          for example, I have installed several packages through wget package, tar, configure, make, make install and they sometimes work fine.

                          What packages really require rebuilding a custom Yocto image?  I might do this process just for experience.

       

      My main reason for asking is that I want to enable lighttpd cgi functionality which hasn't functioned (website goes down). I'm not sure if rebuilding a custom image with it is the way to go, or if i use git and install lighttpd right on top of what I have.   Another option im considering is using git to simply download and unpack, install apache2.  Is there any reason why I can't do that?

       

      For background, my experience has been on raspberry pi and typing "sudo apt-get ..." and done. 

       

      Thanks for any words

        • 1. Re: Difference between custom image and just installed packages
          Intel_Peter

          Hello BMEJ,

           

          First, I would like to quote the Yocto Project's website, “Yocto is not an embedded Linux distribution –it creates a custom one for you”. As you mentioned Yocto is not an OS designed specifically for Galileo but instead it takes all the kernel modules, packages, drivers, etc that Linux needs to work on a specific board/platform.

           

          The main difference between packages that need to compile and install on the Yocto image and those that can be installed on the image, like you mentioned “on top”, is that the former do bigger modifications on the OS, like kernel changes, etc. Being that said, any package can be built on the image but not all packages can be installed “on top”, for example certain drivers have to be built otherwise they won’t work.

           

          How did you install lighttpd? Did you download it from a repo? Or, did you built it from source? Basically you should be able to install pretty much every package as long as it is compatible with the Galileo’s kernel and you have all the dependencies, however sometimes packages have issues working on Galileo. In those cases it’s better to contact the author of those packages to see if they can help you.

           

          If you would like to build the Galileo’s image, you have two options. The first one is, using Quark's BSP 0.7.5 which is a little bit old but made specifically for Galileo. The second option is to use Quark's BSP 1.2.1 which is an updated version of the BSP with some fixes and features not present on version 0.7.5, however I must mention that version 1.2.1 is not Galileo specific; it is Galileo compatible but not specific.

           

          Peter.

          • 2. Re: Difference between custom image and just installed packages
            BMEJ

            Intel_Peter wrote:

             

             

             

            How did you install lighttpd? Did you download it from a repo? Or, did you built it from source? Basically you should be able to install pretty much every package as long as it is compatible with the Galileo’s kernel and you have all the dependencies, however sometimes packages have issues working on Galileo. In those cases it’s better to contact the author of those packages to see if they can help you.

             

             

             

            Thanks Peter for the excellent explanation.  The lighttpd already came installed from the image i used when i first got the galileo going (the larger image on the galileo downloads page).

             

            But, anytime I edit the /etc/lighttpd.conf file by enabling "mod_cgi" my server goes down immediately.  I dont know what the actual cause is, but I found this thread that seems to indicate it came on the "intel image" not functioning.  How to support cgi on lighttpd which basically states that cgi must be enabled in the "recipe".

            1 of 1 people found this helpful