[WIP][Thinktank][DEV]Kernel 3.4.x - Xperia Play Android Development

Hello,
As most threads are full of thanks posts or non development related posts, I am making a new one.
A note to everyone: This is a DEV thread, every post not related to this project will be removed!
What is the current status?
Currently the kernel is booting, but touchscreen isn't working.
What's working:
Booting into Android
Screen (Showing things, not touch)
Sound
What's not working or not tested because of touchscreen:
Everything else
Sources:
https://github.com/nickholtus/msm7x30-3.4.x-nAa
Credits:
NobodyAtAll for the initial source
MikeNG for a lot of fixes
DooMLoRD For giving me the device and a lot of work on the source
Mikeioannina A lot of work on the sources
Again: Please keep this thread development related!
If I helped you, please press thanks or consider donating to me!

Current status on touchscreen:
Still investigating for the problem, can't really find anything yet.

Threads with some more info:
http://forum.xda-developers.com/showthread.php?t=2563508

Is the driver crashing? Post dmesg
Sent from my C6902 using xda app-developers app

DooMLoRD said:
Is the driver crashing? Post dmesg
Sent from my C6902 using xda app-developers app
Click to expand...
Click to collapse
Will post this evening, am at work right now.

Bakisha posted a dmesg here http://forum.xda-developers.com/showpost.php?p=48869177&postcount=20
Although it is not from the most recently updated test kernel.

I've posted even full bugreport from zImage(4), wich i think is latest test version. I'll copy paste dmesg from there and attach it here

Bakisha said:
I've posted even full bugreport from zImage(4), wich i think is latest test version. I'll copy paste dmesg from there and attach it here
Click to expand...
Click to collapse
ok so here is what i see from the dmesg:
Code:
<6>[ 5.784790] synaptics_touchpad: product 1, firmware revision 13, bootloader date 2011-02-16
<6>[ 5.785827] input: synaptics_touchpad as /devices/virtual/input/input4
<6>[ 5.786254] synaptics_touchpad 4-0020: synaptics_touchpad_set_power: powered 1, activated 0, users 0, standby 0
<7>[ 5.786834] CY8CTMA300_TOUCH: V0.9b-mt built Jan 14 2014 22:15:21
<7>[ 5.787200] CY8CTMA300_TOUCH: SPI setup (requesting 1000000Hz) OK
...
<6>[ 5.949859] CY8CTMA300_TOUCH: TP_REG_FW 0x00
<6>[ 6.109924] CY8CTMA300_TOUCH: Bootloader FW Ver 0.0
<6>[ 6.129882] CY8CTMA300_TOUCH: Application FW Ver 0.0
<6>[ 6.149902] CY8CTMA300_TOUCH: Silicon Revision E
<6>[ 6.169891] CY8CTMA300_TOUCH: Customer ID 0
<6>[ 6.189880] CY8CTMA300_TOUCH: old FW version, applying reset workarounds
<6>[ 6.330108] input: cy8ctma300_touch as /devices/platform/spi_qsd.0/spi_master/spi0/spi0.0/input/input5
<6>[ 6.334136] CY8CTMA300_TOUCH: invalid data?
then...
Code:
<6>[ 33.252838] CY8CTMA300_TOUCH: invalid data?
<6>[ 33.651550] CY8CTMA300_TOUCH: invalid data?
<6>[ 34.024230] synaptics_touchpad 4-0020: synaptics_touchpad_set_power: powered 0, activated 0, users 1, standby 0
...
<6>[ 34.026611] synaptics_touchpad 4-0020: synaptics_touchpad_set_power: powered 0, activated 0, users 0, standby 0
<6>[ 34.027099] synaptics_touchpad 4-0020: synaptics_touchpad_set_power: powered 0, activated 0, users 1, standby 0
<6>[ 34.027130] synaptics_touchpad 4-0020: synaptics_touchpad_set_power: powered 0, activated 0, users 0, standby 0
<6>[ 34.050384] CY8CTMA300_TOUCH: invalid data?
<6>[ 34.491516] CY8CTMA300_TOUCH: invalid data?
<6>[ 34.890441] CY8CTMA300_TOUCH: invalid data?
see that the "set_power" is powered 0... something is powering down the touchpad, may be due to "invalid data?"
can u give me exact time stamp from bootup when the touchscreen stops working? post the corresponding dmesg...

