Post Reply

[Xperia S] Instructions for building kernel

OP DooMLoRD

20th March 2012, 05:19 PM   |  #1  
DooMLoRD's Avatar
OP Recognized Developer
Flag Noida
Thanks Meter: 38,767
 
13,107 posts
Join Date:Joined: Jul 2010
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...
Last edited by DooMLoRD; 20th March 2012 at 08:23 PM.
The Following 11 Users Say Thank You to DooMLoRD For This Useful Post: [ View ]
20th March 2012, 05:40 PM   |  #2  
Seansmit17's Avatar
Senior Member
Flag Mold, North Wales, UK
Thanks Meter: 37
 
407 posts
Join Date:Joined: May 2009
Donate to Me
More
Nice, now we can get going on some custom ROM's, maybe even cyanogenmod will make a ROM
20th March 2012, 07:55 PM   |  #3  
Member
Flag Riyadh
Thanks Meter: 5
 
32 posts
Join Date:Joined: May 2011
More
@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:
20th March 2012, 07:56 PM   |  #4  
DooMLoRD's Avatar
OP Recognized Developer
Flag Noida
Thanks Meter: 38,767
 
13,107 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by OS4.

@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
20th March 2012, 08:48 PM   |  #5  
sminki's Avatar
Senior Member
Thanks Meter: 78
 
270 posts
Join Date:Joined: Feb 2012
More
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.
Last edited by sminki; 20th March 2012 at 09:58 PM.
21st March 2012, 01:36 AM   |  #6  
Felimenta97's Avatar
Senior Member
Flag Ribeirão Preto
Thanks Meter: 2,322
 
7,835 posts
Join Date:Joined: Aug 2011
More
And now... Let the ROMs and kernels begin...

Sent from Xperia X10 Mini Pro using CM9 by paul-xxx
21st March 2012, 02:59 AM   |  #7  
kazuni's Avatar
Senior Member
Flag Hong Kong
Thanks Meter: 214
 
663 posts
Join Date:Joined: Aug 2007
More
Gonna jab my hands into the dirt and try building as well
21st March 2012, 04:17 AM   |  #8  
hylu's Avatar
Senior Member
Flag Taipei
Thanks Meter: 3
 
140 posts
Join Date:Joined: Oct 2007
More
Quote:
Originally Posted by sminki

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: [ View ]
21st March 2012, 08:46 AM   |  #9  
sminki's Avatar
Senior Member
Thanks Meter: 78
 
270 posts
Join Date:Joined: Feb 2012
More
Quote:
Originally Posted by hylu

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..
Last edited by sminki; 9th April 2012 at 09:59 PM.
9th April 2012, 07:39 PM   |  #10  
arc_u's Avatar
Senior Member
Thanks Meter: 81
 
351 posts
Join Date:Joined: Oct 2011
More
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 ?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Xperia S Android Development by ThreadRank