Sony Z3TC Port - Ubuntu Touch Q&A, Help & Troubleshooting

Hey guys,
sitting on a port for my sony z3 tablet.
So far it compiles without errors. Which is quiet good. I patched the kernel then with the patches mentioned in the ubuntu porting guide.
Then i flash boot.img and recovery.img. So far so good. I can boot to ubports recovery then which is very good to i think.
But i'm unable to flash the system. I think.
Can maybe someone point me the way a bit more clear ?
Cheers
Moritz

Tried to set ANDROID_RAM_CONSOLE=y in kernel settings ...
but resulted in
Code:
android/ram_console.c:58:2: error: implicit declaration of function 'persistent_ram_init_ringbuffer' [-Werror=implicit-function-declaration]
any idea ? Kernel is sony msm8974 on branch cm-12.1

Related

[Help] Build kernel from source and flash it

Hi,
I don't try to flood, just to increase my chance to have any help
I want to build a custom module for my GTi9300. Since the module need to be compiled whith the same kernel on the phone, i tried to build and flash a kernel from source (aka zImage). Since fastboot is not available on GS3, I just want an alternative tech to boot my gs3 with my built zImage.
I build the source from stock kernel samsung opensource database (update 8) and receive the zImage file.
I made a backup with cwm and unpack the boot.img with a perl script, then repack a new boot.img with my zImage as kernel and the ramdick from unpack but cannot boot with new package.
Could someone maybe give me a kernel source and the right corresponding package to boot it. Or maybe just a good way to make the whole process.
------------------------------------------------------------------------------------------------------------------------------
Moreover if someone can help me directly about the module, he's very welcome.
Without having the same kernel on the phone, I already tried to insmod my module. I've got first some version error, with the module_layout. Even if I correct it the module still doesn't load. In the kernel source, I modify the Subversion in the kernel to match with the one on the phone. But the compilation result add a "-gc33f1bc-dirty" to the end. Maybe I miss something to do before the compilation
Please post all questions in the Q&A section.
Thread Moved and Closed as you already have a thread going for this over there.

Compile Android 6.0 and fix some space Problems Help!

Hello guys, I want to start to modify the kernel of my sony xperia z2.
First I decided to compile aosp android 6.0 for my z2.
I have done all things of the sony tutorial and the compilation was successful only the boot.img doesnt exists.
So I decided to flash system.img and userdata.img.
It was successful too.
After this I started my phone and it wont boot. Only the sony logo comes and Im able to boot to recovery.
after this i flashed carbon rom and now I only have 540 mb space on my device.
I compiled aosp in a ubuntu container (docker).
I have now some questions:
When I flash a ROM with fastboot and i only flash boot, system and userdata I cant hardbrick my z2 right?
boot.img is my recovery right?
system.img is my android rom including linux kernel right?
userdata should be the free space for data and apps ...
Where is the emei saved on the z2?
When I compile the kernel which option should I choose when I enter this command?
source build/envsetup.sh && launch
Some information:
I have currently TWRP as a recovery.
system.img 1,5 GB
userdata.img 550 MB
device is working
I hope my english isnt that bad...

CM-ROM Development for Huawei MediaPad 10 (T1-A21L)

