SM-T280 Need help tying to compile stock kernel - Samsung Galaxy Tab A series Questions & Answers

Hi,
I'm trying to compile the stock Samsung Kernel for my SM-T280 (Android 5.1.1) because I plan to make some modifications later on. The build currently just stops with no obvious error message I could debug from.
Code:
...
In file included from include/soc/sprd/sci_glb_regs.h:169:0,
from drivers/usb/gadget/dwc_otg/usb_hw.c:23:
include/soc/sprd/./chip_x30g/__regs_ap_apb.h:69:0: warning: "BIT_CKG_SOFT_RST" redefined [enabled by default]
#define BIT_CKG_SOFT_RST ( BIT(18) )
^
In file included from include/soc/sprd/sci_glb_regs.h:154:0,
from drivers/usb/gadget/dwc_otg/usb_hw.c:23:
include/soc/sprd/./chip_x30g/__regs_aon_apb_tshark3.h:153:0: note: this is the location of the previous definition
#define BIT_CKG_SOFT_RST ( BIT(22) )
^
LD drivers/usb/gadget/dwc_otg/dwc_otg.o
LD drivers/usb/gadget/dwc_otg/built-in.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
To make things easy to reproduce, I use Docker:
Code:
FROM ubuntu:18.04
RUN apt-get -y update \
&& apt-get -y install make gcc python wget abootimg unzip curl \
&& apt-get clean
# Go to https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
# Click Branch "master"
# Download [tgz]
COPY arm-eabi-4.8-refs_heads_master.tar.gz /data/arm-eabi.tar.gz
# Go to http://opensource.samsung.com/
# Search "T280XXU0AQA4"
# Download "SM-T280_EUR_LL_Opensource.zip"
COPY SM-T280_EUR_LL_Opensource.zip /data/tools.zip
ENV PATH /usr/sbin:/usr/bin:/sbin:/bin:/data/arm-eabi/bin
ENV ARCH arm
ENV SUBARCH arm
ENV CROSS_COMPILE arm-eabi-
RUN mkdir /data/arm-eabi \
&& mkdir /data/src \
&& tar -xf /data/arm-eabi.tar.gz -C /data/arm-eabi/ \
&& unzip /data/tools.zip -d /data \
&& tar -xf /data/Kernel.tar.gz -C /data/src/ \
&& rm /data/tools.zip \
&& rm /data/arm-eabi.tar.gz \
&& rm /data/Kernel.tar.gz
WORKDIR /data/src
RUN make mrproper \
&& make gtexswifi-dt_defconfig \
&& make -j4 zImage
#RUN abootimg -u /data/boot.img -k /data/src/arch/arm/boot/zImage
The description Samsung provides to compile the kernel is pretty poor. I already tried different toolchains (tag "android-5.1.1_r38" instead of "master") and "ubuntu:16.04" as base image.
https://forum.xda-developers.com/ga...rnel-galaxy-tab-7-0-2016-lte-sm-t285-t3474967 states the Kernel source for SM-T285 provided by Samsung is actually broken... Maybe this one too? I have almost no experience in compiling anything on linux, so I'm stuck for now. (I tried the same with a stock Android Kernel for a Nexus 7 and it worked.)
Help would be appreciated

Okay... After hours of trying different software packages used in https://github.com/lineage-gtexslte/build_guide/blob/master/Dockerfile , I found that "bc" was missing. Now it compiles :victory:
Code:
FROM ubuntu:18.04
RUN apt-get -y update \
&& apt-get -y install make gcc python wget abootimg unzip curl [B][COLOR="DarkRed"]bc[/COLOR][/B] \
&& apt-get clean
# Go to https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
# Click Tag "android-5.1.1_r38"
# Download [tgz]
COPY arm-eabi-4.8-26e93f6af47f7bd3a9beb5c102a5f45e19bfa38a.tar.gz /data/arm-eabi.tar.gz
# Go to http://opensource.samsung.com/
# Search "T280XXU0AQA4"
# Download "SM-T280_EUR_LL_Opensource.zip"
COPY SM-T280_EUR_LL_Opensource.zip /data/tools.zip
ENV PATH /usr/sbin:/usr/bin:/sbin:/bin:/data/arm-eabi/bin
ENV ARCH arm
ENV SUBARCH arm
ENV CROSS_COMPILE arm-eabi-
RUN mkdir /data/arm-eabi \
&& mkdir /data/src \
&& tar -xf /data/arm-eabi.tar.gz -C /data/arm-eabi/ \
&& unzip /data/tools.zip -d /data \
&& tar -xf /data/Kernel.tar.gz -C /data/src/ \
&& rm /data/tools.zip \
&& rm /data/arm-eabi.tar.gz \
&& rm /data/Kernel.tar.gz
WORKDIR /data/src
RUN make mrproper \
&& make gtexswifi-dt_defconfig \
&& make -j4 zImage
Edit: Just wanted to let you know that I now also generated a boot.img successfully and it actually booted my recompiled kernel.
To create a boot.img out of zImage I used https://github.com/chiefwigms/degas-mkbootimg/tree/galaxy_tab_a_smt285 and a original boot.img I created from my device using TWRP.
Code:
degas-unpackbootimg -i /data/boot.img -o /data/boot
degas-mkbootimg --kernel /data/src/arch/arm/boot/zImage --ramdisk /data/boot/boot.img-ramdisk.gz --cmdline "console=ttyS1,115200n8" --dt /data/boot/boot.img-dt --signature /data/boot/boot.img-signature -o /data/boot-mkbootimg.img
mkT280bootimg -i /data/boot-mkbootimg.img -o /data/boot-mkt280.img
The image created by degas-mkbootimg won't boot. Using mkT280bootimg OR https://github.com/osm0sis/dhtbsign on it will create an image that boots.
I've used TWRP again to flash the image.

hey bud sorry for bumping up the post...i have sm-t280 and im trying to install it as my car stereo. currently i have problems with otg host with charging at the same time. do you have any solution or advice?

Related

[Guide] Building CyanogenMod 7 (CM7) on Mac OSX Lion

