5,599,394 Members 37,962 Now Online
XDA Developers Android and Mobile Development Forum

[Xperia S] Instructions for building kernel

Tip us?
 
DooMLoRD
Old
(Last edited by DooMLoRD; 20th March 2012 at 08:23 PM.)
#1  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 34186
Posts: 12,243
Join Date: Jul 2010
Location: Pune, Maharashtra
Exclamation [Xperia S] Instructions for building kernel

Sony seems to be really supporting dev community...

they just released some instructions on how to create kernel for this device...


read the source link:
http://developer.sonymobile.com/wp/2...-instructions/


we can may be use this thread as a place to have a feedback/discuss the issues so that it may help other devs...
Like my work? Please consider donating via PayPal

Lead Developer of Team UtterChaos & Member of Team ICX

Creator of DooMKernel making those Snapdragons fly higher and faster

Android Devices I use : Sony Xperia Z1, Z, SP, T | WISHLIST: Sony Xperia Z2

Contributions : Generic Android / Xperia X10 / Xperia 2011 devices / Samsung Galaxy S2 / Huawei Ideos X6 / Samsung Galaxy SCL (i9003) / HTC Flyer / Kindle Fire / HTC JetStream / Xperia P, Sola, U / HTC One X / Xperia S / Xperia T, V, TX / Xperia Z, ZL, Tablet Z / Xperia SP / Xperia Z1 / Sony ZU GPe / Xperia Z1 Compact / Xperia Z2, Z2 Tablet / Xperia T2 Ultra

My Apps on Google Play Store | Follow me on Twitter!
The Following 11 Users Say Thank You to DooMLoRD For This Useful Post: [ Click to Expand ]
 
Seansmit17
Old
#2  
Seansmit17's Avatar
Senior Member
Thanks Meter 36
Posts: 404
Join Date: May 2009
Location: Mold, North Wales, UK

 
DONATE TO ME
Nice, now we can get going on some custom ROM's, maybe even cyanogenmod will make a ROM
SE X10 > HTC Desire HD > HTC Wildfire S > SE Arc > SE Xperia Mini Pro > Sony Xperia S > Sony Xperia T > Sony Xperia Z > HTC Desire C > Huawei Y300 > Sony Xperia Z1
 
OS4.
Old
#3  
Member
Thanks Meter 5
Posts: 32
Join Date: May 2011
Location: Riyadh
@DooMLord

Have you got your device yet ?

-----------------

I hope to see MiUi v4 working on my Xperia S , that will be a total Destruction :eek:
 
DooMLoRD
Old
#4  
DooMLoRD's Avatar
Recognized Developer - OP
Thanks Meter 34186
Posts: 12,243
Join Date: Jul 2010
Location: Pune, Maharashtra
Quote:
Originally Posted by OS4. View Post
@DooMLord

Have you got your device yet ?

-----------------

I hope to see MiUi v4 working on my Xperia S , that will be a total Destruction :eek:
sadly nope... the device isnt released in India yet
Like my work? Please consider donating via PayPal

Lead Developer of Team UtterChaos & Member of Team ICX

Creator of DooMKernel making those Snapdragons fly higher and faster

Android Devices I use : Sony Xperia Z1, Z, SP, T | WISHLIST: Sony Xperia Z2

Contributions : Generic Android / Xperia X10 / Xperia 2011 devices / Samsung Galaxy S2 / Huawei Ideos X6 / Samsung Galaxy SCL (i9003) / HTC Flyer / Kindle Fire / HTC JetStream / Xperia P, Sola, U / HTC One X / Xperia S / Xperia T, V, TX / Xperia Z, ZL, Tablet Z / Xperia SP / Xperia Z1 / Sony ZU GPe / Xperia Z1 Compact / Xperia Z2, Z2 Tablet / Xperia T2 Ultra

My Apps on Google Play Store | Follow me on Twitter!
 
sminki
Old
(Last edited by sminki; 20th March 2012 at 09:58 PM.)
#5  
sminki's Avatar
Senior Member
Thanks Meter 78
Posts: 270
Join Date: Feb 2012
nice comment on their site DooM

i'm really keen to try, (read: mess about) but please excuse my ignorance - what defconfig should i be making? fuji_nozomi?

Code:
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

~ NEXUS 5 ~ Faux Kernel
~ Galaxy Nexus ~ AOKP
~ NEXUS 7 (original) ~ AOKP
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
 
Felimenta97
Old
#6  
Felimenta97's Avatar
Senior Member
Thanks Meter 2218
Posts: 7,604
Join Date: Aug 2011
Location: Ribeirão Preto
And now... Let the ROMs and kernels begin...

