yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] :
Thanks to jerpelea's help, I think I know what needs to be done for amami, but I can't seem to figure it out exactly :(

Basically, what (I think) is needed, is an update for this file to make it compatible with the new mdss driver.

This commit made dsi-panel-honami.dtsi compatible. The only problem is, I can't figure out what the values of these new parameters need to be for amami. I couldn't find any documentations either that describe those parameters.
[Xperia Z1 Original Android Development] jerpelea:
should be same values as honami and yes dts has to be updated
[Xperia Z1 Original Android Development] jerpelea:
instead of doing that maybe you can consider adding more devices, or add M2 (8226) to same tree

there is a huge benefit if we add devices first and then rebase
[Xperia Z1 Original Android Development] CoolDevelopment:
Hm isn't that very complicated?

I also only have a z1 compact I could not test anything on other devices
[Xperia Z1 Original Android Development] YaqubYahya:
Going to wait till features are updated until I test this, really hope there's over clocking.
[Xperia Z1 Original Android Development] jerpelea:
overclocking depletes your your battery faster and heats your device!
[Xperia Z1 Original Android Development] YaqubYahya:
Haha some people don't mind that since the battery on this is amazing and I doubt I'll notice any battery drain but everyone to their own :)
[Xperia Z1 Original Android Development] Destroyedbeauty:
What about underclocking?
[Xperia Z1 Original Android Development] AndrolinRoot:
I guess 2.5 Ghz should be safe since 801 also uses this with same chip set besides Audio stuff.

Correct me if I am wrong.
[Xperia Z1 Original Android Development] :
Can we first concentrate on making the kernel stable enough and leave all request at the request tab? Thanks
[Xperia Z1 Original Android Development] AndrolinRoot:
First we need to fix camera issues.
[Xperia Z1 Original Android Development] :
a small update on amami:

I was able to boot into recovery using the new kernel :D

I can also boot to my system (PAC Rom), but the screen is pitch black. The touch panel works though, as I can see the brightness changing when I swipe on where the statusbar should be. I can also receive phone calls.

I'm writing here to inform people of progress, so that the willing might lend a helping hand. This thread is posted in original development afterall :p

I tried modifying the dtsi files, but nothing seems to work. The information are simply missing as far as I see.

I went the other route and tried replacing files in "drivers/video/msm/mdss" with the files found in the current Sony msm8974 kernel.

I replaced the following files:

mdss_dsi.c
mdss_dsi.h
mdss_dsi_panel_driver.c
mdss_dsi_status.c

This lead to the above result, with this line spamming kmsg:

<3>[ 333.570043] mdss_fb_ioctl: unsupported ioctl (c0106da9)
[Xperia Z1 Original Android Development] alnikki25k:
That is because the mdss files you copied over have multiple dependencies with other parts of the source. Specifically, ioctl and the framebuffer

I suggest you post the kmsg with the blank screen here. Should give us a better idea about where it could be going wrong.
[Xperia Z1 Original Android Development] :
I tried pulling kmsg, but it just gets spammed very quickly before the shell is ready, which leads to the first lines being removed. all I receive at the end is the spammed line over and over again.

I attached it though along with a logcat just in case ;)
[Xperia Z1 Original Android Development] John.D..:
If you need testers, please contact me :)

P.S I'm from the Russian-speaking forum - 4pda :)
[Xperia Z1 Original Android Development] NanoSurfer:
I tried building the source for the z1 (Honami) and I too had the same issue as [MENTION=4819888]oshmoun[/MENTION] :confused: Im by no means a kernel developer at all and this was actually my first attempt at compiling a kernel. I know code, but not the kernel stuff. Also I have only tried building the kernel to work with CyanogenMod, so I used this kernel from their github - aosp/LNX.LA.3.5.1-01110-8x74.0 (maybe this was the wrong source to use) And what the heck is kernel-copyleft? Anyway, here is what I did:

1) followed the instructions of [MENTION=359497]jerpelea[/MENTION] at http://developer.sonymobile.com/ for building the kernel but soon realised the hard way that his instructions aren't very noob friendly, I had endless issues trying to build it. For example, where the heck do you get the ramdisk.cpio.gz? I only managed to get a ramdisk.img and zImage. Also for the love of me I could not get sony's mkqcdtbootimg to work! Either I am being incredibly stupid or just missing something.

2) I tried the ramdisk.cpio from sony kernel.sin but that was a huge mistake as It bricked my device and was unresponsive, had to reset it with little red reset pin. I guess that was a stupid thing to do, but hey I tried

