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

    Moto G 2015 (Osprey) porting

    Scheduled Pinned Locked Moved Porting
    5 Posts 2 Posters 466 Views 1 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.
      • D Offline
        d4kc9
        last edited by

        Hello, I'm new here.

        Working on building Halium for the Moto G (2015) (osprey) and I need some help please I've been following first steps document and I have hit a wall:

        I'm stuck at : Fixup mount points

        There isn't any osprey entry in my BUILDDIR>/halium/hybris-boot/fixup-mountpoints

        I have rooted my Moto G osprey with Lineage to try to find out what the mount points are and
        I found this fstab using shell over ADB.

        /dev/block/platform/soc.0/7824900.sdhci/by-name/system /system ext4 defaults 0 0
        /dev/block/bootdevice/by-name/userdata /data f2fs defaults 0 0
        /dev/block/bootdevice/by-name/cache /cache ext4 defaults 0 0
        /dev/block/bootdevice/by-name/fsg /fsg ext4 defaults 0 0
        /dev/block/bootdevice/by-name/modem /firmware ext4 defaults 0 0
        /dev/block/bootdevice/by-name/persist /persist ext4 defaults 0 0
        

        How do I get the above fstab into the below code block, is this the correct file?

        ("osprey")
            sed -i \
                [replacements, one per line]
                "$@"
            ;;
        

        Please help, thank you.

        1 Reply Last reply Reply Quote 0
        • D Offline
          d4kc9
          last edited by

          from my phone from ADB shell:

          /system/etc/

          fstab:

          /dev/block/platform/soc.0/7824900.sdhci/by-name/system /system ext4 defaults 0 0
          /dev/block/bootdevice/by-name/userdata /data f2fs defaults 0 0
          /dev/block/bootdevice/by-name/cache /cache ext4 defaults 0 0
          /dev/block/bootdevice/by-name/fsg /fsg ext4 defaults 0 0
          /dev/block/bootdevice/by-name/modem /firmware ext4 defaults 0 0
          /dev/block/bootdevice/by-name/persist /persist ext4 defaults 0 0
          

          recovery.fstab:

          # Android fstab file.
          # The filesystem that contains the filesystem checker binary (typically /system) cannot
          # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
          
          #TODO: Add 'check' as fs_mgr_flags with data partition.
          # Currently we dont have e2fsck compiled. So fs check would failed.
          
          #<src>                                      <mnt_point>         <type>  <mnt_flags and options>                                              <fs_mgr_flags>
          /dev/block/bootdevice/by-name/system         /system             ext4    ro,barrier=1                                                         wait,recoveryonly
          /dev/block/bootdevice/by-name/userdata       /data               f2fs    rw,nosuid,nodev,noatime,nodiratime,inline_xattr,inline_data          wait,check,latemount,formattable,quota,encryptable=/dev/block/bootdevice/by-name/metadata,reservedsize=128M
          /dev/block/bootdevice/by-name/cache          /cache              ext4    rw,nosuid,nodev,noatime,barrier=1,data=ordered                       wait,check,formattable
          /dev/block/bootdevice/by-name/fsg            /fsg                ext4    ro,nosuid,nodev,barrier=0,context=u:object_r:fsg_file:s0             wait
          /dev/block/bootdevice/by-name/modem          /firmware           ext4    ro,nosuid,nodev,barrier=0,context=u:object_r:firmware_file:s0        wait
          /dev/block/bootdevice/by-name/persist        /persist            ext4    nosuid,nodev,barrier=1,noatime,noauto_da_alloc                       wait
          /dev/block/bootdevice/by-name/boot           /boot               emmc    defaults                                                             recoveryonly
          /dev/block/bootdevice/by-name/recovery       /recovery           emmc    defaults                                                             recoveryonly
          /dev/block/bootdevice/by-name/misc           /misc               emmc    defaults                                                             defaults
          
          /devices/soc.0/7864900.sdhci/mmc_host*       auto                auto    nosuid,nodev                                                         wait,voldmanaged=sdcard1:auto
          /devices/platform/msm_hsusb*                 auto                auto    nosuid,nodev                                                         wait,voldmanaged=usb:auto
          /dev/block/zram0                             none                swap    defaults                                                             zramsize=536870912,max_comp_streams=3
          
          

          Thanks in advance.

          1 Reply Last reply Reply Quote 0
          • D Offline
            d4kc9
            last edited by

            By posting this, I answered my own question. Don't you love that!

            Anyway anyone going to welcome me?

            libremaxL 1 Reply Last reply Reply Quote 0
            • libremaxL Offline
              libremax @d4kc9
              last edited by

              @d4kc9 said in Moto G 2015 (Osprey) porting:

              By posting this, I answered my own question. Don't you love that!

              Anyway anyone going to welcome me?

              Welcome @d4kc9 and have a look here https://ubports.com/meet-the-community for things of interest.

              Donate anonymously 1€/$ by year to UBports, all Ubuntu Touch users can do it ! Demonstration:
              https://forums.ubports.com/topic/1262/donate-anonymously-1-by-year-to-ubports-all-ubuntu-touch-users-can-do-it-demonstration/

              1 Reply Last reply Reply Quote 0
              • D Offline
                d4kc9
                last edited by

                Thank you!!

                Ok, 22% build fail, didn't see this error on the common errors. Help please 🙂

                /home/vm/halium/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp:1435:47: error: comparison of integers of different signs: 'int' and 'yy_size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
                        if ((int) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                1 error generated.
                ninja: build stopped: subcommand failed.
                build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
                make: *** [ninja_wrapper] Error 1
                make: Leaving directory '/home/vm/halium'
                
                #### make failed to build some targets (21:51 (mm:ss)) ####
                
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post