Sent from Xperia X10 Mini Pro using CM9 by paul-xxx

 
kazuni
Old
#7  
kazuni's Avatar
Senior Member
Thanks Meter 212
Posts: 656
Join Date: Aug 2007
Location: Hong Kong
Gonna jab my hands into the dirt and try building as well
HTC One
Xpera Z + SanDisk 64GB
Astell and Kern / Rainbow Audio RAWK100 + 2xSanDisk 64GB
SGS3 LTE /w kzn v1.0 ROM + SanDisk 64GB
SGS3 /w Omega v27.2 ROM + SanDisk 64GB
Previous Devices:
HTC: Rezound, Desire Z, HD2, Hero, Dream, Touch, Atom, Tytn II, 838 Pro
Samsung: P6800,P7500,N7000,I9250,SHV-E160S,I9200,I9100,I9000,F388
Sony: Arc, X10, XPS
Apple: 2,3G,3GS,4,4S,iPad2,iPad3,iPadMini
Mods for I9305 > Chinese IME - 15 Button toggle Mod - Note 2 Gallery + Camera Mod - Extended Power Menu
 
hylu
Old
#8  
hylu's Avatar
Senior Member
Thanks Meter 3
Posts: 140
Join Date: Oct 2007
Location: Taipei
Quote:
Originally Posted by sminki View Post
nice comment on their site DooM

i'm really keen to try, (read: mess about) but please excuse my ignorance - what defconfig should i be making? fuji_nozomi?

Code:
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
cat README_Xperia

Configuration files can be found in arch/arm/configs.

Xperia NX SO-02D => fuji_nozomi_dcm_defconfig
Xperia S => fuji_nozomi_defconfig
The Following User Says Thank You to hylu For This Useful Post: [ Click to Expand ]
 
sminki
Old
(Last edited by sminki; 9th April 2012 at 09:59 PM.)
#9  
sminki's Avatar
Senior Member
Thanks Meter 78
Posts: 270
Join Date: Feb 2012
Quote:
Originally Posted by hylu View Post
cat README_Xperia

Configuration files can be found in arch/arm/configs.

Xperia NX SO-02D => fuji_nozomi_dcm_defconfig
Xperia S => fuji_nozomi_defconfig
Funny, I missed that completely! Lucky I guessed correctly

EDIT: I've moved on a little, if anyone can help I'd greatly appreciate it!

Code:
  CC      init/main.o
In file included from include/linux/kernel_stat.h:64:0,
                 from init/main.c:31:
include/linux/irq.h: In function 'alloc_desc_masks':
include/linux/irq.h:442:8: warning: variable 'gfp' set but not used [-Wunused-but-set-variable]
error, forbidden warning: irq.h:442
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2


Ignore, fixed a few posts down..

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

~ NEXUS 5 ~ Faux Kernel
~ Galaxy Nexus ~ AOKP
~ NEXUS 7 (original) ~ AOKP
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
 
arc_u
Old
#10  
arc_u's Avatar
Senior Member
Thanks Meter 77
Posts: 339
Join Date: Oct 2011
Hi all
As I said in thsi thread http://forum.xda-developers.com/show....php?t=1588800
I don't know what toolchain i've to use to build the .62 kernel of XS
I get the following error:

When I use the default arm-linux-gnueabi- (gcc 4.6):export CROSS_COMPILE=arm-linux-gnueabi-

>make

(a lot of line)

/tmp/cc33fOK4.s: Assembler messages:
/tmp/cc33fOK4.s:119: Error: selected processor does not support ARM mode `smc #0'
/tmp/cc33fOK4.s:171: Error: selected processor does not support ARM mode `smc #0'
/tmp/cc33fOK4.s:390: Error: selected processor does not support ARM mode `smc #0'
/tmp/cc33fOK4.s:544: Error: selected processor does not support ARM mode `smc #0'
make[1]: *** [arch/arm/mach-msm/scm.o] Erreur 1
make: *** [arch/arm/mach-msm] Erreur 2

--

I try to use this toolchain https://sourcery.mentor.com/sgpp/lit...al/release2032
(arm-2011.09) export CROSS_COMPILE=/home/choco/xs/arm-2011.09/bin/arm-none-eabi-
I get this:
>make
Traceback (most recent call last):
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 115, in <module>
status = run_gcc()
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 105, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-msm/Kconfig:1509:warning: multi-line strings not supported
Traceback (most recent call last):
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 115, in <module>
status = run_gcc()
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 105, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
Traceback (most recent call last):
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 115, in <module>
status = run_gcc()
File "/home/chocobn/xs/6.0.A.3.62/kernel/scripts/gcc-wrapper.py", line 105, in run_gcc
proc = subprocess.Popen(args, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make[1]: *** [kernel/bounds.s] Erreur 1
make: *** [prepare0] Erreur 2

I try also the latest linaro toolchain
export CROSS_COMPILE=/home/chocobn/xs/gcc-linaro-arm-linux-gnueabi-2012.03-20120326_linux/bin/arm-linux-gnueabi-
And i get the same error as previous

err what's wrong with toolchain ?

PS: I do the correct export for ARCH (arm), i'm on ubuntu 12.04, and havn't spoiler on this forum ?
sry fo bad inglish
nexus 4 beergang
bright red nexus 5

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes