FORUMS
Remove All Ads from XDA

[Guide][Video Tutorial] How to build Custom ROMs and Kernel Modification![P,O,N,M,L]

1,824 posts
Thanks Meter: 3,890
 
Post Reply Email Thread
6th June 2019, 11:57 AM |#1421  
Junior Member
Thanks Meter: 0
 
Donate to Me
More
I need help with compiling for my device, I've been following your video series for building device tree from scratch. I'm stuck at one point that I just can't figure out though, can anyone help me please?

Quote:

Made recovery image: /home/raid/android/system/out/target/product/goyave3g/recovery.img
Target build info: /home/raid/android/system/out/target/product/goyave3g/system/build.prop
Construct recovery from boot
mkdir -p /home/raid/android/system/out/target/product/goyave3g/obj/PACKAGING/recovery_patch_intermediates/
PATH=/home/raid/android/system/out/host/linux-x86/bin:$PATH /home/raid/android/system/out/host/linux-x86/bin/imgdiff /home/raid/android/system/out/target/product/goyave3g/boot.img /home/raid/android/system/out/target/product/goyave3g/recovery.img /home/raid/android/system/out/target/product/goyave3g/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
build/tools/generate-notice-files.py /home/raid/android/system/out/target/product/goyave3g/obj/NOTICE.txt /home/raid/android/system/out/target/product/goyave3g/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" /home/raid/android/system/out/target/product/goyave3g/obj/NOTICE_FILES/src
failed to reconstruct target deflate chunk 1 [(null)]; treating as normal
chunk 0: type 0 start 0 len 5230602
chunk 1: type 2 start 5230602 len 1732096
chunk 2: type 0 start 6193783 len 269705
Construct patches for 3 chunks...
Combining NOTICE files into HTML
Combining NOTICE files into text
patch 0 is 206 bytes (of 5230602)
patch 1 is 1730987 bytes (of 963181)
patch 2 is 196 bytes (of 269705)
chunk 0: normal ( 0, 5230602) 206
chunk 1: deflate ( 5230602, 3389635) 1730987 (null)
chunk 2: normal ( 8620237, 270131) 196
Installing recovery patch to system partition
Traceback (most recent call last):
File "./build/tools/releasetools/make_recovery_patch", line 55, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/make_recovery_patch", line 37, in main
OPTIONS.info_dict = common.LoadInfoDict(input_dir)
File "/home/raid/android/system/build/tools/releasetools/common.py", line 201, in LoadInfoDict
d["fstab"] = LoadRecoveryFSTab(read_helper, d["fstab_version"], d["device_type"])
File "/home/raid/android/system/build/tools/releasetools/common.py", line 285, in LoadRecoveryFSTab
raise ValueError("malformed recovery.fstab line: "%s"" % (line,))
ValueError: malformed recovery.fstab line: "/boot emmc /dev/block/platform/sprd-sdhci.3/by-name/KERNEL"
build/core/Makefile:1074: recipe for target '/home/raid/android/system/out/target/product/goyave3g/system/bin/install-recovery.sh' failed
make: *** [/home/raid/android/system/out/target/product/goyave3g/system/bin/install-recovery.sh] Error 1
make: Leaving directory '/home/raid/android/system'

#### make failed to build some targets (03:18 (mm:ss)) ####

This is what is in my recovery.fstab

Quote:

/boot emmc /dev/block/platform/sprd-sdhci.3/by-name/KERNEL
/system ext4 /dev/block/platform/sprd-sdhci.3/by-name/system
/data ext4 /dev/block/platform/sprd-sdhci.3/by-name/userdata flags=length=-16384
/cache ext4 /dev/block/platform/sprd-sdhci.3/by-name/CSC
/recovery emmc /dev/block/platform/sprd-sdhci.3/by-name/RECOVERY
/efs emmc /dev/block/platform/sprd-sdhci.3/by-name/efs flags=backup=1;display=EFS

/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1
/usb-otg vfat /dev/block/sda1 /dev/block/sda flags=removable;storage;display=USB-OTG



Any help would be greatly appreciated!
Thanks!
 
 
17th June 2019, 05:11 PM |#1422  
DJABHipHop's Avatar
Senior Member
Thanks Meter: 363
 
More
Quote:
Originally Posted by rath007

There is no custom rom or kernel source for pie for my device.So , how do i create the kernel source for pie using the oreo kernel source?
Thanks

Simple see if there another device with the same SOC & spec that had it's kernel & device tree already upgrade to pie then download it's kernel & device then try building the doner device as is to see is there no build error is there are no build error then compare the defconfig files from both kernels & any file in the doner device tree against your kernel a& device tree to see what's changed between Oreo and Pi and then upgrade your kremel & device tree to Pi using commits from the doner kernel & it devce tree that apply to your device only.
The Following User Says Thank You to DJABHipHop For This Useful Post: [ View ] Gift DJABHipHop Ad-Free
19th June 2019, 09:25 PM |#1423  
Senior Member
Thanks Meter: 35
 
