{
"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"
}
Huawei have helpfully released the kernel source for the Huawei P9 on their download site. Impressively, the version posted there (3.10.90) actually matches the current release build (B136). However, the download itself is only part of the puzzle - it's important to then know how to compile it and use it. Hence this guide.
Some points to note first of all...
This guide refers to building on Linux. You can probably build on OSX or whatever too but seriously, it's less pain in the long run to spin up an Ubuntu VM.
In the download linked above, as well as the kernel, there are some other bits and pieces (some of which are quite bizarre). I've mirrored the kernel to Bitbucket, so you don't need to grab the whole download.
Got that? OK, so here's a step by step on how to build the kernel! I strongly recommend building stock first and testing that works for you, then you can start adding your tweaks in. I'm interested to hear what you add / change!
Open a terminal window on your Linux machine / in your Linux VM. No GUIs here. Change to the directory where you want the kernel / toolchain to live.
First of all, we're going to clone the toolchain from AOSP.
Code:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
Next we're going to clone the kernel source itself from my git repo on bitbucket.
Code:
git clone https://gitlab.com/paulobrien/android_kernel_huawei_p9.git kernel
We need to add the toolchain location to the path.
Code:
export PATH=$(pwd)/aarch64-linux-android-4.9/bin:$PATH
We need to specify that we are cross compiling for arm64.
Code:
export CROSS_COMPILE=$(pwd)/aarch64-linux-android-4.9/bin/aarch64-linux-android-
Let's create a directory for our output to go in to.
Code:
mkdir out
We've got the kernel downloaded, so let's change to that directory so we're ready to go.
Code:
cd kernel
A bit of cleaning up before we get started...
Code:
make ARCH=arm64 O=../out mrproper
Specify that we're building for the P9 (hisi3650 chipset)...
Code:
make ARCH=arm64 O=../out p9_extracted_defconfig
And build it!
Code:
make ARCH=arm64 O=../out -j8
When this process completes, we can check the '../out' directory and you should find the file arch/arm64/boot/Image. This is the kernel that you've just built! You can't flash it as is though, you need to put it into a boot image first.
Here's how you do it...
Change out of the kernel directory back to its parent.
Code:
cd ..
Download tools for manipulating the boot image.
Code:
git clone https://github.com/xiaolu/mkbootimg_tools.git
Download the stock boot image (actually we're using the root ready version for convenience).
Code:
wget -O boot.img http://nigella.modaco.com/files/boot.stock.huaweip9.b136.img
Extract the boot image.
Code:
mkbootimg_tools/mkboot boot.img boot.extracted
Copy the new kernel into the extracted boot folder.
Code:
cp out/arch/arm64/boot/Image.gz boot.extracted/kernel
Build a new boot image.
Code:
mkbootimg_tools/mkboot boot.extracted boot.newkernel.img
You now have a new boot image (boot.newkernel.img). All that's left is to flash it to your device! Reboot to bootloader (either using 'adb reboot bootloader' or by powering on with volume down held), flash using 'fastboot flash boot boot.newkernel.img' and then reboot using 'fastboot reboot'. Job done! In the About screen of settings you should see the date of the new kernel and details of your build machine.
And I've just discovered the stock kernel compile isn't seeing my SIM card. Helpful.
P
SIM issue fixed, instructions updated.
P
A good start for this device. I hope we will see more devs soon in this section.
@paulobrien
What's your take on the Kernel sources. The Kernel sources from Huawei have been always a great mess for me.
So...does this actually mean custom ROMs on the P9 after all?? Hot damn I cross my fingers (having just received the phone, which is amazing)
hackslash said:
@paulobrien
What's your take on the Kernel sources. The Kernel sources from Huawei have been always a great mess for me.
Click to expand...
Click to collapse
Well, they compile nowadays which is a bonus, and they're the right version which is even better. ?
P
Sent from my Robin using Tapatalk
emilrune said:
So...does this actually mean custom ROMs on the P9 after all?? Hot damn I cross my fingers (having just received the phone, which is amazing)
Click to expand...
Click to collapse
Honestly, a full stock ROM like CyanogenMod is still a long way off and by no means guaranteed, it'll need someone dedicated and skilled to pick it up.
Every little helps though!
P
Sent from my Robin using Tapatalk
paulobrien said:
Honestly, a full stock ROM like CyanogenMod is still a long way off and by no means guaranteed, it'll need someone dedicated and skilled to pick it up.
Every little helps though!
P
Sent from my Robin using Tapatalk
Click to expand...
Click to collapse
It certainly does! This stuff just got even more interesting I could definitely be satisfied with "just" a custom stock kernel ROM. Coming off an old Z3, I had great fun with SLiM ROMs, Existenz etc.:good:
I think we'll definitely see custom stock based ROMs, with bloat stripped and kernel updated amongst other optimisations.
P
Sent from my Robin using Tapatalk
Can it use with mate8?
Sent from my NEXT using Tapatalk
somboons said:
Can it use with mate8?
Sent from my NEXT using Tapatalk
Click to expand...
Click to collapse
No, but I will be doing a Mate 8 version.
P
Sent from my Robin using Tapatalk
paulobrien said:
No, but I will be doing a Mate 8 version.
P
Sent from my Robin using Tapatalk
Click to expand...
Click to collapse
Great. I'm waiting your guide.I downloaded kernel source for mate 8 , ready to follow your guide.
Please try to build a Kernel for p8 Marshmallow too. [emoji3]
paulobrien said:
Well, they compile nowadays which is a bonus, and they're the right version which is even better.
P
Sent from my Robin using Tapatalk
Click to expand...
Click to collapse
SO TRUE! I remember when I purchased my first Huawei device (Honor 6) and I downloaded it's kernel sources. The sources didn't even compiled. And I just stared at the screen printing loads of C errors (unsigned variables, Wunused variable, etc.). At that time, the sources weren't even complete. They had some files missing. So, I couldn't even fix them. Today, the sources are better. I downloaded P8 Lite's and 4C / 4X Marshmallow sources, compiled them and flashed the kernel. The kernel worked out of the box with eveything working (no SIM, WiFi, related issues).
About Custom ROMs, Cyanogenmod isn't possible but AOSP is. (Do you know currently 5 Huawei Kirin devices have AOSP builds which boot successfully, P8, P8 Lite, 4C, 4X and P8 Lite; the ROM boots but obviously many things don't work especially the RIL). Also, many people don't know that HiSilicon Kirin 620 has official AOSP support (the reason why 4 out of the above 5 mentioned devices have AOSP). The problem is that immense hardwork and loads of patches are needed to make them stable which unfortunately no developer wants to put in. But have faith, the future might be bright for Huawei devices.
emilrune said:
So...does this actually mean custom ROMs on the P9 after all?? Hot damn I cross my fingers (having just received the phone, which is amazing)
Click to expand...
Click to collapse
Kernel Source != Custom ROM. In fact, sometimes you can build a ROM around a stock boot.img and not have to use a custom kernel at all. But having sources for the Kirin chipset always helps.
paulobrien said:
Honestly, a full stock ROM like CyanogenMod is still a long way off and by no means guaranteed, it'll need someone dedicated and skilled to pick it up.
Every little helps though!
P
Sent from my Robin using Tapatalk
Click to expand...
Click to collapse
Honestly I don't actually care all that much for Cyanogen and the like. I just need me some slimmed down no-bloat ROM, and of course the benefits/apps that root bring:good:
---------- Post added at 08:36 AM ---------- Previous post was at 08:31 AM ----------
zowpow said:
Kernel Source != Custom ROM. In fact, sometimes you can build a ROM around a stock boot.img and not have to use a custom kernel at all. But having sources for the Kirin chipset always helps.
Click to expand...
Click to collapse
That's what I gather; some insight into the Kirin chipset can only be helpful to the smart devs around here:good:
@paulobrien i see in your you have 2 huawei p9 related repos; android_kernel_huawei_p9 and android_kernel_huawei_p9_mck which one can be used?
umair9001 said:
@paulobrien i see in your you have 2 huawei p9 related repos; android_kernel_huawei_p9 and android_kernel_huawei_p9_mck which one can be used?
Click to expand...
Click to collapse
More details on mck coming soon. ?
P
Sent from my HUAWEI NXT-L29 using Tapatalk
So double tap to wake?
I see donations in your future.
Honestly though, it would be amazing to have this feature. Maybe it's possible to enable it without kernel mod though, all the entries in build.prop and hw_easywakeupmotion_config.xml are there and you can get the option in the motion control menu, but when you enable it, it doesn't actually work
Related
Anyone have any information as to where I can go to learn how to build/compile a kernel for my nexus s 4g? Id like to take a feeble stab at it. Thanks!
Here are some guides I used for getting started:
» [How-To] compile the Nexus S kernel from source
» [HOW-TO] Compile AOSP Gingerbread + [ROM] Master AOSP
» Building Kernel from source - CyanogenMod Wiki
Please note that most of the time you cannot just follow the guides verbatim. Just use it as "guidelines" and adapt it to suit your development environment.
Also you should have basic to moderate understanding in Git in order to apply patches/mods to your kernel properly.
Thanks. Almost easier to pay someone, what with being lazy and all.
Yeah, that's what I do now -- using a "tried and tested by community" kernel/ROM is much easier for life.
I think there are enough kernel threads in XDA that you should find one that suits your needs, and you can send a donation to the developer to show you appreciation in his/her work
There are quite a few, yes. Although I want a 'feature from this kernel and a tweak from that kernel'...or 'Id use this one if it didnt have that feature'...so I just sit at stock...
Lol, sounds like a "walk in the middle path" philosophy
That's a good decision though, nowadays instead of spending time compiling my own kernel, I spend as much time in checking the Development forum -- looking for new kernel(s) update everyday. It's kinda addict once you've tried flashing them
Hey Tails,
I am trying to take a stab at compiling my own kernel too. How did it go for you? I am having problems myself.
Sent from my Google Nexus S using Tapatalk
suomaf said:
Hey Tails,
I am trying to take a stab at compiling my own kernel too. How did it go for you? I am having problems myself.
Sent from my Google Nexus S using Tapatalk
Click to expand...
Click to collapse
I completely abandoned my attempts at building kernels. Sorry.
I'll leave it to the vets
Sent from my Nexus S 4G using xda premium
I would also like to give it a go, wonder if there is anyone that can give me advice. I have sync repo but can not for the life of me find where the new kernel sources are.
Sent from my A500 using Tapatalk
suomaf said:
I would sol like to give it a go, winner if there is anyone that can give me advice. I have sync repo but can not for the life of me find where the new kernel sources are.
Sent from my A500 using Tapatalk
Click to expand...
Click to collapse
May be here?
suksit said:
May be here?
Click to expand...
Click to collapse
Thanks for the quick reply, I think I have repo sync'd and also done
Code:
git clone https://android.googlesource.com/kernel/samsung.git
But I end up with an empty directory called samsung with a hidden directory .repo
Is this correct? Is the 3.0 kernel for nexus s somewhere else?
Well I haven't update the kernel sources since kernel.org was down... However, I think this may also be a good starting point.
suksit said:
Well I haven't update the kernel sources since kernel.org was down... However, I think this may also be a good starting point.
Click to expand...
Click to collapse
Thank you very much, will try to git clone https://bitbucket.org/KalimochoAz/samsung-kernel-3.git
---------- Post added at 11:15 AM ---------- Previous post was at 11:01 AM ----------
sigh.. this is hard,
Code:
git clone https://bitbucket.org/KalimochoAz/samsung-kernel-3.git
Cloning into samsung-kernel-3...
error: RPC failed; result=22, HTTP code = 502
fatal: The remote end hung up unexpectedly
I am guessing maybe the server is down or something? because git clone worked for me when testing
git clone git://github.com/git/hello-world.git
suomaf said:
Thanks for the quick reply, I think I have repo sync'd and also done
Code:
git clone https://android.googlesource.com/kernel/samsung.git
But I end up with an empty directory called samsung with a hidden directory .repo
Is this correct? Is the 3.0 kernel for nexus s somewhere else?
Click to expand...
Click to collapse
Just finished cloning samsung.git from googlesource. I suppose the directory name should be .git? If so, from within samsung directory, type the following command:
Code:
git branch -a
This will list all branches in the repository. You should see something like this:
Code:
* master
remotes/origin/HEAD -> origin/master
remotes/origin/android-samsung-2.6.35-gingerbread
remotes/origin/android-samsung-3.0-ics-mr1
remotes/origin/master
If you want the kernel code for ICS (linux 3.0), type the following command:
Code:
git checkout android-samsung-3.0-ics-mr1
This will checkout the code from the corresponding branch name. If things go well, you should see something like this:
Code:
Checking out files: 100% (37465/37465), done.
Branch android-samsung-3.0-ics-mr1 set up to track remote branch android-samsung-3.0-ics-mr1 from origin.
Switched to a new branch 'android-samsung-3.0-ics-mr1'
Git will create a new local branch for you. To see it, just type git branch -a again.
Now it's time to play!
thanks boss,
Really appreciate you taking the time to do this, it was successful. Here I go to brick my nexus S
suomaf said:
thanks boss,
Really appreciate you taking the time to do this, it was successful. Here I go to brick my nexus S
Click to expand...
Click to collapse
lol
{
"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"
}
No bricks so far, but has not been able to get the phone to boot. Did what I think is a default compile then took the ram disk from the phone. The damn thing just wont boot. Does this mean that I will have to compile the whole ics and use that ram disk? or am I just doing it wrong?
suomaf said:
No bricks so far, but has not been able to get the phone to boot. Did what I think is a default compile then took the ram disk from the phone. The damn thing just wont boot. Does this mean that I will have to compile the whole ics and use that ram disk? or am I just doing it wrong?
Click to expand...
Click to collapse
That sounds correct to me. However, I haven't done this for almost a year so I'll just try to recall from my memory =.= Usually the steps should be:
get the boot partition from the phone using dd?
use extract-bootimg.pl to extract the ramdisk
use mkbootimg to create a new boot image from the extracted ramdisk and your zImage
try it with fastboot boot newbootimage.img
Sorry that I couldn't be of more help
You have been great help. Thanks.
Sent from my Google Nexus S using Tapatalk
Just think about another way to do it: AnyKernel
BTW, it's my pleasure helping ppl to brick their phone lol
SO HERE WE GO MY GT-6210 FRIENDS.
I sold my tab because I got an iPad 2 for work and used the money to get a Galaxy Nexus I will probably keep building this ROM once the kernel is worked out and everything is working. Most likely Build AOKP
Just like the GT-6200 Developer Release this is a very basic preview build of CM9. That being said, if you choose to flash this build, YOU DO SO AT YOUR OWN RISK.
I am not a Dev or claim to be one, I just spent a lot of time the last few monthes learning how to build from AOSP and CM9, and figured I'd share my success with the community. I am not resposible for any one bricking their devices by not reading all the information that is all hear on XDA.
Please atleast read through this if you are a n00b: http://forum.xda-developers.com/showthread.php?t=1452716
And this if you are not Rooted yet: http://forum.xda-developers.com/showthread.php?t=1379532
ONCE AGAIN
FLASH AT YOUR OWN RISK
All credit and thanks goes out to:
-Google
-The whole Cyanogen team
-aorth (for getting this moving on out TABs)
-locerra (for his quick work on the p6210 device tree & framework tweaks)
-garyd9 (for all his work on the p6210 and this forum)
-Anyone else that made this possible THANK YOU
I will try to maintain this thread as much as I can, but I have a full time job, school, family and a life
I will at the least be folowing any changes in the source code or on github and post any builds I compile.
I WILL NOT BE:
-Responding to any questions that can be found by simply searching
-Spending a lot of time helping people to get this up and running
This is what I did to get it up and running:
-Put the ZIP file on the TABs internal sd partition (NOT THE SD CARD YOU PUT IN TO THE TAB)
-Reboot into Recovery
-Wipe data/factory reset
-Wipe cache partition
-wipe Dalvik Cache
-format /cache
-format /system
-format /data
-Install update-cm-9.0.0-RC0-p6210-UNOFFICIAL-signed.zip
-Reboot and enjoy!!! Not much is working though.
What's working:
Accelerometer
Hardware-accelerated launcher
Touch input
Vibration
Physical buttons (volume + power)
Audio
What's not working:
Bluetooth
Wifi
Camera
GPS
Hardware-accelerated video
Ambient light sensor(working for the most part in new build 2)
Here is the link: http://www.mediafire.com/?jrcehwgewyxi6kb
Any Mirrors for downloads are welcome, not sure how for the free mediafire account will go.
New Build with working Audio
Thanks to locerra!!!
DP2: http://goo.gl/6mXTQ
md5: 79bdbb1e44d8e4421221525c00947688
{
"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"
}
Reserved
Sent from my GT-P6210 using xda premium
Hey! This is awesome, i'm glad you were able to get this running. I was gonna try to get it running, but I ran outta space on my ubuntu partition lol.
I was wondering if we could get wifi working by porting this..
https://github.com/psyke83/AR6kSDK.3.1
fyi, locerra = ohanar
locerra said:
fyi, locerra = ohanar
Click to expand...
Click to collapse
Good to know lolz
Sent from my GT-P6210 using xda premium
Woooo yes bring it on! Great to see people chipping in and getting this off the ground! Really looking forward to seeing this finished.
Would be abysmally funny if they finish before Samsung gets their ICS out even though that circumstance is not likely to happen.
bdds13 said:
Hey! This is awesome, i'm glad you were able to get this running. I was gonna try to get it running, but I ran outta space on my ubuntu partition lol.
I was wondering if we could get wifi working by porting this..
https://github.com/psyke83/AR6kSDK.3.1
Click to expand...
Click to collapse
Not sure if I could get this worked into a build. Do you have more info on what and where this code comes from?
Sent from my GT-P6210 using xda premium
This is great and really inspiring. I really wish I knew where to begin to help out on moving this forward. Thanks for all the work guys
kmmxracer said:
Not sure if I could get this worked into a build. Do you have more info on what and where this code comes from?
Sent from my GT-P6210 using xda premium
Click to expand...
Click to collapse
Yeah, I got it from this old post here on the general forum.
http://forum.xda-developers.com/showpost.php?p=23262686&postcount=18
It's supposed to be from one of sony's e-book reader devices.
Good to see you up and running. Congrats! Now you guys get to work on wifi and I'll start working on telephony .
kmmxracer said:
Not sure if I could get this worked into a build. Do you have more info on what and where this code comes from?
Sent from my GT-P6210 using xda premium
Click to expand...
Click to collapse
i found something similar quite some time ago.
https://github.com/DerArtem/AR6kSDK.3.1
it's from derartem, he and nopy is working on ICS for Folio 100 too currently.
http://forum.xda-developers.com/showthread.php?t=1470823
it is the same thing with some modification from DerArtem.
Progress on wireless... sorta.
P6200/P6210 use an Atheros 6003 wireless chip (also for bluetooth?). The open-source atk6kl driver from compat-wireless supports this chip. I found some interesting information about building this module on the HP Touchpad forum over at RootzWiki. I can compile the module, but I just can't load it.
Here's how:
1. Compile kernel:
Code:
cd ~/src/git/kernel_samsung_c210
LOCALVERSION="" ARCH=arm CROSS_COMPILE="/home/aorth/src/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-" make -j8 zImage
2. Compile compat-wireless
Code:
cd ~/src/compat-wireless-3.3-2-n
./scripts/driver-select ath6kl
ARCH=arm CROSS_COMPILE="/home/aorth/src/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-" KLIB=~/src/git/kernel_samsung_c210 KLIB_BUILD=~/src/git/kernel_samsung_c210 make -j4
But attempting to insert the resulting modules spits out errors like:
Code:
# insmod compat.ko
insmod: can't insert 'compat.ko': invalid module format
# dmesg | tail -n3
<4>[ 365.244149] load_module: umod=4015c000, len=1311485, uargs=01a1f008
<3>[ 365.266659] compat: unknown relocation: 96
<6>[ 382.490328] BAT : soc(100), vcell(4152mV), curr(0mA), temp(26.7), chg(0), full(1), rechg(0), cable(1)
@ohanar... help!
Nice start!
aorth said:
P6200/P6210 use an Atheros 6003 wireless chip (also for bluetooth?). The open-source atk6kl driver from compat-wireless supports this chip. I found some interesting information about building this module on the HP Touchpad forum over at RootzWiki. I can compile the module, but I just can't load it.
Here's how:
1. Compile kernel:
Code:
cd ~/src/git/kernel_samsung_c210
LOCALVERSION="" ARCH=arm CROSS_COMPILE="/home/aorth/src/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-" make -j8 zImage
2. Compile compat-wireless
Code:
cd ~/src/compat-wireless-3.3-2-n
./scripts/driver-select ath6kl
ARCH=arm CROSS_COMPILE="/home/aorth/src/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-" KLIB=~/src/git/kernel_samsung_c210 KLIB_BUILD=~/src/git/kernel_samsung_c210 make -j4
But attempting to insert the resulting modules spits out errors like:
Code:
# insmod compat.ko
insmod: can't insert 'compat.ko': invalid module format
# dmesg | tail -n3
<4>[ 365.244149] load_module: umod=4015c000, len=1311485, uargs=01a1f008
<3>[ 365.266659] compat: unknown relocation: 96
<6>[ 382.490328] BAT : soc(100), vcell(4152mV), curr(0mA), temp(26.7), chg(0), full(1), rechg(0), cable(1)
@ohanar... help!
Click to expand...
Click to collapse
I need to learn to compile a kernel. Where did you get the kernel from and where did you get the toolchain/cross compiler from? Is it the one inside the cyanogen repo or codesourcery or what?
Sorry if the dumb questions, but I'm just getting started/interested in kernels
kmmxracer said:
I need to learn to compile a kernel. Where did you get the kernel from and where did you get the toolchain/cross compiler from? Is it the one inside the cyanogen repo or codesourcery or what?
Click to expand...
Click to collapse
The kernel we are currently using is the one at https://github.com/ohanar/kernel_samsung_c210, however, in the long run we should move over to https://github.com/teamhacksung/android_kernel_samsung_smdk4210, although this is currently broken for our devices (so we need to fix it ).
I am using the latest ndk toolchain that comes with in cm repo.
---------- Post added at 02:35 AM ---------- Previous post was at 02:33 AM ----------
aorth said:
@ohanar... help!
Click to expand...
Click to collapse
Haven't really looked into this too much. I'm more interested in getting the smdk4210 kernel working (and that already includes the atheros drivers).
Thanks, I just found some good reading on compiling kernels. I allways find what I need right after asking in a thread
I'll start with the teamhacksung git. Thanks!!!!
locerra said:
Haven't really looked into this too much. I'm more interested in getting the smdk4210 kernel working (and that already includes the atheros drivers).
Click to expand...
Click to collapse
Yeah, you're right. It's likely the same ath6kl driver, though, as compat-wireless is where the mainline kernel gets linux-wireless-next (and smdk4210 kernel is based on mainline, or at least will be soon... it might be based on origen board kernel right now, see OpenGalaxy).
btw, this module loading issue isn't strictly a wireless issue. I can't load j4fs or scsi_wait_scan either. I swear I loaded these once before, recently...
btw, this module loading issue isn't strictly a wireless issue. I can't load j4fs or scsi_wait_scan either. I swear I loaded these once before, recently...
Click to expand...
Click to collapse
Yeah, I'm having that issue too...
locerra said:
Yeah, I'm having that issue too...
Click to expand...
Click to collapse
Question... when you were still using kernels compiled with Samsung's LOCALVERSION string, did you ever get the ar6000.ko to load?
I wanted to get the ball rolling on getting a working AOSP 4.1 ROM built. So far i was able to get it to compile but i cannot get it to boot or get adb working. I need help on this one so lets all work together and get this working! :laugh:
The majority of the compile errors were gps related so i have disabled the building of gps in the device tree for now as that is not important to get a booting build. If you follow these instructions you will be able to build without any errors. But the end product still will not boot. but its close.
Here is how to download the 4.1 AOSP repo (straight from the android source website):
Code:
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
$ repo init -u https://android.googlesource.com/platform/manifest
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.1_r1
$ repo sync -j16 (this will take about and hour and a half depending on your interwebs speed)
then download the device trees and proprietary files from here:
Code:
$ cd WORKING_DIRECTORY
$ git clone https://github.com/sk8erwitskil/aosp-android_device_samsung_skyrocket.git device/samsung/skyrocket/
$ git clone https://github.com/sk8erwitskil/aosp-android_device_samsung_msm8660-common.git device/samsung/msm8660-common/
$ git clone https://github.com/sk8erwitskil/android_vendor_samsung_skyrocket.git vendor/samsung/skyrocket/
then:
Code:
$ . build/envsetup.sh (notice the period)
$ lunch full_skyrocket-userdebug
$ make -j(number of CPUs/threads +1) otapackage
i have 2 cpus with 2 cores and multi threaded so i do -j9
2(cpus) x 2(cores each) x2(threads per core) + 1 = 9 (so i do make -j9 otapackage)
i got one to completely compile but i cannot get it to boot. i had to edit the updater-script to get it to even install. if you do get one compiled make sure to delete all the lines that have to do with installing recovery from the updater-script. you dont want to overwrite your recovery. and delete the folder "recovery" from inside the finished zip file. i already did that in this one:
JELLYBEAN 4.1 AOSP (NOT BOOTING YET)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
not booting rom is still uploading. should be done in about 5 mins
edit: finished uploading
cant wait to see the progress on this very excited thanks
Getting the ball rolling my friend? Good luck
Get hold of Seanzscreams. His Alpha was not booting yet, but he had adb working. We were doing logcats and dmesg's on it. A bit of advice from him on getting adb going might help you along a bit quicker.
rebel1699 said:
Get hold of Seanzscreams. His Alpha was not booting yet, but he had adb working. We were doing logcats and dmesg's on it. A bit of advice from him on getting adb going might help you along a bit quicker.
Click to expand...
Click to collapse
I am in NO way trying to disrespect anyone, and have no idea how to development process works. But why does it seem like there are small groups of people trying to get their own versions to boot. Why not collaborate until there's at least a solid base, then branch off?
I am going to start playing with it too, maybe I will figure something out but probably not
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
doood amazing
editing the cm.mk
and vendor.sh
was my hinderence
thanks compiling a build now as well
sk8erwitskil said:
not booting rom is still uploading. should be done in about 5 mins
Click to expand...
Click to collapse
also have you tried bringing over the android runtime lib
and also in egl.conf changing it to 0 1android and 0 0 adreno
seanzscreams said:
also have you tried bringing over the android runtime lib
and also in egl.conf changing it to 0 1android and 0 0 adreno
Click to expand...
Click to collapse
i have not edited any of the libs yet. i have only had time to get the compile done and edited the updater-script to get it to install. i will try this tho and see how much further into the boot process i can get. thanks
oh btw, how did you get adb to start. were there changes to init.rc that you had to make?
Compiled and adb is running
{
"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"
}
I brought over only a few specific lines. Not replacing any. When I compared them side by side
And included init.trace
Thanks for like 5 tips in the op that got me going I was up all damn night. But. Changing full skyrocket user debug. Worked. Ahhh
So close now
Using my own compile. But. Will def give props for this guide
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Good to see there's a few people working on a jb port. More people=sooner releases and more roms. Thanks.
Sent from my SGH-I727 using XDA
Great news... CAF (code aurora forums) just updated their github with new Jellybean sources, and our own msm8660 processor is among them. Same stuff I used for my port of ICS. https://www.codeaurora.org/xwiki/bin/QAEP/jb
This is what we need to compile and build from; as it's actually designed for our processor it will be much easier in getting a stable jellybean build up and running.
jomeister15 said:
Great news... CAF (code aurora forums) just updated their github with new Jellybean sources, and our own msm8660 processor is among them. Same stuff I used for my port of ICS. https://www.codeaurora.org/xwiki/bin/QAEP/jb
This is what we need to compile and build from; as it's actually designed for our processor it will be much easier in getting a stable jellybean build up and running.
Click to expand...
Click to collapse
Thanks limited, but <3
jomeister15 said:
Great news... CAF (code aurora forums) just updated their github with new Jellybean sources, and our own msm8660 processor is among them. Same stuff I used for my port of ICS. https://www.codeaurora.org/xwiki/bin/QAEP/jb
This is what we need to compile and build from; as it's actually designed for our processor it will be much easier in getting a stable jellybean build up and running.
Click to expand...
Click to collapse
thanks. dl'ing now
edit: looks like codeaurora has kernel in it as well??
sk8erwitskil said:
thanks. dl'ing now
edit: looks like codeaurora has kernel in it as well??
Click to expand...
Click to collapse
I think it's safe to say that you guys will have a working ROM fairly soon. Keep this up and you'll have something up and running in week
"error: Cannot fetch platform/external/webkit"
thats from the codeaurora repo. ugh. it hangs
Glorious work y'all
Sent from my SGH-T989 using xda app-developers app
Just wanted to personally say thank you, Sk8er for reaching out, if more devs did that then there probably wouldn't be so many questions killing these forums for everyone.
Keep up the awesome work and i will do anything i can to help. you guys rock!
Sent from my i727 DÅÅTH machine
sk8erwitskil said:
thanks. dl'ing now
edit: looks like codeaurora has kernel in it as well??
Click to expand...
Click to collapse
The kernel will need to be replaced by a modified ICS one. I'd get downloading on the source but I currently don't have access to my linux machine.
Code:
*** Disclaimer
This software is without warranty and
I will not be held accountable
if it blows up, bricks or starts a zombie apocalypse.
I am a developer BUT I am not a kernel/android rom dev!
Pure AOSP Marshmallow
This all started because I wanted to get my wife a cheap android phone that would stay up to date with the latest android. A cheap phone with SD storage and Marshmallow seemed like a great combination hence the E3. Sony has been great at supporting the developer community by providing Marshmallow binaries and working on open source components.
I am providing this rom in my spare time and all of what I have done can be done by anyone with AOSP code. Any changes I make I will endeavour to release to github should I stop developing this rom.
Click to expand...
Click to collapse
supports D2203
Guide to flashing
Code:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img --> if it doesn't work first time
If you are having booting issues flash the cache image as well.
you also probably want the newest recovery of TWRP or CWM
repo with all the kernel patches I added to the E3 if someone wants to build it for themselves
https://github.com/mikey0000/kernel-patches-for-xperia-E3
Changelog
Code:
[B]21/03/2016[/B]
boot image update
new unified display driver with flamingo specific fixes for display not turning on (seems to affect some devices worse than others)
19/03/2016
6.0.1 Release - updated boot image should get rid of display issues. Updated system image with security patches
New releases are in the downloads section and dated.
8/03/2016
6.0.1 Release, thank you all for waiting, stock build first. I really need to learn how to do nice release notes..
updated blobs which should mean a more stable build. Also we are getting closer to getting a working camera.
17/11/2015
Two new system builds
with modem files and one without
25/11/2015
Phone has arrived in the country should receive it soon
this will mean I can continue work on this device, I cannot just take my partners phone and mess with it unfortunately ;-D
26/11/2015
Phone arrived, have got a working system image, am uploading a backup from twrp now.
26/11/2015
Yay I have a working system.img for you all to flash and I put some extra effort to add a nice boot animation
I have also added the stock kernel(boot.img) as it seems to be more stable than erikcas one at the moment.... possibly
I've also attached the bootanimation should you want to use it on stock or whatever. Is not mine, can't remember the person who made, it, was posted to reddit/r/android if I find it again I'll attribute it.
02/12/2015
New boot.img with improved io performance, you should see significant improvements if you've experienced lag. Thanks goes to @vinay for his work on the flamingo kernel. One small change removes CRC checking which improves performance by up to 30%
20/01/2016
Hi Guys am in the process of producing a new kernel and ROM with ZRAM support. Hoping to get something in your hands soon.
Click to expand...
Click to collapse
FAQ
Whats working
wifi
bluetooth
sound
screen
touch etc
boots up
modem aka LTE, sim
internal storage
GPS
Not working
camera
Fix play services issues
Code:
adb shell pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
adb shell pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
Click to expand...
Click to collapse
Thanks guys
Old downloads
Slowly I am going to release newer builds to the downloads page.
Gapps
www.opengapps.org
TWRP
Vinays TWRP seems to work go grab it from the forum.
Thanks/Credits
Code:
Thanks [user=985241]@erikcas[/user] for the kernel fixes and help
sony for releasing marshmallow binaries
XDA:DevDB Information
Pure AOSP[Marshmallow], ROM for the Sony Xperia E3
Contributors
mikey0000
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.10.x
Based On: AOSP
Version Information
Status: Beta
Created 2016-03-10
Last Updated 2016-03-12
mikey0000 said:
Hi guys,
I've brought my partner an E3 and compiled marshmallow for it from ASOP, I will post links as soon as I can.
Anyone game to test?
As usual, the usual disclaimers apply. I won't be blamed if it does anything weird.
Thanks guys
Click to expand...
Click to collapse
I can test it if you post link for download
moznoadam said:
I can test it if you post link for download
Click to expand...
Click to collapse
https://drive.google.com/folderview?id=0B3jDRHAxbOx4N1ZWaEdfVkdhVXc&usp=sharing
heres the link, uploading the system image and userdata now, broke through our internet cap (at dial up speeds) so doing it over my phone lol.
So should be there in about half an hour.
EDIT: it's all up now
I can't test it because the phone hasn't arrived.
You will make a marshmallow´s rom for xperia E3?? we needed!!
Tutorial
mikey0000 said:
Hi guys,
I've brought my partner an E3 and compiled marshmallow for it from ASOP, I will post links as soon as I can.
Anyone game to test?
As usual, the usual disclaimers apply. I won't be blamed if it does anything weird.
Thanks guys
Click to expand...
Click to collapse
It makes a tutorial on installing via please ASOP ? :crying:
can this apply to D2202?
yes, this will better if you tell us for what variant of E3 in this Marshmallow thread
Will it work on D2212??? Which is your variant???
I have downloaded all the img files. Give step wise tutorial for flashing. What is the ramdisk.img and ramdisk-recovery.img and how to flash them???
Ramdisk is probably kernel. One without and one with recovery. Everything is flashable from fastboot
Okay, means this rom will work on D2212 /D2202 as they don't have seperate recovery partition
OK i´m downloading it i will write here and post screens if you want
{
"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"
}
system.img is too large ...
Maybe for new bootloader? If i good remember for E3 here was 2 bootloader types
Can you please create a quick installation guide and/or requirements (bootloader), i will be pleased and please can you tell us the bugs
Do i need to flash ramdisk OR ramdisk-recovery OR recovery OR all of them??? I am confused
this is no gonna boot at all. were is kernel?
and sony upload stuff for compiling rom,s for lte varriant,s so test it on d2203.
and system.img is bigger than our system partition it could mean you compiled rom for a different device.
ChetanLokhande said:
Will it work on D2212??? Which is your variant???
I have downloaded all the img files. Give step wise tutorial for flashing. What is the ramdisk.img and ramdisk-recovery.img and how to flash them???
Click to expand...
Click to collapse
See top post
vinay said:
this is no gonna boot at all. were is kernel?
and sony upload stuff for compiling rom,s for lte varriant,s so test it on d2203.
and system.img is bigger than our system partition it could mean you compiled rom for a different device.
Click to expand...
Click to collapse
Sorry uploading kernel now. I followed the sony developer world instructions for the D2203 variants
http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/
please be nice this is my first attempt at supplying a rom. Am re-compiling again as I think your right I misread and compiled for the D5503 instead of D2203, I don't have the device yet as I am waiting for it to be delivered.
I have messed around with building roms before but haven't handed them out.
Again for D2203 and not for D2212/D2202. I think i must throw this phone, nothings gonna happen.
mikey0000 said:
Sorry uploading kernel now. I followed the sony developer world instructions for the D2203 variants
http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/
please be nice this is my first attempt at supplying a rom. Am re-compiling again as I think your right I misread and compiled for the D5503 instead of D2203, I don't have the device yet as I am waiting for it to be delivered.
I have messed around with building roms before but haven't handed them out.
Click to expand...
Click to collapse
thank you for quick guide and im waiting impatiently for your relase ;P lets make it work more than lollipop and i have 1 question if i have ramdisk(kernel) i need to flash it through flashtool in fastboot mode?
edi194 said:
Maybe for new bootloader? If i good remember for E3 here was 2 bootloader types
Click to expand...
Click to collapse
I flashed a new bootloader
---------- Post added at 11:17 AM ---------- Previous post was at 11:14 AM ----------
So, are you rebuilding it ? Let me know i can´t wait to flash it
Hello everyone
user @santeri3700 built oc kernel for our samsung galaxy core plus
but I wanted him even more tweak cpu ... and it worked!
Present *DANiO* Kernel; which is overclocked to 1.7GHz!
Advantages:
Overclocked to 1.77GHz,
It has drivers ntfs and exFAT
It uses anykernel2; now it's more elegant
bugs:
Not yet discovered
{
"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"
}
https://www.youtube.com/watch?v=BEpb3kOtn8U
Correction of graphics; changed the logo when starting kernel
Automatic builder is on my github
If you still want to test it here is a link.
Updated "updater-script" in zip file "Modules for DANiO Kernel.zip" faulting installation via twrp or cwm
DOWNLOAD UPDATE FOR THIS FILE
Wifi still dont work
Edit
Now works
QGM said:
Wifi still dont work
Edit
Now works
Click to expand...
Click to collapse
you're welcome
PS: Do u using my kernel in this time?
No because i back to stock rom
Wysłane z mojego SM-G350 przy użyciu Tapatalka
Danielisko said:
you're welcome
PS: Do u using my kernel in this time?
Click to expand...
Click to collapse
QGM said:
No because i back to stock rom
Wysłane z mojego SM-G350 przy użyciu Tapatalka
Click to expand...
Click to collapse
@Danielisko
If you rebase your changes on top of the current Salmiakki Super V2 source, it should most probably work on Stock 4.2.2 and CM/Lineage 13 :good:
EDIT: You need to use the prepared AnyKernel 2 flashable ZIP from the Salmiakki Super thread and put your kernel in it, else it won't be compatible with all ROMs (because if you do it by boot.img, it overwrites the Ramdisk). Also, remember to put the kernel modules you have built into the appropriate folder, else WiFi and some other stuff won't work.
EDIT2: I saw that you have a seperate ZIP for the modules. Still, AnyKernel 2 is easier to use and privides more functionality (and it preserves the ramdisk)
EDIT3: Salmiakki Super V2 source is here:
http://www.github.com/SiniTurk/android_kernel_samsung_cs02/tree/salmiakki
EDIT4: Also, make sure you publish the source of your kernel somewhere and link it, because you are technically violating the License right now
@TimSchumi thx .... btw: You requested me to use a anykernel2 from @osm0sis user... now I request you to test this my kernel.
Greetings
Later I will give the source of the kernel
Danielisko said:
@TimSchumi thx .... btw: You requested me to use a anykernel2 from @osm0sis user... now I request you to test this my kernel.
Greetings
Later I will give the source of the kernel
Click to expand...
Click to collapse
This kernel bootloops on Lineage 13 (how did you add that bootimage btw?), didn't test Lineage 11 yet
i did it fast.... maybe it's bad 'anykernel.sh' file?
Code:
# AnyKernel2 Ramdisk Mod Script
# osm0sis @ xda-developers
## AnyKernel setup
# begin properties
properties() {
kernel.string=*DANiO* OC Kernel
do.devicecheck=1
do.modules=1
do.cleanup=1
do.cleanuponabort=1
device.name1=cs02
}
# end properties
# shell variables
block=/dev/block/mmcblk0p5;
is_slot_device=0;
## AnyKernel methods (DO NOT CHANGE)
# import patching functions/variables - see for reference
. /tmp/anykernel/tools/ak2-core.sh;
## AnyKernel install
dump_boot;
write_boot;
## end install
And what is the difference between 'base', 'cm-11.0'+ (and up)?
I'm trying to compile 'base' for all cm-* (? - Need confirmation)
PS: As I remember it is probably 'cm-11.0' version of kernel.
Danielisko said:
i did it fast.... maybe it's bad 'anykernel.sh' file?
And what is the difference between 'base', 'cm-11.0'+ (and up)?
I'm trying to compile 'base' for all cm-* (? - Need confirmation)
PS: As I remember it is probably 'cm-11.0' version of kernel.
Click to expand...
Click to collapse
Did you base it of the 'normal' version of AnyKernel or did you take the AnyKernel zip from the Salmiakki Super thread? Because the latter should work fine if you only switch out the zImage and the modules.
The kernel source should be the same over all branches (except for salmiakki ofc, which ships OC and the nethunter kernel, which ships OC and a USB HID driver)
I recommend you to take the 'salmaikki' branch and reapply your changes on top of it.
ok you can test my repo for building kernel....
It has a build procedure that clones a github repository (it just is not a fork), then downloads the 'danio_oc_kernel-prepared.tar.bz2' file, unpack it and merges it into the previously downloaded repo and builds the kernel. Such a philosophy!
EDIT: You maybe try this, when i compile a while ago from 'salmiakki' branch . @berkantkz , @santeri3700 and @Logiel - Will you test it?
Danielisko said:
ok you can test my repo for building kernel....
It has a build procedure that clones a github repository (it just is not a fork), then downloads the 'danio_oc_kernel-prepared.tar.bz2' file, unpack it and merges it into the previously downloaded repo and builds the kernel. Such a philosophy!
EDIT: You maybe try this, when i compile a while ago from 'salmiakki' branch . @berkantkz , @santeri3700 and @Logiel - Will you test it?
Click to expand...
Click to collapse
I actually couldn't quite understand what did you mean to. I haven't been following the thread for long time so I don't know the affair
berkantkz said:
I actually couldn't quite understand what did you mean to. I haven't been following the thread for long time so I don't know the affair
Click to expand...
Click to collapse
simply download, flash it and test if it's working and wi-fi
Danielisko said:
simply download, flash it and test if it's working and wi-fi
Click to expand...
Click to collapse
Well, I don't own your devices man I just helped to Santeri and Tim
Danielisko said:
ok you can test my repo for building kernel....
It has a build procedure that clones a github repository (it just is not a fork), then downloads the 'danio_oc_kernel-prepared.tar.bz2' file, unpack it and merges it into the previously downloaded repo and builds the kernel. Such a philosophy!
EDIT: You maybe try this, when i compile a while ago from 'salmiakki' branch . @berkantkz , @santeri3700 and @Logiel - Will you test it?
Click to expand...
Click to collapse
I'm currently preparing everything for vacation, I'll test it when I have some free time (I need to flash Lineage 11 anyways to confirm a bug)
TimSchumi said:
I'm currently preparing everything for vacation, I'll test it when I have some free time (I need to flash Lineage 11 anyways to confirm a bug)
Click to expand...
Click to collapse
and how?
Danielisko said:
and how?
Click to expand...
Click to collapse
Still did not boot.
TimSchumi said:
Still did not boot.
Click to expand...
Click to collapse
sorry for my late
according in "ak2-core.sh" file uses only gzip...
i added some decompressor for initrd (such as: xzcat, bzcat, etc....).
---
You can test it again.
Danielisko said:
sorry for my late
according in "ak2-core.sh" file uses only gzip...
i added some decompressor for initrd (such as: xzcat, bzcat, etc....).
---
You can test it again.
Click to expand...
Click to collapse
This ZIP doesn't even flash.
Everything was ok about the ZIP itself, the kernel was unbootable.
i see :/
the kernel bumped to the latest version and maybe its need rebuilding? btw travis-ci is building the kernel
the new content with kernel source and flashable zip will be here
and the logging is here