Compiling Roms Thread: Build errors, bootloops, ...

Search This thread

Samrach Kem

Senior Member
Mar 28, 2016
89
10
Hi bro I need your help,

I am not developer but I know a lot of developer's staff so on I decided to come while I'm still noob. I have an issue with this ROM so I hope you can help me:

I Flash RR N that made for D802 but converted to F320, last ROM cm14.1 it's working fine but this time, RR N can't boot up.
First install I wipe all if my device than factory reset it and than I flash :
Bootstack
https://xdaforums.com/lg-g2/development/boot-g2-hybrid-bootstacks-t3183219

Than that ROM
https://www.kim-cloud.com/lg/LG G2/Resurrection Remix

Than Gapps Pico
I get a black screen say"fastboot is enabled" when boot than I reflash it by
Full wipe
Bootstack

ROM

Than kernel Beta 9 Nougat
https://xdaforums.com/lg-g2/development/kernel-lambda-kernel-t3270424
Download
https://github.com/GalaticStryder/kernel_lge_msm8974/releases

Gapps
My device boot up and show me boot animation this time, it is really RR's boot animation!!!! But after an hour my device still on boot animation and nothing happens. I try it reboots device for 4 times but nothing happens but I noticed something

For normal boot my device than after LG Logo the boot animation come ,than it immediately decrease the brightness and after several seconds my device give me a short vibrates and than it boot up
If I modified something than my device doesn't decrease the brightness and also doesn't vibrate

Than for this ROM after several reboots and go to recovery and than wipe cache, dalvik cache, data and factory reset it my device come back boot up again and also immediately it decrease the brightness but no vibrates and it still stuck there

I wonder if some Pro dev here could help me with this. I really wanna test this ROM

Something not right:
I try RR LP too but when flash it tell me I'm fail to install it
What happens?
RR LP
https://xdaforums.com/lg-g2/development/rom-resurrectionremix-lpalpha-t2969200
Download
https://www.androidfilehost.com/?w=files&flid=22964
I try the latest and the oldest of this ROM but both fail and I don't know why
So I hope you guy could help me with this

---------- Post added at 11:54 PM ---------- Previous post was at 11:51 PM ----------

Hi bro I need your help,

I am not developer but I know a lot of developer's staff so on I decided to come while I'm still noob. I have a an issue with this ROM so I hope you can help me:

I Flash RR N that made for D802 but converted to F320, last ROM cm14.1 it's working fine but this time, RR N can't boot up.
First install I wipe all of my device than factory reset it and than I flash :
Bootstack
https://xdaforums.com/lg-g2/development/boot-g2-hybrid-bootstacks-t3183219

Than that ROM
https://www.kim-cloud.com/lg/LG G2/Resurrection Remix

Than Gapps Pico
I get a black screen say"fastboot is enabled" when boot than I reflash it by
Full wipe
Bootstack

ROM

Than kernel Beta 9 Nougat
https://xdaforums.com/lg-g2/development/kernel-lambda-kernel-t3270424
Download
https://github.com/GalaticStryder/kernel_lge_msm8974/releases

Gapps
My device boot up and show me boot animation this time, it is really RR's boot animation!!!! But after an hour my device still on boot animation and nothing happens. I try it reboots device for 4 times but nothing happens but I noticed something

For normal boot my device than after LG Logo the boot animation come ,than it immediately decrease the brightness and after several seconds my device give me a short vibrates and than it boot up
If I modified something than my device doesn't decrease the brightness and also doesn't vibrate

Than for this ROM after several reboots and go to recovery and than wipe cache, dalvik cache, data and factory reset it my device come back boot up again and also immediately it decrease the brightness but no vibrates and it still stuck there

I wonder if some Pro dev here could help me with this. I really wanna test this ROM

Something not right:
I try RR LP too but when flash it tell me I'm fail to install it
What happens?
RR LP
https://xdaforums.com/lg-g2/development/rom-resurrectionremix-lpalpha-t2969200
Download
https://www.androidfilehost.com/?w=files&flid=22964
I try the latest and the oldest of this ROM but both fail and I don't know why
So I hope you guy could help me with this

#cm14.1
https://www.kim-cloud.com/lg/LG G2/cm14.1
 

calbertoferreira

Senior Member
May 26, 2011
63
3
Lisbon
Hello G2 devs,

I'm trying to build an AOSP 6.0 rom from AOSP source and CM13 repos. It is possible right?

This is my local manifest:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
	<remote name="github" fetch="git://github.com" />
	<project name="TheMuppets/proprietary_vendor_lge" path="vendor/lge/" remote="github" revision="cm-13.0" />
	<project name="CyanogenMod/android_kernel_lge_msm8974" path="kernel/lge/msm8974" remote="github" revision="cm-13.0" />
	<project name="CyanogenMod/android_device_lge_d802" path="device/lge/d802" remote="github" revision="cm-13.0" />
	<project name="CyanogenMod/android_device_lge_g2-common" path="device/lge/g2-common" remote="github" revision="cm-13.0" />
	<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-13.0" />
	<project name="CyanogenMod/android_device_qcom_sepolicy" path="device/qcom/sepolicy" remote="github" revision="cm-13.0" />