3) Used ramdisk.cpio from a freshly built CM (got it from ..out/target/product/honami directory) and this worked! it booted up fine but the lights were off and somebody WAS home :p ie: the screen was grey and onscreen buttons worked, sound etc but no display

4) Tried building it as part of the CM build, added it to my tree and configured it right (i think) but always came to an error at qcom-display-caf-new saying modules werent inistialized or something. So obviously missing something.

Please forgive my total noobness in this area but could someone shed some light on how to build this for z1 and does it even work with AOSP based roms? Maybe an idiots guide to build kernels would be great :silly: I even tried DoomLords kernel instructions but couldnt get the damn thing to work and display an image on CM.
[Xperia Z1 Original Android Development] CoolDevelopment:
Better test this kernel on stock rom. The gpu and ion parts of the Cyanogenmod kernel are heavily modified.
[Xperia Z1 Original Android Development] jerpelea:
the right approach is to fix amami display dts same way honami was fixed

you dont replace files hoping that kernel will boot with old files

this is totally wrong
[Xperia Z1 Original Android Development] jerpelea:
guide is not noob level because we want people to think instead of copy pasting all thing

if you hit an error and then google you learn from you mistake and other people experience

you started debuging and learning this is an great achivement

to get ramdisk you can use flashtool (http://www.flashtool.net/index.php )and extract ramdisk.gz from kernel.sin

cyanogen is not working in with this kernel because it has a lot of patches that break kernel compatibiliy

after we will have an stable kernel we will modify it to be compatible with this kernel

what you did is nice and is first step!

happy leagning

Alin
[Xperia Z1 Original Android Development] :
yeah I know it's wrong :D

I just wanted to hack away at it until the panel is somewhat working. I wanted to see if the other stuff are working correctly (that's why I mentioned that calling works ;) ).

I'm still trying to get the dts files to be compatible, but no luck so far :(
[Xperia Z1 Original Android Development] NanoSurfer:
Hi Alin

THANK YOU SO MUCH!!! Thank you Sir for firstly responding to me, and for your informative post! I truly am thankful. At least I know now what the issue is. And I'm actually glad that you made the post non noob friendly because your'e 100% right, copy and pasting isn't the way to learn and I sure did learn quite a bit by diving deeper into this. I will test the kernel on stock ;)

Its such a privilege and immense honor to have you at Sony!! I am so proud of what you do and especially Sony for their commitment to openness just by simply having you there! You have no idea how much Sony's move has touched me. I'm fully and whole heartedly committed to Sony now and have even managed to convince a few people to switch to Sony because of their move hiring you! Small things can make a big difference and I'm sure I'm not the only one who feels this way on this forum.

Hopefully someday I can be even a tiny bit as good as you with coding :D Huge respect for you mate :good:

Thanks again

Cheers
[Xperia Z1 Original Android Development] jerpelea:
i will look into it asap but now an nother project has higher prio ;)
[Xperia Z1 Original Android Development] wedgess:
Guys/Gals please keep all the OT out of this thread, it is a development thread so development ONLY. Please respect the OPs wishes and XDA rules.

Thread cleaned
[Xperia Z1 Original Android Development] jerpelea:
http://developer.sonymobile.com/201...-aosp-for-xperia-on-github-video-open-source/

aosp is out

you can enjoy this kernel

:)

br

J
[Xperia Z1 Original Android Development] jerpelea:
new guides published

http://developer.sonymobile.com/knowledge-base/open-source/open-devices/
[Xperia Z1 Original Android Development] :
Are the guides recommended for newbies who are interested in learning to be a kernel developer?
[Xperia Z1 Original Android Development] jerpelea:
yes
[Xperia Z1 Original Android Development] jerpelea:
kernel is rebased

z3 platform (shinano) added to kernel

https://github.com/sonyxperiadev/kernel/commits/aosp/LNX.LA.3.5.1-01110-8x74.0

status

z1 - bringup in progress

z2 - boots

z3 - boots

feel free to push fixes
[Xperia Z1 Original Android Development] jerpelea:
kernel boots on z1

no usb and no battery for now

fell free to play
[Xperia Z1 Original Android Development] krabappel2548:
EDIT: it seems to boot kernel, but not past kernel logo. With 5.2.2 branch it just gives a black screen.

The prebuilt device tree files without the updated kernel source do boot.

Btw: for those interested, I got lollipop compiled and booting ;) I'll release once it's a bit functional to use
[Xperia Z1 Original Android Development] jerpelea:
you have to update headers for new kernel

new kernel is not ready yet

check git log for kernel progress

now we have usb,charging, mhl, camera configs

br