DooMLoRD said:
see that the "set_power" is powered 0... something is powering down the touchpad, may be due to "invalid data?"
can u give me exact time stamp from bootup when the touchscreen stops working? post the corresponding dmesg...
Click to expand...
Click to collapse
I;ll attach dmesg that i just made, but i don't think that lines have something to do with touchscreen because line with that "powered 0" is even in dmesg logs of GB and ICS kernels for Play (i've checked on Lupus kernels for GB and ICS and on those touchpads and touchscreen works normally)
But i noticed difference in next lines:
Code:
<7>[ 5.525909] CY8CTMA300_TOUCH: V0.9b-mt built Jan 14 2014 22:15:21
<7>[ 5.526306] CY8CTMA300_TOUCH: SPI setup (requesting 1000000Hz) OK
<6>[ 5.584747] Charging with 0mA current
<6>[ 5.584960] entering into lpm
<6>[ 5.585144] msm_otg_suspend: Turn on phy comparators
<6>[ 5.585449] msm_otg_suspend: usb in low power mode
<6>[ 5.685119] CY8CTMA300_TOUCH: TP_REG_FW 0x00
<6>[ 5.845153] CY8CTMA300_TOUCH: Bootloader FW Ver 0.0
<6>[ 5.865142] CY8CTMA300_TOUCH: Application FW Ver 0.0
<6>[ 5.885192] CY8CTMA300_TOUCH: Silicon Revision E
<6>[ 5.905181] CY8CTMA300_TOUCH: Customer ID 0
<6>[ 5.925170] CY8CTMA300_TOUCH: old FW version, applying reset workarounds
<6>[ 6.065368] input: cy8ctma300_touch as /devices/platform/spi_qsd.0/spi_master/spi0/spi0.0/input/input5
<6>[ 6.071472] CY8CTMA300_TOUCH: invalid data?
<6>[ 6.084808] CY8CTMA300_TOUCH: Device registered OK
And in other kernels (even in Wedgess's 2.6 kernel for his test release JB4.2) it is like:
Code:
<7>CY8CTMA300_TOUCH: V0.9b-mt built Feb 5 2014 22:14:40
<7>CY8CTMA300_TOUCH: SPI setup (requesting 1000000Hz) OK
<6>CY8CTMA300_TOUCH: TP_REG_FW 0x00
<6>CY8CTMA300_TOUCH: Bootloader FW Ver 0.1
<6>CY8CTMA300_TOUCH: Application FW Ver 0.114
<6>CY8CTMA300_TOUCH: Silicon Revision E
<6>CY8CTMA300_TOUCH: Customer ID 5
<6>CY8CTMA300_TOUCH: SSD firmware [Project ID 7]
<3>CY8CTMA300_TOUCH: firmware versions match.
<6>input: cy8ctma300_touch as /devices/platform/spi_qsd.0/spi0.0/input/input3
<6>CY8CTMA300_TOUCH: Device registered OK
<6>GPIO Input Driver: Start gpio inputs for keypad-zeus in interrupt mode
<6>GPIO Input Driver: Start gpio inputs for keypad-zeus in interrupt mode
<6>GPIO Input Driver: Start gpio inputs for keypad-zeus in interrupt mode
<6>GPIO Input Driver: Start gpio inputs for keypad-zeus in interrupt mode
<6>GPIO Input Driver: Start gpio inputs for keypad-zeus in interrupt mode
<6>input: keypad-zeus as /devices/virtual/input/input4

i think probably is touchpad related also..seems like kernel is powering down the touchpads and touchscreen. @nickholtus and if you try kernel like NEOL as the board is the same, but kernel wont look for touchpads..and maybe we can flash on play without touchpads support..just a test,we can flash neol kernel and vice versa..only touchpads and camera inverted..but maybe its possible to make it work.

Personally I think the problem is here:
<6>[ 5.845153] CY8CTMA300_TOUCH: Bootloader FW Ver 0.0
<6>[ 5.865142] CY8CTMA300_TOUCH: Application FW Ver 0.0
<6>[ 5.885192] CY8CTMA300_TOUCH: Silicon Revision E
<6>[ 5.905181] CY8CTMA300_TOUCH: Customer ID 0
<6>[ 5.925170] CY8CTMA300_TOUCH: old FW version, applying reset workarounds
Click to expand...
Click to collapse
Because it can't get the right fw versions, it says old FW version, applying reset workarrounds.
In other kernel this isn't the case.

nickholtus said:
Personally I think the problem is here:
Because it can't get the right fw versions, it says old FW version, applying reset workarrounds.
In other kernel this isn't the case.
Click to expand...
Click to collapse
To add to this - it also applies a different file after realizing the FW version doesn't match up.
In Wedgess 2.6 Kernel is uses 'input3':
Code:
cy8ctma300_touch as /devices/platform/spi_qsd.0/spi_master/spi0/spi0.0/input/input3
Whereas in this Kernel is uses 'input5'
Code:
cy8ctma300_touch as /devices/platform/spi_qsd.0/spi_master/spi0/spi0.0/input/input5
I doubt it's as simple as this, but if this is referencing different files why not try copying/renaming 'input3' to 'input5' and trying again?
Edit: Yeah, it doesn't look like it's as simple as this. xD
Either that or try changing the FW versions? Since for some reason they are currently '0.00', we'd just need to somehow change them to:
Code:
<6>CY8CTMA300_TOUCH: Bootloader FW Ver 0.1
<6>CY8CTMA300_TOUCH: Application FW Ver 0.114
Another thing to note is that 'input3' is identified as 'pm8xxx-keypad'
Code:
<6>[ 5.400421] input: pm8xxx-keypad as /devices/platform/msm_ssbi.0/pm8058-core/pm8xxx-keypad/input/input3
Is this the same in the 2.6 Kernel?
@Bakisha - Would you be able to post the dmesg for the 2.6 Kernel please? I don't have the means to get it myself unfortunately - I was going to see if there were any other discrepancies between the two.

Spizzy01 said:
@Bakisha - Would you be able to post the dmesg for the 2.6 Kernel please? I don't have the means to get it myself unfortunately - I was going to see if there were any other discrepancies between the two.
Click to expand...
Click to collapse
It's little bit old and it don't have timestamp, but untill i can make new one, it will do. Attaching (it is copy-pasted from previous bugreport i posted in other thread)
As for myself, i'll look in differences in source code between Nick's and Wedgess's kernel, to see if there is any differences

Hi all,
I hav some news, but it's not directly related to the kernel.
The play I have is going to Achotjan for some time, he is going to develop for it.
We are going to develop together on this kernel. After a while i will get the play back.
So hopefully progress will go a bit faster now we have a new developer.
Regards,
Nick

I'm trying to rebuild my Linux development/kernel environment and compile the Kernel in preparation for helping nick/nAa if required.
Has anyone ever ran into this before
Code:
CHK include/generated/utsrelease.h
/home/spizzy/android/msm7x30/scripts/gcc-version.sh: line 25: arm-eabigcc: command not found
/home/spizzy/android/msm7x30/scripts/gcc-version.sh: line 26: arm-eabigcc: command not found
HOSTCC scripts/conmakehash
CC scripts/mod/empty.o
Generating include/generated/mach-types.h
arm-eabigcc: No such file or directory
Is your PATH set correctly?
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
CC kernel/bounds.s
arm-eabigcc: No such file or directory
Is your PATH set correctly?
make[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
I'm using nAa's sources and the paths are set correctly... I can't understand why it's saying it's not. Unless I'm missing something else? oO
I'll look into it more tonight if I can't work it out soon, but if anyone can help or if anyone is able to talk me through it that'd be great.. (Y)
Edit: Nvm. Fixed. xD

Spizzy01 said:
I'm using nAa's sources and the paths are set correctly... I can't understand why it's saying it's not. Unless I'm missing something else? oO
I'll look into it more tonight if I can't work it out soon, but if anyone can help or if anyone is able to talk me through it that'd be great.. (Y)
Click to expand...
Click to collapse
Wich toolchain are you using to build zImage?
Or post link to source that you are trying to compile and i'll look into it too...

Bakisha said:
Wich toolchain are you using to build zImage?
Or post link to source that you are trying to compile and i'll look into it too...
Click to expand...
Click to collapse
I fixed that issue now... Had issues with the filesystem/Linux itself lol.
Now I'm getting this though:
Code:
drivers/gpu/msm/adreno.c: In function 'adreno_iommu_setstate':
drivers/gpu/msm/adreno.c:425: warning: the frame size of 1040 bytes is larger than 1024 bytes; see http://go/big_stack_frame
error, forbidden warning: adreno.c:425
make[3]: *** [drivers/gpu/msm/adreno.o] Error 1
make[2]: *** [drivers/gpu/msm] Error 2
make[1]: *** [drivers/gpu] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
Hopefully an easy fix.. Working on it now lol.
Oh Linux... Y U DO DIS! O_O
FYI: I'm using this toolchain:
Code:
github.com/AndroidUnited/Android_Toolchains

Spizzy01 said:
FYI: I'm using this toolchain:
Code:
github.com/AndroidUnited/Android_Toolchains
Click to expand...
Click to collapse
Maybe to try with 4.7?
I'm using the one from
https://github.com/DooMLoRD/android_prebuilt_toolchains/tree/master/arm-linux-androideabi-4.7

Bakisha said:
Maybe to try with 4.7?
I'm using the one from
https://github.com/DooMLoRD/android_prebuilt_toolchains/tree/master/arm-linux-androideabi-4.7
Click to expand...
Click to collapse
I changed the toolchain as you suggested... It's building currently, I'll let you know if it gets further
Thanks for the replies Bakisha. Much appreciated!
Edit: Sadly it died... And funnily enough, on the touchscreen.
By the way, I haven't modified anything in the source yet. At least, not for this installation. I do however hopefully have a fix which I want to try once I get this working correctly.
Code:
drivers/input/touchscreen/cy8ctma300_touch.c: In function 'cy8ctma300_touch_probe':
drivers/input/touchscreen/cy8ctma300_touch.c:1354:35: error: expected ')' before ';' token
drivers/input/touchscreen/cy8ctma300_touch.c:1382:1: error: expected ')' before '}' token
drivers/input/touchscreen/cy8ctma300_touch.c:1382:1: error: expected ')' before '}' token
drivers/input/touchscreen/cy8ctma300_touch.c:1382:1: error: expected expression before '}' token
drivers/input/touchscreen/cy8ctma300_touch.c:1329:3: error: label 'err_gpio_setup' used but not defined
drivers/input/touchscreen/cy8ctma300_touch.c:1382:1: warning: control reaches end of non-void function [-Wreturn-type]
error, forbidden warning: cy8ctma300_touch.c:1382
make[3]: *** [drivers/input/touchscreen/cy8ctma300_touch.o] Error 1
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
Could you by any chance upload your 'cy8ctma300_touch.c' file please? I have a feeling the file I have has been modified somehow... Which makes no sense as it was cloned straight from github... oO
I've found an older file myself, I'll try this one too...
Edit: OK... I'm pretty sure this is the problem...? Can someone try to compile the Kernel again, and select only '2' workers (aka -j2). If I put a large amount of workers then it'll most likely compile as it waits for the rest of the tasks to finish... But in actual fact, the kernel isn't compiling correctly because of the error above...? Unless of course I'm the only one getting this error... But as I said, I've not made any changes yet.
I'm gonna go through the file and see if I can work out what the issue is, most likely it's just a missing expression or something. I'll also try sourcing the file from somewhere else, see if it helps..

Spizzy01 said:
By the way, I haven't modified anything in the source yet. At least, not for this installation. I do however hopefully have a fix which I want to try once I get this working correctly.
Code:
drivers/input/touchscreen/cy8ctma300_touch.c: In function 'cy8ctma300_touch_probe':
drivers/input/touchscreen/cy8ctma300_touch.c:1354:35: error: expected ')' before ';' token
drivers/input/touchscreen/cy8ctma300_touch.c:1382:1: error: expected ')' before '}' token
drivers/input/touchscreen/cy8ctma300_touch.c:1382:1: error: expected ')' before '}' token
drivers/input/touchscreen/cy8ctma300_touch.c:1382:1: error: expected expression before '}' token
drivers/input/touchscreen/cy8ctma300_touch.c:1329:3: error: label 'err_gpio_setup' used but not defined
drivers/input/touchscreen/cy8ctma300_touch.c:1382:1: warning: control reaches end of non-void function [-Wreturn-type]
error, forbidden warning: cy8ctma300_touch.c:1382
make[3]: *** [drivers/input/touchscreen/cy8ctma300_touch.o] Error 1
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
I found a workaround for that.
To me it looks like number of opened "(" doesn't match with closed ")", so I copied code from Lupus kernel:
Change:
Code:
while (((err = reset_device(this);
to
Code:
while (((err = reset_device(this)) < 0) && reset_retries--) {
DEBUG_PRINTK(KERN_DEBUG
"CY8CTMA300_TOUCH: retrying reset_device()\n");
msleep(100);
}
Don't ask why, i don't understand what it does, but for me it fixed problem with compiling (in case few more errors, compare this file with file from lupus jb 2.6 kernel )

Related

[Q] Building Kernel error

Hello,
I want build the kernel of Xperia S but I hava this error :
Code:
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/home/cemal/Bureau/Sourceicsxs/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
Thank you !
Solved
Solved I write in the Makefile the flag --disable-werror. Nice
Edit : BUT i have a new error
Code:
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/home/cemal/Bureau/Sourceicsxs/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Erreur 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Erreur 2
make: *** [arch/arm/mach-msm] Erreur 2
Anything Ideas ?
c3ma138 said:
Solved I write in the Makefile the flag --disable-werror. Nice
Edit : BUT i have a new error
Code:
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/home/cemal/Bureau/Sourceicsxs/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Erreur 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Erreur 2
make: *** [arch/arm/mach-msm] Erreur 2
Anything Ideas ?
Click to expand...
Click to collapse
You shouldn't have to edit the Makefile. Are you using the tool chain recommended by Sony? Make sure your path selects them before anything else. Also I would reset locale to C before compiling ("Erreur"?!), it may play some tricks.
kuisma said:
You shouldn't have to edit the Makefile. Are you using the tool chain recommended by Sony? Make sure your path selects them before anything else. Also I would reset locale to C before compiling ("Erreur"?!), it may play some tricks.
Click to expand...
Click to collapse
I use the ndk toolchain, where can I find the Sony toolchain
Edit : arm-[...].4.6
c3ma138 said:
I use the ndk toolchain, where can I find the Sony toolchain
Edit : arm-[...].4.6
Click to expand...
Click to collapse
You find the specific instructions for the Xperia S at http://developer.sonymobile.com/wp/...-archive-released-with-building-instructions/ referring to the kernel building howto at http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/ recommending you to use the tool chain at https://sourcery.mentor.com/sgpp/lite/arm/portal/[email protected]=lite
Follow those instructions before start tinkering with Makefiles, tools, build environment etc and I'm sure you'll succeed.
And reset locale to C! I.e. unset the LANG and LC_* environment variables in your shell before running the build scripts.
kuisma said:
You find the specific instructions for the Xperia S at http://developer.sonymobile.com/wp/...-archive-released-with-building-instructions/ referring to the kernel building howto at http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/ recommending you to use the tool chain at https://sourcery.mentor.com/sgpp/lite/arm/portal/[email protected]=lite
Follow those instructions before start tinkering with Makefiles, tools, build environment etc and I'm sure you'll succeed.
And reset locale to C! I.e. unset the LANG and LC_* environment variables in your shell before running the build scripts.
Click to expand...
Click to collapse
thank you,
But this does not work
I download: https://sourcery.mentor.com/sgpp/lite/arm/portal/release2188
then: http://developer.sonymobile.com/wportal/devworld/downloads/download/61a0452tarbz2
I unzipped all in my Desktop and in a terminal, I wrote:
- cd source/kernel
- ARCH=arm CROSS_COMPILE=/home/cemal/Bureau/arm-2012.03/bin/arm-none-eabi- make fuji_nozomi_defconfig
- ARCH=arm CROSS_COMPILE=/home/cemal/Bureau/arm-2012.03/bin/arm-none-eabi- make
c3ma138 said:
But this does not work
Click to expand...
Click to collapse
Sorry, but I'm no mind reader. "does not work" is not sufficient information for me to reply anything helpful to.
The basic is, if you don't know what you are doing, do it by the book. Still not working? Ask for help. Sony Xperia has presented quite a verbose instruction about how to compile their kernels. Try following this before choosing your own tool chain, edit Makefiles and so. When you get problems, read the instructions more carefully and/or ask the community (hi!) for help, with somewhat more detailed information about what you did and how it failed. The more verbose information you present, the more likely you are to get a useful reply.
Best of luck.
------------------
(edit)
A curious question, why do you want to compile a new kernel? I get the impression this is not your field of expertise, and maybe you are trying to achieve something somewhat more complicated than needed.
Hello,
I encounter the same kind of issue. Does anyone could help me ?
I work in an Ubuntu PC (10.04).
I have downloaded the toolchain for Linux from sourcery.mentor.com (arm-2012.03-57-arm-none-linux-gnueabi.bin)
Then the kernel source code 6.1.A.0.452 from developer.sonymobile.com/downloads/xperia-open-source-archives/open-source-archive-for-build-6-1-a-0-452-6-1-a-0-453-and-6-1-a-0-454
and I execute:
cd kernel
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make fuji_nozomi_defconfig
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make
Then I have the following error:
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized]
error, forbidden warning: alignment.c:298
make[1]: *** [arch/arm/mm/alignment.o] Error 1
make: *** [arch/arm/mm] Error 2
Many thanks in advance for your help
zongojim said:
Hello,
I encounter the same kind of issue. Does anyone could help me ?
I work in an Ubuntu PC (10.04).
I have downloaded the toolchain for Linux from sourcery.mentor.com (arm-2012.03-57-arm-none-linux-gnueabi.bin)
Then the kernel source code 6.1.A.0.452 from developer.sonymobile.com/downloads/xperia-open-source-archives/open-source-archive-for-build-6-1-a-0-452-6-1-a-0-453-and-6-1-a-0-454
and I execute:
cd kernel
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make fuji_nozomi_defconfig
ARCH=arm CROSS_COMPILE=~/Toolchain/ARM_GNU_Linux/bin/arm-none-linux-gnueabi- make
Then I have the following error:
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized]
error, forbidden warning: alignment.c:298
make[1]: *** [arch/arm/mm/alignment.o] Error 1
make: *** [arch/arm/mm] Error 2
Many thanks in advance for your help
Click to expand...
Click to collapse
You need android-ndk-r5b to compile the Xperia kernel source. I.e. you can not use the latest NDK.
Thanks a lot for your answer
Unfortunately, I didn't find android-ndk-r5b for Linux.
Could you kindly indicate me where I can get it ?
thanks !
zongojim said:
Thanks a lot for your answer
Unfortunately, I didn't find android-ndk-r5b for Linux.
Could you kindly indicate me where I can get it ?
thanks !
Click to expand...
Click to collapse
http://dl.google.com/android/ndk/android-ndk-r5b-linux-x86.tar.bz2
Thanks again, I really apreciate your support !
I have downladed and extracted android-ndk-r5b to my Ubuntu station.
it seems that is is not a built version, right ?
I have tried to navigate in the documentation, but it does not look so trivial...
Would you know how to simply compile it ?
zongojim said:
Thanks again, I really apreciate your support !
I have downladed and extracted android-ndk-r5b to my Ubuntu station.
it seems that is is not a built version, right ?
I have tried to navigate in the documentation, but it does not look so trivial...
Would you know how to simply compile it ?
Click to expand...
Click to collapse
It's compiled ready to use.
Read the documentation at http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/
Replace the toolchain path with e.g. "CROSS_COMPILE=/opt/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-" and you are good to go.
ok nice.
Then I tried again and... I've got a different error !
Here is what I have done:
$ ARCH=arm CROSS_COMPILE=~/Toolchain/arm-2011.03-41-arm-none-linux-gnueabi/bin/arm-none-ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make fuji_nozomi_defconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
#
# configuration written to .config
#
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make clean
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
make[1]: `include/generated/mach-types.h' is up to date.
arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables"
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/prj/mms/smdswv/users/jmgrimaud/Xperia/6.1.A.0.452/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Error 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Error 2
make: *** [arch/arm/mach-msm] Error 2
zongojim said:
ok nice.
Then I tried again and... I've got a different error !
Here is what I have done:
$ ARCH=arm CROSS_COMPILE=~/Toolchain/arm-2011.03-41-arm-none-linux-gnueabi/bin/arm-none-ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make fuji_nozomi_defconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
#
# configuration written to .config
#
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make clean
$ ARCH=arm CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- make
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/mach-msm/Kconfig:2107:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2113:warning: defaults for choice values not supported
make[1]: `include/generated/mach-types.h' is up to date.
arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables"
arch/arm/mach-msm/qdsp6v2/audio_acdb.c: In function 'store_vocvol_cal':
/prj/mms/smdswv/users/jmgrimaud/Xperia/6.1.A.0.452/kernel/arch/arm/include/asm/atomic.h:249: error: 'asm' operand requires impossible reload
make[2]: *** [arch/arm/mach-msm/qdsp6v2/audio_acdb.o] Error 1
make[1]: *** [arch/arm/mach-msm/qdsp6v2] Error 2
make: *** [arch/arm/mach-msm] Error 2
Click to expand...
Click to collapse
Only specify ONE toolchain ...
Also, I'm note quite sure if I used 4.4.0 or 4.4.3, since both are included in the same r5b distribution. You can also try;
CROSS_COMPILE=~/Toolchain//android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
Thank you kuisma.
Sorry it was a copy/paste error, I had for sure specified only one toolchain.
So I am making a new test with CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
I'll keep you informed
---------- Post added at 11:51 AM ---------- Previous post was at 11:15 AM ----------
It built, thanks again for your support, kuisma !
Not sure it is still in the scope of this topic, but continuing to execute the instructions found in developer.sonymobile.com/2011/05/06/how-to-build-a-linux-kernel/, I have some questions regarding Step C, absolutly not clear for me
What should I do exactly to prepare my boot.img ? What have I to do to create a ramdisk.img file, or where can I find it ? (in fact I do not know what it the ramdisk in the picture...is it required ?)
zongojim said:
Thank you kuisma.
Sorry it was a copy/paste error, I had for sure specified only one toolchain.
So I am making a new test with CROSS_COMPILE=~/Toolchain/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-
I'll keep you informed
---------- Post added at 11:51 AM ---------- Previous post was at 11:15 AM ----------
It built, thanks again for your support, kuisma !
Not sure it is still in the scope of this topic, but continuing to execute the instructions found in developer.sonymobile.com/2011/05/06/how-to-build-a-linux-kernel/, I have some questions regarding Step C, absolutly not clear for me
What should I do exactly to prepare my boot.img ? What have I to do to create a ramdisk.img file, or where can I find it ? (in fact I do not know what it the ramdisk in the picture...is it required ?)
Click to expand...
Click to collapse
Start with the original root filesystem from the standard boot.img you are already running.
You'll find my tool working with boot.img here: http://whiteboard.ping.se/Android/Unmkbootimg
Also, read the links on the page my signature links to, to get more information about how to build boot images, root file systems etc.
The ramdisk contains the root filesystem, and yes, it's very much needed.
Ok understood
last point: how to retrieve the boot.img from my Xperia S phone ? (that is already unlocked)
zongojim said:
Ok understood
last point: how to retrieve the boot.img from my Xperia S phone ? (that is already unlocked)
Click to expand...
Click to collapse
Last? Ok, I'll take your word for it.
http://www.youtube.com/watch?v=bB77gWRUI_A
Remember, Google is your friend.
help me somebody please
i'm trying to build custom kernel for my xperia M dual
got sources from sony's website, doing build by guide
here is an error:
Code:
In file included from drivers/usb/gadget/android.c:51:0:
drivers/usb/gadget/f_qdss.c: In function 'qdss_bind_config':
drivers/usb/gadget/f_qdss.c:586:38: warning: argument to 'sizeof' in 'strncmp' call is the same expression as the second source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
error, forbidden warning: f_qdss.c:586
make[3]: *** [drivers/usb/gadget/android.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2
is it an NDK version issue?
I'm running:
Code:
make -j8 ARCH=arm CROSS_COMPILE=/home/dev/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-
thanks

[Q] How to fix j4fs driver error?

Hey guys,
I'm trying to port TWRP to my phone Samsung Galaxy S Advance, GT-I9070.
To do that I switched the stock recovery files inside the Initramfs with TWRP files and compiled the kernel using samsung's source.
So, now twrp is booting and working fine, but I have an issue with the J4FS driver.
the module loads but the j4fs partition is not mounting.
here's the error I noticed in dmesg
Code:
<4>[ 14.585052] j4fs: module license 'unspecified' taints kernel.
<4>[ 14.585144] Disabling lock debugging due to kernel taint
<4>[ 14.597229] FlashDevMount : filp_open() OK....!
<3>[ 14.597991] init: SEC_DEVENC ***[/dev/block/mmcblk0p1][0]
<4>[ 14.620117] fsd_reclaim 1291: MST is not recognized(mst.magic=0x00000000)
<4>[ 14.620178] fsd_reclaim 1292: MST is not recognized
<4>[ 14.629272] [<c07b484c>] (unwind_backtrace+0x0/0xf0) from [<c0c9d51c>] (dump_stack+0x10/0x24)
<4>[ 14.629425] [<c0c9d51c>] (dump_stack+0x10/0x24) from [<bf003ac8>] (fsd_reclaim+0x3bc/0xe40 [j4fs])
<4>[ 14.629608] [<bf003ac8>] (fsd_reclaim+0x3bc/0xe40 [j4fs]) from [<bf0017bc>] (j4fs_fill_super+0x2e0/0x364 [j4fs])
<4>[ 14.629730] [<bf0017bc>] (j4fs_fill_super+0x2e0/0x364 [j4fs]) from [<c08916c8>] (get_sb_bdev+0x110/0x16c)
<4>[ 14.629852] [<c08916c8>] (get_sb_bdev+0x110/0x16c) from [<bf0002f8>] (j4fs_get_sb+0x58/0x6c [j4fs])
<4>[ 14.629974] [<bf0002f8>] (j4fs_get_sb+0x58/0x6c [j4fs]) from [<c08904a0>] (vfs_kern_mount+0x58/0x108)
<4>[ 14.630065] [<c08904a0>] (vfs_kern_mount+0x58/0x108) from [<c0890594>] (do_kern_mount+0x34/0xd8)
<4>[ 14.630187] [<c0890594>] (do_kern_mount+0x34/0xd8) from [<c08a7b94>] (do_mount+0x7a4/0x848)
<4>[ 14.630279] [<c08a7b94>] (do_mount+0x7a4/0x848) from [<c08a7cbc>] (sys_mount+0x84/0xc4)
<4>[ 14.630371] [<c08a7cbc>] (sys_mount+0x84/0xc4) from [<c07ad740>] (ret_fast_syscall+0x0/0x30)
<4>[ 14.630554] fsd_reclaim 1607: Error(nErr=0x00000000)
<4>[ 14.630615] fsd_reclaim 1612: j4fs_rw_start is set to default value(128KB)
<4>[ 14.630737] j4fs_fill_super 1311: Error(nErr=0x40000000)
<6>[ 14.641357] param_init
<3>[ 14.641448] lfs_param_op: filp_open failed. (-2)
<3>[ 14.641510] param_init(358): Loading parameters failed. Parameters have been initialized as default.
and the compilation warnings
Code:
LD drivers/samsung/built-in.o
LD drivers/samsung/j4fs/built-in.o
CC [M] drivers/samsung/j4fs/j4fs_kernel.o
drivers/samsung/j4fs/j4fs_kernel.c: In function 'j4fs_write_begin':
drivers/samsung/j4fs/j4fs_kernel.c:237: warning: format '%d' expects type 'int', but argument 4 has type 'loff_t'
drivers/samsung/j4fs/j4fs_kernel.c:237: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int'
drivers/samsung/j4fs/j4fs_kernel.c: In function 'j4fs_fill_super':
drivers/samsung/j4fs/j4fs_kernel.c:1224: warning: unused variable 'len'
drivers/samsung/j4fs/j4fs_kernel.c:1224: warning: unused variable 'tmp'
drivers/samsung/j4fs/j4fs_kernel.c: At top level:
drivers/samsung/j4fs/j4fs_kernel.c:1499: warning: initialization from incompatible pointer type
drivers/samsung/j4fs/j4fs_kernel.c: In function 'j4fs_readdir':
drivers/samsung/j4fs/j4fs_kernel.c:806: warning: the frame size of 1040 bytes is larger than 1024 bytes; see http://go/big_stack_frame
CC [M] drivers/samsung/j4fs/llid_kernel.o
drivers/samsung/j4fs/llid_kernel.c: In function 'FlashDevRead':
drivers/samsung/j4fs/llid_kernel.c:98: warning: passing argument 1 of 'printk' makes pointer from integer without a cast
include/linux/kernel.h:346: note: expected 'const char *' but argument is of type 'int'
drivers/samsung/j4fs/llid_kernel.c:65: warning: unused variable 'part_id'
drivers/samsung/j4fs/llid_kernel.c:63: warning: unused variable 'nVol'
drivers/samsung/j4fs/llid_kernel.c: In function 'FlashDevWrite':
drivers/samsung/j4fs/llid_kernel.c:156: warning: passing argument 1 of 'printk' makes pointer from integer without a cast
include/linux/kernel.h:346: note: expected 'const char *' but argument is of type 'int'
drivers/samsung/j4fs/llid_kernel.c:123: warning: unused variable 'part_id'
drivers/samsung/j4fs/llid_kernel.c:121: warning: unused variable 'nVol'
CC [M] drivers/samsung/j4fs/fsd_common.o
drivers/samsung/j4fs/fsd_common.c: In function 'fsd_write':
drivers/samsung/j4fs/fsd_common.c:300: warning: ISO C90 forbids mixed declarations and code
drivers/samsung/j4fs/fsd_common.c: In function 'fsd_reclaim':
drivers/samsung/j4fs/fsd_common.c:1270: warning: ISO C90 forbids mixed declarations and code
LD [M] drivers/samsung/j4fs/j4fs.o
LD drivers/samsung/param/built-in.o
CC [M] drivers/samsung/param/param.o
drivers/samsung/param/param.c:58: warning: 'param_check' defined but not used
drivers/samsung/param/param.c: In function 'param_show_info':
drivers/samsung/param/param.c:234: warning: the frame size of 1032 bytes is larger than 1024 bytes; see http://go/big_stack_frame
how can I fix this error?
my kernel sources are here: http://github.com/diego-ch/android_kernel_samsung_janice
You need cyanogen source to properly compile twrp...
It's pretty easy, all you do is switch out the bootable/recovery with redo bootable/recovery
Change a few lines in your board config and then*compile the kernel*
Here's the official guide:*http://rootzwiki.com/index.php?/topic/23903-How-to-Compile-TWRP-from-Source
And you can apply the recovery without flashing a whole kernel using this:*https://github.com/smasher816/Team-Win-Recovery-Project-Samsung/blob/master/injectTWRP-template.zip*
Just click on the "raw" button to download
Then add your ramdisk-recovery and your good!
When flashing you must mount system before hand because that is a universal script and does not include mount points for mounting system*
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
You need cyanogen source to properly compile twrp...
It's pretty easy, all you do is switch out the bootable/recovery with redo bootable/recovery
Change a few lines in your board config and then*compile the kernel*
Here's the official guide:*http://rootzwiki.com/index.php?/topic/23903-How-to-Compile-TWRP-from-Source
And you can apply the recovery without flashing a whole kernel using this:*https://github.com/smasher816/Team-Win-Recovery-Project-Samsung/blob/master/injectTWRP-template.zip*
Just click on the "raw" button to download
Then add your ramdisk-recovery and your good!
When flashing you must mount system before hand because that is a universal script and does not include mount points for mounting system*
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for answering mg2195!
I already got TWRP running,
the only issue I have is the j4fs driver that doesnt work.
I also dont have the board config files for this device as there are no other devs working on it,
unless samsung's open source platform code could help.

Can not compile P.A.C-man jellybean(android 4.1.2) with P.A.C-man repository

Hello. Here is the problem: when compiling gets out here it is:
Code:
----- Making recovery ramdisk ------
/home/slava/android/system/out/host/linux-x86/bin/minigzip < /home/slava/android/system/out/target/product/coconut/ramdisk-recovery.cpio > /home/slava/android/system/out/target/product/coconut/ramdisk-recovery.img
error: unsupported page size 131072
make: *** [/home/slava/android/system/out/target/product/coconut/boot.img] Error 255How do I fix this?
make: *** Waiting for unfinished jobs...
target SharedLib: libutils (/home/slava/android/system/out/target/product/coconut/obj/SHARED_LIBRARIES/libutils_intermediates/LINKED/libutils.so)
Total time elapsed: 51 minutes (3106.947346596 seconds)
[email protected]:~/android/system$
installed java, android sdk install. All required packages installed.
How do I fix this?
Did you change the BoardConfig.mk in any way?
mihahn said:
Did you change the BoardConfig.mk in any way?
Click to expand...
Click to collapse
nope

Makefile error: *** multiple target patterns. Stop.

I am currently trying to build an Ubuntu Touch-compatible kernel for use with the Xperia Z5 Compact. I have been following the How to build and flash a Linux kernel for AOSP supported devices guide and am at the point at which I have created an Ubuntu-compatible .config file but am having issues finally building the kernel (Step 7) using the .config file as I receive the following error:
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 14
Makefile:791: *** multiple target patterns. Stop.
I know that this error is related to the call of link-vmlinux.sh which is referenced as follows on line 791 of the Makefile:
vmlinux: scripts/link-vmlinux.sh $(vmlinux-deps) FORCE
Any suggestions for debugging this problem would be greatly appreciated.
blackstar1744 said:
I am currently trying to build an Ubuntu Touch-compatible kernel for use with the Xperia Z5 Compact. I have been following the How to build and flash a Linux kernel for AOSP supported devices guide and am at the point at which I have created an Ubuntu-compatible .config file but am having issues finally building the kernel (Step 7) using the .config file as I receive the following error:
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 14
Makefile:791: *** multiple target patterns. Stop.
I know that this error is related to the call of link-vmlinux.sh which is referenced as follows on line 791 of the Makefile:
vmlinux: scripts/link-vmlinux.sh $(vmlinux-deps) FORCE
Any suggestions for debugging this problem would be greatly appreciated.
Click to expand...
Click to collapse
Yah, I'm facing the same problem. Only with 64-bit targets (G4 and G4 Stylus), this doesn't happen with any 32bit targets. It doesn't matter if I swap out the toolchain, it doesn't matter which tree I'm working -- Omni, Bliss, CM13 -- all can't get past that error.
So it doesn't seem like it's in the build tree, but maybe my system. I'm using Arch, so I'm used to Android building snafus, but still I cannot figure this out. I've gone through every chain leading to the error and I can't seem to pin it down. It's really harshing my build.
Lil' help, y'all?
UPDATE: Nevermind, just had to set USE_HOST_LEX. Goddammit, I though I already tried that.
Any explanation for why you need to set USE_HOST_LEX? Is this an OS- or compiler-related modification? I'm compiling with UBERTC 4.9 on Ubuntu 14.04 LTS. I currently don't have USE_HOST_LEX in my .config file.
culot said:
Yah, I'm facing the same problem. Only with 64-bit targets (G4 and G4 Stylus), this doesn't happen with any 32bit targets. It doesn't matter if I swap out the toolchain, it doesn't matter which tree I'm working -- Omni, Bliss, CM13 -- all can't get past that error.
So it doesn't seem like it's in the build tree, but maybe my system. I'm using Arch, so I'm used to Android building snafus, but still I cannot figure this out. I've gone through every chain leading to the error and I can't seem to pin it down. It's really harshing my build.
Lil' help, y'all?
UPDATE: Nevermind, just had to set USE_HOST_LEX. Goddammit, I though I already tried that.
Click to expand...
Click to collapse
blackstar1744 said:
Any explanation for why you need to set USE_HOST_LEX? Is this an OS- or compiler-related modification? I'm compiling with UBERTC 4.9 on Ubuntu 14.04 LTS. I currently don't have USE_HOST_LEX in my .config file.
Click to expand...
Click to collapse
USE_HOST_LEX set the build to use host's Flex instead of the one in-tree. See build/core/config.mk:
Code:
ifeq ($(USE_HOST_LEX),yes)
LEX := flex
else
LEX := prebuilts/misc/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)/flex/flex-2.5.39
endif
I don't know about elsewhere, but this has been a problem on Arch for a while. Lately this has not longer been a problem for me, so I assumed it was not an issue. Apparently still a problem for 64bit build, but not 32bit. Hmm.
Another workaround was to preface your make with LC_ALL=C, but I tried that without setting 'USE_HOST_LEX=yes' and it didn't help.
EDIT: I don't think it's compiler-related, as I did try different toolchains and different toolchain versions -- none made a difference. I tried 3 different Make versions, no help. USE_HOST_LEX? That fixed it. Compiling as we speak.
I added export USE_HOST_LEX=yes to my .bashrc and went back to the GCC compiler...new problem to debug. Any suggestions on debugging control groups would be greatly appreciated
Code:
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j 1
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
<stdin>:1226:2: warning: #warning syscall sched_setattr not implemented [-Wcpp]
<stdin>:1229:2: warning: #warning syscall sched_getattr not implemented [-Wcpp]
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
SKIPPED include/generated/compile.h
CC kernel/cgroup.o
kernel/cgroup.c: In function 'subsys_cgroup_allow_attach':
kernel/cgroup.c:2138:59: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
if (current != task && cred->euid != tcred->uid &&
^
kernel/cgroup.c:2139:18: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')
cred->euid != tcred->suid)
^
make[1]: *** [kernel/cgroup.o] Error 1
make: *** [kernel] Error 2
Random side rant: The way Google shows search results is going wayyy downhill.

Help compiling Alcatel Flint (5054O) kernel

Hi everyone,
I just purchased this pre-paid phone for its 5.5" screen and cheap price ($50). It's from Cricket Wireless. There are also similar models for Metro PCS and T-Mobile under One Touch Fierce XL (5054N), and Pop 3 5.5" 4G (5054X, 5054S).
The phone can be rooted easily though the Alcatel App, 'System Updates', then SuperSU can be installed, followed by TWRP and Xposed. I have done this before and it's fairly easy based on posts on XDA.
I want to add USB OTG features since it is hardware supported. I looked on SourceForge for the Alcatel 5054O kernel, but only found one called 'OT_5054_20160504'. Under kernel/arch/arm/configs I only found 'pop3_defconfig' so I used this as a start .config hoping it would work.
Did make menuconfig, loaded default values, found USB settings, added support for OTG, then save.
cross-compile on Ubuntu 16.04 with arm-eabi-4.6.
I have gcc version 5.4.0
after make, I get errors related to the touchscreen:
drivers/input/touchscreen/synaptics_rmi_dev.c: In function 'rmidev_init_device':
drivers/input/touchscreen/synaptics_rmi_dev.c:582:39: error: dereferencing pointer to incomplete type
drivers/input/touchscreen/synaptics_rmi_dev.c:589:29: error: dereferencing pointer to incomplete type
drivers/input/touchscreen/synaptics_rmi_dev.c:595:4: error: dereferencing pointer to incomplete type
scripts/Makefile.build:308: recipe for target 'drivers/input/touchscreen/synaptics_rmi_dev.o' failed
make[3]: *** [drivers/input/touchscreen/synaptics_rmi_dev.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/input/touchscreen' failed
make[2]: *** [drivers/input/touchscreen] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/input' failed
make[1]: *** [drivers/input] Error 2
Makefile:832: recipe for target 'drivers' failed
make: *** [drivers] Error 2
Not sure how to proceed from here. Is this an error because I just have the wrong kernel, or wrong defconfig, or wrong gcc version? I remember seeing somewhere that the stock kernel was compiled with gcc 4.8 (I used gcc 5.4.0).
I did a factory reset on the phone, rooted, added SuperSU, TWRP (to backup) and nothing changed. I thought maybe Xposed was interfering.
Any help would be appreciated!

Categories

Resources