[Xperia S] Instructions for building kernel

Search This thread

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
Last edited:

OS4.

Member
May 25, 2011
31
5
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 :O
 

sminki

Senior Member
Feb 18, 2012
485
261
hard shoulders of reality
nice comment on their site DooM :p

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:

hylu

Senior Member
Oct 19, 2007
140
3
Taipei
nice comment on their site DooM :p

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
 
  • Like
Reactions: sminki

sminki

Senior Member
Feb 18, 2012
485
261
hard shoulders of reality
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:

arc_u

Senior Member
Oct 25, 2011
384
88
Hi all
As I said in thsi thread http://xdaforums.com/showthread.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/lite/arm/portal/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 :confused:

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 ?
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
Hi all
As I said in thsi thread http://xdaforums.com/showthread.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/lite/arm/portal/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 :confused:

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 ?


try these
https://github.com/DooMLoRD/android_prebuilt_toolchains
 
  • Like
Reactions: sminki and arc_u

krabappel2548

Inactive Recognized Developer
Nov 15, 2011
6,444
16,111
Lommel
I hope you guys know this, but you can't boot custom kernels yet..
Sony needs to release a patched bootloader first, so don't flash your own kernels yet and wait for the bootloader update from Sony ;)
 

sminki

Senior Member
Feb 18, 2012
485
261
hard shoulders of reality
Last edited:

nickholtus

Senior Member
Aug 26, 2011
2,407
2,469
i heard that the bootloader is fixed in 6.0.A.5.6 or higher.
anyone tried it???? (i mailed sony about it and they told me that it is fixed in that firmware)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    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/...-archive-released-with-building-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...
    4
    try:
    chmod 777 -R scripts/
    3
    This looks grim. Plus bin4ry saying he has a bricked S. Not looking good for this device is it. :(

    Sent from my R800i using XDA

    When I said no separate update I meant it'll be included with ICS, which should be coming really soon, likely as soon as legal stuff gets sorted out.

    Sent from my LT26i using XDA
    2
    Hi all
    As I said in thsi thread http://xdaforums.com/showthread.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/lite/arm/portal/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 :confused:

    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 ?


    try these
    https://github.com/DooMLoRD/android_prebuilt_toolchains
    1
    nice comment on their site DooM :p

    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