J
[Xperia Z1 Original Android Development] krabappel2548:
Got Android 5.0 booting with the 5.1 branch, using that one now :)

not much is working, but I'm updating device tree when I get things fixed, I'll sent pull requests to sonyxperiadev github.
[Xperia Z1 Original Android Development] jerpelea:
kernel now has charger
[Xperia Z1 Original Android Development] jerpelea:
mhl and battery information are working
[Xperia Z1 Original Android Development] jerpelea:
progress

audio and sensors dsp booted

ts also cleaned
[Xperia Z1 Original Android Development] AndrolinRoot:
Bring us some love for Android L camera :angel:
[Xperia Z1 Original Android Development] jerpelea:
camera is the last thing
[Xperia Z1 Original Android Development] jerpelea:
kernel crash fixed

remaing

boot logo

audio
[Xperia Z1 Original Android Development] naitik2012:
is this updates for AOSP 5.0 ?

Thanks :)
[Xperia Z1 Original Android Development] Langes:
Unifies kernel for 4.4.4 afaik

Once it is working/stable I'm sure the next step would be LP
[Xperia Z1 Original Android Development] jerpelea:
kernel works on both kk and L

what it needs it updated userspace blobs for L
[Xperia Z1 Original Android Development] jerpelea:
audio and logo are fixed
[Xperia Z1 Original Android Development] jerpelea:
kernel seems stable
[Xperia Z1 Original Android Development] jerpelea:
hi All

Busy weeks ....months ...

Progress so far

- unified 3.4 kernel is stable for daily use and community tweaking

As some of you have already seen we have started work on comunity 3.10 unified kernel

This kernel is not finished and not stable but is an invitation for developers to joyn, test and improve a kernel built "by community for community"

Br

J
[Xperia Z1 Original Android Development] mischa_martin:
But the camera fixes were reverted.

So its stable except of camera?

mischa_martin
[Xperia Z1 Original Android Development] jerpelea:
to be able to support camera in 14 device we have to rework our camera commits so that all devices will have camera

so cleanest way is to have a clean slate

br

J
[Xperia Z1 Original Android Development] jerpelea:
build guide has been updated for easy reading

http://developer.sonymobile.com/kno...evices/how-to-build-and-flash-a-linux-kernel/
[Xperia Z1 Original Android Development] YamazakiRobert:
[MENTION=359497]jerpelea[/MENTION] if its possible add the launch of recovery using the FOTA partition and the kexec-hardboot .

really thanks for all the works you developers are doing
[Xperia Z1 Original Android Development] jerpelea:
it should be possible but useless

i think that recovery is a nice addition if is done in a sane way

br

J
[Xperia Z1 Original Android Development] jerpelea:
hi all

kernel 3.10 is progressing nice

it can soon be used on SONY AOSP Project

master branch on devices uses 3.10 kernel

l-mr0 branch uses 3.4 kernel

br

J
[Xperia Z1 Original Android Development] user822:
Very nice.

Is someone capable of merging freedreno into this?

I wanted to test it for a very long time now, but it seems like the android kernel world is quite "un-unified" and you need a little experience to get it working.
[Xperia Z1 Original Android Development] camlin:
Colour/Gamma controls

Could you please add screen controls from this link to your kernel :

http://xdaforums.com/android/software-hacking/dev-kcal-advanced-color-control-t3032080

Thank you !
[Xperia Z1 Original Android Development] algarues:
Do you think it could be possible to change the clearpad module so that when pen mode is enabled then finger touch is completely disabled?

This would make things much easier to use and less annoying...
[Xperia Z1 Original Android Development] jerpelea:
hi all

3.10 is progressing nice

at this point can be used for L MR1 and shows good battery savings

more enhancements and bugfixes will come soon

br

J
[Xperia Z1 Original Android Development] jerpelea:
there is no need to add it like this

we already added color calibration patches and calibrated some of the panels

feel free to calibrate more devices and push back

br

J
[Xperia Z1 Original Android Development] kentexcitebot:
- Deleted -
[Xperia Z1 Original Android Development] jerpelea:
hi all

3.10 kernel is usable as daily kernel

any bugreports and fixes are welcomed

br

J
[Xperia Z1 Original Android Development] :
Question. Does this work with the new stock lollipop update?
[Xperia Z1 Original Android Development] AnrgKrshn:
Can I ask how it can be classified as daily use? Does it have everything working? Camera, mobile data, etc?
[Xperia Z1 Original Android Development] jerpelea:
kernel is a kernel not a rom and everything works to the extent developers implement it in a ROM

br

