Difference between pages "Debian" and "Compiling Angstrom for pico-SAM9G45"
(Difference between pages)
Jump to navigation
Jump to search
(Created page with "=Prep= 1. Get two SD cards (A USB drive should also work with the Angstrom kernel, I haven't tested)<br> 2. Install the precompiled Angstrom image on to one of the SD cards an...") |
(Created page with "<h1>Compile using the new meta-angstrom distribution based on meta-openembedded branch (new branch)</h1> git clone git://github.com/Angstrom-distribution/setup-scripts.git -...") |
||
Line 1: | Line 1: | ||
− | + | <h1>Compile using the new meta-angstrom distribution based on meta-openembedded branch (new branch)</h1> | |
− | + | git clone git://github.com/Angstrom-distribution/setup-scripts.git -b angstrom-v2012.05-yocto1.2 | |
− | 2. | + | cd setup-scripts/sources |
− | + | git clone git://gitorious.org/picopc-tools/meta-picosam9.git | |
+ | cd .. | ||
+ | echo 'EXTRALAYERS="${TOPDIR}/sources/meta-picosam9"' >> conf/bblayers.conf | ||
+ | MACHINE=picosam9 ./oebb.sh config picosam9 | ||
− | + | <h1> Start building</h1> | |
− | + | If you want to build only the kernel: | |
− | = | + | MACHINE=picosam9 ./oebb.sh bitbake virtual/kernel |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | or if you want a small base image: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | MACHINE=picosam9 ./oebb.sh bitbake console-image | |
− | |||
− | |||
− | + | <h1>Compile using the classic angstrom distribution based on openembedded.dev branch (old branch)</h1> | |
− | + | This is obsolete and kept for reference. All development and maintenance are done on the new meta-angstrom. | |
− | + | git clone git://gitorious.org/picopc-tools/picopc-angstrom-setup.git | |
+ | cd picopc-angstrom-setup | ||
+ | MACHINE=picosam9 ./oebb.sh update | ||
+ | MACHINE=picosam9 ./oebb.sh config picosam9 | ||
− | + | The script will also download and install picosam9 recipes for angstrom from here: [https://gitorious.org/picopc-tools/picopc-angstrom https://gitorious.org/picopc-tools/picopc-angstrom] | |
− | |||
− | + | To get the same build as the binary ones provided by mini-box.com you can use (note: this recipes only work on old openembedded.dev branch NOT the new meta-angstrom): | |
+ | MACHINE=picosam9 ./oebb.sh bitbake picosam9-gpe-image | ||
+ | MACHINE=picosam9 ./oebb.sh bitbake picosam9-console-image | ||
− | + | <h2>Notes</h2> | |
+ | * The build process builds kernel and a rootfs, you will still need to copy those file to a microSD respecting the info here: http://arm.mini-box.com/index.php?title=Main_Page#Building_an_image_from_scratch | ||
− | + | * The BOOT.BIN bootstrap is not built by angstrom. You can get a binary from:http://resources.mini-box.com/online/pico-SAM9G45/android/BOOT.BIN or [http://arm.mini-box.com/index.php?title=Bootstrap compile] your own version. | |
− | + | * Latest version that our '''classic''' angstrom build (openembedded.dev) has been tested is: ''tested_2011-01-13''. Other versions might have a different behavior. You can get this version by doing: | |
− | + | cd sources/openembedded | |
− | + | git checkout tested_2011-01-13 -b tested_2011-01-13 | |
− | |||
− | |||
− | |||
+ | * The version of bitbake used is: | ||
− | + | cd sources/bitbake | |
+ | git checkout 1.12 | ||
− | + | * All above commands from step #2 downward must be issued from the picopc-angstrom-setup/ folder. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 06:35, 20 October 2020
Compile using the new meta-angstrom distribution based on meta-openembedded branch (new branch)
git clone git://github.com/Angstrom-distribution/setup-scripts.git -b angstrom-v2012.05-yocto1.2 cd setup-scripts/sources git clone git://gitorious.org/picopc-tools/meta-picosam9.git cd .. echo 'EXTRALAYERS="${TOPDIR}/sources/meta-picosam9"' >> conf/bblayers.conf MACHINE=picosam9 ./oebb.sh config picosam9
Start building
If you want to build only the kernel:
MACHINE=picosam9 ./oebb.sh bitbake virtual/kernel
or if you want a small base image:
MACHINE=picosam9 ./oebb.sh bitbake console-image
Compile using the classic angstrom distribution based on openembedded.dev branch (old branch)
This is obsolete and kept for reference. All development and maintenance are done on the new meta-angstrom.
git clone git://gitorious.org/picopc-tools/picopc-angstrom-setup.git cd picopc-angstrom-setup MACHINE=picosam9 ./oebb.sh update MACHINE=picosam9 ./oebb.sh config picosam9
The script will also download and install picosam9 recipes for angstrom from here: https://gitorious.org/picopc-tools/picopc-angstrom
To get the same build as the binary ones provided by mini-box.com you can use (note: this recipes only work on old openembedded.dev branch NOT the new meta-angstrom):
MACHINE=picosam9 ./oebb.sh bitbake picosam9-gpe-image MACHINE=picosam9 ./oebb.sh bitbake picosam9-console-image
Notes
- The build process builds kernel and a rootfs, you will still need to copy those file to a microSD respecting the info here: http://arm.mini-box.com/index.php?title=Main_Page#Building_an_image_from_scratch
- The BOOT.BIN bootstrap is not built by angstrom. You can get a binary from:http://resources.mini-box.com/online/pico-SAM9G45/android/BOOT.BIN or compile your own version.
- Latest version that our classic angstrom build (openembedded.dev) has been tested is: tested_2011-01-13. Other versions might have a different behavior. You can get this version by doing:
cd sources/openembedded git checkout tested_2011-01-13 -b tested_2011-01-13
- The version of bitbake used is:
cd sources/bitbake git checkout 1.12
- All above commands from step #2 downward must be issued from the picopc-angstrom-setup/ folder.