ubports / ubuntu-touch-for-oneplus-one

Ubuntu touch for oneplus one
67 stars 19 forks source link

Sync fetch errors #2

Closed Jsewill closed 9 years ago

Jsewill commented 9 years ago

Running repo sync after adding the roomservice.xml to .repo/local_manifests/ produces fetch errors as follows:

fatal: Couldn't find remote ref refs/heads/cm-11
error: Cannot fetch ubuntu-touch-oneplus-one/proprietary_vendor_oneplus
error: Cannot fetch ubuntu-touch-oneplus-one/android_device_oneplus_bacon

error: Exited sync due to fetch errors

Even with those fetch errors, a much of the sync actually completes.

mariogrip commented 9 years ago

I added OnePlusAOSP instead of cm

mariogrip commented 9 years ago

The newest update i did should replace hardware files to work with OPO

Jsewill commented 9 years ago

Awesome. Is there anything else I need to do once sync'd, such as run the device/oneplus/bacon/extract-files.sh?

I get a make error ("make: *\ No rule to make target 'build/core/generate_extra_images.mk'") among some warnings after running the following.

    $ repo sync -j 8
    $ . build/envsetup.sh
    $ make -j 8

I'm just about to comment out the line in device/oneplus/bacon/AndroidBoard.mk that includes generate_extra_images.mk to see if I can get any further.

mariogrip commented 9 years ago

That latest push worked for me! It looks like it works, downloading Android 4.4.3 it is required by ubuntu touch...

mariogrip commented 9 years ago

you need extract-files, remove any apk and uncommet any files it cannot fetch for you device.

Jsewill commented 9 years ago

In that case, should my repo init command be something like this?

   repo init -u https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git -b phablet-4.4.3

Or should I be pulling from a different repository? Either way, the readme could use an update.

mariogrip commented 9 years ago

This one is the correct one:

repo init -u https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git -b phablet-4.4.2_r1

Jsewill commented 9 years ago

Hm...okay, that's what I did. I'll see if running the extract_files script helps any.

mariogrip commented 9 years ago

did you run "repo sync" after editing local_manifests?

Jsewill commented 9 years ago

Do I have to have AOSP already on the device for the extract_files.sh to work? I'm getting:

    remote object '/system/vendor/lib/libsecureui.so' does not exist

I have stock at the moment and flashing the official AOSP caused a boot loop every time I tried it.

Yes, I ran repo sync every manifest change, and even a few redundant times to make sure I did it, heh.

mariogrip commented 9 years ago

open proprietary-files-qc.txt in device/oppo/msm8* and comment out all that does not exist

Jsewill commented 9 years ago

Alright. I did that the last time I attempted to build android for this device, but I wasn't sure that's what I should do. Hopefully next time I come to this issue it will be to close it.

mariogrip commented 9 years ago

Just ask if you need help, i'm gladly to help :)

mariogrip commented 9 years ago

Humm, maybe you have some ideas, i flashed boot and recovery. then i started recovery (ubuntu touch version) and the did this ./rootstock-touch-install path/to/trusty-preinstalled-touch-armhf.tar.gz /path/to/system.img as ubuntu wiki says. but when it reboots after install it just goes back to recovery... do you have any ideas why this is like this... like a recovery loop or something...

Jsewill commented 9 years ago

Unfortunately I haven't even made it that far. I'd suggest looking for logs on the filesystem, it might tell you if there was a kernel panic or somesuch and why. The ubuntu touch documentation seems to be very deprecated.

Well, I've made it a little further, but it looks like I'm going to have to edit some of the source, at least based on the errors:

    system/core/init/property_service.c: In function 'handle_property_set_fd':
    system/core/init/property_service.c:431:10: error: 'PROP_MSG_GETPROP' undeclared (first use in this function)
    system/core/init/property_service.c:431:10: note: each undeclared identifier is reported only once for each function it appears in
    system/core/init/property_service.c:447:10: error: 'PROP_MSG_LISTPROP' undeclared (first use in this function)
Jsewill commented 9 years ago

I believe it would be ideal if you can find and use a vivd-preinstalled-touch-armhf tarball.

EDIT

Nevermind, I see the HOST_OS_EXTRA env var is expecting 14.10

mariogrip commented 9 years ago

I tried that and saucy.

mariogrip commented 9 years ago

Ah, so i shuld try utopic then?

Jsewill commented 9 years ago

Yeah. I'm pretty sure that'll be our best bet.

Jsewill commented 9 years ago

It appears that my errors are due to "ubuntu/libhybris/hybris/include/hybris/properties/properties.h" is not being included, but I don't know why/how it wouldn't be.

mariogrip commented 9 years ago

I did not get any error using my last manifest. try "make bootimage" then "make systemimage"

mariogrip commented 9 years ago

Still no luck with utopic... here is my images https://dl.dropboxusercontent.com/u/56653875/UbuntuTouch-bacon-test.tar.gz (boot, recovery and system) if you want to try..

https://wiki.ubuntu.com/Touch/Install_UT_on_android4.4.2 https://wiki.ubuntu.com/Touch/Building#Set_up_your_development_environment

I need to go to sleep, it's kinda late here (02:30)...

Jsewill commented 9 years ago

I'm going to keep trying to compile it. I didn't realize I should be running make bootimage and systemimage. I ran into some errors attempting it, now I'm attempting it again after using https://github.com/janimo/phablet-porting-scripts/blob/master/kernel/check-config to reconfigure the kernel.

If all else fails I'll try the images you've compiled. Were you able to find a utopic preinstalled-armhf image? The closest I could find to utopic is here: http://cdimage.ubuntu.com/ubuntu-touch/ubuntu-rtm/14.09/daily-preinstalled/pending/

mariogrip commented 9 years ago

here http://mirror.tversu.ru/ubuntu-cdimage/ubuntu-touch/daily-preinstalled/current/

mariogrip commented 9 years ago

image I cannot find where the files is after install, this is probably a issue! maybe everything works, just that the image does not install...

Jsewill commented 9 years ago

If I remember correctly, they should be somewhere beneath out/target/product/bacon/ .

mariogrip commented 9 years ago

no, i mean on the device, i'm using adb shell from recovery

Jsewill commented 9 years ago

Ah, I see. Which image doesn't install?

mariogrip commented 9 years ago

i ran rootstock-touch-install with utopic and sysemimage.img

mariogrip commented 9 years ago

I started a irc ##UbuntuTouchForOPO join if you want :) http://webchat.freenode.net/

Jsewill commented 9 years ago

This issue was resolved. I probably should have started another issue for the other things. Sorry about that.

mariogrip commented 9 years ago

btw, i got ubuntu running :) https://forums.oneplus.net/threads/wip-ubuntu-touch-for-oneplus-one.266170