J
[Xperia Z1 Original Android Development] kentexcitebot:
I thought Camera requires Sony drivers to run...in that case, wouldn't that be a kernel thing? Krabappel's AOSP rom only suffers from Camera issues, but I haven't tried this kernel on CM based.

Cyanogenmod ROMs comes with "Camera Workaround" that runs throughout. Does that maybe gives phone access to Camera? Or improve?

I hope you don't mind these questions...sorry about that.
[Xperia Z1 Original Android Development] optimumpro:
I think he would mind...

Unless I am mistaken, there has NEVER been an AOSP version for Honami with working camera. So, this may be close to impossible to do...
[Xperia Z1 Original Android Development] jerpelea:
hi all

3.10 kernel now has working power management and selinux security

Happy cooking

J
[Xperia Z1 Original Android Development] Destroyedbeauty:
Hope someone uses the 3.10 kernel and ports it to stock firmwares. That would be more awesome than.. I don't know what!!
[Xperia Z1 Original Android Development] Swidilator:
It seems like this thread isn't too active, but I figured it is the place to post. On the Z3, d6603, when running ROMs using the unified 3.10 kernel, there are often times where the screen will flicker. This only happens on the 3.10 kernel, no other kernel does this.

Currently a Nougat ROM is being tested, but it only boots with the 3.10 kernel, however that leads us to have screen flickering and nobody knows why. Is there anything we should know or can do to work towards fixing it?
[Xperia Z1 Original Android Development] :
dmesg/logcat would be helpful so others are able to spot errors there ;)
[Moto X Accessories] PRASOONMK:
Whether moto x v2013 support 64gb pen drive??? Anybody used it??
[Moto X Accessories] k_t_b:
It works for me (4.4.2).
[Moto X Accessories] cpetersen2791:
I am on 4.4.4 (XT1058- Bootloader unlocked). I have to use Stickmount and SELinusModeChanger (to change SELinux Mode to Permissive) from the playstore, but my 64 GB Sandisk dual drive works.
[Moto X Accessories] fishline:
Both my Kingston and Silicon Power OTG drives work with my stock AT&T Moto X (OTA 4.4.4). Nothing else needed.
[Sony Xperia M] imdkiller:
anyone know... how can i make cm11 navigation bar like xperia ?
[Xperia Z2 Original Android Development] jerpelea:
Unified kernel for msm8974 devices

hi all

we are cooking 1 kernel for all msm8974 devices for all custom roms

Source

https://github.com/sonyxperiadev/kernel

in this moment Z1 (honami) and Z2 (sirius) are tested

feel free to fork, joyn and push back

XDA:DevDB Information

Unified , Kernel for the Sony Xperia Z2

Contributors

jerpelea, Kali-, tilal6991, cdesai

Kernel Special Features:

Version Information

Status: Testing

Created 2014-10-07

Last Updated 2014-10-13
[Xperia Z2 Original Android Development] adwinp:
By "custom" you mean based on stock roms or AOSP-derived?
[Xperia Z2 Original Android Development] jerpelea:
both

depending on what an developer wants to build
[Xperia Z2 Original Android Development] furrypotato:
What will the impact of this project be on areas that have been problems for aosp projects such as hardware drivers ?
[Xperia Z2 Original Android Development] jerpelea:
1 kernel to rule them all means that 1 hal fixed in 1 device works on all devices ;)

1 patch merged in kernel to fix something fixes same problem on all devices
[Xperia Z2 Original Android Development] bonderbond:
I hope I'm not presumptuous or wrong: will it come with CWM and/or TWRP recovery versions?

Many thanks.
[Xperia Z2 Original Android Development] jerpelea:
this is just source code so depends on developers on what android fork is used
[Xperia Z2 Original Android Development] adwinp:
Unless I'm mistaken, the sony source doesn't work with pure AOSP. All AOSP or derivatives roms use the CM android_kernel_sony_msm8974pro or forks of it.

My question is thus the following: is this kernel source compatible with AOSP or like "kernel-copyleft", only with stock rom derivatives?

My custom kernel works on the latter, but I need to use the "msm8974pro" trees for pure AOSP.

Unless I'm missing something?
[Xperia Z2 Original Android Development] jerpelea:
it works perfectly on aosp and derivates
[Xperia Z2 Original Android Development] jerpelea:
new guides published

http://developer.sonymobile.com/knowledge-base/open-source/open-devices/
[Xperia Z2 Original Android Development] jerpelea:
kernel is rebased

z3 platform (shinano) added to kernel

https://github.com/sonyxperiadev/kernel/commits/aosp/LNX.LA.3.5.1-01110-8x74.0