Hello,
I try to port Cyanogenmod to my tablet (codename: hwt1a21l/chipset: MSM8916). I build a recovery image according to the CM-Wiki. Target was CM11 because the tablet is based on Android 4.4.4 and huawei have specific downloads for 4.4.4 (kernel source). If this would work, I go further with current CM releases.
After boot into fastboot/rescue and flash the CM-recovery, the tablet restarts repeatly in rescue/fastboot (every time I press the key combination for recovery). If I flash the stock recovery, the stock recovery displays (if I press the combination for recovery).
If I execute a "fastboot boot"-command with my custom image, the output says "signature checking failed". (with "fastboot boot" on an official image, there is no problem, of course)
Bootloader is unlocked. Root access is denied (su command not found and I cannot search through the bin-directories - permission denied). I tried SuperSU, Fararoot, Kingroot, Kingo-Root. If I upload a busybox executable to the device, the shell command of 'busybox su' prints out an error about 'setuid'. A 'chmod s' doesnt work (permission denied).
I have two logs. One log for a working recovery with very detailed information and one with the pre-boot process.
Which steps can be performed to go further? Any hints are welcome
I thought about a custom aboot, sbl-hacking, etc but I didnt find any useful information for this case. (ok, I can buy IDA, which is a little bit expansive )
I read documentation about boot-image signing, but it looks like, that CM do this stuff for me? (keys-file in res is updated)
EDIT: I have no attachments button below my message form?!
Hi I have tablet with similar specs (T1-821L) and also want to compile twrp for it. I haven't much time to do this but I can give you advice to search github for device tree for similar device and modify it later. It's the sources I tried to suit to my device: https://github.com/surdupetru/g620s_twrp. I read also that cyanogenmod sources are more compatibile with Huawei devices but you can encounter problems during compilation. Omni sources are easier to compile from but contains outdated repos which also can brake the compilation and you should drag and drop manually them from cyanogenmod. I suggest you to start with older sources like cm11, cm12.1 or omni 4.4, 5.1. You can also ask more experienced devs on IRC: http://webchat.freenode.net/?channels=twrp or here: http://forum.xda-developers.com/showthread.php?p=32965365 and also g620s devs. Hope this helped you a bit .
I think the problem is the signature validation. It looks like, CM, OMNI, TWRP, etc. doesnt sign the Image with an (appropriate) certificate, that the Huawei accepts.
To fully confirm this assumption, I try to debug with an UART and/or AudioJack "device".
4got said:
Hi I have tablet with similar specs (T1-821L) and also want to compile twrp for it. I haven't much time to do this but I can give you advice to search github for device tree for similar device and modify it later. It's the sources I tried to suit to my device: https://github.com/surdupetru/g620s_twrp. I read also that cyanogenmod sources are more compatibile with Huawei devices but you can encounter problems during compilation. Omni sources are easier to compile from but contains outdated repos which also can brake the compilation and you should drag and drop manually them from cyanogenmod. I suggest you to start with older sources like cm11, cm12.1 or omni 4.4, 5.1. You can also ask more experienced devs on IRC: http://webchat.freenode.net/?channels=twrp or here: http://forum.xda-developers.com/showthread.php?p=32965365 and also g620s devs. Hope this helped you a bit .
Click to expand...
Click to collapse
I have the very same device (T1-821L) did you have any success with TWRP?
Con_Sole said:
I have the very same device (T1-821L) did you have any success with TWRP?
Click to expand...
Click to collapse
Unfortunetly no. I started modifying this tablet month ago and tried many things like: replacing kinguser with supersu but without success and repacking system.img extracted from stock firmware to place su binaries inside but also without success. I thought about bringing supersu to device without twrp because there is FlashFire but if it's impossible I will try to compile twrp.

[F3111/F3113/F3115][TWRP][3.1.0-0][UNOFFICIAL] TWRP recovery for XA Single Sim