This is a guide to build your own CM7 on Mac OSX Lion. I can't guarantee 100% that this will work for everyone, but it worked for me. I want to thank Paul from Modaco, CyanogenMod team, Batista Harahap, ahbeng, and anyone else I can't remember atm.
1. Download and install Xcode, Java Mac OS X 10.5 SDK (later versions don't seem to work)
2. I recommend uninstalling existing MacPorts (using the codes below) and then install a fresh copy just to be safe.
Code:
$ sudo port -fp uninstall --follow-dependents installed
$ sudo rm -rf /opt/local /Applications/DarwinPorts /Applications/MacPorts /Library/LaunchDaemons/org.macports.* /Library/Receipts/DarwinPorts*.pkg /Library/Receipts/MacPorts*.pkg /Library/StartupItems/DarwinPortsStartup /Library/Tcl/darwinports1.0 /Library/Tcl/macports1.0 ~/.macports
3. Follow these steps below to teleport String errors at compile time
Code:
$ sudo vi /opt/local/etc/macports/sources.conf
* press ]]
* press i
* Append # at the beginning of the line
* Press Enter
* Add the following lines
Code:
file:///Users/Shared/dports
rsync://rsync.macports.org/release/ports/
* Press Esc
* Type :wq and press enter
4. Update Macports and install the necessary packages and revert gmake to 3.81 (This takes a long time)
Code:
$ sudo port selfupdate
$ POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg e2fsprogs gsed curl libiptcdata xorg-libX* pngcrush findutils
$ sudo ln -s /opt/local/bin/gsed /opt/local/bin/sed
$ sudo ln -s /opt/local/libexec/gnubin/find /opt/local/bin/find
$ vi /opt/local/etc/macports/sources.conf
$ mkdir /Users/Shared/dports
$ cd /Users/Shared/dports
$ svn co --revision 50980 http://svn.macports.org/repository/macports/trunk/dports/devel/gmake/ devel/gmake/
$ portindex /Users/Shared/dports
$ sudo port install gmake @3.81
5. comment a line in one of Darwin’s C Library to get rid of compile time errors
Code:
$ sudo vi /usr/include/string.h
* Press :143
* Press i
* Append //
* Press Esc
* Type :wq!
* Press enter
6. Add a symlink for 10.5 SDKs
Code:
$ sudo ln -s /Developer/SDKs/MacOSX10.6.sdk /Developer/SDKs/MacOSX10.5.sdk
7. Create a sparseimage with a Case Sensitive FS
a. Open the Disk Utility (/Applications/Utilities/Disk Utility.app).
b. Click on New Image.
c. Save as "cyanogenmod.sparseimage" and set the following parameters as followed:
d. Name: "cyanogenmod"
e. Size: 15 GB is minimum recommended (A sparseimage will save unused space)
f. Format: Mac OS Extended (CASE-SENSITIVE, Journaled)
g. Encryption: none, Partition- Single Apple Partition Map
h. Image Format: Sparse Disk Image (this will save you disk space)
i. Save this wherever you like, and then double-click the sparseimage file to mount.
j. Your workspace will be: /Volumes/cyanogenmod/
8. Macports version of e2fsprogs will fail to compile, download the source and compile it yourself
Code:
$ mkdir -p ~/src
$ cd ~/src
$ git clone http://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
$ cd e2fsprogs
$ ./configure --prefix=/opt/local
$ make -j4 && sudo make install
9. Set up the pre-requisites for CyanogenMod to compile, there are
Code:
$ cd /Volumes/cyanogenMod
$ mkdir -p bin
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > bin/repo
$ chmod a+x bin/repo
$ mkdir -p android/system/
$ PATH=${PATH}:/Volumes/cyanogenmod/bin:
$ echo "PATH=\${PATH}:/Volumes/cyanogenmod/bin:" >> ~/.profile
10. Clone CyanogenMod repository into our sparse image (This takes a long time)
Code:
$ cd /Volumes/cyanogenmod/android/system
$ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
$ repo sync
11. Now to get all closed source binaries from the device and into our device build folder (replace *company* and *model* with the device you want e.g. /lge/p990)
Code:
$ cd /Volumes/cyanogenmod/android/system/device/*company*/*model*
$ ./extract-files.sh
12. ROMManager is a requirement for CyanogenMod
Code:
$ /Volumes/cyanogenmod/android/system/vendor/cyanogen/get-rommanager
13. edit cm source to make it compile on lion
Add lines in red to android/system/external/elfutils/config-compat-darwin.h:
Code:
[COLOR="Red"]#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070
[/COLOR]
static inline size_t strnlen (const char *__string, size_t __maxlen)
{

int len = 0;
while (__maxlen-- && *__string++)
len++;

return len;
}
[COLOR="red"]#endif[/COLOR]
Comment out every line in android/system/external/qemu/Android.mk:
Code:
# the following test is made to detect that we were called
# through the 'm' or 'mm' build commands. if not, we use the