status

z1 - bringup in progress

z2 - boots

z3 - boots

feel free to push fixes
[Xperia Z2 Original Android Development] jerpelea:
broadcom wifi is now merged in kernel
[Xperia Z2 Original Android Development] jerpelea:
crash has been fixed

broadcom wifi crash fixed
[Xperia Z2 Original Android Development] tejaswi.rohit:
Can't boot

[MENTION=359497]jerpelea[/MENTION] I've compiled AOSP Lollipop and it boots fine. I've compiled the kernel from 3.5.2.2 branch of the unified kernel source and successfully made zImage. I've combined the zImage with the resulting dtb and the ramdisk from the AOSP build. I can't get the device to boot for some reason. It's stuck at the Sony boot logo. Did I miss a step ? I've searched online but couldn't get enough help about this.

Tried the same with Kitkat too but same result. Doesn't go past the sony boot logo.

UPDATE

Got it to work :D The command line argument in the guide provided has android boot device as qcom whereas the one compiled during AOSP has it as "shinano" Took me 1 build to understand this :) Back to work again :D
[Xperia Z2 Original Android Development] jerpelea:
hi All

Busy weeks ....months ...

Progress so far

- unified 3.4 kernel is stable for daily use and community tweaking

As some of you have already seen we have started work on comunity 3.10 unified kernel

This kernel is not finished and not stable but is an invitation for developers to joyn, test and improve a kernel built "by community for community"

Br

J
[Xperia Z2 Original Android Development] jerpelea:
build guide has been updated for easy reading

http://developer.sonymobile.com/kno...evices/how-to-build-and-flash-a-linux-kernel/
[Xperia Z2 Original Android Development] jerpelea:
hi all

kernel 3.10 is progressing nice

it can soon be used on SONY AOSP Project

master branch on devices uses 3.10 kernel

l-mr0 branch uses 3.4 kernel

br

J
[Xperia Z2 Original Android Development] jerpelea:
hi all

3.10 is progressing nice

at this point can be used for L MR1 and shows good battery savings

more enhancements and bugfixes will come soon

br

J
[Xperia Z2 Original Android Development] kur41:
Hi [MENTION=359497]jerpelea[/MENTION], which of the branches should be used for the 3.10 kernel?
[Xperia Z2 Original Android Development] waiwang:
I ll be appreciated that the unified kernel can support d6563.
[Xperia Z2 Original Android Development] jerpelea:
hi

since i dont have that device it is just a dtb update that you have to send to suport 6563

br

J
[Xperia Z2 Original Android Development] jerpelea:
hi all

3.10 kernel is usable as daily kernel

any bugreports and fixes are welcomed

br

J
[Xperia Z2 Original Android Development] RyTekk:
Where can I download it? Or it just a source? And it's for AOSP/CM based or Stock from Sony?
[Xperia Z2 Original Android Development] twy_2000:
it is for AOSP 5.1, and with which I cannot use camera.(however AOSP 5.1 with 3.4 kernel works)
[Xperia Z2 Original Android Development] jerpelea:
hi all

3.10 kernel now has working power management and selinux security

Happy cooking

J
[Xperia Z2 Original Android Development] VinBenzin810:
Hey any news about 3.10 kernel and the camera is that working now ? And where can i find a how to for building kernels from source with some CPU GPU and more feature ?

Gesendet von meinem Xperia Z2 mit Hilfe von xda Forums PRO
[T-Mobile, Samsung Galaxy SIII] mwilliaams:
T-Mobile Galaxy S3 LTE SGH-T999L

Hi there. I just want to flash the latest version of stock Android (L if possible, KitKat otherwise). The Google Now launcher isn't enough; I want the improved performance and efficiency and I want all the useless Samsung apps off my phone. After I root my phone, where do I get a simple stock ROM? All I can seem to find are custom ROMs with all kinds of mods. I just want stock Android or a very lightly-modified alternative. As far as I can tell right now the closest ROM would be CM.

Thanks.
[T-Mobile, Samsung Galaxy SIII] DocHoliday77:
Just FYI, you should only ask your question once. Asking multiple times often just serves clutter and confusion.

All available roms will be in the development and original development sections. Not sure if L is being worked on or not tbh.
[Networking] dsc171:
hi ihave an o2 xda iis and after mich messing i have got it to find my wlan from bt homehub, which works wirelessly with laptops etc. The lan manager shows all the correct info and a strong signal, but the machine won't connect for ie or outlook, it returns 'page you are looking for has not been found' p;ease help so i can keep my sanity.

thanks