More
I've just built a RR nougat ROM for my Galaxy tab 3 (santos10wifi) which is an x86 device. When I install the latest Magisk 19.3, there are some issues. Magisk manager automatically denies superuser requests without a prompt but the app isn't in the superuser section of Magisk. Magisk manager takes some time to open. Sometimes it even says that Magisk isn't installed and I have to close it and wait a bit for it to detect Magisk. Magisk 16 is the latest version I tried that doesn't have these issues.
This ROM also takes a long time to boot, especially with Magisk installed, and I often have to clear dalvik/cache to get it to boot. Is there anyway I can fix these long boot times and make Magisk work?
12th July 2019, 08:29 AM |#1424  
Member
Thanks Meter: 20
 
More
Hello!
My device thread is here: https://forum.xda-developers.com/gen...hread-t3900666
It has rarest MTK chipset : MT8176 (aka MT8173). Kernel - 3.18.35, Android 7.0.
For now, I've ported all the available ROMS (stock firmwares mostly) and would like to build something new by myself. I've tried to find kernel source for my device, but only found kernel sources for other devices on this SoC. Also device tree was found and lineage os resources for alike device (Xiaomi MIPAD 3).
So, I would like to know, is there an opportunity to make custom kernel or firmware for my device as I don't have kernel source? Is it available to upgrade from Nougat to Oreo as if there is a device with same SoC running Oreo?

I will appreciate any help. Have so many questions (even dumb). Don't even know where to start. . .
17th July 2019, 02:29 AM |#1425  
Member
Thanks Meter: 18
 