# standard QEMU Makefile
#
#ifeq ($(DEFAULT_GOAL),droid)
# LOCAL_PATH:= $(call my-dir)
# include $(LOCAL_PATH)/Makefile.android
#else
# include Makefile.qemu
#endif
14. Now here comes the real fun, let’s compile CyanogenMod. (replace *model* with the device you want e.g. cyanogen_p990)
Code:
$ cd /Volumes/gingerbread/android/system/
$ cp ./vendor/cyanogen/products/cyanogen_*model*.mk ./buildspec.mk
$ . build/envsetup.sh
$ lunch cyanogen_*model*-eng
$ make -j`sysctl -an hw.logicalcpu` bacon
If the build was successful, there should be an update-cm-X.X.X-RC0-KANG-signed.zip in the /android/system/out/target/product/*model* folder.
If you were successful, go get yourself a treat.

[GUIDE] Compile CM9 for the Thunderbolt

The purpose of this guide is to show the steps required to compile CM9 specifically for the Thunderbolt. This may be adapted for other ROMs in the future. However, I will not describe how to setup your development environment as that information changes based on distribution versions and has been done many times over. A few good references are here, with an example of mine at the end of this post:
CyanogenMod Wiki - Learning to Build CyanogenMod
CyanogenMod Build Guide for Nexus 7 (Use as an example)
My goal is to aid others in development as the steps to get everything working on the Thunderbolt are not straight-forward unless you know what they are. Even though I had plenty of sources when I started, I still had to spend many hours to get them working. The camera and radio need some extra steps, but those are now streamlined for both my benefit and everyone else's.
I added these steps on gist.github as scripts, although I have not tested them as such. It would be best if you do each line at a time to better understand what you're doing.
Build CM9 Thunderbolt - First Time Only
Build CM9 Thunderbolt - Subsequent Builds
For the first build only:
Code:
mkdir android
cd android/
repo init -u git://github.com/CyanogenMod/android.git -b ics
mkdir -p .repo/local_manifests
wget https://raw.github.com/jblack248/android/ics/local_manifest.xml -O .repo/local_manifests/cm_mecha.xml
repo sync
# Cherry-pick frameworks/base/libs/ui commit from Twisted
cd frameworks/base/ && git fetch http://review.cyanogenmod.com/CyanogenMod/android_frameworks_base refs/changes/85/13285/8 && git cherry-pick FETCH_HEAD && cd ../..
# checkout branch in local trees
repo start ics device/htc/common device/htc/mecha device/htc/msm7x30-common hardware/qcom/camera kernel/htc/mecha-3.0 packages/apps/Camera vendor/htc/mecha vendor/htc/mecha-radio
# download prebuilts
cd vendor/cm/
./get-prebuilts
cd ../..
. build/envsetup.sh
lunch cm_mecha-userdebug
# Make build then rebuild with radio - read script in vendor/htc/mecha-radio if interested
mka bacon && . vendor/htc/mecha-radio/liquid_telephony.sh
For subsequent builds:
Code:
repo sync
# Cherry-pick frameworks/base/libs/ui commit from Twisted
cd frameworks/base/ && git fetch http://review.cyanogenmod.com/CyanogenMod/android_frameworks_base refs/changes/85/13285/8 && git cherry-pick FETCH_HEAD && cd ../..
. build/envsetup.sh
lunch cm_mecha-userdebug
# Make build then rebuild with radio - read script in vendor/htc/mecha-radio if interested
mka bacon && . vendor/htc/mecha-radio/liquid_telephony.sh
How I set up the build environment on Xubuntu 13.04 64-bit - Gist.github:
Code:
echo "Install Android Development Tools and Dependencies"
sudo apt-get install -y android-tools-adb android-tools-fastboot git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev lib32z1-dev pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib g++-multilib schedtool libc6-dev-i386 ccache
echo "Link zconf.h to fix Android compile issues in 13.04"
ln -s /usr/include/x86_64-linux-gnu/zconf.h /usr/include
echo "Installing Development Tools"
sudo apt-get install -y meld gedit-plugins git gitk gtkhash
echo "Customize .bashrc"
echo "export USE_CCACHE=1" >> ~/.bashrc
echo "ccache -M 20G > /dev/null 2>&1" >> ~/.bashrc
# these locations will be different for you, depending on where you installed the SDK
# echo "export PATH=${PATH}:~/Documents/Development/bin:~/Documents/Development/adt-bundle-linux-x86_64/sdk/tools:~/Documents/Development/adt-bundle-linux-x86_64/sdk/platform-tools"
Just a note; for the sake of newbs you may want to include instructions on getting the repo script as it doesn't just work OOB.
Code:
remote object '/system/lib/libcamera.so' does not exist
remote object '/system/lib/libcneapiclient.so' does not exist
remote object '/system/lib/libcneqmiutils.so' does not exist
remote object '/system/etc/firmware/a225p5_pm4.fw' does not exist
remote object '/system/etc/firmware/a225_pfp.fw' does not exist
remote object '/system/etc/firmware/a225_pm4.fw' does not exist
remote object '/system/etc/firmware/a300_pfp.fw' does not exist
remote object '/system/etc/firmware/a300_pm4.fw' does not exist
I got this when running ./extract-files.sh although all other files extracted fine, and I'm assuming at the very least libcamera.so is 100% necessary.
You are correct, libcamera.so is especially needed. You can either copy the files manually or modify the extract-files.sh script and extract the ROM zip to a folder to copy the files locally instead of using ADB. Change 'adb pull' to 'cp' and modify the path of the first parameter to the ROM zip folder.
I referenced a couple other guides that help you get the development set up, even the repo bin. That information changes, has been done over many times, and isn't as useful in the long run unless I micro-manage this guide. If I get a chance I might flesh this out a little, but I'm not sure how much of a desire there is for this. I'll help where I can, though.
I updated the OP with fixes to make sure everything works automatically. You no longer have to use the extract-files.sh script (or setup adb) since I made a vendor repo to include all of those files for you. Thanks to santod and others for pointing out a number of problems.
Note: As of 2013-06-29 CM9 is in a broken state as we're getting the kernel and stock OTA blobs to work properly.

[CLOSED][How to][Build CMB ROMS][TF300T][Mint64bit]

This will guide you thought the setup of Mint. The setup of your build environment, and finely the output of a flashable CMB ROM for your 700
First anything that starts with a bullet point is just for your reference.. Do not copy these things into your bash window...
Anything that is a code is copied one line at a time into your bash window and than enter
Now Install Mint 64 bit and a PC.. We will need at least a 250 GB hard drive...
This is a work in progress so let me know if anyone has any questions...
You can Find Mint here Click Me
Update System
Code:
sudo apt-get update
Code:
sudo apt-get upgrade
Build Env
Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl
Code:
sudo apt-get install libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils xsltproc android-tools-fastboot android-tools-adb
Code:
sudo apt-get install g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib meld ia32-libs lzop ccache gedit
Code:
mkdir -p ~/bin
Code:
mkdir -p ~/android/system
Code:
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
Code:
chmod a+x ~/bin/repo
Code:
export PATH=${PATH}:~/bin
Code:
gedit ~/.bashrc
Copy & Paste at bottom of bashrc on its own line
Code:
export PATH=${PATH}:~/bin
END-Paste
Code:
cd ~/android/system/
Code:
repo init -u git://github.com/cmbroms/platform_manifest.git -b kk4.4
You will be prompt to give your email and name just follow the steps on screen
Prepare to wait for a massive download 3 to 10 hours depending on your internet speed...
Code:
repo sync
Code:
cd ~/android/system/vendor/cmb
Code:
./get-prebuilts
Java
Code:
su
Code:
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
Code:
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
Code:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
Code:
apt-get update
Code:
apt-get install oracle-java6-installer
Code:
exit
Code:
sudo apt-get install oracle-java6-set-default
Ccache
Code:
gedit ~/.bashrc
Copy & Paste at bottom of bashrc on its own line
Code:
export USE_CCACHE=1
Code:
export CCACHE_DIR=~/ccache
END-Paste
Code:
source ~/.bashrc
Code:
ccache -M 50G
Building a ROM
Code:
cd ~/android/system
Make sure your in sync with the repo, you will do this every time right before you build.
Code:
repo sync
Code:
source build/envsetup.sh
Code:
lunch
Pick the number of the rom you would like to build
I maintain the 700,300,m7vzw so those are the only ones I can help with
the -j* is how may cpu cores you would like to give to the build process
So -j2 would tell the build process that you have 2 core you would like to use to build
Code:
make clean && make bacon -j2
The flash-able zip will be in the out folder of your build directory
Code:
XDA:DevDB Information
How to build CMB ROM for your TF300T, a Tool/Utility for the Asus Transformer TF300T
Contributors
lj50036
Version Information
Status: Testing
Created 2014-01-17
Last Updated 2014-01-17
Sources
CMB github Click Me
ASOP Click Me
CM wiki Click Me
Java Click Me
Reserved
Download Tab
I posted a downloadable .txt file, so you don't have to have a browser open, for the process.. The download is available in the download tab at the top of every page of this forum... Thx as always lj

[Guide] Build MoKee Rom 7.1.2 For Samsung T700/T705/T800/T805

How To Build MoKee Rom For Exynos5420 Device (7.1.2)​Support Device :
HTML:
klimtwifi # Samsung T700
klimtlte # Samsung T705
chagallwifi # Samsung T800
chagalllte # Samsung T805
chagallltetmo # Samsung T807T
ha3g # Samsung Note3 (N900)
Step 1: Setting Up A Compile Environment
You must have a 64-bit environment.
A Linux computer should have 8 GB RAM or more, otherwise build errors may occur.
Ubuntu 16.04
These instructions should work for other version of Ubuntu and most other Debian-based systems.
Install build packages
Open a terminal (ctrl + alt + t). First install the necessary packages; copy paste the code below and hit enter.
HTML:
sudo apt-get update
sudo apt-get install git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng maven bc pngquant imagemagick yasm libssl-dev
sudo apt-get install openjdk-8-jdk
HTML:
mkdir -p ~/bin
mkdir -p ~/mokee
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Add bin to PATH
HTML:
echo "export PATH=~/bin:$PATH" >> ~/.bashrc
Configure git:
HTML:
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
Move to build directory and sync the source code:
HTML:
cd ~/mokee
repo init -u https://github.com/Cyborg2017/android_mokee.git -b mokee-7.1.2
repo sync -j8 -f --no-clone-bundle
Let's configure ccache too. It will reduce the build time to 40% after first build
HTML:
echo "export USE_CCACHE=1" >> ~/.bashrc
~/mokee/prebuilts/misc/linux-x86/ccache/ccache -M 25G
25G means it will use upto 25 gb of disk space for ccaching. Atleast 10 gb is recommended. But if you want to compile for more devices, use more space for ccache.
Step 2: Compiling For Your Device
# MoKee Rom For Samsung Exynos5420 Chips Device
============================================================
To initialize your local repository using the MoKee trees, use a command like this:
HTML:
repo init -u https://github.com/Cyborg2017/android_mokee.git -b mokee-7.1.2
Then to sync up:
HTML:
repo sync
Start Work
-------------------------------------------------------------
To work faster, we introduced a new build script to help you start compiling.
First, go to the root path of your project. We assume that your source is under
(/mokee):
HTML:
cd /mokee
then feel free to use the build script:
HTML:
. build/envsetup.sh
lunch mk_klimtwifi # T700
lunch mk_klimtlte # T705
lunch mk_chagallwifi # T800
lunch mk_chagalllte # T805
lunch mk_chagallltetmo # T807T
lunch mk_ha3g # N900
mka bacon -j8
The script is interactive so everything else is self-explanatory.
Source:
https://github.com/Cyborg2017/android_mokee
https://github.com/Cyborg2017/android_device_samsung_exynos5420-common
https://github.com/Cyborg2017/android_device_samsung_chagalllte
https://github.com/Cyborg2017/android_device_samsung_chagallwifi
https://github.com/Cyborg2017/android_device_samsung_klimtlte
https://github.com/Cyborg2017/android_device_samsung_klimtwifi
https://github.com/Cyborg2017/android_device_samsung_chagallltetmo
https://github.com/Cyborg2017/android_device_samsung_ha3g
https://github.com/Cyborg2017/android_kernel_samsung_exynos5420
Thanks:
MoKee Rom Team: https://github.com/MoKee
Exynos5420 Team: https://github.com/exynos5420
LineageOs Team: https://github.com/LineageOS

Need help building a SM-T355 (gt58lte) LineageOS ROM

Hello,
I am a noob. I am trying to build LineageOS 18.1 for gt58ltedo.
Repositories :
Manifest :
gt58lte manifest for lineage-18.1
gt58lte manifest for lineage-18.1. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
Device Tree :
GitHub - user20482020/android_device_samsung_msm8916-common: Common MSM8916 tree for Samsung devices
Common MSM8916 tree for Samsung devices. Contribute to user20482020/android_device_samsung_msm8916-common development by creating an account on GitHub.
github.com
GitHub - Galaxy-MSM8916/android_device_samsung_gte-common
Contribute to Galaxy-MSM8916/android_device_samsung_gte-common development by creating an account on GitHub.
github.com
lineage-18.1-gt58lte branch :
GitHub - user20482020/device_samsung_gt58lte
Contribute to user20482020/device_samsung_gt58lte development by creating an account on GitHub.
github.com
Kernel :
GitHub - user20482020/android_kernel_samsung_msm8916: MSM8916/MSM8929/MSM8939 kernel for Samsung devices.
MSM8916/MSM8929/MSM8939 kernel for Samsung devices. - GitHub - user20482020/android_kernel_samsung_msm8916: MSM8916/MSM8929/MSM8939 kernel for Samsung devices.
github.com
Vendor Blobs :
GitHub - user20482020/vendor_samsung_msm8916-common
Contribute to user20482020/vendor_samsung_msm8916-common development by creating an account on GitHub.
github.com
GitHub - retiredtab/android_vendor_samsung_gte-common
Contribute to retiredtab/android_vendor_samsung_gte-common development by creating an account on GitHub.
github.com
GitHub - user20482020/android_vendor_samsung_gt58lte
Contribute to user20482020/android_vendor_samsung_gt58lte development by creating an account on GitHub.
github.com
@retiredtab
Where can I find camera.vendor.msm8916.so ? On my device I have camera.msm8916.so but no camera.vendor.msm8916.so ?
user655362020 said:
I using roomservice.xml file from https://forum.xda-developers.com/t/...eos-17-1-for-galaxy-tab-a-8-0-sm-t350.4162573.
Click to expand...
Click to collapse
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
user655362020 said:
Where can I find camera.vendor.msm8916.so ? On my device I have camera.msm8916.so but no camera.vendor.msm8916.so ?
Click to expand...
Click to collapse
You can rename it when you do copy. For example,
https://github.com/user20482020/pro...ineage-17.1/gt58ltedo/gt58ltedo-vendor.mk#L26
Code:
vendor/samsung/gt58ltedo/proprietary/lib/hw/camera.msm8916.so:$(TARGET_COPY_OUT_SYSTEM)/lib/hw/camera.vendor.msm8916.so \
See how it's copied and renamed above?
BTW, in your first build, you will likely face stuck at boot animation problems. I highly suggest you build an "eng" build when you do a brunch or make. That way, the OS will start adbd right away and you can run
Code:
adb logcat -C
right away to see log messages.
I run
Code:
TARGET_BUILD_TYPE=debug TARGET_BUILD_VARIANT=eng make -j2 bacon
I explain more in this thread. I helped someone who has never built LineageOS before. A lot of the questions you may have might be answered there are already so please give that a read.
https://forum.xda-developers.com/t/need-help-building-a-sm-t555-gt510lte-lineageos-rom.4255243/
In addition, the SM-T555 is the bigger brother to SM-T355 so you might be able to use code or look at his code for clues as the two should be very similar.
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
Uploading it as attachment. I intend to change the account of repositories. I'll upload manifest to a repo after that.
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
I modified the 1st post to include link for the roomservice.xml.
retiredtab said:
You can rename it when you do copy. For example,
https://github.com/user20482020/pro...ineage-17.1/gt58ltedo/gt58ltedo-vendor.mk#L26
Code:
vendor/samsung/gt58ltedo/proprietary/lib/hw/camera.msm8916.so:$(TARGET_COPY_OUT_SYSTEM)/lib/hw/camera.vendor.msm8916.so \
See how it's copied and renamed above?
Click to expand...
Click to collapse
I missed that. Thanks.
retiredtab said:
BTW, in your first build, you will likely face stuck at boot animation problems. I highly suggest you build an "eng" build when you do a brunch or make. That way, the OS will start adbd right away and you can run
Code:
adb logcat -C
right away to see log messages.
I run
Code:
TARGET_BUILD_TYPE=debug TARGET_BUILD_VARIANT=eng make -j2 bacon
I explain more in this thread. I helped someone who has never built LineageOS before. A lot of the questions you may have might be answered there are already so please give that a read.
https://forum.xda-developers.com/t/need-help-building-a-sm-t555-gt510lte-lineageos-rom.4255243/
In addition, the SM-T555 is the bigger brother to SM-T355 so you might be able to use code or look at his code for clues as the two should be very similar.
Click to expand...
Click to collapse
The debugging tips from that thread will be super useful. Plus a similar device that has RIL will be helpful too. Thanks.
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
There is no /media/source/lineageos/out/soong/.temp/tmpjgPF4J/content/apex_payload.img. Any ideas ?
Code:
[ 95% 800/839] //art/build/apex:com.android.runtime.release apex (image)
FAILED: out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/com.android.runtime.release.apex.unsigned
rm -rf out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex && (mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/adbconnection/libadbconnection/android_arm_armv8-a_core_shared_com.android.runtime.release/libadbconnection.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libadbconnection.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_postinstall_hook/android_arm_armv8-a/art_postinstall_hook out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_postinstall_hook && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_preinstall_hook/android_arm_armv8-a/art_preinstall_hook out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_preinstall_hook && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_preinstall_hook_boot/android_arm_armv8-a/art_preinstall_hook_boot out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_preinstall_hook_boot && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_preinstall_hook_system_server/android_arm_armv8-a/art_preinstall_hook_system_server out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_preinstall_hook_system_server && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/build/apex/art_prepostinstall_utils/android_arm_armv8-a/art_prepostinstall_utils out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/art_prepostinstall_utils && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc && cp out/soong/.intermediates/art/build/apex/com.android.runtime.ld.config.txt/android_arm_armv8-a_core/ld.config.txt out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/ld.config.txt && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/compiler/libart-compiler/android_arm_armv8-a_core_shared_com.android.runtime.release/libart-compiler.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart-compiler.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dalvikvm/dalvikvm/android_arm_armv8-a_core_com.android.runtime.release/dalvikvm32 out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dalvikvm32 && ln -s dalvikvm32 out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dalvikvm && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dex2oat/dex2oat/android_arm_armv8-a_core_com.android.runtime.release/dex2oat out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dex2oat && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/dexlayout/libart-dexlayout/android_arm_armv8-a_core_shared_com.android.runtime.release/libart-dexlayout.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart-dexlayout.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dexlist/dexlist/android_arm_armv8-a_core_com.android.runtime.release/dexlist out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dexlist && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/dexoptanalyzer/dexoptanalyzer/android_arm_armv8-a_core_com.android.runtime.release/dexoptanalyzer out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dexoptanalyzer && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/disassembler/libart-disassembler/android_arm_armv8-a_core_shared_com.android.runtime.release/libart-disassembler.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart-disassembler.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/dt_fd_forward/libdt_fd_forward/android_arm_armv8-a_core_shared_com.android.runtime.release/libdt_fd_forward.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdt_fd_forward.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libartbase/libartbase/android_arm_armv8-a_core_shared_com.android.runtime.release/libartbase.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libartbase.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libartpalette/libartpalette/android_arm_armv8-a_core_shared_com.android.runtime.release/libartpalette.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libartpalette.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libdexfile/libdexfile/android_arm_armv8-a_core_shared_com.android.runtime.release/libdexfile.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdexfile.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libdexfile/libdexfile_external/android_arm_armv8-a_core_shared_com.android.runtime.release/libdexfile_external.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdexfile_external.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libdexfile/libdexfile_support/android_arm_armv8-a_core_shared_com.android.runtime.release/libdexfile_support.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdexfile_support.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/libprofile/libprofile/android_arm_armv8-a_core_shared_com.android.runtime.release/libprofile.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libprofile.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/oatdump/oatdump/android_arm_armv8-a_core_com.android.runtime.release/oatdump out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/oatdump && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/openjdkjvm/libopenjdkjvm/android_arm_armv8-a_core_shared_com.android.runtime.release/libopenjdkjvm.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libopenjdkjvm.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/openjdkjvmti/libopenjdkjvmti/android_arm_armv8-a_core_shared_com.android.runtime.release/libopenjdkjvmti.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libopenjdkjvmti.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/art/profman/profman/android_arm_armv8-a_core_com.android.runtime.release/profman out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/profman && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/runtime/libart/android_arm_armv8-a_core_shared_com.android.runtime.release/libart.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libart.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/art/sigchainlib/libsigchain/android_arm_armv8-a_core_shared_com.android.runtime.release/libsigchain.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libsigchain.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic && cp out/soong/.intermediates/bionic/libc/libc/android_arm_armv8-a_core_shared_com.android.runtime.release/libc.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libc.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/bionic/libc/malloc_debug/libc_malloc_debug/android_arm_armv8-a_core_shared_com.android.runtime.release/libc_malloc_debug.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libc_malloc_debug.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/bionic/libc/malloc_hooks/libc_malloc_hooks/android_arm_armv8-a_core_shared_com.android.runtime.release/libc_malloc_hooks.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libc_malloc_hooks.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic && cp out/soong/.intermediates/bionic/libdl/libdl/android_arm_armv8-a_core_shared_com.android.runtime.release/libdl.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libdl.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic && cp out/soong/.intermediates/bionic/libm/libm/android_arm_armv8-a_core_shared_com.android.runtime.release/libm.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libm.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/bionic/linker/linker/android_arm_armv8-a_core_com.android.runtime.release/linker out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/linker && ln -s linker out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/linker_asan && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin && cp out/soong/.intermediates/dalvik/dexdump/dexdump/android_arm_armv8-a_core_com.android.runtime.release/dexdump out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/bin/dexdump && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/external/apache-xml/apache-xml/android_common/dex-withres-aligned/apache-xml.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/apache-xml.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/boringssl/libcrypto/android_arm_armv8-a_core_shared_com.android.runtime.release/libcrypto.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libcrypto.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/external/bouncycastle/bouncycastle/android_common/hiddenapi/bouncycastle.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/bouncycastle.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/chromium-libpac/libpac/android_arm_armv8-a_core_shared_com.android.runtime.release/libpac.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libpac.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/expat/libexpat/android_arm_armv8-a_core_shared_com.android.runtime.release/libexpat.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libexpat.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/icu/icu4c/source/common/libicuuc/android_arm_armv8-a_core_shared_com.android.runtime.release/libicuuc.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libicuuc.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/icu/icu4c/source/i18n/libicui18n/android_arm_armv8-a_core_shared_com.android.runtime.release/libicui18n.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libicui18n.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/icu && cp out/soong/.intermediates/external/icu/icu4c/source/stubdata/apex_icu.dat/android_arm_armv8-a_core/icudt63l.dat out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/icu/icudt63l.dat && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/icu/libandroidicu/libandroidicu/android_arm_armv8-a_core_shared_com.android.runtime.release/libandroidicu.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libandroidicu.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/libcxx/libc++/android_arm_armv8-a_core_shared_com.android.runtime.release/libc++.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libc++.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/lzma/C/liblzma/android_arm_armv8-a_core_shared_com.android.runtime.release/liblzma.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/liblzma.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/oj-libjdwp/libdt_socket/android_arm_armv8-a_core_shared_com.android.runtime.release/libdt_socket.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libdt_socket.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/oj-libjdwp/libjdwp/android_arm_armv8-a_core_shared_com.android.runtime.release/libjdwp.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libjdwp.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/oj-libjdwp/libnpt/android_arm_armv8-a_core_shared_com.android.runtime.release/libnpt.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnpt.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/external/okhttp/okhttp/android_common/hiddenapi/okhttp.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/okhttp.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/vixl/libvixl/android_arm_armv8-a_core_shared_com.android.runtime.release/libvixl.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libvixl.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/external/zlib/libz/android_arm_armv8-a_core_shared_com.android.runtime.release/libz.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libz.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/libcore/core-libart/android_common/dex-withres-aligned/core-libart.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/core-libart.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib && cp out/soong/.intermediates/libcore/core-oj/android_common/dex-withres-aligned/core-oj.jar out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/javalib/core-oj.jar && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libcore/libandroidio/android_arm_armv8-a_core_shared_com.android.runtime.release/libandroidio.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libandroidio.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libcore/libjavacore/android_arm_armv8-a_core_shared_com.android.runtime.release/libjavacore.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libjavacore.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libcore/libopenjdk/android_arm_armv8-a_core_shared_com.android.runtime.release/libopenjdk.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libopenjdk.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/libnativehelper/libnativehelper/android_arm_armv8-a_core_shared_com.android.runtime.release/libnativehelper.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnativehelper.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/base/libbase/android_arm_armv8-a_core_shared_com.android.runtime.release/libbase.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libbase.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libbacktrace/libbacktrace/android_arm_armv8-a_core_shared_com.android.runtime.release/libbacktrace.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libbacktrace.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libnativebridge/libnativebridge/android_arm_armv8-a_core_shared_com.android.runtime.release/libnativebridge.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnativebridge.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libnativeloader/libnativeloader/android_arm_armv8-a_core_shared_com.android.runtime.release/libnativeloader.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libnativeloader.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libunwindstack/libunwindstack/android_arm_armv8-a_core_shared_com.android.runtime.release/libunwindstack.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libunwindstack.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib && cp out/soong/.intermediates/system/core/libziparchive/libziparchive/android_arm_armv8-a_core_shared_com.android.runtime.release/libziparchive.so out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/libziparchive.so && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz && cp out/soong/.intermediates/system/timezone/output_data/apex_tz_version/android_arm_armv8-a_core/tz_version out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz/tz_version && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz && cp out/soong/.intermediates/system/timezone/output_data/apex_tzdata/android_arm_armv8-a_core/tzdata out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz/tzdata && mkdir -p out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz && cp out/soong/.intermediates/system/timezone/output_data/apex_tzlookup.xml/android_arm_armv8-a_core/tzlookup.xml out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/etc/tz/tzlookup.xml) && APEXER_TOOL_PATH=out/soong/host/linux-x86/bin:prebuilts/sdk/tools/linux/bin out/soong/host/linux-x86/bin/apexer --force --manifest art/build/apex/manifest.json --file_contexts system/sepolicy/apex/com.android.runtime.release-file_contexts --canned_fs_config out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/canned_fs_config --payload_type image --key art/build/apex/com.android.runtime.pem --pubkey art/build/apex/com.android.runtime.avbpubkey --target_sdk_version 29 --assets_dir out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/NOTICE out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/com.android.runtime.release.apex.unsigned
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/__main__.py", line 12, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 4419, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 4254, in run
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 4344, in add_hashtree_footer
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 3385, in add_hashtree_footer
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 2797, in _generate_vbmeta_blob
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 405, in encode_rsa_key
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/avbtool.py", line 367, in __init__
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/subprocess.py", line 394, in __init__
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/subprocess.py", line 1047, in _execute_child
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/__main__.py", line 12, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 72, in _run_code
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 427, in <module>
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 420, in main
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 305, in CreateApex
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/apexer.py", line 107, in RunCommand
AssertionError: Failed to execute: out/soong/host/linux-x86/bin/avbtool add_hashtree_footer --do_not_generate_fec --algorithm SHA256_RSA4096 --key art/build/apex/com.android.runtime.pem --prop apex.key:com.android.runtime --salt e3980a7e51b32d0673a26fd105adf0ca55d783b39739c21439499b713829e8b9 --image /media/source/lineageos/out/soong/.temp/tmpjgPF4J/content/apex_payload.img
[ 95% 804/839] Building Kernel Config
make: Entering directory '/media/source/lineageos/kernel/samsung/msm8916'
GEN /media/source/lineageos/out/target/product/gt58ltedo/obj/KERNEL_OBJ/Makefile
arch/arm/Kconfig:1666:warning: choice value used outside its choice group
arch/arm/Kconfig:1672:warning: choice value used outside its choice group
arch/arm/Kconfig:1675:warning: choice value used outside its choice group
arch/arm/Kconfig:1681:warning: choice value used outside its choice group
drivers/misc/Kconfig:777:warning: choice value used outside its choice group
drivers/misc/Kconfig:779:warning: choice value used outside its choice group
drivers/misc/Kconfig:787:warning: choice value used outside its choice group
drivers/misc/Kconfig:790:warning: choice value used outside its choice group
drivers/misc/Kconfig:792:warning: choice value used outside its choice group
arch/arm/configs/msm8916_sec_defconfig:94:warning: override: reassigning to symbol IP_MULTICAST
arch/arm/configs/msm8916_sec_defconfig:226:warning: override: reassigning to symbol NET_EMATCH
arch/arm/configs/msm8916_sec_defconfig:573:warning: override: reassigning to symbol INPUT_MISC
arch/arm/configs/msm8916_sec_defconfig:574:warning: override: reassigning to symbol INPUT_GPIO
arch/arm/configs/msm8916_sec_defconfig:731:warning: unexpected data
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
arch/arm/configs/selinux_defconfig:4:warning: override: reassigning to symbol EXT4_FS_SECURITY
arch/arm/configs/selinux_defconfig:5:warning: override: reassigning to symbol AUDIT
arch/arm/configs/selinux_defconfig:7:warning: override: reassigning to symbol SECURITY
arch/arm/configs/selinux_defconfig:8:warning: override: reassigning to symbol LSM_MMAP_MIN_ADDR
arch/arm/configs/selinux_defconfig:9:warning: override: reassigning to symbol SECURITY_NETWORK
arch/arm/configs/selinux_defconfig:13:warning: symbol value 'y' invalid for SECURITY_SELINUX_CHECKREQPROT_VALUE
arch/arm/configs/selinux_defconfig:15:warning: override: reassigning to symbol NF_CONNTRACK_SECMARK
arch/arm/configs/selinux_defconfig:16:warning: override: reassigning to symbol NETFILTER_XT_TARGET_CONNSECMARK
arch/arm/configs/selinux_defconfig:18:warning: override: reassigning to symbol IP_NF_SECURITY
arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig:17:warning: override: reassigning to symbol USB_HOST_NOTIFY
arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig:65:warning: override: reassigning to symbol SENSORS
arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig:85:warning: override: reassigning to symbol MSM_EEPROM
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
KCONFIG_SELINUX(arch/arm/configs/selinux_defconfig)
KCONFIG_LOG_SELINUX((null))
KCONFIG_DMVERITY((null))
KCONFIG_VARIANT(arch/arm/configs/msm8916_sec_gt58lte_aus_defconfig)
KCONFIG_DEBUG((null))
#
# configuration written to .config
#
make: Leaving directory '/media/source/lineageos/kernel/samsung/msm8916'
make: Entering directory '/media/source/lineageos/kernel/samsung/msm8916'
GEN /media/source/lineageos/out/target/product/gt58ltedo/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
arch/arm/Kconfig:1666:warning: choice value used outside its choice group
arch/arm/Kconfig:1672:warning: choice value used outside its choice group
arch/arm/Kconfig:1675:warning: choice value used outside its choice group
arch/arm/Kconfig:1681:warning: choice value used outside its choice group
drivers/misc/Kconfig:777:warning: choice value used outside its choice group
drivers/misc/Kconfig:779:warning: choice value used outside its choice group
drivers/misc/Kconfig:787:warning: choice value used outside its choice group
drivers/misc/Kconfig:790:warning: choice value used outside its choice group
drivers/misc/Kconfig:792:warning: choice value used outside its choice group
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
make: Leaving directory '/media/source/lineageos/kernel/samsung/msm8916'
11:16:56 ninja failed with: exit status 1
#### failed to build some targets (06:40 (mm:ss)) ####
retiredtab said:
If you are going to use my roomservice.xml, upload that to your github as well so I can see what you are doing. Obviously, you will have to change some things that are gt58wifi specific to gt58ltedo.
Click to expand...
Click to collapse
I used the crdroid-9.0 branch to create the device tree. Do you still use the crdroid-9.0 branch ?
user655362020 said:
There is no /media/source/lineageos/out/soong/.temp/tmpjgPF4J/content/apex_payload.img. Any ideas ?
Code:
[ 95% 800/839] //art/build/apex:com.android.runtime.release apex (image)
FAILED:
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/avbtool/internal/stdlib/runpy.py", line 174, in _run_module_as_main
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/media/source/lineageos/out/soong/host/linux-x86/bin/apexer/internal/stdlib/runpy.py", line 174, in _run_module_as_main
#### failed to build some targets (06:40 (mm:ss)) ####
Click to expand...
Click to collapse
There's something strange with the above. On my 17.1 gt58wifi build, my directory shows
Code:
[email protected]:/media/l/gt58wifi/17/out/soong/host/linux-x86/bin$ ls -al avbtool
-rwxrwxr-x 1 l l 28148198 Apr 12 00:02 avbtool
$ file avbtool
avbtool: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, with debug_info, not stripped
$ file apexer
apexer: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, with debug_info, not stripped
whereas your shows avbtool and apexer has a directory.
I'm wondering if your manifest.xml is somehow messing up the make? I suggest removing lines 4 to 20, doing a complete repo sync and a make clean (start over) and then your brunch or make command.
user655362020 said:
I used the crdroid-9.0 branch to create the device tree. Do you still use the crdroid-9.0 branch ?
Click to expand...
Click to collapse
When I made 17.1 or Android 10, I used the crdroid-9.0 branch beause at that time there was no 10.0 branch and when there was, too many things got moved around so I stuck with 9.0. Either 9.0 or 10.0 is fine as long as you know how to change and move things around.
What desktop OS are you using? If linux, what distro? If Windows, are you using WSL version 2?
retiredtab said:
What desktop OS are you using? If linux, what distro? If Windows, are you using WSL version 2?
Click to expand...
Click to collapse
Bare-metal Fedora 34
retiredtab said:
I'm wondering if your manifest.xml is somehow messing up the make? I suggest removing lines 4 to 20, doing a complete repo sync and a make clean (start over) and then your brunch or make command.
Click to expand...
Click to collapse
I did that. It still fails at the same step.
There were a few more warnings (?) in both builds :
Code:
[ 53% 353/660] Target boot image: out/target/product/gt58ltedo/boot.img
patch boot out/target/product/gt58ltedo/boot.img out/target/product/gt58ltedo/boot.img.lok
cp: bad 'out/target/product/gt58ltedo/boot.img.lok': No such file or directory
Made boot image: out/target/product/gt58ltedo/boot.img
[ 55% 366/660] ----- Making recovery image ------
patch recovery out/target/product/gt58ltedo/recovery.img out/target/product/gt58ltedo/recovery.img.lok
cp: bad 'out/target/product/gt58ltedo/recovery.img.lok': No such file or directory
Made recovery image: out/target/product/gt58ltedo/recovery.img
retiredtab said:
whereas your shows avbtool and apexer has a directory.
Click to expand...
Click to collapse
Actually python trace shows where in the source file the error occured. I too have avbtool and apexer in out/soong/host/linux-x86/bin directory as single file.
I tried enabling dm-verity in kernel config (required by apex image according to
https://source.android.com/devices/tech/ota/apex#required_kernel_configuration_options). It still fails.
retiredtab said:
I'm wondering if your manifest.xml is somehow messing up the make? I suggest removing lines 4 to 20, doing a complete repo sync and a make clean (start over) and then your brunch or make command.
Click to expand...
Click to collapse
what command do you use to build ?
I am using source build/envsetup.sh && lunch lineage_gt58ltedo-userdebug && mka
Maybe Relevant
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20210801-UNOFFICIAL-gt58ltedo
TARGET_PRODUCT=lineage_gt58ltedo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.13.4-200.fc34.x86_64-x86_64-Fedora-34-(KDE-Plasma)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES= hardware/qcom-caf/msm8916
============================================
Also were you trying to compile TWRP for T350/T355 ? If yes, then can you provide the link for twrp device tree ?
=== apex_payload.img ===
So I cloned my 17.1 gt58wifi mechnical hard drive (250GB) to another drive using dd. Then, I took your roomservice.xml, did a repo sync to your directories as per roomservice and compiled the rom.
Code:
Package Complete: out/target/product/gt58ltedo/lineage-17.1-20210801-UNOFFICIAL-gt58ltedo.zip
#### build completed successfully (01:30:21 (hh:mm:ss)) ####
The reason I cloned my gt58wifi is so I don't have to recompile 80,000 files from scratch as a brand new make takes around 9.5 hours. The gt58wifi and gt58ltedo share similar code and libraries so I'm able to save 8 hours of compiling.
When I switched to your roomservice.xml, it had to recompile about 17,000s and took 1.5 hours as shown above. At this point, I'm not willing
to do a make clean which means my machine will be compiling for 9.5 hours.
I highly doubt the image produced will boot into OS since it's your first draft of all the code, but it completed without any apex_payload.img errors.
However, by default, LineageOS builds a recovery.img (similar to TWRP, but with less functionality and UI is different). That file is only 11MB
and if you want, I can send you this file and you can try loading onto your recovery partition. If it doesn't boot into recovery partition, that's
a sure sign that it won't boot into full LineageOS.
If recovery.img fails, you can always reflash it with TWRP if that's what you are presently running. If you don't know how to flash recovery and
get into download mode, please do some research. It's not difficult, but first time people will panic and then possibly make a huge mistake possibly creating a bricked device.
The messages below show up in my compile, but I see them all the time.
Code:
[ 77% 11670/15082] Target boot image: out/target/product/gt58ltedo/boot.img
patch boot out/target/product/gt58ltedo/boot.img out/target/product/gt58ltedo/boot.img.lok
cp: bad 'out/target/product/gt58ltedo/boot.img.lok': No such file or directory
Made boot image: out/target/product/gt58ltedo/boot.img
[ 79% 11948/15082] ----- Making recovery image ------
patch recovery out/target/product/gt58ltedo/recovery.img out/target/product/gt58ltedo/recovery.img.lok
cp: bad 'out/target/product/gt58ltedo/recovery.img.lok': No such file or directory
Made recovery image: out/target/product/gt58ltedo/recovery.img
Here's what I suggest. If you have a spare 250GB hard drive, load Lubuntu 20.04. All the LineageOS build instructions that I see are written for an Ubuntu environment and there may be a missing library or some functionality that doesn't work on Fedora? I do all my builds on Lubuntu 20.04. A 250GB drive is enough to hold Lubuntu (only about 6GB) and your build.
If you want to keep trying Fedora, then take a look at
https://wiki.lineageos.org/devices/chagallwifi/builds
and figure out what library you may be missing. I'm not a Fedora user and the last time I tried it was in 2014 so I cannot help you with Fedora questions.
=== twrp ===
If you can't build the LineageOS, you can try building the TWRP. It's a lot easier and faster (only about 8,000 files total instead of 80,000).
I did not build TWRP for SM-T350. Nubianprince did and his code is at
GitHub - Nubianprince/android_device_samsung_gt58wifi at twrp
Device tree for Samsung Galaxy SM-T350. Contribute to Nubianprince/android_device_samsung_gt58wifi development by creating an account on GitHub.
github.com
If you can get a working TWRP for your device, then that will help you build the full LineageOS. Again, you must know how to flash the recovery partition because there's a good chance your first TWRP won't work.
=== dm-verity ===
You shouldn't have to enable it. It's disabled in kernel as per
android_device_samsung_msm8916-common/BoardConfigCommon.mk at lineage-17.1 · Galaxy-MSM8916/android_device_samsung_msm8916-common
Common MSM8916 tree for Samsung devices. Contribute to Galaxy-MSM8916/android_device_samsung_msm8916-common development by creating an account on GitHub.
github.com
android_kernel_samsung_msm8916/msm8916_sec_defconfig at lineage-17.1 · Galaxy-MSM8916/android_kernel_samsung_msm8916
MSM8916/MSM8929/MSM8939 kernel for Samsung devices. - android_kernel_samsung_msm8916/msm8916_sec_defconfig at lineage-17.1 · Galaxy-MSM8916/android_kernel_samsung_msm8916
github.com
=== commands to build ===
Because I have a slow machine with limited memory, I use
. build/envsetup.sh
breakfast gt58ltedo
TARGET_BUILD_TYPE=debug TARGET_BUILD_VARIANT=eng make -j2 bacon (as per post #5)
recovery.img zipped.
Removed by me.

Categories

Resources