</manifest>

I know kernel builds usually give a few headaches so I'm trying to build with a prebuilt kernel zImage extracted from a boot.img of the last CM13 nightly, changed its name to "kernel" and moved it to device/lge/d802 folder.
So I made several edits to some device files:

  • device/lge/d802/BoardConfig.mk
    Code:
    #TARGET_KERNEL_CONFIG := cyanogenmod_d802_defconfig
    
    ifeq ($(TARGET_PREBUILT_KERNEL),)
    LOCAL_KERNEL := device/lge/d802/kernel
    else
    LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
    endif
    
    PRODUCT_COPY_FILES += \
        $(LOCAL_KERNEL):kernel
  • device/lge/g2-common/BoardConfigCommon.mk
    Code:
    #TARGET_KERNEL_SOURCE := kernel/lge/msm8974

After a make -j4 otapackage the result is this -> http://pastebin.com/N6nkxmUh

Is it possible to build only system.img? Will it boot with a boot.img from a CM13 nightly? Can anyone help me with this error?

Best regards,
ponces

I'm also trying to do the same thing, build AOSP MM with CM device files.
I'm having this issue, any idea why ?

CR7k6wl.png
 

calbertoferreira

Senior Member
May 26, 2011
63
3
Lisbon
I removed the external/sepolicy from CM13 and used AOSP one.
Now, after calling make dist i have a system.img, a userdata.img and a ramdisk.img.
How can i turn this into an update.zip ?
 

calbertoferreira

Senior Member
May 26, 2011
63
3
Lisbon
That didn't work, it only worked with make dist.
Now, after flashing the rom, my LG G2 doesn't boot, it shows a security error.
Any idea on how to bypass this ?
 

jackcicci

Senior Member
Jul 13, 2014
583
518
Error d802/boot.img missing

Hello,

i'm trying to build AOSIP for LG G2 802 and the process stops with this error:

Code:
ninja: error: '/home/android/aosip/out/target/product/d802/dt.img', needed by '/home/android/aosip/out/target/product/d802/boot.img', missing and no known rule to make it

I've successfully bulided other ROM (most LineageOS based) like AOKP, OCT and other but with AOSIP I get always this problem. :(

Anyone can help me to understand what I'm doing wrong?

Thanks :)

It stops at the beginning and I have no idea of what to do :crying:

(complete log attached)
 

