Hi everyone!
I own the Samsung Galaxy S2 T989 A.K.A. Hercules
running cm 12.1 unofficial Sultan Hercules based on android 5.1.1 (Lollipop)
which has sultan-kernel-celox.
I am actually trying to port kali nethunter, a set of tools for pentesting (Awesome)
Running Kali linux 2.0 32 bits in my notebook. I have installed all the dependencies described in:
https://github.com/offensive-security/kali-nethunter/wiki/Porting-Nethunter
I am using the next rom:
http://forum.xda-developers.com/galaxy-s2-tmobile/development/rom-aosp-lollipop-preview-t2931716
I also read the Develop Now guide to understand a bit better.
So the problem is when I run the " make" command in the sultan-kernel-celox kernel source directory and using " make Sultan_hercules_defconfig" which is inside /arch/arm/configs .
the error I am getting is:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
/bin/sh: 1: Syntax error: "(" unexpected
/root/arm-stuff/kali-nethunter/sultan-herc/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 2
Makefile:989: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
So with my very limited knowledge about development and scripting check the Kbuild file at line 35 but I can't understand, I have also "googled" about the error I am getting but without luck, I also have tried with other sources kernel I have found but it seems to be the same message.
So please help me to figure what am I doing wrong or which kernel source should I use. I hope someone with so much more experience than me would help me with this issue to finally getting the nethunter tools.
Thanks in advance
v4lh4ll4 said:
Hi everyone!
I own the Samsung Galaxy S2 T989 A.K.A. Hercules
running cm 12.1 unofficial Sultan Hercules based on android 5.1.1 (Lollipop)
which has sultan-kernel-celox.
I am actually trying to port kali nethunter, a set of tools for pentesting (Awesome)
Running Kali linux 2.0 32 bits in my notebook. I have installed all the dependencies described in:
https://github.com/offensive-security/kali-nethunter/wiki/Porting-Nethunter
I am using the next rom:
http://forum.xda-developers.com/galaxy-s2-tmobile/development/rom-aosp-lollipop-preview-t2931716
I also read the Develop Now guide to understand a bit better.
So the problem is when I run the " make" command in the sultan-kernel-celox kernel source directory and using " make Sultan_hercules_defconfig" which is inside /arch/arm/configs .
the error I am getting is:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
/bin/sh: 1: Syntax error: "(" unexpected
/root/arm-stuff/kali-nethunter/sultan-herc/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 2
Makefile:989: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
So with my very limited knowledge about development and scripting check the Kbuild file at line 35 but I can't understand, I have also "googled" about the error I am getting but without luck, I also have tried with other sources kernel I have found but it seems to be the same message.
So please help me to figure what am I doing wrong or which kernel source should I use. I hope someone with so much more experience than me would help me with this issue to finally getting the nethunter tools.
Thanks in advance
Click to expand...
Click to collapse
Hi and thank you for using XDA Assist
I think you should ask over here about your problem. I'm sure you will get an answer soon
Good luck !
Related
I'm trying to compile a kernel for the Sensation using Tamcore's source but I get an error while compiling (w/o quotes):
"arch/arm/mach-msm/pm-8x60.c: In function 'msm_pm_init':
arch/arm/mach-msm/pm-8x60.c:1261: warning: unused variable 'cpu'
error, forbidden warning: pm-8x60.c:1261
make[1]: *** [arch/arm/mach-msm/pm-8x60.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs...."
I looked at the line in the file it errors out on (w/o quotes):
"unsigned int cpu;"
I don't know what to do from here since this is my first time compiling an Android kernel, so any help is appreciated.
EDIT: I've solved my problem and my kernel runs fast on JB . This thread is no longer necessary; please delete it.
Hi guys
I am working on mac with OS 10.7.5
i have xcode 4.6
I downloaded 4.2 version for Android
Following is the error , i would really appreciate it if somebody could just throw some light on what is actually hapenning
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/cwchar:61: error: expected constructor, destructor, or type conversion before ‘extern’
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/new:45,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_construct.h:65,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/memory:55,
from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/string:48,
from build/libs/host/include/host/pseudolocalize.h:4,
from build/libs/host/pseudolocalize.cpp:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/exception:40: error: expected declaration before end of line
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o] Error 1
i have got some errors while compiling sony xperia kernel, i think this have easy fix, but i'm noob in linux.
so please help me with it, thanks in advance.
-----------------------------------------
error message:
-----------------------------------------
In file included from drivers/gud/MobiCoreDriver/logging.c:21:0:
drivers/gud/MobiCoreDriver/main.h:24:22: fatal error: platform.h: No such file or directory
#include "platform.h"
^
compilation terminated.
make[2]: *** [drivers/gud/MobiCoreDriver/logging.o] Error 1
make[1]: *** [drivers/gud] Error 2
make: *** [drivers] Error 2
--------------------------------------------------------------
help me please
samysimbu said:
i have got some errors while compiling sony xperia kernel, i think this have easy fix, but i'm noob in linux.
so please help me with it, thanks in advance.
-----------------------------------------
error message:
-----------------------------------------
In file included from drivers/gud/MobiCoreDriver/logging.c:21:0:
drivers/gud/MobiCoreDriver/main.h:24:22: fatal error: platform.h: No such file or directory
#include "platform.h"
^
compilation terminated.
make[2]: *** [drivers/gud/MobiCoreDriver/logging.o] Error 1
make[1]: *** [drivers/gud] Error 2
make: *** [drivers] Error 2
--------------------------------------------------------------
help me please
Click to expand...
Click to collapse
We have forums dedicated to various Sony Xperia devices at http://forum.xda-developers.com/sony but your MAKE or compiler error doesn't seem to be specific to your device, merely suggesting that you need to include a "platform.h" header file. I suggest you ask wherever you acquired the basic source components (SDK?) that you are attempting to compile.
Good Luck!
thank you for the reply...
i use sony opensource archive for my device
and gcc 4.8 toolchain
in ubuntu 14.04 LTS 64 bit os.
please help with it.
thank u
and there is platform.h file available in that folder specified.
then why........
samysimbu said:
and there is platform.h file available in that folder specified.
then why........
Click to expand...
Click to collapse
Apparently, it still can't find or identify that file. I'm afraid we can't help you any further here with your Ubuntu compile/make issue but Sony's http://developer.sonymobile.com site might have useful information for you.
Sorry we couldn't give you more specific advice.
Showing me this when i type
Code:
make -j4
scripts/kconfig/conf --silentoldconfig Kconfig
include/config/auto.conf:189:warning: symbol value 'elf32-i386' invalid for OUTPUT_FORMAT
include/config/auto.conf:271:warning: symbol value 'arch/x86/configs/i386_defconfig' invalid for ARCH_DEFCONFIG
include/config/auto.conf:617:warning: symbol value '-fcall-saved-ecx -fcall-saved-edx' invalid for ARCH_HWEIGHT_CFLAGS
*** Error during update of the configuration.
/home/pranav/android2/kernel/scripts/kconfig/Makefile:33: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/home/pranav/android2/kernel/Makefile:496: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
Click to expand...
Click to collapse
Trying to build it for Z3 MM Stock from Sony Copyright Archives
you have already configured toolchain?
if so, what are you using?
Then you must select defconfig, in case, shinano_leo_defconfig
Gustavo RD78 said:
you have already configured toolchain?
if so, what are you using?
Then you must select defconfig, in case, shinano_leo_defconfig
Click to expand...
Click to collapse
I have doomlord's toolchain..
This error only comes when i type that command at the end..
Following this Guide
http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276
pranavmali said:
I have doomlord's toolchain..
This error only comes when i type that command at the end..
Following this Guide
http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276
Click to expand...
Click to collapse
Which kernel are you trying to build also is your build machine 64-bit?
HerroYou said:
Which kernel are you trying to build also is your build machine 64-bit?
Click to expand...
Click to collapse
Its a 32bit machine
Building MM Stock based kernel
pranavmali said:
Its a 32bit machine
Building MM Stock based kernel
Click to expand...
Click to collapse
There is the problem, you need a 64 bit machine.
First you need to configure the kernel by making the defconfig.
Then you need to specify architecture you're building for using ARCH command.
See here:
http://developer.sonymobile.com/kno...h-a-linux-kernel-from-sony-copyleft-archives/
Also I don't see a branch for 23.5.A.0.575 which is the latest public MM firmware for Z3, so you need to grab the source code for this version off http://developer.sonymobile.com/downloads/xperia-open-source-archives/
building my very first nougat ROM for the GT-I9505 (Jfltexx) but I keep getting this error when use the brunch command.
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/lochlan/LAOS/out/target/product/jfltexx/obj/lib/libtime_genoff.so.toc', needed by '/home/lochlan/LAOS/out/target/product/jfltexx/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/lochlan/LAOS'
I've done some research and still haven't come to a conclusion on what the hell it means...
Any and all help would be nice!
skyskidder said:
building my very first nougat ROM for the GT-I9505 (Jfltexx) but I keep getting this error when use the brunch command.
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/lochlan/LAOS/out/target/product/jfltexx/obj/lib/libtime_genoff.so.toc', needed by '/home/lochlan/LAOS/out/target/product/jfltexx/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/lochlan/LAOS'
I've done some research and still haven't come to a conclusion on what the hell it means...
Any and all help would be nice!
Click to expand...
Click to collapse
Did you get the vendor repo for your device? Please pay attention on this. I think your vendor repo is outdated and file libtime_genoff.so is missing.
blinoff82 said:
Did you get the vendor repo for your device? Please pay attention on this. I think your vendor repo is outdated and file libtime_genoff.so is missing.
Click to expand...
Click to collapse
Hello, this is what I'm using for my vendor repo
https://github.com/JDCTeam/android_vendor_cm
And you are correct about libtime_genoff.so is missing. I checked all my repos for that file and have gotten no results. Any idea on what I should do?
P.S. Thanks for your help thus far! It means a lot!
skyskidder said:
Hello, this is what I'm using for my vendor repo
https://github.com/JDCTeam/android_vendor_cm
And you are correct about libtime_genoff.so is missing. I checked all my repos for that file and have gotten no results. Any idea on what I should do?
P.S. Thanks for your help thus far! It means a lot!
Click to expand...
Click to collapse
You should use another vendor blobs like this https://github.com/DonkeyCoyote/proprietary_vendor_samsung/tree/android-7.1/jflte.
Add in local_manifest (roomservice.xml):
<project name="DonkeyCoyote/proprietary_vendor_samsung" path="vendor/samsung" revision="android-7.1" remote="github" />
Then: "repo sync -j1 --force-sync" and build again.
I never encountered with Samsung devices, I hope I did not make a mistake with path...
blinoff82 said:
You should use another vendor blobs like this https://github.com/DonkeyCoyote/proprietary_vendor_samsung/tree/android-7.1/jflte.
Add in local_manifest (roomservice.xml):
<project name="DonkeyCoyote/proprietary_vendor_samsung" path="vendor/samsung" revision="android-7.1" remote="github" />
Then: "repo sync -j1 --force-sync" and build again.
I never encountered with Samsung devices, I hope I did not make a mistake with path...
Click to expand...
Click to collapse
Hey thanks for the idea on using this new repo for the device blobs and providing the link! But i have a few questions.
#1. There are severely many less files in this new repo. Why is that?
#2 This effect anything with my rom? if so like what?
You dont need to give me a full out explanation a brief one will do if you can, if you cant dont sweat it!
I will also try this new repo when i get home and I'll update you on how it goes.
Thank you so very much!
-Sky
skyskidder said:
#1. There are severely many less files in this new repo. Why is that?
#2 This effect anything with my rom? if so like what?
Click to expand...
Click to collapse
1. Because this repo ONLY for jflte.
2. No effect, this is just blobs needed for your device and for compilation.
blinoff82 said:
1. Because this repo ONLY for jflte.
2. No effect, this is just blobs needed for your device and for compilation.
Click to expand...
Click to collapse
Welp. I tried what you told me to do and Ive gotten farther but i ran into another error.
FAILED: /bin/bash -c "(make -j2 -C kernel/samsung/jf O=/home/lochlan/LAOS/out/target/product/jfltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/lochlan/LAOS/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_jf_defconfig ) && (if [ ! -z "" ]; then echo "Overriding kernel config with ''"; echo >> /home/lochlan/LAOS/out/target/product/jfltexx/obj/KERNEL_OBJ/.config; make -j2 -C kernel/samsung/jf O=/home/lochlan/LAOS/out/target/product/jfltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/lochlan/LAOS/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-" oldconfig; fi ) && (make -j2 -C kernel/samsung/jf O=/home/lochlan/LAOS/out/target/product/jfltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/lochlan/LAOS/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-" savedefconfig ) && (if [ ! -z "" ]; then echo "Using additional config ''"; kernel/samsung/jf/scripts/kconfig/merge_config.sh -m -O /home/lochlan/LAOS/out/target/product/jfltexx/obj/KERNEL_OBJ /home/lochlan/LAOS/out/target/product/jfltexx/obj/KERNEL_OBJ/.config kernel/samsung/jf/arch/arm/configs/; make -j2 -C kernel/samsung/jf O=/home/lochlan/LAOS/out/target/product/jfltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/lochlan/LAOS/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androidkernel-" KCONFIG_ALLCONFIG=/home/lochlan/LAOS/out/target/product/jfltexx/obj/KERNEL_OBJ/.config alldefconfig; fi )"
make: Entering directory '/home/lochlan/LAOS/kernel/samsung/jf'
GEN /home/lochlan/LAOS/out/target/product/jfltexx/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/basic/fixdep
/home/lochlan/LAOS/kernel/samsung/jf/scripts/basic/fixdep.c:106:23: fatal error: sys/types.h: No such file or directory
compilation terminated.
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed
make[2]: *** [scripts/basic/fixdep] Error 1
/home/lochlan/LAOS/kernel/samsung/jf/Makefile:417: recipe for target 'scripts_basic' failed
make[1]: *** [scripts_basic] Error 2
Makefile:130: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/lochlan/LAOS/kernel/samsung/jf'
[ 6% 2204/33925] target R.java/Manifest.java: framework-res (/home/lochlan/LAOS/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp)
warning: string 'candidates_style' has no default translation.
warning: string 'gsm_alphabet_default_charset' has no default translation.
warning: string 'wfcSpnFormat' has no default translation.
nothing matches overlay file default_wallpaper.png, for flavor hdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xhdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xxhdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xxxhdpi-v4
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/lochlan/LAOS'
#### make failed to build some targets (08:00 (mm:ss)) ####
Click to expand...
Click to collapse
Any idea what this error is?
Sorry my friend you should think for yourself. That's all.
http://stackoverflow.com/questions/37771339/sys-types-h-no-such-file-or-directory
:QUICK UPDATE:
I don't think I'm ready to tackle a project of this scale yet. My frustration, lack of knowledge of compiling and knowledge of repo commands, java, and the damn terminal have caused as of now to post pone my attempts at making a ROM. With exams coming up I have take EVEN MORE time away from my attempts.
:SIDE NOTES:
I feel I have made some progress since the last post I have made with the help of @binoff82 of course. Slowly but surely I'm getting there. With the expense of many broken things in my room... Including a fractured wrist...
In a few days and or weeks time I will update the thread with another post either explaining my progress or if I'm just going to halt my attempts completely for quite a while.
-Sky
P.S. I should probably take anger management classes...
skyskidder said:
:QUICK UPDATE:
I don't think I'm ready to tackle a project of this scale yet. My frustration, lack of knowledge of compiling and knowledge of repo commands, java, and the damn terminal have caused as of now to post pone my attempts at making a ROM. With exams coming up I have take EVEN MORE time away from my attempts.
:SIDE NOTES:
I feel I have made some progress since the last post I have made with the help of @binoff82 of course. Slowly but surely I'm getting there. With the expense of many broken things in my room... Including a fractured wrist...
In a few days and or weeks time I will update the thread with another post either explaining my progress or if I'm just going to halt my attempts completely for quite a while.
-Sky
P.S. I should probably take anger management classes...
Click to expand...
Click to collapse
Greetings and welcome to assist. Have you seen this excellent guide by jackeagle ?
https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
that thread is probably your best bet for advice
Good Luck
Sawdoctor
sawdoctor said:
Greetings and welcome to assist. Have you seen this excellent guide by jackeagle ?
https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
that thread is probably your best bet for advice
Good Luck
Sawdoctor
Click to expand...
Click to collapse
Hi, thanks for taking your time to help me. Sadly this is the original guide I have been following when attempting to build my ROM.