Related
EDIT: Turns out if you have a typo in the Account section of the dependencies file, it won't build :silly::silly: Eh
Hello, I'm looking for some guidance.
My nephew has this device and I got him building PAC for his S5 (he's been doing it for some months).
I built unofficial versions for the Sprint Note 3 and Sprint S5 (until I got him up to speed) for KitKat for about 3.5 months. He has been foaming at the mouth to get PAC on his tablet. lol
So we went about trying to get this done.
There is a CM 12.1 ROM for the v1awifi, here, which works pretty well. We figured boom good so we just need to figure out the dependency file and we can build pac for the tablet. (not so much)
He asked Valera1978 what they used in their roomservice.xml file, they replied with a link to their readme found here
I then used that to engineer a v1awifi.dependencies file (see link). I created a .mk file (see link) and added add_lunch_combo pac_v1awifi-userdebug in the proper alphabetic location in vendorsetup.sh file.
dependcy, roomservice, product
As it had been a while since I had built, I deleted the PAC-5.0 repo on my machine, set my repo init to pac-5.1 and executed repo sync. Couple hours later I had my repo. I added the dependency file above and ran getdependencies.py v1awifi, see the result below.
It stopped at the line "Fetching projects: 33% (3/9)" for 3 hours; when I press enter it asks for the github password, I know this is likely to be to a bad setting for a repo, but if I hold CTRL and click the URL in Terminal it launches Chrome and displays the repo in github.
I can download the Valera1978 repos into zip files; can I just extract the files and manually place them in order to build-pac v1awifi?
Can someone please check these things out and see what I have wrong? I've check and rechecked each repo line in dependency file so I don't know what else it might be. Much appreciated.
Thank you!
getdependencies.py v1awifi result:
Code:
[email protected]:/media/jon/DATA/pm/lp$ ./vendor/pac/tools/getdependencies.py v1awifi
Check for CyangenMod/android_hardware_samsung in local_manifest
Check for CyangenMod/android_kernel_samsung_exynos5420 in local_manifest
Check for CyangenMod/android_hardware_samsung_slsi_exynos in local_manifest
Check for CyangenMod/android_hardware_samsung_slsi_exynos5-insignal in local_manifest
Check for CyangenMod/android_hardware_samsung_slsi_exynos5420 in local_manifest
Check for CyangenMod/android_hardware_samsung_slsi_openmax in local_manifest
Check for Valera1978/android_device_samsung_v1awifi in local_manifest
Check for Valera1978/android_kernel_samsung_v1awifi in local_manifest
Check for Valera1978/android_vendor_samsung_v1awifi in local_manifest
Adding dependencies to local_manifest
Adding dependency: CyangenMod/android_hardware_samsung -> hardware/samsung
Adding dependency: CyangenMod/android_kernel_samsung_exynos5420 -> kernel/samsung/exynos5420
Adding dependency: CyangenMod/android_hardware_samsung_slsi_exynos -> hardware/samsung_slsi/exynos
Adding dependency: CyangenMod/android_hardware_samsung_slsi_exynos5-insignal -> hardware/samsung_slsi/exynos5-insignal
Adding dependency: CyangenMod/android_hardware_samsung_slsi_exynos5420 -> hardware/samsung_slsi/exynos5420
Adding dependency: CyangenMod/android_hardware_samsung_slsi_openmax -> hardware/samsung_slsi/openmax
Adding dependency: Valera1978/android_device_samsung_v1awifi -> device/samsung/v1awifi
Adding dependency: Valera1978/android_kernel_samsung_v1awifi -> kernel/samsung/v1awifi
Adding dependency: Valera1978/android_vendor_samsung_v1awifi -> vendor/samsung
Syncing dependencies
Fetching project CyangenMod/android_hardware_samsung_slsi_exynosFetching project CyangenMod/android_hardware_samsung_slsi_openmax
Fetching project Valera1978/android_kernel_samsung_v1awifi
Fetching project Valera1978/android_vendor_samsung_v1awifi
Fetching project CyangenMod/android_hardware_samsung
Fetching project CyangenMod/android_hardware_samsung_slsi_exynos5420
Fetching project CyangenMod/android_hardware_samsung_slsi_exynos5-insignal
Fetching project Valera1978/android_device_samsung_v1awifi
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
Username for 'https://github.com': curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
remote: Counting objects: 309, done.
remote: Compressing objects: 100% (3/3), done.
Username for 'https://github.com': remote: Counting objects: 67, done.
remote: Total 309 (delta 4), reused 3 (delta 3), pack-reused 303
Receiving objects: 100% (309/309), 163.58 KiB | 0 bytes/s, done.
Resolving deltas: 100% (100/100), done.
remote: Total 67 (delta 0), reused 0 (delta 0), pack-reused 67
remote: Counting objects: 230, done.
From https://github.com/Valera1978/android_kernel_samsung_v1awifi
* [new branch] cm12 -> github/cm12
Fetching projects: 11% (1/9) Fetching project CyangenMod/android_kernel_samsung_exynos5420
Username for 'https://github.com': Username for 'https://github.com': From https://github.com/Valera1978/android_device_samsung_v1awifi
* [new branch] cm12 -> github/cm12
% Total % Received % Xferd Average Speed Time Time Time Current
Fetching projects: 22% (2/9) t Left Speed Total Spen
curl: (22) The requested URL returned error: 404 Not Found--:-- --:--:-- 0Receiving objects: 9% (21/230)
Server does not provide clone.bundle; ignoring.
remote: Total 230 (delta 0), reused 0 (delta 0), pack-reused 230 8 MiB | 2.74 MiB/s
Receiving objects: 100% (230/230), 28.64 MiB | 6.24 MiB/s, done.
Resolving deltas: 100% (89/89), done.
From https://github.com/Valera1978/android_vendor_samsung_v1awifi
* [new branch] cm12 -> github/cm12
Fetching projects: 33% (3/9)
Password for 'https://github.com':
[1]+ Stopped ./vendor/pac/tools/getdependencies.py v1awifi
[email protected]:/media/jon/DATA/pm/lp$
Hi All,
not sure if the correct thread to post my issues.. i am trying to build my own AOSP rom and has setup my repo for the following:-
repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r45
afte that i ran "repo sync" and left it to running... now 2hrs later i saw that it had got stuck at the following:-
remote: Counting objects: 1, done
remote: Finding sources: 100% (1/1)
remote: Total 1 (delta 0), reused 1 (delta 0)
From https://android.googlesource.com/device/huawei/angler-kernel
* [new tag] android-n-preview-4 -> android-n-preview-4
so i did pressed control+z and stopped repo sync... and then i ran the same again... it started showing of fetching the multiple things but i saw the following error:-
Fetching projects: 36% (164/454) Fetching project platform/prebuilts/qemu-kernel
Fetching project platform/frameworks/opt/widget
Fetching project platform/external/antlr
fatal: Unable to create '/home/rohit/AOSP/.repo/projects/prebuilts/qemu-kernel.git/shallow.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
Fetching project platform/hardware/nvidia/audio
Fetching projects: 37% (168/454) Fetching project platform/external/srtp
Fetching project platform/external/roboto-fonts
Fetching project platform/external/selinux
after that it still went a few lines and then got showed the following error and stopped:-
Fetching project platform/external/google-fonts/dancing-script
error: Cannot fetch platform/prebuilts/qemu-kernel
Fetching project platform/external/fsck_msdos
Fetching projects: 60% (273/454)
error: Exited sync due to fetch errors
now i believe it's due to that "shallow.lock" file which is causing the issues and deleting the same should help me out.. but when i try to open my directory AOSP it shows me no files.. just a blank folder...
this is where i could use some help.. as i am new to it.. and any further research is just confusing me...
Got the answers from the awesome ppl at slim builders collective....
Need to use the following"repo sync --force-sync"
SENT... isn't that enough
Overview
I've created a very simple #!/bin/bash script (attached) to automate the initial build or subsequent rebuild of SpookCity138's ROM:
Slim Rom 7 for the Samsung S5 mini G800f (kminilte). The script simply automates the steps and processes created by others (none of which is my own work - all credit goes to the original creators). I have only tested this script on my own working environment: Gnome Ubuntu 17.04; 16GB RAM; i7-7700HQ; If your environment differs from this your experience may differ from mine.
How to Execute script
See readme at: https://github.com/fidoedidoe/build_scripts
Thanks
@spookcity138, @jimmy999x. Taking the time to educate me at each and every tentative step and demonstrating great patience
Contributors
spookcity138
jimmy999x
Script Source
The latest version of the script (and others for different devices) can be found here: https://github.com/fidoedidoe/build_scripts
SpookCity138's ROM
https://forum.xda-developers.com/galaxy-s5-mini/development/rom-slim-rom-7-nougat-t3558926
Created 2017-09-20
Last Updated 2017-12-09
There are sources to build this ROM for the Snapdragon variant (G800H)? It's a very good device, but simply there is not a single Nougat ROM for it...
wow, excellent, I have reviewed the code (I have not executed it yet) looks pretty good, it should work, I have to copy your script and modify it for other roms, thanks!
edit 1: it is possible to use this script (I use it and it works perfect) to automate even more the process of configuring the compilation environment https://github.com/akhilnarang/scripts
Also, for Ubunt 16.04 I added a couple more to make it easier some things:
cmake
nautilus (optional)
phablet-tools
unrar
silversearcher-ag (this is optional, but extremely useful for me, allows me to find the problematic lines inside a document or folder)
lfom said:
There are sources to build this ROM for the Snapdragon variant (G800H)? It's a very good device, but simply there is not a single Nougat ROM for it...
Click to expand...
Click to collapse
You need to apply some SELinux, CAF, And CM/LOS Patches to build a Nougat ROM for G800H, or that rom will not boot, or will shall not pass from build errors.
Is not a easy task.....
lfom said:
There are sources to build this ROM for the Snapdragon variant (G800H)? It's a very good device, but simply there is not a single Nougat ROM for it...
Click to expand...
Click to collapse
i found this on YT
so far so good for me
give it a try
https://youtu.be/UPOpJgqnlf8
not working for me -- using xubuntu 17.10
ko_taka said:
not working for me -- using xubuntu 17.10
Click to expand...
Click to collapse
Script updated on github (follow links for build_slimrom7_kminilte.sh). Tested on my laptop (Ubuntu gnome 17.04) and SlimRom7 version 1.17 builds successfully (although I have yet to test the build on the device). I'll update the attached zip in the opening page in the coming days, but as a general rule github is the best place to find latest version(s).
Thanks to @spookcity138 (again) for taking time the time and offering sound help / advice identifying the issues and resolve (the issue was within applying device specific patches ./apply.sh).
I am on 40GB partition. Not enough?
perly terminated.
Fetching projects: 70% (381/544) fatal: unable to access 'https://android.googlesource.com/platform/hardware/akm/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
Fetching projects: 73% (398/544) fatal: unable to access 'https://android.googlesource.com/platform/system/connectivity/shill/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
fatal: unable to access 'https://android.googlesource.com/platform/external/jsr330/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
Fetching projects: 74% (403/544) fatal: unable to access 'https://android.googlesource.com/platform/external/jsr330/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
error: Cannot fetch platform/external/jsr330
Fetching projects: 78% (425/544) fatal: write error: No space left on device
fatal: write error: No space left on device
fatal: write error: No space left on device
fatal: write error: No space left on device
fatal: write error: No space left on device
fatal: write error: No space left on device
fatal: write error: No space left on device
fatal: index-pack failed
error: index-pack died
fatal: index-pack failed
fatal: index-pack failed
fatal: index-pack failed
fatal: index-pack failed
fatal: index-pack failed
error: Cannot fetch SlimRoms/frameworks_base
Click to expand...
Click to collapse
ko_taka said:
I am on 40GB partition. Not enough?
Click to expand...
Click to collapse
Yeah,you're running out of space. I don't recall exactly what the sources and the build of a nougat ROM take,space wise. It seems a little weird you were running out of space syncing the sources. If I recall correctly nougat sources are somewhere between 25-30GB. I could be wrong though. The actual build itself (the out folder) also takes a fair bit of space. Again,just guessing,but around 15-20GB. I would say 60GB would be what you need.
hi spookcity138, nice to see you around
I haven't coded that so I'm feeling a bit lost
The process finally ended (now I am on 80GB partition)
I do not know where is the build if that built anything
those are the last lines
build_slimrom7_kminilte.sh: 176: build_slimrom7_kminilte.sh: [[: not found
Remove references to OmniRom recovery...
remove config_uriBlruEnabled references, spoils the build...
alter local manifest files for slimrom 7 build compatability...
insert text into file: frameworks/base/core/res/res/values/config.xml...
delete file cm_arrays.xml...
remove flipflap stuff from device/samsung/smdk3470-common/smdk3470-common.mk...
build_slimrom7_kminilte.sh: 205: read: Illegal option -t
build_slimrom7_kminilte.sh: 210: build_slimrom7_kminilte.sh: [[: not found
patching file include/telephony/ril.h
Hunk #1 FAILED at 31.
Hunk #2 succeeded at 395 (offset -1 lines).
Hunk #3 succeeded at 409 (offset -1 lines).
Hunk #4 succeeded at 569 (offset -1 lines).
Hunk #5 succeeded at 624 (offset -1 lines).
Hunk #6 succeeded at 1023 (offset -1 lines).
Hunk #7 succeeded at 5217 (offset -1 lines).
Hunk #8 succeeded at 5866 (offset -1 lines).
1 out of 8 hunks FAILED -- saving rejects to file include/telephony/ril.h.rej
manually reapplying failed Hunk #1...
patching file ril/Android.mk
patching file ril/libril/Android.mk
patching file ril/libril/ril.cpp
patching file ril/libsecril-client/Android.mk
applying frameworks_av to frameworks/av
Applying: av: Add samsung wfd service
Applying: add Android M MediaBufferGroup:MediaBufferGroup() for libwvm.so
applying frameworks_native to frameworks/native
Applying: Revert "Remove Parcel::writeIntPtr."
Applying: add missing const getSensorList() for MM gpsd (G800FXXU1CPK5)
applying hardware_libhardware to hardware/libhardware
applying hardware_ril to hardware/ril
Applying: ril: recover on crash
applying hardware_samsung_ril to hardware/samsung/ril
Applying: add SetAudioMode and SetSoundClockMode for MM audio-ril
applying packages_services_Telephony to packages/services/Telephony
./apply.sh: line 24: cd: /home/ferran/android/build_scripts/packages/services/Telephony: No such file or directory
build_slimrom7_kminilte.sh: 238: read: Illegal option -t
build_slimrom7_kminilte.sh: 243: build_slimrom7_kminilte.sh: [[: not found
prepare device specific code...
build_slimrom7_kminilte.sh: 249: build_slimrom7_kminilte.sh: source: not found
build_slimrom7_kminilte.sh: 250: build_slimrom7_kminilte.sh: lunch: not found
running croot...
build_slimrom7_kminilte.sh: 253: build_slimrom7_kminilte.sh: croot: not found
build_slimrom7_kminilte.sh: 262: read: Illegal option -t
build_slimrom7_kminilte.sh: 267: build_slimrom7_kminilte.sh: [[: not found
running mka bacon...
build_slimrom7_kminilte.sh: 273: build_slimrom7_kminilte.sh: mka: not found
Click to expand...
Click to collapse
ko_taka said:
hi spookcity138, nice to see you around
I haven't coded that so I'm feeling a bit lost
The process finally ended (now I am on 80GB partition)
I do not know where is the build if that built anything
those are the last lines
Click to expand...
Click to collapse
The build did not start. It applied the patches successfully (all but one where there was an error) Then it is just a serious of failures. I have not used this script so I cant say specifically where you are going wrong. Does the script have executable permissions? (I assume so as it partially worked) Do you have all of the need dependencies for building Android? Thats not the issue I don't think,but you need them either way. Other than that I am not real sure honestly. You may need to wait for @fidoedidoe to help you. I'll reply back if any possible reason comes to mind.
ko_taka said:
hi spookcity138, nice to see you around
I haven't coded that so I'm feeling a bit lost
The process finally ended (now I am on 80GB partition)
I do not know where is the build if that built anything
those are the last lines
Click to expand...
Click to collapse
Hi @ko_taka
@spookcity138 is correct, the script failed...when it succeeds it's pretty clear the last few messages published will read along the lines of: "Package Complete: .../out/target/product/kminilte/Slim-kminilte-7.1.2.build.1.17-UNOFFICIAL-20171209-1401.zip" followed by "#### make completed successfully (24:30 (mm:ss)) ####" (note the build time will vary depending on the power of your build machine and utilisation of ccache). Oh, FYI - my build folder is ~95GB in size (the ../out/ folder is 26GB and the ../.repo/ folder is 47GB!!)
Back to the script failure....first verify the following variable in the build_slimrom7_kminilte.sh is defined correctly for your environment:
Code:
WORK_DIRECTORY="$HOME/android/slimrom7"
For my personal build environment I keep the script (build_slimrom7_kminilte.sh) in a separate folder to where the source is located and the build is output to (just so i can purge those folders without losing the build script). FYI on your laptop your folder structure should look something like that shown below, with build_slimrom7.kminilte.sh stored in the folder .../build_scripts
Code:
/home/ferran/android/build_scripts
/home/ferran/android/slimrom7
Once the above is verified...the primary issue you have is every time you see "...[[: not found", the script is hitting an issue. Check that the first line of the script contains the line "#!/bin/bash ", this is called "shebang" and it tells your shell what program to interpret the script with, in our case we need "Bash". I'm now wondering what OS / Shell you're using (I use Ubuntu Gnome 17.04 with Bash version 4.4.7) does yours differ from this? To verify your Bash version:
Code:
$ bash -version
GNU bash, version 4.4.7(1)-release (x86_64-pc-linux-gnu)
Copyright © 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
You could try forcing your shell to use bash (from memory), by switching to the /build_scripts/ folder and running the following command (do not use sudo or any elevated permissions):
Code:
$ cd /home/ferran/android/build_scripts
$ ./build_slimrom7_kminilte.sh
Let me know how you get on, in essence the script is failing on the evaluation lines where "if [[....]]" is used. if we can't get it to work, in your case, the script may need to be altered to change the evaluation (perhaps "if [...]" would be more suitable). Anyway - give me some feedback and lets see if we can get you a little further.
my bash is 4.4.12
working directory had been set correctly
I removed the double [[ leaving a simple [ same with ]] closing brackets
it says Illegal option -t in line 238
this is line 238: read -r -p "6/7. Initialise environment for Build <Y/n>? (automatically continues unprompted after 10 seconds): " -t 10 -e -i Y PROMPT
it also says [: Y: unexpected operator on line 243
this is line 243: if [ ! $PROMPT =~ ^[Yy]$ ]; then
Timte to time I was getting errors while fetching
TLS errors
I found it is due gnutls package and applied the following solution:
compile git with openssl. To do this, run the following commands:
sudo apt-get update
sudo apt-get install build-essential fakeroot dpkg-dev libcurl4-openssl-dev
sudo apt-get build-dep git
mkdir ~/git-openssl
cd ~/git-openssl
apt-get source git
dpkg-source -x git_1.7.9.5-1.dsc
cd git-1.7.9.5
(Remember to replace 1.7.9.5 with the actual version of git in your system.)
Then, edit debian/control file (run the command: gksu gedit debian/control) and replace all instances of libcurl4-gnutls-dev with libcurl4-openssl-dev.
Then build the package (if it's failing on test, you can remove the line TEST=test from the file debian/rules):
sudo dpkg-buildpackage -rfakeroot -b
Install new package:
x86_64: sudo dpkg -i ../git_1.7.9.5-1_amd64.deb
Click to expand...
Click to collapse
I'm using git-openssl build now
Just started the fetching process again
I'm under virtual machine on a host with a proper firewall configuration -- maybe that caused the connection problems while fetching
ko_taka said:
my bash is 4.4.12
working directory had been set correctly
I removed the double [[ leaving a simple [ same with ]] closing brackets
it says Illegal option -t in line 238
this is line 238: read -r -p "6/7. Initialise environment for Build <Y/n>? (automatically continues unprompted after 10 seconds): " -t 10 -e -i Y PROMPT
it also says [: Y: unexpected operator on line 243
this is line 243: if [ ! $PROMPT =~ ^[Yy]$ ]; then
Click to expand...
Click to collapse
Sounds like we're making progress. This is good. So, reading around the subject of square brackets vs double. It transpires converting the evaluations from double square brackets ([[..]]) to singles ([..]) may** change how variables are referenced. In my script I was forced to use double square brackets to correctly evaluate the response from the "read -r....." (read input) command (where it evaluates when upper or lower case Y is entered). If this command is changed from double square brackets to single ones the command then fails (on my setup). Further to this, in your reply it appears you're also having issues with the "read" command, for some reason your version doesn't support the -t directive (which waits for N seconds - ie: -t 5 will wait 5 seconds for user input).
For now the easiest thing to do is to remove *all* of the steps in the script that awaits input from the user to continue processing the script (they are non essential vanity items primarily used while I was building out the script). There are 7 is these in the script (look for "1/7", "2/7", "3/7", etc etc), just comment out (insert # at beginning of each line) for all 7 instances. There are ~10 lines per instance, examples of how instance #1 and #7 should look after editing is below. Just do the same for all 7 instances in your script and re run the script.
Code:
...
...
#PROMPT=""
#read -r -p "1/7. Initialise/Reinitialise Repo, first 'repo init' will take hours <Y/n>? (automatically continues unpromted after 5 seconds): " -t 5 -e -i Y PROMPT
#echo
#if [ -z "$PROMPT" ]; then
# PROMPT="Y"
#fi
#if [[ ! $PROMPT =~ ^[Yy]$ ]]; then
# echo "Response: '$PROMPT', exiting!"
# exit 1
#fi
...
...
#PROMPT=""
#read -r -p "7/7. Build rom (this segment can take hours) <Y/n>? (automatically continues unprompted after 10 seconds): " -t 10 -e -i Y PROMPT
#echo
#if [ -z "$PROMPT" ]; then
# PROMPT="Y"
#fi
#if [[ ! $PROMPT =~ ^[Yy]$ ]]; then
# echo "Response: '$PROMPT', exiting!"
# exit 1
#fi
...
I'd be really interested in knowing what OS you're using (Ubuntu, Mac, etc along with version) perhaps I can use this detail to come up with a more generic version of the script.
Good luck, let me know how you get on.
ko_taka said:
Timte to time I was getting errors while fetching
TLS errors
I found it is due gnutls package and applied the following solution:
I'm using git-openssl build now
Just started the fetching process again
I'm under virtual machine on a host with a proper firewall configuration -- maybe that caused the connection problems while fetching
Click to expand...
Click to collapse
I'd also try changing the value of the variable: REPO_SYNC_THREADS in the script to something lower (more suitable to your internet bandwidth / performance), try 2 or 4 and build up from there. ie: REPO_SYNC_THREADS=2
I think the problem was on GIT .. confusing I think so
I would be waiting a message like (file doesnt exist or something like that)
anyway I still with compiling errors but now is quite different
I am using virtualbox (Xubuntu 17.10) on Mac OS 10.13.2 Mac Mini 2014 entry level
applying packages_services_Telephony to packages/services/Telephony
./apply.sh: line 24: cd: /home/ferran/android/slimrom7/packages/services/Telephony: No such file or directory
6/7. Initialise environment for Build <Y/n>? (automatically continues unprompted after 10 seconds): Y
prepare device specific code...
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-mips64/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/samsung/kminilte/vendorsetup.sh
build/envsetup.sh: line 1716: vendor/slim/build/envsetup.sh: No such file or directory
build/core/product_config.mk:250: *** _nic.PRODUCTS.[[device/samsung/kminilte/slim.mk]]: "vendor/slim/config/common_full_phone.mk" does not exist. Stop.
build/envsetup.sh: line 624: vendor/slim/build/tools/roomservice.py: No such file or directory
build/core/product_config.mk:250: *** _nic.PRODUCTS.[[device/samsung/kminilte/slim.mk]]: "vendor/slim/config/common_full_phone.mk" does not exist. Stop.
cat: /home/ferran/android/slimrom7/vendor/slim/build/envsetup.sh: No such file or directory
cat: /home/ferran/android/slimrom7/vendor/slim/build/envsetup.sh: No such file or directory
build/core/product_config.mk:250: *** _nic.PRODUCTS.[[device/samsung/kminilte/slim.mk]]: "vendor/slim/config/common_full_phone.mk" does not exist. Stop.
** Don't have a product spec for: 'slim_kminilte'
** Do you have the right repo manifest?
running croot...
mka clean/clobber needed...
./build_slimrom7_kminilte.sh: line 257: mka: command not found
7/7. Build rom (this segment can take hours) <Y/n>? (automatically continues unprompted after 10 seconds): Y
running mka bacon...
./build_slimrom7_kminilte.sh: line 273: mka: command not found
Click to expand...
Click to collapse
ko_taka said:
I think the problem was on GIT .. confusing I think so
I would be waiting a message like (file doesnt exist or something like that)
anyway I still with compiling errors but now is quite different
I am using virtualbox (Xubuntu 17.10) on Mac OS 10.13.2 Mac Mini 2014 entry level
Click to expand...
Click to collapse
Thanks for the feedback. At first glance it looks to me like your issue is less to do with the script and more to do with not having all the source locally. Seeing commands such as running ./apply.sh (puled down with the source) error reporting "file not found" is the smoking gun.
Right now I'd be tempted to say ensure you've successfully pulled the primary SlimRom7 source locally. It may be easier to do this outside of the script by running the following:
Code:
$ cd /home/ferran/android/slimrom7/
$ repo forall -vc "git reset --hard" --quiet
$ repo sync --jobs="2"
Keep an eye out of timeouts / 404 while it's syncing the repo's (the third of the three commands above). If you get errors just keep rerunning the "repo sync" command given above while in the correct directory until it completes without error. Once you have that done successfully, change the the build_scripts directory and re-run the script. If you see timeouts / 404 in the script output then you might have to manually run the "git clone" commands to see which one is causing the issue(s).
why does need that much space?
I was executing
$ repo forall -vc "git reset --hard" --quiet
$ repo sync --jobs="2"
Click to expand...
Click to collapse
I am getting the message "out of space"
80GB full of source code and even need more space??
ko_taka said:
why does need that much space?
I was executing
I am getting the message "out of space"
80GB full of source code and even need more space??
Click to expand...
Click to collapse
Use a disk usage analysis tool to find out whether earlier failed attempts pulled source down to multiple locations (when the script was failing).. I mentioned in an earlier post the size of the repo, look back 5 or 6 posts. Don't forget the bulk of the source will be contained in a hidden folder named /.repo/ check this folder doesn't exist outside of the build folder (/slimrom7/)...looking at earlier attempts I'd fist check your /build_scripts/ folder for the hidden .repo folder and if there delete it. Good luck
Hellow guys, i have an hP laptop with 16 gigs of ram and enough hdd space. also i am running xubuntu 16.04 where i was previously able to compile custom roms. however recently my hard drive had crashed and i had to recover using easeUS. then i formatted it to exFat. Xubuntu as such is giving me write operations on exFat devices. my problem is now whenever am using repo sync a custom rom source it gives error like
Code:
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$ repo init -u https://github.com/PixelExperience/manifest -b oreo-mr1
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Finding sources: 100% (5/5)
remote: Total 5 (delta 0), reused 5 (delta 0)
Unpacking objects: 100% (5/5), done.
From https://gerrit.googlesource.com/git-repo
cf7c083..0f2e45a master -> origin/master
Get https://github.com/PixelExperience/manifest
Traceback (most recent call last):
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 399, in Execute
self._SyncManifest(opt)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 171, in _SyncManifest
m._InitGitDir(mirror_git=mirrored_manifest_git)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2292, in _InitGitDir
self._UpdateHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2312, in _UpdateHooks
self._InitHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2341, in _InitHooks
os.symlink(os.path.relpath(stock_hook, os.path.dirname(dst)), dst)
OSError: [Errno 38] Function not implemented
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$
any help would be recommended and appreciated
Ayan Uchiha Choudhury said:
Code:
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$ repo init -u https://github.com/PixelExperience/manifest -b oreo-mr1
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Finding sources: 100% (5/5)
remote: Total 5 (delta 0), reused 5 (delta 0)
Unpacking objects: 100% (5/5), done.
From https://gerrit.googlesource.com/git-repo
cf7c083..0f2e45a master -> origin/master
Get https://github.com/PixelExperience/manifest
Traceback (most recent call last):
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 399, in Execute
self._SyncManifest(opt)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 171, in _SyncManifest
m._InitGitDir(mirror_git=mirrored_manifest_git)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2292, in _InitGitDir
self._UpdateHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2312, in _UpdateHooks
self._InitHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2341, in _InitHooks
os.symlink(os.path.relpath(stock_hook, os.path.dirname(dst)), dst)
OSError: [Errno 38] Function not implemented
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$
any help would be recommended and appreciated
Click to expand...
Click to collapse
Wrong place to ask but yeah, have you installed the latest version of repo and python2 ?
Or before that try `rm -rf .repo` and then init again.
Android Building queries can be discussed here:
https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
Yes yes I did both. I also created a new directory and tried repo init. But still
emmm....
Ayan Uchiha Choudhury said:
Yes yes I did both. I also created a new directory and tried repo init. But still
Click to expand...
Click to collapse
Have you found anything to solution ?
SchafferWang said:
Have you found anything to solution ?
Click to expand...
Click to collapse
Exfat was the problem. Formatted to NTFS to fix it
Hi @retiredtab
First of all, thanks for all your help and hardwork in keeping Galaxy Tab A devices alive.
I am trying to build your sources to start development for my SM-P555 device and following the instructions detailed in your https://github.com/retiredtab/LineageOS-build-manifests/blob/main/191-build-instructions.txt
While executing https://github.com/retiredtab/LineageOS-build-manifests/blob/main/191-build-instructions.txt#L43, I am hitting this prompt and seeking your advice on what needs to be done.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Many thanks!
In order for line 43 to 64 to work, you need to be in the frameworks/av directory as show in line 41.
You then have to use the patch command exactly as shown if you have directories named the same.
I updated the build instructions for Sept 5th patches to reflect a compiler error. Be sure to use the new instructions.
retiredtab said:
In order for line 43 to 64 to work, you need to be in the frameworks/av directory as show in line 41.
You then have to use the patch command exactly as shown if you have directories named the same.
Click to expand...
Click to collapse
I have executed in the same folder, let me try again and confirm.
The patches have succeeded for now.
Please advise why is it reporting bad object
is it because the changes are already merged to the lineage ?
If you didn't do a repo sync earlier, you may not have the correct vendor/lineage repo.
If you
Bash:
cd vendor/lineage
git log
it should look like this (after applying the camera patch). Note it's on branch m/lineage-19.1, github/lineage-19.1
Code:
commit adac70126753c3c666396c08d068147c4226255d
Author: Kyle Harrison <[email protected]>
Date: Wed Oct 27 14:54:44 2021 +0100
soong: Update camera_in_mediaserver_defaults
- Add [email protected]
Change-Id: I1ad534d87ce3b35d0116bccdbc0ac7f70c799c00
commit cff7740aea7cb154f800a428be712e2833bd8b5a (m/lineage-19.1, github/lineage-19.1)
Author: Nicholas Merill <[email protected]>
Date: Thu Jul 7 03:43:12 2022 +0530
sensitive_pn: Updates to USA list
Change-Id: I4405a50d00d7bc3b0d70e5233104895aaecb4cde
# press q to quit
If I do a
Bash:
vendor/lineage$ git log 8f67d055b36d992f2f09aa6f733aa06ee3d5b917
commit 8f67d055b36d992f2f09aa6f733aa06ee3d5b917
Author: Han Wang <[email protected]>
Date: Sat Feb 26 17:54:17 2022 +0100
Remove libbfqio
* BFQ is not enabled in kernels for recent devices. Considering
that pre-MSM8998 devices are likely to be dropped, it is time
for this ricing to die.
Change-Id: I7fcf7afa7aa7c7aaab2e7ee917b1e2e8203d0abb
In addition, this commit was done April 18, 2022 has shown by
https://github.com/LineageOS/android_vendor_lineage/commit/8f67d055b36d992f2f09aa6f733aa06ee3d5b917
and it has the same commit hash.
retiredtab said:
If you didn't do a repo sync earlier, you may not have the correct vendor/lineage repo.
If you
Bash:
cd vendor/lineage
git log
it should look like this (after applying the camera patch). Note it's on branch m/lineage-19.1, github/lineage-19.1
Code:
commit adac70126753c3c666396c08d068147c4226255d
Author: Kyle Harrison <[email protected]>
Date: Wed Oct 27 14:54:44 2021 +0100
soong: Update camera_in_mediaserver_defaults
- Add [email protected]
Change-Id: I1ad534d87ce3b35d0116bccdbc0ac7f70c799c00
commit cff7740aea7cb154f800a428be712e2833bd8b5a (m/lineage-19.1, github/lineage-19.1)
Author: Nicholas Merill <[email protected]>
Date: Thu Jul 7 03:43:12 2022 +0530
sensitive_pn: Updates to USA list
Change-Id: I4405a50d00d7bc3b0d70e5233104895aaecb4cde
# press q to quit
If I do a
Bash:
vendor/lineage$ git log 8f67d055b36d992f2f09aa6f733aa06ee3d5b917
commit 8f67d055b36d992f2f09aa6f733aa06ee3d5b917
Author: Han Wang <[email protected]>
Date: Sat Feb 26 17:54:17 2022 +0100
Remove libbfqio
* BFQ is not enabled in kernels for recent devices. Considering
that pre-MSM8998 devices are likely to be dropped, it is time
for this ricing to die.
Change-Id: I7fcf7afa7aa7c7aaab2e7ee917b1e2e8203d0abb
In addition, this commit was done April 18, 2022 has shown by
https://github.com/LineageOS/android_vendor_lineage/commit/8f67d055b36d992f2f09aa6f733aa06ee3d5b917
and it has the same commit hash.
Click to expand...
Click to collapse
Thanks for your response.
my response for git log
Bash:
commit 86b2513158d87d7f9836248ad6e2ac5bf9ff91af (HEAD)
Author: Kyle Harrison <[email protected]>
Date: Wed Oct 27 14:54:44 2021 +0100
soong: Update camera_in_mediaserver_defaults
- Add [email protected]
Change-Id: I1ad534d87ce3b35d0116bccdbc0ac7f70c799c00
commit 8e451618f9766f17ef796d734d93216dd69122b2 (grafted, m/lineage-19.1, github/lineage-19.1)
Author: Aaron Kling <[email protected]>
Date: Wed Jun 22 15:08:04 2022 -0500
overlay: Use -television instead of -large-notouch for atv
Mobile builds on devices with no touch panel are also getting these
settings applied, which is not intended.
Change-Id: I0e0e1635ec21f0fbddcaef311b443b80f2da2b86
So the git reverse should work now. The git revert is required otherwise you will get compiler errors.
I am still getting the same error. is there anyway to delete and just resync this folder ?
Bash:
git revert 8f67d055b36d992f2f09aa6f733aa06ee3d5b917
Result
fatal: bad object 8f67d055b36d992f2f09aa6f733aa06ee3d5b917
git status
Result
HEAD detached from 8e451618
nothing to commit, working tree clean
psuryatej said:
I am still getting the same error. is there anyway to delete and just resync this folder ?
Click to expand...
Click to collapse
I see the problem now after doing an experiment. You did a repo init with --depth=1 which only shows the last git commit in the history. See below. With --depth=1, it will never show the older git commits. I didn't notice the "grafted" earlier in the post.
Bash:
$ git clone https://github.com/LineageOS/android_vendor_lineage -b lineage-19.1 --depth=1
Cloning into 'android_vendor_lineage'...
remote: Enumerating objects: 424, done.
remote: Counting objects: 100% (424/424), done.
remote: Compressing objects: 100% (281/281), done.
remote: Total 424 (delta 93), reused 286 (delta 53), pack-reused 0
Receiving objects: 100% (424/424), 32.08 MiB | 22.65 MiB/s, done.
Resolving deltas: 100% (93/93), done.
$ cd android_vendor_lineage/
$ git log
commit fa16b42ddd1eb341f201b8d810c717ea12afe1cb (grafted, HEAD -> lineage-19.1, origin/lineage-19.1, origin/HEAD)
Author: Luca Stefani <[email protected]>
Date: Mon Sep 12 17:55:12 2022 -0400
kernel: Allow passing empty DTB to mkbootimg via board-flag
* Boot Image header v2 demands a DTB be passed by default.
* We don't /need/ one at all, as we have and use a dedicated
DTB partition.
* Signing hates trying to find dtb.img anywhere for some magical
reason, so cheat and introduce a flag to include a blank one.
Change-Id: I889ce3815476a55829870b30de1b9210283a79ae
You can add those required files back by downloading
https://github.com/LineageOS/android_vendor_lineage/tree/lineage-18.1/libbfqio
into the appropriate directories. There's only 3 small files to download, but the directory structure has to match the above URL.
By doing the above, you don't have to do the git revert.
retiredtab said:
I see the problem now after doing an experiment. You did a repo init with --depth=1 which only shows the last git commit in the history. See below. With --depth=1, it will never show the older git commits. I didn't notice the "grafted" earlier in the post.
Bash:
$ git clone https://github.com/LineageOS/android_vendor_lineage -b lineage-19.1 --depth=1
Cloning into 'android_vendor_lineage'...
remote: Enumerating objects: 424, done.
remote: Counting objects: 100% (424/424), done.
remote: Compressing objects: 100% (281/281), done.
remote: Total 424 (delta 93), reused 286 (delta 53), pack-reused 0
Receiving objects: 100% (424/424), 32.08 MiB | 22.65 MiB/s, done.
Resolving deltas: 100% (93/93), done.
$ cd android_vendor_lineage/
$ git log
commit fa16b42ddd1eb341f201b8d810c717ea12afe1cb (grafted, HEAD -> lineage-19.1, origin/lineage-19.1, origin/HEAD)
Author: Luca Stefani <[email protected]>
Date: Mon Sep 12 17:55:12 2022 -0400
kernel: Allow passing empty DTB to mkbootimg via board-flag
* Boot Image header v2 demands a DTB be passed by default.
* We don't /need/ one at all, as we have and use a dedicated
DTB partition.
* Signing hates trying to find dtb.img anywhere for some magical
reason, so cheat and introduce a flag to include a blank one.
Change-Id: I889ce3815476a55829870b30de1b9210283a79ae
You can add those required files back by downloading
https://github.com/LineageOS/android_vendor_lineage/tree/lineage-18.1/libbfqio
into the appropriate directories. There's only 3 small files to download, but the directory structure has to match the above URL.
By doing the above, you don't have to do the git revert.
Click to expand...
Click to collapse
Many thanks for explaining the details.
I am using the fix from the link below to build lineage-19.1 on 8gb ram
Workarounds for building Android 12 on 8GB RAM
I am getting the error during the build process and sharing the full log in
Error log
please let me know your thoughts on this
I never had that error. For your error, I suggest you do a
Code:
make clean
brunch
If that doesn't work, perhaps your repo sync didn't work and one or more repos is out of sync. I would run repo sync again.
Where is your manifest.xml and source code for 19.1?
retiredtab said:
I never had that error. For your error, I suggest you do a
Code:
make clean
brunch
If that doesn't work, perhaps your repo sync didn't work and one or more repos is out of sync. I would run repo sync again.
Where is your manifest.xml and source code for 19.1?
Click to expand...
Click to collapse
Noted, Will try repo sync again.
I haven't started building sm-p555
Still using your manifest.xml and source code only.
Once the build succeeds, I will start mine.
psuryatej said:
Noted, Will try repo sync again.
I haven't started building sm-p555
Still using your manifest.xml and source code only.
Once the build succeeds, I will start mine.
Click to expand...
Click to collapse
make clean and repo sync didn't help
I am trying to download the full sources without depth=1 and see if that helps.
psuryatej said:
make clean and repo sync didn't help
I am trying to download the full sources without depth=1 and see if that helps.
Click to expand...
Click to collapse
I've followed those same instructions for the Aug 5th and Sept 5th security patches and it works. I also had someone else build 19.1 SM-T710 with similar instructions.
Mine was built using Lubuntu 20.04 and 22.04.
retiredtab said:
I've followed those same instructions for the Aug 5th and Sept 5th security patches and it works. I also had someone else build 19.1 SM-T710 with similar instructions.
Mine was built using Lubuntu 20.04 and 22.04.
Click to expand...
Click to collapse
I am building using
HOST_OS_EXTRA=Linux-5.13.0-52-generic-x86_64-Ubuntu-20.04.4-LTS
@retiredtab Thanks for all your response. Can you help to build SM-P555 using my repositories here ? Repo
psuryatej said:
@retiredtab Thanks for all your response. Can you help to build SM-P555 using my repositories here ? Repo
Click to expand...
Click to collapse
The 19.1 build instructions, manifest, device trees, commits are on my github. You have to replicate all those to your own trees. All the hard work has been already done by me.