Okay I've been reading and reading and finally got all the tools to build a kernel from the source that Samsung had on their site for DJ30. Since these are very identical to the other galaxy s devices they should overclock decently. Will report with more progress later.
-------------------------
Status - Downloaded source and repo and building configuration to make kernel.
Sent from my SPH-P100 using XDA App
Interested in your development... my Sprint Tab arrives tomorrow, decided to give it a 30 day try before I try the Nook Color.
Doesn't appear to be a lot of development yet, hoping to see that change.
One question, is the Zroot method still the preferred method to rooting the device?
I used superoneclick 1.5.5
Sent from my SPH-P100 using XDA App
------------------------------------------------------------
Trying to compile a test kernel to make sure everything is going to work correctly and running into this crazy error if any of the dev's can chime in please do I already installed all the repo's and linked them.
[email protected]:~/.Tab_Kernel_sources/Kernel$ make ARCH=arm CROSS_COMPILE=../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
make: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
seems like you're missing (a part of) the gcc compiler... the part to compile for ARM it would seem...
maxjivi05 said:
I used superoneclick 1.5.5
Sent from my SPH-P100 using XDA App
------------------------------------------------------------
Trying to compile a test kernel to make sure everything is going to work correctly and running into this crazy error if any of the dev's can chime in please do I already installed all the repo's and linked them.
[email protected]:~/.Tab_Kernel_sources/Kernel$ make ARCH=arm CROSS_COMPILE=../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
make: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Click to expand...
Click to collapse
Made it a bit farther, got that error fixed had to install lsb along with a few other things now I'm sitting on this error. Any and all help is greatly appreciated! We can get this working!
------------------------------------
[email protected]:~/.Tab_Kernel_sources/Kernel$ make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/conmakehash
CC init/main.o
In file included from init/main.c:85:
include/linux/kernel_sec_common.h:7:22: error: mach/map.h: No such file or directory
include/linux/kernel_sec_common.h:8:29: error: mach/regs-clock.h: No such file or directory
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
[email protected]:~/.Tab_Kernel_sources/Kernel$ make ARCH=arm CROSS_COMPILE=../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
make: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
I'm not a dev, but I sure can test on my sprint tablet
I have a Linux blade at home, what are the tools necessary to compile from source, and what repo are you using for the sprint tab drivers and such?
Simple solution here is that you are missing GCC or have an incorrect version installed. I wrote a how to compile thread in the Streak section a few months bak ill dig it up and post it here.
try
apt-get install build-essential
Already installed build essential.
Sent from my SPH-P100 using XDA App
The readme file tells you where to get the compiler from, decompress it to /opt/toolchain.
And this thread has pretty good explanations on how to build the kernel http://forum.xda-developers.com/showthread.php?t=837170
A little farther int he process of getting this sucker compiled... Got this error now... *I forgot how much of a pain it was to go through setting things up perfectly! lol.. any and all help is greatly appreciated!
-------------------------------------
make[1]: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
cp: cannot stat `/home/max/.Tab_Kernel_sources/Kernel/modules.order': No such file or directory
make[1]: *** [_modinst_] Error 1
make: *** [sub-make] Error 2
[email protected]:~/.Tab_Kernel_sources/Kernel$
This is the most disappointing thread ever.
maxjivi05 said:
A little farther int he process of getting this sucker compiled... Got this error now... *I forgot how much of a pain it was to go through setting things up perfectly! lol.. any and all help is greatly appreciated!
-------------------------------------
make[1]: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
cp: cannot stat `/home/max/.Tab_Kernel_sources/Kernel/modules.order': No such file or directory
make[1]: *** [_modinst_] Error 1
make: *** [sub-make] Error 2
[email protected]:~/.Tab_Kernel_sources/Kernel$
Click to expand...
Click to collapse
It's pretty obvious from that line that it can't find that particular binary in your toolchain directory...
I followed the instructions in the readme file and compiled the kernel already, it was extremely simple. You ran the build_kernel.sh file right... after editing it?
Yes I did and its been 5 years since I've done anything with Linux so its a rather learning curve to get anything done. With lack of development on tab thought it would be a good place to start. I've done normal kernel build before but nothing for a phone and it wasn't rather hard either it was just a few commands and everything was already in the right directories
Sent from my SPH-P100 using XDA App
FYI I grabbed the kernel source and cross toolchain, installed the toolchain to /opt (on my desktop Linux box) added the toolchain's bin directory to the start of $PATH, edited the (iirc - am posting from a Windows box) build.sh script and the kernel built fine first time.
I need to set the path to the raminitfs file in .config and then try again and make sure it boots ok
Anyway just a post to say that it must be your setup. I see you have installed the toolchain to /home/max/GalaxyTab/prebuilt/linux-x86/toolchain/ and in your latest post there's the following error: make[1]: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
So there's obviously a path problem there. I also see you're using a plain "make" command without setting the ARCH env var.
I'd recommend giving the build.sh script a go (after editing the toolchain path), as it sets up all the env vars, etc., for you automatically.
okay, I was missing a file went I was doing my repo sync... which didn't make sense but i got it worked out... finally able to compile going to apply the patches and recompile and will repo, but thanks for the people who did help figure out the issue...
maxjivi05 said:
With lack of development on tab
Click to expand...
Click to collapse
HUH?
10 characters
Does anyone have an untouched sprint kernel pulled from a device? I rooted mine and it's seeminly impossible to pull the initrd out of it.
jstigall said:
Does anyone have an untouched sprint kernel pulled from a device? I rooted mine and it's seeminly impossible to pull the initrd out of it.
Click to expand...
Click to collapse
Nevermind, I got it... I have a booting Sprint kernel that works great.
Do you have a link to the patches you want to include, I may be able to get the CPU frequency adjustments you want to make built.
jstigall said:
Nevermind, I got it... I have a booting Sprint kernel that works great.
Do you have a link to the patches you want to include, I may be able to get the CPU frequency adjustments you want to make built.
Click to expand...
Click to collapse
Currently there are 2 files that tell the kernel the freq to run at, and 3 spots at the bottom of each that need changed. Located in /ARM/ARCH/OMAP something I need to get more info when I get home I'll edit this post and let you know but there is a file called cpu24xx.c and cpu34xx.c, I was going to compile a working kernel with those files edited to run 1200MHz to test and see if that would work if that didn't work there were some patches made on the other galaxy s devices I have links to thanks to SetiroN for providing, which they are a little different then the files for the galaxy source but I'll post it when I get home and have time!
Hello
I want to build my own Cyanogenmod with SEEK Project to My Sony Xperia S. I was building as this link of CyanogenMod: http://wiki.cyanogenmod.org/w/Build_for_nozomi. Before I do the "Start the Build" step in the link, I patch Smart Card based PKI of SEEK Project as this link http://code.google.com/p/seek-for-android/wiki/SmartCardPKI .
I continue to the "Start the Build" step and after wait about 15 mins, I got this error:
Code:
host C: libhost <= build/libs/host/CopyFile.c
GEN /home/jutichai/android/system/out/target/product/nozomi/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
host C: mkbootfs <= system/core/cpio/mkbootfs.c
In file included from system/core/cpio/mkbootfs.c:15:0:
system/core/include/private/android_filesystem_config.h:145:20: error: 'AID_SMARTCARD' undeclared here (not in a function)
make: *** [/home/jutichai/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs.o] Error 1
make: *** Waiting for unfinished jobs....
HOSTLD scripts/kconfig/conf
arch/arm/mach-msm/Kconfig:2426:warning: defaults for choice values not supported
arch/arm/mach-msm/Kconfig:2432:warning: defaults for choice values not supported
#
# configuration written to .config
#
make[1]: Leaving directory `/home/jutichai/android/system/kernel/sony/msm8660'
How can I fix it?
So the error shows that therr is an error in the files of mkbootfs.c at line 15
Go through and check all arguments and check all grammar
Hi guys,
I would like to ask if somebody would advise me a working toolchain for compiling kernel for HOX (it's 4.18.401.4 crc). I tried the one that's in README in source code zip (git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6) and all toolchains from Christopher83. I am still getting erros like this:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
arch/arm/configs/ap33_android_defconfig:590:warning: override: reassigning to symbol DYNAMIC_DEBUG
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
#
# configuration written to .config
#
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
make: Entering directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make -C /home/lesmil/android/kernel M=/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03 modules
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: Entering directory `/home/lesmil/android/kernel'
WARNING: Symbol version dump /home/lesmil/android/kernel/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat] Error 2
make[2]: *** Waiting for unfinished jobs....
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o] Error 2
make[4]: *** Waiting for unfinished jobs....
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o] Error 2
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03] Error 2
make[1]: Leaving directory `/home/lesmil/android/kernel'
make: *** [modules] Error 2
make: Leaving directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
total 0
-rwxr-xr-x 1 lesmil lesmil 4766760 May 15 11:18 /home/lesmil/android/kernel/BUILD/modules/../zImage
[email protected]:~/android/kernel$
Thx for any help
lesmil said:
Hi guys,
I would like to ask if somebody would advise me a working toolchain for compiling kernel for HOX (it's 4.18.401.4 crc). I tried the one that's in README in source code zip (git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6) and all toolchains from Christopher83. I am still getting erros like this:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
arch/arm/configs/ap33_android_defconfig:590:warning: override: reassigning to symbol DYNAMIC_DEBUG
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
#
# configuration written to .config
#
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
make: Entering directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make -C /home/lesmil/android/kernel M=/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03 modules
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: Entering directory `/home/lesmil/android/kernel'
WARNING: Symbol version dump /home/lesmil/android/kernel/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat] Error 2
make[2]: *** Waiting for unfinished jobs....
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o] Error 2
make[4]: *** Waiting for unfinished jobs....
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o] Error 2
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03] Error 2
make[1]: Leaving directory `/home/lesmil/android/kernel'
make: *** [modules] Error 2
make: Leaving directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
total 0
-rwxr-xr-x 1 lesmil lesmil 4766760 May 15 11:18 /home/lesmil/android/kernel/BUILD/modules/../zImage
[email protected]:~/android/kernel$
Thx for any help
Click to expand...
Click to collapse
edit: should modify MAKEFILE i guess, gonna try this ^^
edit2: damn, didn't want to reply to myself....
Hello guys,
this my first post and I want to share how to fix the error when compiling a kernel 3.10.x with the CONFIG_MODULES enabled
the error that comes up is something like
...
LD drivers/staging/qcacld-2.0/wlan.o
LD drivers/staging/qcacld-2.0/built-in.o
LD drivers/staging/built-in.o
Makefile:822: recipe for target 'drivers' failed
make: *** [drivers] Error 2
compiling twice without cleaning you got the entire error
drivers/usb/phy/class-dual-role.c:91:1: error: expected ',' or ';' before 'int'
int dual_role_get_property(struct dual_role_phy_instance *dual_role,
^
scripts/Makefile.build:308: recipe for target 'drivers/usb/phy/class-dual-role.o' failed
make[3]: *** [drivers/usb/phy/class-dual-role.o] Error 1
make[3]: *** Waiting for unfinished jobs....
scripts/Makefile.build:455: recipe for target 'drivers/usb/phy' failed
make[2]: *** [drivers/usb/phy] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:822: recipe for target 'drivers' failed
make: *** [drivers] Error 2
that is a syntax error, pretty easy to fix:
- open the file drivers/usb/phy/class-dual-role.c within a text editor
- go to line 90
this:
EXPORT_SYMBOL_GPL(dual_role_get_property)
should be
EXPORT_SYMBOL_GPL(dual_role_get_property);
the error was a missing ";" in the end of that line
I hope I have been helpful for the all the developers and compilers who want to enable "the loadable module support"
cheers
thank you
WOW!!! Thank you
I have been building LineageOS 15.1 for Samsung S6 and S6 Edge for a while without any real issues.
I am using my own 'zero' repo's that are duplicates of the ones available on the official LineageOS github repo with a few local fixes.
My build environment is an Ubuntu 16.04 VM. The build tools recently forced me to upgrade to Python 3.6.3 which I had to install manually.
Since then the build fails whilst compiling the Exynos7420 Kernel. The error message seems to vary but its always at the Exynos7420 kernel part.
I am building with my own certificates so the script is a little different from a standard LineageOS build:
Code:
source build/envsetup.sh
breakfast zeroltexx
mka target-files-package dist otatools
The last lines of the output and the error I got the last time:
Code:
[ 0% 2/93156] Generated: (/home/andy/android...ut/target/product/zeroltexx/android-info.txt)
FAILED: /home/andy/android/lineage/out/target/product/zeroltexx/android-info.txt
/bin/bash -c "(build/tools/check_radio_versions.py ) && (echo \"board=universal7420\" > /home/andy/android/lineage/out/target/product/zeroltexx/android-info.txt )"
File "build/tools/check_radio_versions.py", line 56
print "*** Error opening \"%s.sha1\"; can't verify %s" % (fn, key)
^
SyntaxError: invalid syntax
[ 0% 7/93156] Building Kernel Config
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
arch/arm64/configs/lineageos_zeroltexx_defconfig:624:warning: override: reassigning to symbol INET_DIAG
#
# configuration written to .config
#
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
Kconfig:15:warning: environment variable ANDROID_MAJOR_VERSION undefined
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
ninja: build stopped: subcommand failed.
19:27:22 ninja failed with: exit status 1
#### failed to build some targets (08:22 (mm:ss)) ####
Any pointers as to how I debug this? It must be something to do with the upgrade to python 3.6.3, however I am not skilled in the arts of scripting...
Cheers
Andy
If I clean everything out of the /out folder and re-run the commands it always fails at the same point:
Code:
FIPS : Generating hmac of fmp and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= 5d384fe6b55f757aa0ef31391e8cbb5ffb947cd886235203f2690988f879aec8
FIPS : Generating hmac of crypto and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= d6e18e7da3d688cd63ab5598991c05bd4c538f71d383fbe7e9f668f23d1e040a
OBJCOPY arch/arm64/boot/Image
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building DTBs
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building Kernel Modules
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
Using /home/andy/android/lineage/kernel/samsung/exynos7420 as source for kernel
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
CALL /home/andy/android/lineage/kernel/samsung/exynos7420/scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
Building modules, stage 2.
MODPOST 0 modules
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/tsp_stm/stm_z1.fw' given more than once in the same rule
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/abov/abov_valley.fw' given more than once in the same rule
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
ninja: build stopped: subcommand failed.
23:05:52 ninja failed with: exit status 1
#### failed to build some targets (17:53 (mm:ss)) ####
Anyone?
ADB100 said:
If I clean everything out of the /out folder and re-run the commands it always fails at the same point:
Code:
FIPS : Generating hmac of fmp and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= 5d384fe6b55f757aa0ef31391e8cbb5ffb947cd886235203f2690988f879aec8
FIPS : Generating hmac of crypto and updating vmlinux...
HMAC-SHA256(builtime_bytes.bin)= d6e18e7da3d688cd63ab5598991c05bd4c538f71d383fbe7e9f668f23d1e040a
OBJCOPY arch/arm64/boot/Image
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building DTBs
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
Building Kernel Modules
make: Entering directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
GEN /home/andy/android/lineage/out/target/product/zeroltexx/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
Using /home/andy/android/lineage/kernel/samsung/exynos7420 as source for kernel
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
CALL /home/andy/android/lineage/kernel/samsung/exynos7420/scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
Building modules, stage 2.
MODPOST 0 modules
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/tsp_stm/stm_z1.fw' given more than once in the same rule
/home/andy/android/lineage/kernel/samsung/exynos7420/scripts/Makefile.fwinst:45: target '/lib/firmware/abov/abov_valley.fw' given more than once in the same rule
make: Leaving directory '/home/andy/android/lineage/kernel/samsung/exynos7420'
ninja: build stopped: subcommand failed.
23:05:52 ninja failed with: exit status 1
#### failed to build some targets (17:53 (mm:ss)) ####
Anyone?
Click to expand...
Click to collapse
I know it's old, but did you manage to solve it?
I have the same problem