• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Building code for nexus 5

Scheduled Pinned Locked Moved Porting
nexus 5
26 Posts 2 Posters 11.3k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      apple.muncy
      last edited by 27 Sept 2016, 10:28

      Number 2 because Nexus 5 has ARM v7 32bit CPU.

      S 1 Reply Last reply 28 Sept 2016, 01:46 Reply Quote 0
      • S Offline
        sagar.pradhan @apple.muncy
        last edited by 28 Sept 2016, 01:46

        @apple.muncy , Thank you for your reply.

        From the description, option 2 looks like a generic ARM32 build. Will it have required BSP for hammerhead/Nexus 5?

        1 Reply Last reply Reply Quote 0
        • A Offline
          apple.muncy @sagar.pradhan
          last edited by apple.muncy 28 Sept 2016, 02:51

          @sagar.pradhan
          So I've been wondering why the choice presented do not match the build description I find in my Nexus 5 ?

          ro.build.description=aosp_hammerhead-userdebug 4.4.2 KOT49H eng.mariogrip.20160308.153133 test-keys

          Are you fallowing ubports build set up instructions or from Ubuntu?

          And by the way, I have NOT set up to do builds myself.

          1 Reply Last reply Reply Quote 0
          • S Offline
            sagar.pradhan
            last edited by 28 Sept 2016, 13:35

            I'm following ubports instructions:

            mkdir phablet && cd phablet/
            repo init -u https://github.com/ubports/android -b ubp-5.1

            repo sync -j10

            . build/envsetup.sh

            I will try it again, may be I may have missed something. Thank you.

            A 2 Replies Last reply 30 Sept 2016, 02:43 Reply Quote 0
            • A Offline
              apple.muncy @sagar.pradhan
              last edited by apple.muncy 30 Sept 2016, 02:43

              @sagar.pradhan,
              OK, so i'm trying to do this also,

              It seems to me that when I do:

              repo sync -j10

              it does not complete successfully with a great many fetch errors,

              And no build/envsetup.sh

              I'm thinking these instructions have gone stale.

              1 Reply Last reply Reply Quote 0
              • A Offline
                apple.muncy @sagar.pradhan
                last edited by 30 Sept 2016, 13:20

                @sagar.pradhan

                When I do a:
                :~/phablet$ repo status

                I get a large number of:
                project abi/cpp/
                missing (run "repo sync")

                project bionic/
                missing (run "repo sync")

                project device/moto/shamu/
                missing (run "repo sync")
                ...

                So I'm running "repo sync -f"
                To force repo to continue even after a failure then I'll look for a pattern in the failures. Looks like it will take all day.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sagar.pradhan
                  last edited by 1 Oct 2016, 14:13

                  @apple-muncy I tried it again several times but no success. Looks like indeed those instructions have gone stale.

                  @mariogrip - can you help us out here?

                  A 3 Replies Last reply 1 Oct 2016, 14:48 Reply Quote 0
                  • A Offline
                    apple.muncy @sagar.pradhan
                    last edited by 1 Oct 2016, 14:48

                    @sagar.pradhan
                    I'm not giving up yet.
                    I've updated the version of repo I'm using and removed all that was in ~/phablet
                    Now in the middle of a fresh sync.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      apple.muncy @sagar.pradhan
                      last edited by 2 Oct 2016, 01:12

                      @sagar.pradhan
                      After trying the Ubuntu version "phablet-dev-bootstrap" and having it fall over I dug around and found this bug that claims it's the severs that become unresponsive. It might be why repo sync is failing too.

                      https://bugs.launchpad.net/ubuntu/+source/phablet-tools/+bug/1610650

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        apple.muncy @sagar.pradhan
                        last edited by 3 Oct 2016, 18:29

                        @sagar.pradhan
                        So I've caught up to you, at least as far as you have reported.
                        I get the same output as you from lunch, well, I think you must have truncated it but no mind.

                        By the way, did you have to do an extra install to get lunch? Or did I just overlook where in the instructions it got installed?

                        So if something is stale about these instructions it would be the "-b udp-5.1"

                        I must look more at the commit history of https://github.com/ubports/android

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          sagar.pradhan
                          last edited by 4 Oct 2016, 01:01

                          @apple-muncy : I think "lunch" is part of code downloaded from repo. Executing build/envsetup.sh adds it to the path.

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sagar.pradhan
                            last edited by 4 Oct 2016, 01:06

                            @apple-muncy : I'm planning on trying master branch today. Will let you know how it goes. Did you try it yet?

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              sagar.pradhan
                              last edited by 4 Oct 2016, 01:48

                              @apple-muncy : You are right about -b udp-5.1. Looks like all the rc builds are from branch 4.4.2 for Hammerhead.

                              I should try below command:

                              repo init -u https://github.com/ubports/android -b 4.4.2

                              Will let you know how it goes.

                              A 4 Replies Last reply 4 Oct 2016, 03:25 Reply Quote 0
                              • A Offline
                                apple.muncy @sagar.pradhan
                                last edited by 4 Oct 2016, 03:25

                                @sagar.pradhan
                                No, that is hopelessly messed up. And/or requires a source tree, perhaps as done per https://developer.ubuntu.com/en/phone/devices/porting-new-device/

                                Notice the fetch line in default.xml
                                ...
                                <remote name="phablet"
                                fetch="../../../"
                                review="code-review.phablet.ubuntu.com" />
                                ....

                                So:
                                Time out : ) @mariogrip When you get a chance, how to build stable for Nexus 5, please?

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  apple.muncy @sagar.pradhan
                                  last edited by 4 Oct 2016, 09:56

                                  @sagar.pradhan
                                  OK, maybe not hopeless.

                                  I'll review posts from 7 months ago and maybe later today I'll see what happens with "phablet-dev-bootstrap phablet " on a fast internet connection.

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    apple.muncy @sagar.pradhan
                                    last edited by 4 Oct 2016, 11:12

                                    @sagar.pradhan
                                    This is a bit like archeology. Digging up the past.

                                    https://plus.google.com/107365438415018184209/posts/ZMdZEGi7sAf

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      apple.muncy @sagar.pradhan
                                      last edited by 5 Oct 2016, 13:56

                                      @sagar.pradhan
                                      I have been able to download and compiled with this after editing out the one of the double entries for strace: :

                                      repo init -u https://github.com/ubports/android -b 4.4.2

                                      I'm not going to push it the the phone. It just pulls from Ubuntu/touch.

                                      Above you said "Looks like all the rc builds are from branch 4.4.2 for Hammerhead." Are you basing that statement on what is found in /android/system/build.prop or somewhere else?

                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sagar.pradhan
                                        last edited by 6 Oct 2016, 00:43

                                        The 4.4.2 finding was from software version information on rc-build flashed on my phone.

                                        A 1 Reply Last reply 6 Oct 2016, 01:03 Reply Quote 0
                                        • A Offline
                                          apple.muncy @sagar.pradhan
                                          last edited by 6 Oct 2016, 01:03

                                          @sagar.pradhan
                                          OK.

                                          I just went though major trouble putting rc-proposed on my Nexus 5.

                                          From the build.prop file:
                                          ...
                                          ro.build.id=KOT49H
                                          ro.build.display.id=aosp_hammerhead-userdebug 4.4.2 KOT49H eng.mariogrip.20160308.153133 test-keys
                                          ro.build.version.incremental=eng.mariogrip.20160308.153133
                                          ro.build.version.sdk=19
                                          ro.build.version.codename=REL
                                          ro.build.version.release=4.4.2
                                          ro.build.date=ti. 08. mars 15:31:40 +0100 2016
                                          ro.build.date.utc=1457447500
                                          ro.build.type=userdebug
                                          ro.build.user=mariogrip
                                          ro.build.host=mariogirp-laptop
                                          ...

                                          Is that telling me that no change since march ?

                                          1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sagar.pradhan
                                            last edited by 6 Oct 2016, 01:39

                                            @apple-muncy
                                            Not sure about that. Today I received r233 rc-proposed update and although device image part is 20160603 but Ubuntu image part is 20161005.
                                            So probably Ubuntu image part matters!

                                            On removing double entries for strace in default.xml and doing below:

                                            repo init -u https://github.com/ubports/android -b 4.4.2
                                            repo sync -j10 -f

                                            I'm getting all sorts of errors saying repo not found:
                                            fatal: repository 'https://github.com/aosp/platform/external/safe-iop/' not found
                                            fatal: repository 'https://github.com/aosp/platform/external/libppp/' not found
                                            fatal: repository 'https://github.com/aosp/platform/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/' not found
                                            fatal: repository 'https://github.com/aosp/device/generic/common/' not found
                                            fatal: repository 'https://github.com/aosp/platform/system/security/' not found
                                            fatal: repository 'https://github.com/aosp/platform/hardware/qcom/camera/' not found
                                            fatal: repository 'https://github.com/aosp/device/generic/armv7-a-neon/' not found
                                            fatal: repository 'https://github.com/aosp/platform/external/e2fsprogs/' not found
                                            fatal: repository 'https://github.com/aosp/platform/external/webrtc/' not found
                                            fatal: repository 'https://github.com/aosp/platform/build/' not found

                                            Did you get these too? Can you list exact steps on what you did?

                                            A 2 Replies Last reply 6 Oct 2016, 03:08 Reply Quote 0
                                            11 out of 26
                                            • First post
                                              11/26
                                              Last post