Attachments

  • aosip.txt
    56.1 KB · Views: 15

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Its not booting because of hardware/qcom/display. You need this commit for now
    https://gerrit.slimroms.net/#/c/20632/

    If you look at the comments though, it breaks hammerhead from compiling. Until I can find a better solution, which may not happen, I won't be updating the g2 repos for slim.

    Also, slim for g2 needs to be compiled on slimlp-caf branch, even though our kernel is not caf.

    All my repos are up to date here
    www.github.com/CardinalTesting

    Vendor is here
    www.github.com/arcardinal/proprietary_vendor_lge

    lp5.0 branches for all my repos
    4
    Ok Good to know that you are working on a lollipop edition of Slim roms. I don't to be rube or something else, but Are you planning to release it asap it gets stable?

    Thanks in advance

    I think we are diverging the subject of the thread, so if you or anybody want to talk me just PM. I'm not creating a new thread for that in the meantime, and I wish we don't spam this thread because I intend and the OP as well, this thread to be a helpful thread for new developers, I just posted the screenshots here because we were talking about SlimLP some pages ago.

    Reworking on AOSP will be next step together maintaining the SlimLP unofficial.

    Thanks guys.
    3
    Also had the problem with AOSP going directly into fastboot menu, I have adapted everything I could. Using a prebuilt kernel the AOSP booted properly together some CM stuff I needed to add, now I just got some FC to handle, better, a lot of them. I'm using SimpleAOSP source code for now, It's quite modified but it keeps the AOSP base.
    About building SlimLP I did a test build for my D802 in December 11th and it ran properly, all apps and no force closes, got a very good result but I couldn't upload the modifications to GitHub because I was just learning how to git checkout, git rebase, git fetch/merge and so on...

    If you want help on the SlimLP I'm available to help you out whenever you want, are you planning to build for the other variants as well OP?

    Thanks for using the Dev section it's very useful for us to change ideas.
    3
    First:
    In root directory of rom: make clean -> this should fix build error.

    My proposition:
    1. repo init -u https://github.com/SlimRoms/platform_manifest -b lp5.0-caf
    2. roomservice.xml need to looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>

    # Device Specific part
    <project path="device/lge/d802" name="Flo0008/android_device_lge_d802" revision="lp5.0" remote="github" />
    <project path="device/lge/g2-common" name="Flo0008/android_device_lge_g2-common" revision="lp5.0" remote="github" />
    <project path="kernel/lge/msm8974" name="Flo0008/android_kernel_lge_msm8974" revision="cm-12.0" remote="github" />
    <project path="vendor/lge" name="Flo0008/proprietary_vendor_lge" revision="cm-12.0" remote="github" />

    </manifest>

    3. repo sync.

    4.
    . build/envsetup.sh
    brunch d802



    Try this if you want. :)

    ---------- Post added at 11:34 AM ---------- Previous post was at 11:24 AM ----------

    When finish building of DU will try SlimLP :)

    ---------- Post added at 11:36 AM ---------- Previous post was at 11:34 AM ----------

    SlimLP has a .zip size of aroung 195Mb.

    Size of compiled CM12 is about 240 MB -> something is missing in your build...

    ---------- Post added at 11:44 AM ---------- Previous post was at 11:36 AM ----------

    look here:
    https://github.com/TheMuppets/proprietary_vendor_lge/blob/cm-12.0/d802/d802-vendor-blobs.mk
    See how much blobs is there...


    insteed of using your blobs try TheMuppets's blobs:

    https://github.com/TheMuppets/proprietary_vendor_lge

    add this to roomservice.xml

    ---------- Post added at 11:50 AM ---------- Previous post was at 11:44 AM ----------

    My last proposition is to try using cm device tree and kernel...

    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>

    # Device Specific part
    <project path="device/lge/d802" name="CyanogenMod/android_device_lge_d802" revision="cm-12.0" remote="github" />
    <project path="device/lge/g2-common" name="CyanogenMod/android_device_lge_g2-common" revision="cm-12.0" remote="github" />
    <project path="kernel/lge/msm8974" name="CyanogenMod/android_kernel_lge_msm8974" revision="cm-12.0" remote="github" />
    <project path="vendor/lge" name="TheMuppets/proprietary_vendor_lge" revision="cm-12.0" remote="github" />

    </manifest>


    Then make some changes in device/lge/d802 .

    :)
    3
    @RenderBroken

    Can you or anybody else help me with this build error on AOSP Lollipop?

    Target boot image: /data1/Flo0008/aosp_g2/out/target/product/d802/boot.img
    usage: mkbootimg
    --kernel <filename>
    --ramdisk <filename>
    [ --second <2ndbootloader-filename> ]
    [ --cmdline <kernel-commandline> ]
    [ --board <boardname> ]
    [ --base <address> ]
    [ --pagesize <pagesize> ]
    -o|--output <filename>
    device/lge/g2-common/releasetools/mkbootimg.mk:47: recipe for target '/data1/Flo0008/aosp_g2/out/target/product/d802/boot.img' failed
    make: *** [/data1/Flo0008/aosp_g2/out/target/product/d802/boot.img] Error 1
    make: *** Waiting for unfinished jobs....

    Thanks in advance.

    This error means that the mkbootimg tool you have is not the correct one. Apparently there are more than one out there and the other supports different flags. Use the one here:

    https://github.com/RenderBroken/mkbootimg_tools

    Also CAF (to me) doesnt seem to be ready as a Daily Driver. Are you just wanting to mess around or get out a fully functioning build? I do know that LG-Devs CAF branch is still being worked on. Not sure about TheMuppets but they are always solid. Still LP CAF is not stable yet.

    ---------- Post added at 02:19 PM ---------- Previous post was at 02:17 PM ----------

    First:
    In root directory of rom: make clean -> this should fix build error.

    My proposition:
    1. repo init -u https://github.com/SlimRoms/platform_manifest -b lp5.0-caf
    2. roomservice.xml need to looks like:


    3. repo sync.

    4.
    . build/envsetup.sh
    brunch d802



    Try this if you want. :)

    ---------- Post added at 11:34 AM ---------- Previous post was at 11:24 AM ----------

    When finish building of DU will try SlimLP :)

    ---------- Post added at 11:36 AM ---------- Previous post was at 11:34 AM ----------



    Size of compiled CM12 is about 240 MB -> something is missing in your build...

    ---------- Post added at 11:44 AM ---------- Previous post was at 11:36 AM ----------

    look here:
    https://github.com/TheMuppets/proprietary_vendor_lge/blob/cm-12.0/d802/d802-vendor-blobs.mk
    See how much blobs is there...


    insteed of using your blobs try TheMuppets's blobs:

    https://github.com/TheMuppets/proprietary_vendor_lge

    add this to roomservice.xml

    ---------- Post added at 11:50 AM ---------- Previous post was at 11:44 AM ----------

    My last proposition is to try using cm device tree and kernel...




    Then make some changes in device/lge/d802 .

    :)


    Great Info! Thanks for chiming in.