This shows you the differences between two versions of the page.
tutorials:cb2:development:building_your_own_android_image [2014/09/25 22:40] parker [Building] |
tutorials:cb2:development:building_your_own_android_image [2015/03/10 14:09] (current) parker [Important to Know] |
||
---|---|---|---|
Line 28: | Line 28: | ||
$ cd lichee/linux-3.4 | $ cd lichee/linux-3.4 | ||
$ make clean | $ make clean | ||
- | $ cp arch/arm/configs/cubieboard2_config .config (if you want to complie cubietruck, please copy cubietruck_config.) | + | $ cp arch/arm/configs/cubieboard2_config .config //note:if you want to complie cubietruck, please copy cubietruck_config. |
$ cd .. | $ cd .. | ||
$ ./build.sh -p sun7i_android | $ ./build.sh -p sun7i_android | ||
- | $ cd ../android42 | + | $ cd ../android |
$ source build/envsetup.sh | $ source build/envsetup.sh | ||
- | $ lunch (select sugar-cubieboard2 or sugar-cubietruck) | + | $ lunch //note:select sugar-cubieboard2 or sugar-cubietruck |
$ extract-bsp | $ extract-bsp | ||
- | $ make -j4 | + | $ make -j8 |
</code> | </code> | ||
Line 42: | Line 42: | ||
$ pack | $ pack | ||
</code> | </code> | ||
- | =====Important to Know===== | ||
- | The images generated by the SDK are not suitable for every OS platform's Livesuit. Because the binary images (fed_nand.axf) from the SDK are buggy, we must choose a target platform of fed-nand.axf before running the pack command. | ||
- | *Making a livesuit image for Windows | ||
- | Replace lichee/tools/pack/chips/sun7i/eFex/usb/fed_nand.axf with lichee/tools/pack/chips/sun7i/eFex/usb/fed_nand-windows.axf, then run | ||
- | <code> | ||
- | #remember to source & lunch cubieboard2, so that the "pack" command will work | ||
- | $ pack | ||
- | </code> | ||
- | *Making a livesuit image for Linux | ||
- | |||
- | Replace lichee/tools/pack/chips/sun7i/eFex/usb/fed_nand.axf with lichee/tools/pack/chips/sun7i/eFex/usb/fed_nand-linux.axf, then run | ||
- | <code> | ||
- | $ pack | ||
- | </code> | ||
- | I have not tested it on Mac OS. |