Comments (27)
'#' Updated* (instructions taken from https://github.com/Pablito2020/pablito-scripts mm.sh and install-everything.sh the guide was there all along ;-))
'#' For building 13.0 on Ubuntu 17.10
'#' For building 14.1 replace 13.0 with 14.1
'#' Install libraries needed for compiling
sudo apt-get install -y 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
sudo apt update
sudo apt upgrade -y
sudo apt-get install -y openjdk-8-jdk
mkdir lineage13.0
cd lineage13.0
# Check if the repo tool is installed, if it isn't installed then install it.
if ! [ -f /bin/repo ]; then
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod 760 ~/bin/repo
fi
'#' if building 14.1 you must add a user name and email berfore "repo init", not needed on 13.0.
git config --global user.email "Your email @ here"
git config --global user.name "Your name here"
repo init -u git://github.com/LineageOS/android.git -b cm-13.0
repo sync --force-sync
git clone https://github.com/Pablito2020/android_device_bq_krillin.git -b cm-13.0 device/bq/krillin
git clone https://github.com/Pablito2020/android_kernel_bq_krillin.git -b cm-13.0 kernel/bq/krillin
git clone https://github.com/Pablito2020/android_vendor_bq_krillin.git -b cm-13.0 vendor/bq/krillin
git clone https://github.com/LineageOS/android_external_stlport.git -b cm-13.0 external/stlport
'#' I you need "su" on 13.0, edit "device/bq/krillin/device.mk" and add at the end:
# Superuser
WITH_SU := true
'#' The minimum change to make 14.1 build, is to remove the following line from "device/bq/krillin/Boardconfig.mk"
BOARD_WLAN_DEVICE := MediaTek
'#' Start build
. build/envsetup.sh
brunch lineage_krillin-userdebug
from android_device_bq_krillin.
It seems to be to this known issue:
https://gitlab.com/fdroid/fdroiddata/issues/979
from android_device_bq_krillin.
this could be required fix:
https://git.replicant.us/replicant/frameworks_base/commit/?id=953d2a3493aaceb3209afc7eef1ff1e7f7242908
from android_device_bq_krillin.
Thanks for pointing to this fix/workaround, I can now use Spotify with my Aquaris E4.5 and Lineage 13.0 and a couple other apps that sent my phone into a bootloop.
from android_device_bq_krillin.
You're welcome. Problem is that I am still fighting with ROM compilation myself and build instructions are not much clear on this. Could you please help me with #14 in return?
Thanks in advance.
from android_device_bq_krillin.
As for building 14.1, compile completes but after flashing it nothing happens after reboot.
It won't even show the battery charging animation in off mode.
from android_device_bq_krillin.
Thanks! This was exactly the piece of information I was missing!
from android_device_bq_krillin.
It got me further, but I ended soon with:
cts/tests/core/runner/Android.mk:18: *** BUILD_CTSCORE_PACKAGE must be defined. Stop.
make: Leaving directory '/Devel/krillin/custom_rom'
#### make failed to build some targets (5 seconds) ####
from android_device_bq_krillin.
@sleep-walker You get this error when building krillin for lineage 13 or 14.1?
from android_device_bq_krillin.
This was from 13 - following your guide literally.
from android_device_bq_krillin.
I might have missed something essential then, I'll test it on another machine tonite.
from android_device_bq_krillin.
Thank you! I'll try to fix README after.
from android_device_bq_krillin.
These seems to be missing from the guide I made:
I think those make it worse, I removed that ........
(I've not tested if this is the cause of Sleep-Walkers compiling problem.)
from android_device_bq_krillin.
I haven't managed to reproduce Sleep-Walkers error but got some random crashes and lockups in a virtualbox machine I've setup tonite, probably because I forgot to install VBoxLinuxAdditions.run.
I'll know in the morning if that helped.
(It didn't, note to my self, don't use hard drives with faulty sectors...)
from android_device_bq_krillin.
Well, thanks that you have tried. I'm afraid that this is still something stupid but unrelated to system or installed build time dependencies.
$ cat .repo/local_manifests/bq_krillin.xml
<manifest>
<!-- Device -->
<!-- 13.0 -->
<project path="device/bq/krillin" name="Pablito2020/android_device_bq_krillin" remote="github" revision="cm-13.0"/>
<project path="kernel/bq/krillin" name="Pablito2020/android_kernel_bq_krillin" remote="github" revision="cm-13.0"/>
<project path="vendor/bq/krillin" name="Pablito2020/android_vendor_bq_krillin" remote="github" revision="cm-13.0"/>
<!-- 14.0
<project path="device/bq/krillin" name="Pablito2020/android_device_bq_krillin" remote="github" revision="cm-14.0"/>
<project path="kernel/bq/krillin" name="Pablito2020/android_kernel_bq_krillin" remote="github" revision="cm-14.1"/>
<project path="vendor/bq/krillin" name="Pablito2020/android_vendor_bq_krillin" remote="github" revision="cm-14.1"/>
-->
</manifest>
It leads to this output.txt.
This string is present only in:
- cts/tests/core/runner/Android.mk
- cts/tests/core/libcore/*/Android.mk
Googling doesn't help. I'll try to install Ubuntu in container to build it but I'm afraid this is something implicit I miss.
from android_device_bq_krillin.
@sleep-walker
From your output.txt this doesn't look like standard Ubuntu 16.04:
HOST_OS_EXTRA=Linux-4.13.12-1-default-x86_64-with-glibc2.2.5
Had a second try with a fresh virtualbox installation with Ubuntu 16.04, it worked.
from android_device_bq_krillin.
I am preparing my Ubuntu 16.04 chroot for try right now. My distro is openSUSE Tumbleweed, I installed matching packages. The build shouldn't be distribution specific...
from android_device_bq_krillin.
No it shouldn't but what libraries that works changes sometimes.
If you whan't to use a rom that I built, you can find it here:
https://drive.google.com/file/d/1tcz2pE_vM-CW5hxH5jTB0ul60_l7OYiB/view?usp=sharing
from android_device_bq_krillin.
It seems that building in Ubuntu chroot works. I can't identify the difference to my environment. Thanks for your patience.
There was also missing rsync
and maybe others but I am building.
Thanks for your build - it will be useful for others for sure but I'd like to play more.
It seems that there are still power users of this phone but noone is maintaining any ROM from security perspective or other known problems.
I'd like to add also blueborne fix (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e860d2c904d1a9f38a24eb44c9f34b8f915a6ea3), adjust speaker volume, etc.
(@tc-gd == @sleep-walker)
from android_device_bq_krillin.
@sleep-walker Had any luck with building the rom?
I've made a blueborne patch for krillin kernel 13.0, it's on the google drive link a few post up, the file "bb_patch" if you'ld like to test it.
Used this as a template:
KonstaT/android_kernel_huawei_msm8909@c779e2e
I'm building with it now, so I don't know yet if it works.
Update: It doesn't seem to break anything ;-p
from android_device_bq_krillin.
I finished the build of CM13 but my ROM build has problem with ADB (cannot authenticate fingerprint), cannot format SD card as internal and for some reason cannot install SuperSU for LineageOS. Besides that it is working well and seems to be faster.
from android_device_bq_krillin.
Congratulations :-D
I've so far not used ADB, SuperSU or tried to use SD card as internal, but I could look into it if you could provide some more details. I have two of these phones, got the second one for testing stuff.
from android_device_bq_krillin.
Thanks!
I compared your ROM with mine and at least we have the same list of files - that is good start.
- adb - you need to enable Developers settings and then enable debugging over USB
- SD card as internal - put SD card, visit storage setting, click on external card, format it as internal - it fails for me when it tries first time to move some data on it
BTW. do you know what is status of CM14?
from android_device_bq_krillin.
I've actually just a few minutes ago managed to boot a Frankenstein build, with some QnD patches to overcome the miss match of vendor 14.1 and device 14.1:
Pablito2020/android_device_bq_krillin cm-14.1
Pablito2020/android_kernel_bq_krillin cm-14.1
Pablito2020/android_vendor_bq_krillin cm-14.1
Buggy as hell tho, but you can make phone calls, send SMS, surf with wifi.
Not tested the install with gapps.
Sim data is of cource broken since vendor cm14.1 is missing bits and pieces for that with device 14.1.
It reboots when you connect it to a pc with usb cable, but it pops up as a device in explorer after reboot..
No off mode battery animation, instead it boots up after charger is inserted.
Was built on a fresh Xubuntu 17.10 install with just the stuff from "pablito-scripts/install-everything.sh".
The script in it self didn't work but I installed what it was supposed to install manually.
from android_device_bq_krillin.
There was a patch for bootlooping apps added to cm-13.0 the twelfth of December last year.
https://review.lineageos.org/#/c/197386/
from android_device_bq_krillin.
And I think I found the cause to the "off mode charging" bug on kernel cm-14.1.
Pablito2020/android_kernel_bq_krillin#2
from android_device_bq_krillin.
WITH_SU fixes me both ADB access and gaining root right.
from android_device_bq_krillin.
Related Issues (20)
- Can not locate config makefile HOT 1
- make fails on the mt66xx_intermediates target HOT 16
- mobile internet HOT 36
- build instructions are not clear HOT 6
- 14.1-20170912 All downloads fail HOT 2
- 14.1 mobile data not working HOT 1
- IMEI deletion upon flash HOT 2
- bq Aquaris 4.5 Ubuntu Touch not updating or upgrading, no Ubuntu Store HOT 2
- Compilation methods
- [FIXED] IMEI lost after installing lineage-13.0-20170521-UNOFFICIAL-krillin.zip HOT 6
- No sim signal/imei after flashing custom kernel
- The error I get when creating a custom ROM HOT 1
- ** Don't have a product spec for: 'lineage_kenzo' ** Do you have the right repo manifest? Problem With Build Lineage OS Redmi Note 3 Kenzo.. What can I do now??
- [FIXED] addonsu root HOT 1
- Try to build ubport/ halium HOT 1
- Hidden ssid and 14.1 HOT 2
- Nova Launcher HOT 4
- local manifest file
- Aquaris E4.5 - Full Compilation guide
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_device_bq_krillin.