Author Topic: Trying to make android image  (Read 6152 times)

Offline safari

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Trying to make android image
« on: April 12, 2013, 02:49:25 pm »
Hi.
I've tried to build Android TV image as described here.
My system is Ubuntu 10.04 64 bit running into VirtualBox. Build Environment as described here.

First problem was with installing JDK. When i tried to run sudo apt-get install sun-java6-jdk, it say: Packet sun-java6-jdk is not available and so on.
OK, I've downloaded jdk-6u41-linux-x64.bin directly from Oracle.com and successfully installed it.

But when I try to do this: source build/envsetup.sh && lunch #select cubieboard
I get this:
including device/allwinner/common/vendorsetup.sh
including device/allwinner/cubieboard/vendorsetup.sh
including sdk/bash_completion/adb.bash

You're building on Linux


Lunch menu... pick a combo:
     1. full-eng
     2. full_x86-eng
     3. vbox_x86-eng
     4. cubieboard-eng

Which would you like? [full-eng] 4
build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com.  Останов.

** Don't have a product spec for: 'cubieboard'
** Do you have the right repo manifest?

What should I do with java and repo manifest of cubie?

BigWhoop

  • Guest
Re: Trying to make android image
« Reply #1 on: April 13, 2013, 02:36:47 am »
have you set all required links?

Code: [Select]
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/Oracle_Java/jdk1.6.0_VERSION/bin/java" 1
etc.......

Offline safari

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Trying to make android image
« Reply #2 on: April 15, 2013, 04:59:46 am »
I've runned this command successfully, what else?
Please give me full to-do list or the correct web-link to read and understand myself.

Sorry, I'm full noob in java/android and  beginner in linux.
« Last Edit: April 15, 2013, 05:04:57 am by safari »

Offline safari

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Trying to make android image
« Reply #3 on: April 15, 2013, 07:48:31 am »
I've found good script that works:

cd ~/
wget https://github.com/flexiondotorg/oab-java6/raw/0.2.7/oab-java.sh -O oab-java.sh
chmod +x oab-java.sh
sudo ./oab-java.sh
« Last Edit: May 07, 2013, 08:29:50 am by safari »

Offline safari

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Trying to make android image
« Reply #4 on: April 17, 2013, 10:55:41 am »
Solved.

BigWhoop

  • Guest
Re: Trying to make android image
« Reply #5 on: April 17, 2013, 12:05:33 pm »
how?
i set a date for tomorrow to try you way and see if i can fix it.

But when you have fixed it yourself you can post why . maybe another guy searchs it too.

Offline safari

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Trying to make android image
« Reply #6 on: April 18, 2013, 07:31:07 am »
My main errors while Setting up a Linux build environment and Building Android TV image was:
1) Too little disk space. Manual said minimum 50G free space for ccache for make android image. From the 3rd attempt I've made 100Gb space for ubuntu (VirtualBox dinamic VDI).
2) Java installation procedure there is incorrect (read my solution upper).
3) GNU Make need v.3.81 (not 3.82)
4) All commands must run from user (not root).
5) $source build/envsetup.sh && lunch and $make -j4 must  run from user (not root) within one shell and not from file managers like mc.


For the present time:
1. I've made proper my first sun4i_crane_cubieboard.img
2. Flashed it to nand and booted Android with self made VGA connector (sys_config1.fex).
3. Set up Android SDK and ADT

To do list:
4. I'm trying to understand how-to modify kernel to have USB Wi-Fi and camera.


« Last Edit: April 19, 2013, 09:56:50 am by safari »