More
Hello,
I am trying to build a HAVOC ROM with a lineageos device tree,but I failed
Code:
ninja: no work to do.
ninja: no work to do.
Fallback to sorted comparison for date -u +%H%M
wildcard(/home/z/sth/havoc/out/target/product/judyln/clean_steps.mk) was changed, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:44: warning: cortex-a75 is armv8-2a.
build/make/core/combo/TARGET_linux-arm.mk:46: warning: TARGET_2ND_ARCH_VARIANT, armv8-a, ignored! Use armv8-2a instead.
$(shell date -u +%H%M) was changed, regenerating...
build/make/core/combo/TARGET_linux-arm.mk:44: warning: cortex-a75 is armv8-2a.
build/make/core/combo/TARGET_linux-arm.mk:46: warning: TARGET_2ND_ARCH_VARIANT, armv8-a, ignored! Use armv8-2a instead.
Fallback to sorted comparison for date -u +%H%M
[2/997] including art/Android.mk ...
Disabling ART_BUILD_TARGET_DEBUG
Disabling ART_BUILD_HOST_DEBUG
[997/997] including vendor/themes/UI/Android.mk ...
build/make/core/Makefile:28: warning: overriding commands for target `/home/z/sth/havoc/out/target/product/judyln/system/framework/qcom.fmradio.jar'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/z/sth/havoc/out/target/product/judyln/system/framework/qcom.fmradio.jar'
build/make/core/Makefile:28: warning: overriding commands for target `/home/z/sth/havoc/out/target/product/judyln/system/etc/mkshrc'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/z/sth/havoc/out/target/product/judyln/system/etc/mkshrc'
build/make/core/Makefile:28: warning: overriding commands for target `/home/z/sth/havoc/out/target/product/judyln/system/lib/libjni_latinime.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/z/sth/havoc/out/target/product/judyln/system/lib/libjni_latinime.so'
  fi;
  echo ; 
[  0% 1/94333] build /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/check-list-timestamp
FAILED: /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/check-list-timestamp 
/bin/bash -c "(( diff --old-line-format=\"Removed %L\" 	  --new-line-format=\"Added %L\" 	  --unchanged-line-format=\"\" 	  build/make/target/product/vndk/28.txt /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/libs.txt 	  || ( echo -e \" error: VNDK library list has been changed.\\n\" \"       Changing the VNDK library list is not allowed in API locked branches.\"; exit 1 )) ) && (mkdir -p /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/ ) && (touch /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/check-list-timestamp )"
Removed VNDK-core: libvixl-arm64.so
 error: VNDK library list has been changed.
        Changing the VNDK library list is not allowed in API locked branches.
[  0% 13/94333] Check module type: /home/z/sth/havoc/out/target/product/judyln/obj/SHARED_LIBRARIES/libc_intermediates/link_type
ninja: build stopped: subcommand failed.
08:43:18 ninja failed with: exit status 1
Hoping u can help me!!!!
17th July 2019, 10:08 AM |#1426  
Senior Member
Thanks Meter: 299
 
More
Quote:
Originally Posted by Sword900

Hello!
My device thread is here: https://forum.xda-developers.com/gen...hread-t3900666
It has rarest MTK chipset : MT8176 (aka MT8173). Kernel - 3.18.35, Android 7.0.
For now, I've ported all the available ROMS (stock firmwares mostly) and would like to build something new by myself. I've tried to find kernel source for my device, but only found kernel sources for other devices on this SoC. Also device tree was found and lineage os resources for alike device (Xiaomi MIPAD 3).
So, I would like to know, is there an opportunity to make custom kernel or firmware for my device as I don't have kernel source? Is it available to upgrade from Nougat to Oreo as if there is a device with same SoC running Oreo?

I will appreciate any help. Have so many questions (even dumb). Don't even know where to start. . .

This would be a good starting point: https://github.com/Goayandi/mediatek_mt8176_development

In terms of books on Android development:
Roger Ye - Android System Programming: Porting, customizing, and debugging Android HAL
Jonathan Levin - Android Internals - A Confectioner's CookBook (available for free on his website: http://newandroidbook.com/AIvI-M-RL1.pdf - a new volume is supposed to be released this year)
Karim Yaghmour - Embedded Android
The Following User Says Thank You to Palm Trees For This Useful Post: [ View ] Gift Palm Trees Ad-Free
17th July 2019, 08:50 PM |#1427  
AlaskaLinuxUser's Avatar
OP Senior Member
Flag Fairbanks
Thanks Meter: 3,890
 
Donate to Me
More
Quote:
Originally Posted by Smart Ru

Hello,
I am trying to build a HAVOC ROM with a lineageos device tree,but I failed

Code:
[  0% 1/94333] build /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/check-list-timestamp
FAILED: /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/check-list-timestamp 
/bin/bash -c "(( diff --old-line-format=\"Removed %L\" 	  --new-line-format=\"Added %L\" 	  --unchanged-line-format=\"\" 	  build/make/target/product/vndk/28.txt /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/libs.txt 	  || ( echo -e \" error: VNDK library list has been changed.\\n\" \"       Changing the VNDK library list is not allowed in API locked branches.\"; exit 1 )) ) && (mkdir -p /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/ ) && (touch /home/z/sth/havoc/out/target/product/judyln/obj/PACKAGING/vndk_intermediates/check-list-timestamp )"
Removed VNDK-core: libvixl-arm64.so
 error: VNDK library list has been changed.
        Changing the VNDK library list is not allowed in API locked branches.
Hoping u can help me!!!!

This error happens when your vendor libraries get changed, this probably references a file that was in, or needs to be in the build, that was there or wasn't there in Lineage.

Check out https://stackoverflow.com/questions/...id-vndk-in-pie for some ideas.

You need to search your build/make/target/product/vndk/28.txt , 29.txt, current.txt files for libvixl-arm64.so, if it exists, remove it from the file, if it doesn't exist, then add it to the file in the proper alphabetical spot.
The Following User Says Thank You to AlaskaLinuxUser For This Useful Post: [ View ] Gift AlaskaLinuxUser Ad-Free
18th July 2019, 06:15 PM |#1428  
Member
Thanks Meter: 18
 
More
Quote:
Originally Posted by AlaskaLinuxUser

This error happens when your vendor libraries get changed, this probably references a file that was in, or needs to be in the build, that was there or wasn't there in Lineage.

Check out https://stackoverflow.com/questions/...id-vndk-in-pie for some ideas.

You need to search your build/make/target/product/vndk/28.txt , 29.txt, current.txt files for libvixl-arm64.so, if it exists, remove it from the file, if it doesn't exist, then add it to the file in the proper alphabetical spot.

Thx,for ur kindly help. But there have more error I found
Code:
[ 84% 106/126] Check package name for ...elephony-ext_intermediates/classes.jar
FAILED: /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp 
/bin/bash -c "(build/make/core/tasks/check_boot_jars/check_boot_jars.py build/make/core/tasks/check_boot_jars/package_whitelist.txt  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/framework-oahl-backward-compatibility_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/qcom.fmradio_intermediates/classes.jar  /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/classes.jar ) && (mkdir -p /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/ && touch /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp )"
Error: /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar contains class file org/codeaurora/ims/ImsMultiIdentityControllerBase$MultiIdentityBinder.class, which is not in the whitelist
Error: /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/qcom.fmradio_intermediates/classes.jar contains class file qcom/fmradio/FmConfig.class, which is not in the whitelist
Error: /media/ru/73bd0a09-ce3f-4bb6-8a80-286440daf8dd/home/z/sth/los/out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/classes.jar contains class file org/codeaurora/internal/Client$1.class, which is not in the whitelist
ninja: build stopped: subcommand failed.
01:09:40 ninja failed with: exit status 1
....
Yesterday, 01:27 PM |#1429  
Junior Member
Thanks Meter: 1
 
More
is it possible to compile the msm 3.18.140 kernel for a device with armv7 like the Lenovo Vibe k5?
Post Reply Subscribe to Thread

Tags
compile, guide, kernel, rom, video

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes