Difference between revisions of "LeapFrog Explorers: Install OE and BitBake"

From eLinux.org
Jump to: navigation, search
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
How to install OpenEmbedded [http://wiki.openembedded.net/index.php/Main_Page] and bitbake [http://bitbake.berlios.de/manual/] for the leapfrog leapster Explorer packages
+
== Summary ==
 +
OpenEmbedded and BitBake are a pair of powerful cross-compiling tools, setup correctly to do a complete build of OE packages should be as simple as running 'bitbake image' at the command line. This will guide you through the install of [http://wiki.openembedded.net/index.php/Main_Page OpenEmbedded] and [http://bitbake.berlios.de/manual/ BitBake] for the Leapfrog Explorers [[Leapster Explorer]] and [[LeapPad Explorer]] packages.
  
OpenEmbedded and bitbake are a pair of powerful cross-compiling tools, setup correctly to do a complete build of OE packages should be as simple as running 'bitbake image' at the command line.
+
== Software Needed ==
 +
[[LeapFrog_Pollux_Platform:_Source_Code| LF-OE and LF-Linux Source Code Packages]]
 +
* ''' LF-OE<Version>.tar.gz ''' - This contains the leapfrog/lf1000 configuration files.
 +
* ''' LF-Linux<Version>.tar.gz ''' - Contains the pre-built OE package binaries, can be used instead of building your own.
 +
== Installing Dependencies ==
 +
As far as I can tell, OE/Bitbake will build everything (linux + all OE packages). This tutorial is a work in progress, if you mess your system up don't blame me.  It has been written through doing the installation on ubuntu 10.04 LTS. I have gathered information from the internet on how to install openembedded and bitbake.
  
If you look in the LF-Linux-6905-20100610-0915.tar.gz archive you will find a folder packages/oe-bin, in here you will find all the binaries for pre-built OE packages, if that's all you need then use those and don't setup OE/bitbake.
+
Open a command prompt and enter the following, enter password when prompted:
 +
$ sudo apt-get install autoconf automake gettext libboost-dev libz-dev g++ libxml2-utils xmlto python-psyco
  
As far as I can tell, OE/Bitbake will build everything (linux + all OE packages).
+
This is all one line.
 +
$ sudo aptitude install sed wget cvs subversion git-core coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils 
 +
  gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ desktop-file-utils'''
  
this tutorial is a work in progress, if you mess your system up don't blame me.  It has been written through doing the installation on ubuntu 10.04 LTS.  I have gathered information from the internet on how to install openembedded and bitbake. 
+
Create your directories, this is where openembedded will be installed/run from, change /stuff/ to a directory path of your choice:
  
Needed Files:
+
$ sudo mkdir -p /stuff/build/conf
 +
$ sudo mkdir -p /stuff/sources/
 +
$ sudo chmod -Rf 777 /stuff/
 +
$ cd /stuff/
  
[http://files.poxlib.org/LF-OE-251-20100614-0852.tar.bz2 LF-OE-251-20100614-0852.tar.bz2 320MB]
 
  
If you take a look at the leapfrog sources you will find LF-OE-251-20100614-0852.tar.bz2 this contains the leapfrog/lf1000 configuration files.
 
  
----
+
== Building OE ==
 +
Download and Install BitBake, enter the following commands:
  
1. open a command prompt and enter the following, enter password when prompted:
+
$ wget http://download.berlios.de/bitbake/bitbake-1.8.18.tar.gz
 +
$ tar -xvzf bitbake-1.8.18.tar.gz
 +
$ mv bitbake-1.8.18 bitbake
  
'''sudo apt-get install autoconf automake gettext libboost-dev libz-dev g++ libxml2-utils xmlto python-psyco'''
+
Download openembedded from git repository, enter the following commands, the git commands may take some time depending on the speed of your internet connection.
  
2. in the same command prompt, again, enter the following (its all one single command)
+
$ git clone http://repo.or.cz/r/openembedded.git
 +
$ cd openembedded
 +
$ git pull
  
'''sudo aptitude install sed wget cvs subversion git-core coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ desktop-file-utils'''
+
Copy files from the LeapFrog OE folders to our installation of OE:
 
+
3. enter the following 4 lines in the same command prompt:
+
 
+
'''sudo mkdir -p /stuff/build/conf'''
+
 
+
'''sudo mkdir -p /stuff/sources/'''
+
 
+
'''sudo chmod -Rf 777 /stuff/'''
+
 
+
'''cd /stuff/'''
+
 
+
This is where openembedded will be installed/run from, change /stuff/ to a directory path of your choice
+
 
+
4. Download and Install bitbake, enter the following commands:
+
 
+
'''wget http://download.berlios.de/bitbake/bitbake-1.8.18.tar.gz'''
+
 
+
'''tar -xvzf bitbake-1.8.18.tar.gz'''
+
 
+
'''mv bitbake-1.8.18 bitbake'''
+
 
+
5. Download openembedded from git repository, enter the following commands, the git commands may take some time depending on the speed of your internet connection.
+
 
+
'''git clone http://repo.or.cz/r/openembedded.git'''
+
 
+
'''cd openembedded'''
+
 
+
'''git pull'''
+
 
+
6. Copy files from the leapfrog OE folders to our installation of OE:
+
  
 
copy the /build, /build-lf1000, /packages and /sources folder from the /oe folder to /stuff.
 
copy the /build, /build-lf1000, /packages and /sources folder from the /oe folder to /stuff.
  
copy the 2 files, e-o and setup-env.sh to /stuff, edit both files to reflect /stuff as the OE_HOME dir
+
copy the 2 files, e-o and setup-env.sh to /stuff, edit both files to reflect /stuff as the OE_HOME directory.
  
That's it as far as installation of OE is concerned, not entirely sure what else needs to be setup. I suggest looking through the OE/Bitbake manuals and any lf1000 related .conf files for more clues.  
+
That's it as far as installation of OE is concerned, not entirely sure what else needs to be setup. I suggest looking through the OE/Bitbake manuals and any lf1000 related .conf files for more clues.  
  
----
+
More than likely going to need some environment vars set before attempting to compile anything with BitBake.
  
 +
== To Do ==
 
I think we now need to get the kernel sources in the right place too and set project_path?
 
I think we now need to get the kernel sources in the right place too and set project_path?
 
copy the contents of LF-Linux-6905-20100610-0915 to /stuff merging any files/folders if prompted?
 
copy the contents of LF-Linux-6905-20100610-0915 to /stuff merging any files/folders if prompted?
 +
 +
[[Category:Leapster Explorer]]
 +
[[Category:LeapPad Explorer]]
 +
[[Category:LeapFrog Pollux Platform]]

Latest revision as of 23:06, 23 July 2011

Summary

OpenEmbedded and BitBake are a pair of powerful cross-compiling tools, setup correctly to do a complete build of OE packages should be as simple as running 'bitbake image' at the command line. This will guide you through the install of OpenEmbedded and BitBake for the Leapfrog Explorers Leapster Explorer and LeapPad Explorer packages.

Software Needed

LF-OE and LF-Linux Source Code Packages

  • LF-OE<Version>.tar.gz - This contains the leapfrog/lf1000 configuration files.
  • LF-Linux<Version>.tar.gz - Contains the pre-built OE package binaries, can be used instead of building your own.

Installing Dependencies

As far as I can tell, OE/Bitbake will build everything (linux + all OE packages). This tutorial is a work in progress, if you mess your system up don't blame me. It has been written through doing the installation on ubuntu 10.04 LTS. I have gathered information from the internet on how to install openembedded and bitbake.

Open a command prompt and enter the following, enter password when prompted:

$ sudo apt-get install autoconf automake gettext libboost-dev libz-dev g++ libxml2-utils xmlto python-psyco

This is all one line.

$ sudo aptitude install sed wget cvs subversion git-core coreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils   
  gawk python-pysqlite2 diffstat help2man make gcc build-essential g++ desktop-file-utils

Create your directories, this is where openembedded will be installed/run from, change /stuff/ to a directory path of your choice:

$ sudo mkdir -p /stuff/build/conf
$ sudo mkdir -p /stuff/sources/
$ sudo chmod -Rf 777 /stuff/
$ cd /stuff/


Building OE

Download and Install BitBake, enter the following commands:

$ wget http://download.berlios.de/bitbake/bitbake-1.8.18.tar.gz
$ tar -xvzf bitbake-1.8.18.tar.gz
$ mv bitbake-1.8.18 bitbake

Download openembedded from git repository, enter the following commands, the git commands may take some time depending on the speed of your internet connection.

$ git clone http://repo.or.cz/r/openembedded.git
$ cd openembedded
$ git pull

Copy files from the LeapFrog OE folders to our installation of OE:

copy the /build, /build-lf1000, /packages and /sources folder from the /oe folder to /stuff.

copy the 2 files, e-o and setup-env.sh to /stuff, edit both files to reflect /stuff as the OE_HOME directory.

That's it as far as installation of OE is concerned, not entirely sure what else needs to be setup. I suggest looking through the OE/Bitbake manuals and any lf1000 related .conf files for more clues.

More than likely going to need some environment vars set before attempting to compile anything with BitBake.

To Do

I think we now need to get the kernel sources in the right place too and set project_path? copy the contents of LF-Linux-6905-20100610-0915 to /stuff merging any files/folders if prompted?