This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling Tinkerboard's Android
#41
[Image: bxeNZFV.jpg][Image: zVcOtQ6.jpg]


I followed the 2 tutorials

I get this now :
root@ELAR-Systems:/home/tinker/{croot}# repo init -u https://git@bitbucket.org/TinkerBoard_An...nifest.git -b sbc/tinkerboard/asus/Android-7.1.2

Your identity is: YourName <d>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/tinker
If this is not the directory in which you want to initialize repo, please run:
rm -r /home/tinker/.repo
and try again.
French

Reply
#42
So far it is ok. But you should initialize with your github username and email address. So please rerun as it is written there as this:
Code:
repo init -u https://git@bitbucket.org/TinkerBoard_Android/manifest.git -b sbc/tinkerboard/asus/Android-7.1.2  --config-name
If you don't have github user, you can easily create one. But I don't know if it is really neccessary.

I get this output, and this is ok.:
Code:
$ repo init -u https://git@bitbucket.org/TinkerBoard_Android/manifest.git -b sbc/tinkerboard/asus/Android-7.1.2
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Counting objects: 1, done
remote: Finding sources: 100% (11/11)
remote: Total 11 (delta 2), reused 11 (delta 2)
Unpacking objects: 100% (11/11), done.
From https://gerrit.googlesource.com/git-repo
  d4b13c2..12ee544  master     -> origin/master
* [new tag]         v1.13.1    -> v1.13.1
Get https://git@bitbucket.org/TinkerBoard_Android/manifest.git
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
remote: Counting objects: 532, done.        
remote: Compressing objects: 100% (198/198), done.        
remote: Total 532 (delta 338), reused 459 (delta 313)          
Receiving objects: 100% (532/532), 383.41 KiB | 683.00 KiB/s, done.
Resolving deltas: 100% (338/338), done.
From https://bitbucket.org/TinkerBoard_Android/manifest
* [new branch]      sbc/tinkerboard/asus/Android-6.0.1 -> origin/sbc/tinkerboard/asus/Android-6.0.1
* [new branch]      sbc/tinkerboard/asus/Android-7.1.2 -> origin/sbc/tinkerboard/asus/Android-7.1.2

Your identity is: joerg65 <xxxxxx.xx@xxx.xx>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/joerg/Development/tinker_test
I wiped out my email!

Then you go further on as it is written in first post:
Code:
repo sync -j4 -c -q
Fetching projects:   1% (6/533)  
[-] The following 1 user Likes lobo's post:
  • Leskriim
Reply
#43
yes I am registered on github, but before you answer I already launch the command "repo sync -j4 -c -q" does not matter?
French

Reply
#44
If it is downloading, I think it's o.k.
Reply
#45
[Image: epBqKYH.jpg][Image: Mu5fROz.png]

yesterday i skipped step 2 and i ran the command "repo sync -j4 -c -q" then i got this: then i ran the command to compile the source code and it would not work like you can see it in the second picture
French

Reply
#46
You are missing some packages on your Elar Linux. I see that you want to use the Tinker Board for compiling the whole Android? I think it was told to you before that this is no good idea. Compiling on a sbc will mostly not work because of limited ram.
Consider to install a Ubuntu system on regular PC, or use a virtual PC with enough memory.
Read this carefully: https://source.android.com/setup/build/i...izing.html
But if you like to go on, find the missing packages. Mostley some compiling related as build-essential gcc-multilib g++-multilib libc6-dev-i386
A quick search, I haven't found any information how to establish a build environment on a Elar system.
Reply
#47
I already install ubuntu on virtualbox and I created a virtual hard drive (vdi) with 200gb except that when I go in the settings of ubuntu there is written 2.5gb: /
French

Reply
#48
LOBO please help me again!

Now I'm stuck in step 3!
The error is:
Code:
yoza@yoza-eME732:~/YOZA$ make -j4 > buildlog.log 2>&1 &

[1] 27517

I opened the buildlog.log file and look like this:

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=rk3288
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-43-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_BUILD_TYPE=release
BUILD_ID=MXC89K
OUT_DIR=out
============================================
Checking build tools versions...
Checking build tools versions...
************************************************************************************************************************

You are attempting to build with the incorrect version
You are attempting to build with the incorrect versionof java.

of java.

 Your version is: openjdk version "1.8.0_191" OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode).

The required version is: "1.7.x"Your version is: openjdk version "1.8.0_191" OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode).

 The required version is: "1.7.x"

Please follow the machine setup instructions at

Please follow the machine setup instructions at    https://source.android.com/source/initializing.html

************************************************************    https://source.android.com/source/initializing.html

************************************************************
build/core/main.mk:174: *** stop.  Stop.
build/core/main.mk:174: *** stop.  Stop.


#### make failed to build some targets #### make failed to build some targets (57 seconds) ####

(01:25 (mmundefineds)) ####

Thanks!

I will have to install another version of JAVA?
Reply
#49
That rare as it is stated that openJDK 8 should be used. But if the message is as is you would need to install openJDK7 and after that you can switch with:

Code:
sudo update-alternatives --config java
sudo update-alternatives --config javac

(01-04-2019, 06:03 PM)Leskriim Wrote: I already install ubuntu on virtualbox and I created a virtual hard drive (vdi) with 200gb except that when I go in the settings of ubuntu there is written 2.5gb: /
I have for test installed a virtual machine, but as I don't have a ubuntu installation image, I used a Mint 18.2, which is quit the same and I also use as my main system. I get 175G free space, if I create a vdi with fixed 200G size.
Reply
#50
Code:
yoza@yoza-eME732:~$ sudo apt-get remove openjdk-8-jdk
Code:
yoza@yoza-eME732:~$ sudo apt-get install openjdk-7-jre
Citire liste de pachete... Terminat
Se construiește arborele de dependență      
Se citesc informațiile de stare... Terminat
Pachetul openjdk-7-jre nu este disponibil, dar este menționat de către alt pachet.
Aceasta ar putea însemna că pachetul lipsește, s-a învechit, sau
este disponibil numai din altă sursă

E: Package 'openjdk-7-jre' has no installation candidate
yoza@yoza-eME732:~$ sudo apt-get install openjdk-7-jdk
Citire liste de pachete... Terminat
Se construiește arborele de dependență      
Se citesc informațiile de stare... Terminat
Pachetul openjdk-7-jdk nu este disponibil, dar este menționat de către alt pachet.
Aceasta ar putea însemna că pachetul lipsește, s-a învechit, sau
este disponibil numai din altă sursă

E: Package 'openjdk-7-jdk' has no installation candidate

The openjdk-7-jdk package is not available, but is mentioned by another package.
This might mean that the package is missing, has become obsolete, or
is only available from another source

Hi kbungo!
After this command
Code:
$ make -j4 > buildlog.log 2>&1 &
what should appear in buildlog.log?

Code:
yoza@yoza-eME732:~/YOZA$ sudo update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Nimic de configurat.
[1]+  Exit 2                  make -j4 > buildlog.log 2>&1
yoza@yoza-eME732:~/YOZA$ sudo update-alternatives --config javac
There is only one alternative in link group javac (providing /usr/bin/javac): /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
Nimic de configurat.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)