Showing posts with label Manta. Show all posts
Showing posts with label Manta. Show all posts

Tuesday, 12 July 2016

Building AOSP for Manta



Dear friends,
I really need your help compiling PureNexus for Manta. Here is what I did:
1) set up the environment. I'm fairly sure that I did this right, on Ubuntu 16.04. I installed the required libs, openjdk7, android sdk, set the PATH, installed repo ofc.
2) created a folder for the project, did the repo init as specified in the github manifest:


Code:


repo init -u https://github.com/PureNexusProject/manifest.git -b mm2

Next, before doing a repo sync, I added a local manifest in .repo/local_manifests/local_manifest.xml, with the following content:


Code:


<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="gh" fetch="git://github.com/" />
<project path="kernel/samsung/manta" name="CyanogenMod/android_kernel_samsung_manta" remote="gh" revision="cm-13.0" />
<project path="device/samsung/manta" name="CyanogenMod/android_device_samsung_manta" remote="gh" revision="cm-13.0" />
<project path="vendor/samsung/manta" name="TheMuppets/proprietary_vendor_samsung" remote="gh" revision="cm-13.0" />
</manifest>


This is what I was able to find regarding manta. I added the device tree and kernel from Cyanogen's, and the vendor stuff from TheMuppets.
3) repo sync -j5 successfully downloaded everything, so it was build time!
4) As manta is not officially supported, I had to add and edit a few things here and there:
4.1) in vendor/nexus/products/AndroidProducts.mk I added this code:


Code:


ifeq (nexus_manta,$(TARGET_PRODUCT))
    PRODUCT_MAKEFILES += $(LOCAL_DIR)/nexus_manta.mk
endif


4.2) next I actually created the nexus_manta.mk. I copied and adapted the flounder one, it ended up like this:


Code:


#Include Pure Nexus tablet configuration
include vendor/nexus/configs/nexus_tablet.mk

# Inherit AOSP device configuration for flounder
$(call inherit-product, device/samsung/manta/aosp_manta.mk)

# Override AOSP build properties
PRODUCT_NAME := nexus_manta
PRODUCT_BRAND := Google
PRODUCT_DEVICE := manta
PRODUCT_MODEL := Nexus 10
PRODUCT_MANUFACTURER := Samsung

# Device Fingerprint
PRODUCT_BUILD_PROP_OVERRIDES += \
    PRODUCT_NAME=mantaray \
    BUILD_FINGERPRINT=google/mantaray/manta:6.0.1/MOB30P/2960889:user/release-keys \
    PRIVATE_BUILD_DESC="mantaray-user 6.0.1 MOB30P 2960889 release-keys"


4.3) finally i edited vendor/nexus/vendorsetup.sh to add this line at the end:


Code:


add_lunch_combo nexus_manta-user

5) After this I did:


Code:


. build/envsetup.sh
 lunch


picked number 31, nexus_manta-user, all seemed fine.

6) Time to build, "brunch manta". This won't end up well, the current issue is:


Code:


make: * No rule to make target '/home/android/android/system/out/target/product/manta/obj/SHARED_LIBRARIES/libinvensense_hal_intermediates/export_includes', needed by '/home/android/android/system/out/target/product/manta/obj/SHARED_LIBRARIES//import_includes'.  Stop.
make: * Waiting for unfinished jobs....


I must admit that manta and exynos 5 arent really popular, cause I often never found anything useful.
Anyway, I'm stuck there, but in the next post I'll add something that I tried to get started again, but didn't work out.

Thank you so much everyone,
TD



Sunday, 10 July 2016

Anyone have the latest stable version (version 5) running on Nexus 10 [Manta]??



I've been trying for days to get ubuntu touch on my Nexus 10, and nothing works. Finally posted on AskUbuntu, but it's not getting much attention. At this point I just want to know if what I am trying is even possible. Here is a copy-paste of the post:

askubuntu[dot]com/questions/796924/can-not-install-ubuntu-touch-on-nexus-10

I am having a lot of trouble installing Ubuntu onto my Nexus 10 (16gb wifi edition). I have followed the instructions here [1] and here[2]. No matter what I do it ends with the message 'this phone needs restoring from a pc or service center'. I have searched ask ubuntu and other forums and here is what I have tried to solve the problem. Installed android 4.4.4 stock, cyanogenmod 11, android 4.0 stock prior to flashing. I also formatted with

$ fastboot format cache
$ fastboot format userdata

as suggested here[3]. Nothing seems to work.

Other things to note, I am using ubuntu-device-flash on a virtual box machine running ubuntu 16.04, and it takes a long time for ubuntu-device-flash to push the last .tar.xz file to my tablet, somewhere in the range of 1 hour or more. Last night I let it run overnight because some on some forums the response to similar problems was "be patient" once you see the 'this phone needs restoring...' error. When I woke up the phone was in a boot loop and I had to re-flash stock 4.4.4.

I have successfully flashed ubuntu version 2 with the dual boot app in android, but I can't get it to update. I also have not been successful in getting the app to use the UBports server as a custom server to install the latest version, similar to this guy[4].

Anyone know what could be wrong?
Links:
1 developer.ubuntu[dot]com/en/phone/devices/installing-ubuntu-for-devices/
2 devices.ubports[dot]com/#/manta
3 askubuntu[dot]com/questions/582151/ubuntu-touch-appears-to-not-boot-on-nexus-10
4 askubuntu[dot]com/questions/795895/nexus-10-dualboot-ubports-image-with-existing-android