Hi all,
I'm happy to share with you my new TWRP recovery 3.1.0-0 built from sources. It works for Single Sim XA only.
As before you can't wipe /cache because it is used by TWRP and I don't know how to force unmount, decryption of /data doesn't work so if you want a full backup or explore files use an unencrypted data partition.
Download link:
https://mega.nz/#!ZxBBGTbA!C2FSqJE0Xv6yQDPlmzRkmGOVxYhRMMhe3Z2TGTCvCkg
Flash it with fastboot.
Have a nice day
So works in 100%
https://zapodaj.net/c5beb966e478a.png.html
backup
When I do backup with 3.1 TWRP and when I choose partitions to backup, it says: Data (excluding data stored in internal storage) - when backup is in progress info pop-ups that data will be backed up without eg. pictures or downloaded items.
My internal memory is not encrypted (was formatted) so why is that ?
This is not a case with previous 3.0.2 TWRP. ALL was included in backup.
regards,
Feature request
Hi rrvuhpg,
Is it possible for you to add complete DATA partition backup option in your recovery ?
I mean something like Data-image, so nothing would be excluded in backup.
Also if you could add phone battery charging when working in recovery, that would be very useful, please.
I know it sounds like "feature request", but maybe you could consider adding these items.
regards,
Andrzej_Andrzej said:
Hi rrvuhpg,
Is it possible for you to add complete DATA partition backup option in your recovery ?
I mean something like Data-image, so nothing would be excluded in backup.
Also if you could add phone battery charging when working in recovery, that would be very useful, please.
I know it sounds like "feature request", but maybe you could consider adding these items.
regards,
Click to expand...
Click to collapse
Hi, sorry but I will not add the possibility to add complete DATA partition backup. I will verify on the old TWRP but it should not too, it's a decision taken by the TWRP dev team.
If you want the official answer look here: https://twrp.me/faq/backupexclusions.html
For the battery charging I don't need to add the feature, you phone is charging well throug TWRP (look at the recovery logs) it only doesn't show the battery level, it's more aesthetic than usefull but if I release an updated TWRP I will try to show it. A golden rule to know is to charge the battery before playing with backup/restore/update.
rrvuhpg said:
Hi, sorry but I will not add the possibility to add complete DATA partition backup. I will verify on the old TWRP but it should not too, it's a decision taken by the TWRP dev team.
If you want the official answer look here: https://twrp.me/faq/backupexclusions.html
For the battery charging I don't need to add the feature, you phone is charging well throug TWRP (look at the recovery logs) it only doesn't show the battery level, it's more aesthetic than usefull but if I release an updated TWRP I will try to show it. A golden rule to know is to charge the battery before playing with backup/restore/update.
Click to expand...
Click to collapse
Hi, ok I read this,and They say: "You may want to backup the internal storage as well but this is not possible in the TWRP GUI. You have to do it manually (e.g. with "tar" when your internal storage is mounted in TWRP".
Could you please explain how to do it manually using "tar", I mean how to backup Data partition manually ?
I am just curious why it is not recommnded to do full backup of Data including user data ?
Hi rrvuhpg,
Is it possible for you to make a tutorial how to make recovery TWRP for xperia xa single sim ?
What is configuration file for it and where it can be found? , how to compile it from sources ?
Which sources should one use ?
There are some tutorials about how to compile it, but not specifically related to xperia xa f3111.
What kind of tools should one use ?
You have an experience with it so based on it can you share your observations.
regards,
Andrzej_Andrzej said:
Hi rrvuhpg,
Is it possible for you to make a tutorial how to make recovery TWRP for xperia xa single sim ?
What is configuration file for it and where it can be found? , how to compile it from sources ?
Which sources should one use ?
There are some tutorials about how to compile it, but not specifically related to xperia xa f3111.
What kind of tools should one use ?
You have an experience with it so based on it can you share your observations.
regards,
Click to expand...
Click to collapse
Hi,
I don't need to make a tutorial, you can find all you need on Xda: https://forum.xda-developers.com/showthread.php?t=1943625
and some very useful threads here : https://forum.xda-developers.com/general/xda-university
rrvuhpg said:
Hi,
I don't need to make a tutorial, you can find all you need on Xda: https://forum.xda-developers.com/showthread.php?t=1943625
and some very useful threads here : https://forum.xda-developers.com/general/xda-university
Click to expand...
Click to collapse
Hi, I read those tutorials and I am learning at present a lot of new things, but it leaves me still with many to read and acquire.
I found your files on github: https://github.com/search?utf8=✓&q=device_sony_tuba&type=
and I was wondering if there were xperia xa configuration files. I figured those are for dual sim xa. So I would like to kindly ask you if you could put xperia xa single sim configuration files as when you do TWRP recovery for this phone (for which I am very grateful) anybody could use it and learn from it. Especially it is difficult to make boardconfig.mk correctly and not too many people write about xperia xa single sim building, compiling, etc. It is a not very popular smartphone I wonder.
I hope that it would be OK with you,
regards,
Andrzej_Andrzej said:
Hi, I read those tutorials and I am learning at present a lot of new things, but it leaves me still with many to read and acquire.
I found your files on github: https://github.com/search?utf8=✓&q=device_sony_tuba&type=
and I was wondering if there were xperia xa configuration files. I figured those are for dual sim xa. So I would like to kindly ask you if you could put xperia xa single sim configuration files as when you do TWRP recovery for this phone (for which I am very grateful) anybody could use it and learn from it. Especially it is difficult to make boardconfig.mk correctly and not too many people write about xperia xa single sim building, compiling, etc. It is a not very popular smartphone I wonder.
I hope that it would be OK with you,
regards,
Click to expand...
Click to collapse
You can use the same device tree for single and dual (you can change all "tubads" by "tubass") , I will push changes to Github so you will have the correct Boardconfig. You will have to download the kernel tree from Sony or modify the Boardconfig to use a prebuilt kernel extracted from the modified boot or TWRP for your device.
If you want to learn I recommend you to try to build TWRP for a device who have a lot of documentation first, after it will be easy for you to do the same for XA.
rrvuhpg said:
You can use the same device tree for single and dual (you can change all "tubads" by "tubass") , I will push changes to Github so you will have the correct Boardconfig. You will have to download the kernel tree from Sony or modify the Boardconfig to use a prebuilt kernel extracted from the modified boot or TWRP for your device.
If you want to learn I recommend you to try to build TWRP for a device who have a lot of documentation first, after it will be easy for you to do the same for XA.
Click to expand...
Click to collapse
Hi, rrvuhpg
Once again thank you for prompt reply, help and understanding.
Thank you very much indeed. Of course as my knowledge will progress please expect a lot of questions from my side.
best regards,
Andrzej_Andrzej said:
Hi, rrvuhpg
Once again thank you for prompt reply, help and understanding.
Thank you very much indeed. Of course as my knowledge will progress please expect a lot of questions from my side.
best regards,
Click to expand...
Click to collapse
No problem but if you have a lot of questions ask me in private message. I updated my Github on CM13 branch. Good luck
rrvuhpg said:
No problem but if you have a lot of questions ask me in private message. I updated my Github on CM13 branch. Good luck
Click to expand...
Click to collapse
Hi @rrvuhpg,
I've asked for your help regarding the compilation of the kernel for xperia xa in a private message. I've tried to compile the kernel from your git, but I'm not seeing any zImage after the compilation. I've also downloaded the kernel archive from sony archives and succeeded compiling this one with the default config for a F3111 (tubass_defconfig). I got an *Image* binary file in the out directory, probably this one is the zImage, but I'm not sure if I need to do something else to this binary before packing it along with the ramdisk. I figured that you're doing something additionally. I'm doing this because I want to get rid of the dynamic brightness adjustments in the kernel. Please, can you help me?
Thanks.
cojocar.andrei said:
Hi @rrvuhpg,
I've asked for your help regarding the compilation of the kernel for xperia xa in a private message. I've tried to compile the kernel from your git, but I'm not seeing any zImage after the compilation. I've also downloaded the kernel archive from sony archives and succeeded compiling this one with the default config for a F3111 (tubass_defconfig). I got an *Image* binary file in the out directory, probably this one is the zImage, but I'm not sure if I need to do something else to this binary before packing it along with the ramdisk. I figured that you're doing something additionally. I'm doing this because I want to get rid of the dynamic brightness adjustments in the kernel. Please, can you help me?
Thanks.
Click to expand...
Click to collapse
Hi, your question is a little off topic here but I will answer you
In the "out" directory, don't use the zImage but zImage-dtb. You only have to pack it along with the ramdisk. If you have any questions please use your thread https://forum.xda-developers.com/xperia-xa/help/dynamic-brightness-question-t3614808
Quote me if you need help
Hi, rrvuhpg.
I've got a little problem. I flashed the Customized RU Firmware 33.2.A.4.70 half a year ago. I had installed TWRP and SuperSU. But now I flashed the Customized CE5 Firmware with the version 33.3.A.0.131 and I tried to flash TWRP via Adb and I get this error message everytime and I also tried to boot the custom recovery via Adb. It shows the Sony logo than Black-Screen and then it start normaly. I tried also to reflash the Firmware and flash other Firmware from other Countries.
Code:
C:\adb>adb devices
List of devices attached
RQ3000F9PS device
C:\adb>adb reboot bootloader
C:\adb>fastboot flash recovery recovery.img
target reported max download size of 134217728 bytes sending 'recovery' (15814 KB)...
OKAY [ 0.578s]
writing 'recovery'...
FAILED (remote: This partition doesn't exist)
finished. total time: 0.583s
C:\adb>fastboot boot recovery.img
downloading 'boot.img'...
OKAY [ 0.577s]
booting...
OKAY [ 0.043s]
finished. total time: 0.622s
I hope you can help me!
JustTryIt130 said:
Hi, rrvuhpg.
I've got a little problem. I flashed the Customized RU Firmware 33.2.A.4.70 half a year ago. I had installed TWRP and SuperSU. But now I flashed the Customized CE5 Firmware with the version 33.3.A.0.131 and I tried to flash TWRP via Adb and I get this error message everytime and I also tried to boot the custom recovery via Adb. It shows the Sony logo than Black-Screen and then it start normaly. I tried also to reflash the Firmware and flash other Firmware from other Countries.
I hope you can help me!
Click to expand...
Click to collapse
Hi, TWRP and boot for Marshmallow doesn't work for Nougat. You will have to wait for a new boot and recovery for Nougat (and a new guide to root it).
@rrvuhpg
Maybe you can help... I successfully flashed this on my XA MM, and flashed ultra slim MM rom, but rom will not boot. Usually just infinite boot animation, but once I got it to start 'optimizing apps', but rebooted about halfway. Do you think the recovery has anything to do with it? As you stated, I can't wipe cache, but install log shows successful cache format and system complete... Thanks
levone1 said:
@rrvuhpg
Maybe you can help... I successfully flashed this on my XA MM, and flashed ultra slim MM rom, but rom will not boot. Usually just infinite boot animation, but once I got it to start 'optimizing apps', but rebooted about halfway. Do you think the recovery has anything to do with it? As you stated, I can't wipe cache, but install log shows successful cache format and system complete... Thanks
Click to expand...
Click to collapse
Hi, did you used the modified boot for the right firmware? Did you downgraded your firmware from Nougat without wiping Data or restored Nougat Data on MM? Did you changed root method (SuperSu to Magisk)? As I know no problem with TWRP or boot. I got the same problem if I downgrade from N to MM without wiping Data.
@rrvuhpg
I question for you brother
we could help make boot.img and recover.img for xperiu L1 G3311
This is so BIG thank you very very thankxxxxxx bro
Firmare download this: https://mega.nz/#!n9pDjLob!m9_A4L4ij...8nabHmx3-1mwQA
Link: for xda this https://forum.xda-developers.com/xpe...oader-t3670750
Very Please help if you can brother

Question WIP - Compiling Kernel / TWRP

Hi all,
I have been looking into compiling the kernel and TWRP for this device.
For the kernel, it compiles but does not boot (Will invvestigate later ).
The TWRP does not boot, most likely related to boardconfig.mk. I am unable to find the kernel base or offsets. Can anyone assist in discovering this information? I have tried unpacking boot.img and the current tools does not show this information.
Shaky156 said:
Hi all,
I have been looking into compiling the kernel and TWRP for this device.
For the kernel, it compiles but does not boot (Will invvestigate later ).
The TWRP does not boot, most likely related to boardconfig.mk. I am unable to find the kernel base or offsets. Can anyone assist in discovering this information? I have tried unpacking boot.img and the current tools does not show this information.
Click to expand...
Click to collapse
Hello. I manage to create TWRP for this device.
It is currently tested on a device running the laster firmware RUI 4.0_C.13 but it should work in RUI 3.0. Decryption works, MTP didn't yet.

Categories

Resources