mybackup pro - Xperia Play General

Thought id give a little heads up.
I use this but havent had a need to restore as yet, last night i did a little messing around a corrupted some stuff ( i backup first) so i restored using SE update manager.
I ran the software restore, ran adb shell set pmInstallLocation 2, ran gingerbreak and proceeded to restore the phone, after about 20 minutes done please restart phone.
I did and bang everything back including my custom icons the works.
So it does work extremely well, im quiet chuffed.
This overclocking kernel is driving me nuts though! damn thing wont compile

Whay errors do you get.

well the kernel config is stock right now so ive made no changes to the freq yet. but still i get:
scripts/kconfig/conf -s arch/arm/Kconfig
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
CC init/main.o
cc1: warnings being treated as errors
init/main.c: In function 'do_one_initcall':
init/main.c:711:10: error: 'calltime.tv64' may be used uninitialized in this function
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
if i build -i it will build but there's a lot of errors! soon as the stock kernel can be built without error ill change the freq.
pain in the a$$ though!
nm seems to be building ok this time

Related

Anyone able to build a kernel for me?

Hitting problems everywhere, so I'll resort to asking the awesome that resides here.
Mainly its for this - http://www.irregular-expression.com/?p=30 - booting Debian natively. I wanted to see if I could build everything then post it here and be all smug, and like "Yeah, I'm awesome", then;
Code:
[email protected]:/home/dan/vision-QMR-2.6.32-g6e170e7# 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
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC kernel/cpuset.o
kernel/cpuset.c: In function 'cpuset_can_attach':
kernel/cpuset.c:1333: error: 'task' undeclared (first use in this function)
kernel/cpuset.c:1333: error: (Each undeclared identifier is reported only once
kernel/cpuset.c:1333: error: for each function it appears in.)
make[1]: *** [kernel/cpuset.o] Error 1
make: *** [kernel] Error 2
[email protected]:/home/dan/vision-QMR-2.6.32-g6e170e7#
So, I have no idea now. It took me around an hour to configure this *****, then it does this to me. Although there's probably a quick and easy way that I'm missing.
So any help?
(I also can't chroot it, but it'll be cause I can't mount the ext2 partition with the GingerSense kernel. Either that or I really fail.)
EDIT - I really fail. I typed the mount command wrong...

[HELP] Android Kernel Building Error. Permission denied :(

Hi every body, i'm now building android kernel for SKY-VEGA-S5 phone ( IM-A840S).
I followed these steps on the homepage of SKY .
They're :
1. How to build Kernel source of UI18760_kernel
a.First, Get Toolchain from android git server and etc ¡Š
GCC correct version is arm-eabi-4.4.3
b.modify Makefile
edit "CROSS_COMPILE" to toolchain path ( You downloaded )
ex) CROSS_COMPILE=$(You Download directory)/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
c.make CONFIG_DEBUG_SECTION_MISMATCH=y ARCH=arm msm8960_ef44s_tp20_defconfig
d.make CONFIG_DEBUG_SECTION_MISMATCH=y ARCH=arm
2. Kernel Image Location is arch/arm/boot/zImage
Module Image Location is drivers/*/*.ko
3. How to Clean Kernel object files
a.make ARCH=arm clean
__________________________________________________ ____________________________________
I downloaded the kernel package and extract to the /home folder.
And toolchain ..... /prebuilt folder is also extracted to the /home folder.
I modified Makefile.
CROSS_COMPILE ?=$/home/vip7009pro/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
Then I step by step followed the guide. But i got many error... ( I think the PATH was wrong, but I dont know how to correctly edit it ==' ).
Here they are :
__________________________________________________ ________________________________________
[email protected]:~/kernel$ make CONFIG_DEBUG_SECTION_MISMATCH=y ARCH=arm
"======================LINUX INCLUDE=========================================== ================"
-I/home/vip7009pro/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -include include/generated/autoconf.h
"================================================= ============================================="
"KERNEL ================================================== ===================================="
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -DT_EF44S -I ./include/pantech -include ./include/pantech/CUST_PANTECH.h -DFIRM_VER=\"S0215141\" -DSYS_MODEL_NAME=\"EF44S\" -DPANTECH_MODEL_NAME=\"IM-A840S\" -DFS_USER_DATA_VER=37 -DPANTECH_STORAGE_INTERNAL_EMUL -DFEATURE_AARM_RELEASE_MODE -D__KERNELBUILD__
"================================================= ============================================="
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/home/vip7009pro/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /home/vip7009pro/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc -print-file-name=include [Errno 13] Permission denied -I/home/vip7009pro/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -include include/generated/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -DT_EF44S -I ./include/pantech -include ./include/pantech/CUST_PANTECH.h -DFIRM_VER="S0215141" -DSYS_MODEL_NAME="EF44S" -DPANTECH_MODEL_NAME="IM-A840S" -DFS_USER_DATA_VER=37 -DPANTECH_STORAGE_INTERNAL_EMUL -DFEATURE_AARM_RELEASE_MODE -D__KERNELBUILD__ -O2 -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -g -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c [Errno 13] Permission denied
make[1]: *** [kernel/bounds.s] Error 13
make: *** [prepare0] Error 2
[email protected]:~/kernel$
Probably your toolchain binaries are just not marked executable, try
Code:
chmod 755 /home/vip7009pro/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/*
. If this doesn't help, check whether your kernel source tree is writable to you and that /home is mounted without option "noexec".
Zirias said:
Probably your toolchain binaries are just not marked executable, try
Code:
chmod 755 /home/vip7009pro/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/*
. If this doesn't help, check whether your kernel source tree is writable to you and that /home is mounted without option "noexec".
Click to expand...
Click to collapse
thanks but i got error :
[email protected]:~/kernel$ make CONFIG_DEBUG_SECTION_MISMATCH=y ARCH=arm
"======================LINUX INCLUDE==========================================================="
-I/home/vip7009pro/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -include include/generated/autoconf.h
"=============================================================================================="
"KERNEL ======================================================================================"
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -DT_EF44S -I ./include/pantech -include ./include/pantech/CUST_PANTECH.h -DFIRM_VER=\"S0215141\" -DSYS_MODEL_NAME=\"EF44S\" -DPANTECH_MODEL_NAME=\"IM-A840S\" -DFS_USER_DATA_VER=37 -DPANTECH_STORAGE_INTERNAL_EMUL -DFEATURE_AARM_RELEASE_MODE -D__KERNELBUILD__
"=============================================================================================="
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
arm-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
[email protected]:~/kernel$
What I have to do now ?
lmgtfy
Seriously, possible causes are quite numerous, you'll have to check your cross toolchain installation and configuration yourself and google is a good reference, good luck...
Zirias said:
lmgtfy
Seriously, possible causes are quite numerous, you'll have to check your cross toolchain installation and configuration yourself and google is a good reference, good luck...
Click to expand...
Click to collapse
Thank you for your help. I fixed these error, but others error appear =='
The kernel was compiling, but suddenly stop with this error , help me please :
_______________________________________________________________________
CC drivers/media/video/msm/sensors/sensor_i2c.o
CC drivers/media/video/msm/sensors/sensor_ctrl.o
LD drivers/media/video/msm/sensors/built-in.o
CC drivers/media/video/msm/wfd/mdp-subdev.o
CC drivers/media/video/msm/wfd/enc-subdev.o
CC drivers/media/video/msm/wfd/vsg-subdev.o
CC drivers/media/video/msm/wfd/wfd-ioctl.o
CC drivers/media/video/msm/wfd/wfd-util.o
LD drivers/media/video/msm/wfd/built-in.o
CC drivers/media/video/msm/msm_axi_qos.o
CC drivers/media/video/msm/flash.o
CC drivers/media/video/msm/msm_io_8960.o
CC drivers/media/video/msm/msm_vfe32.o
CC drivers/media/video/msm/msm_vpe.o
LD drivers/media/video/msm/built-in.o
CC drivers/media/video/uvc/uvc_driver.o
CC drivers/media/video/uvc/uvc_queue.o
CC drivers/media/video/uvc/uvc_v4l2.o
CC drivers/media/video/uvc/uvc_video.o
CC drivers/media/video/uvc/uvc_ctrl.o
CC drivers/media/video/uvc/uvc_status.o
CC drivers/media/video/uvc/uvc_isight.o
LD drivers/media/video/uvc/uvcvideo.o
LD drivers/media/video/uvc/built-in.o
LD drivers/media/video/built-in.o
LD drivers/media/built-in.o
CC drivers/mfd/mfd-core.o
CC drivers/mfd/wcd9310-core.o
CC drivers/mfd/wcd9310-irq.o
CC drivers/mfd/pm8921-core.o
drivers/mfd/pm8921-core.c:207: error: resources_pwrkey causes a section type conflict
drivers/mfd/pm8921-core.c:207: error: resources_pwrkey causes a section type conflict
drivers/mfd/pm8921-core.c:161: error: adc_cell_resources causes a section type conflict
drivers/mfd/pm8921-core.c:161: error: adc_cell_resources causes a section type conflict
make[2]: *** [drivers/mfd/pm8921-core.o] Error 1
make[1]: *** [drivers/mfd] Error 2
make: *** [drivers] Error 2
real 9m4.940s
user 8m6.010s
sys 0m33.994s
[email protected]:~/kernel$

Error when compiling for Honami.

Hello, i am trying to compile for the Xperia Z1 but getting error. I think that it is related to TWRP but i cant seem to fix it.
Code:
target Executable: recovery (/home/emil/android/omni/out/target/product/honami/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery)
mkdir -p /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/
ln -sf /sbin/busybox /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/sh
ln -sf /sbin/pigz /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/gzip
ln -sf /sbin/unpigz /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/gunzip
Symlink: /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/[ -> busybox
bootable/recovery/gui/console.cpp:213: [B]error: undefined reference to 'gr_maxExW'
collect2: error: ld returned 1 exit status[/B]
make: *** [/home/emil/android/omni/out/target/product/honami/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery] Error 1
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/emil/android/omni/kernel/sony/msm8974'
Thanks!!
ekanix20 said:
Hello, i am trying to compile for the Xperia Z1 but getting error. I think that it is related to TWRP but i cant seem to fix it.
Code:
target Executable: recovery (/home/emil/android/omni/out/target/product/honami/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery)
mkdir -p /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/
ln -sf /sbin/busybox /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/sh
ln -sf /sbin/pigz /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/gzip
ln -sf /sbin/unpigz /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/gunzip
Symlink: /home/emil/android/omni/out/target/product/honami/recovery/root/sbin/[ -> busybox
bootable/recovery/gui/console.cpp:213: [B]error: undefined reference to 'gr_maxExW'
collect2: error: ld returned 1 exit status[/B]
make: *** [/home/emil/android/omni/out/target/product/honami/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery] Error 1
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/emil/android/omni/kernel/sony/msm8974'
Thanks!!
Click to expand...
Click to collapse
Hi. I also tried compiling for Honami a few days ago. I had the same error. I was able to fix it by applying this patch (https://gerrit.omnirom.org/#/c/5902/) to the rhine-common device tree. At the end the build booted but the cellular network wasn't working.
pollonamid said:
Hi. I also tried compiling for Honami a few days ago. I had the same error. I was able to fix it by applying this patch (https://gerrit.omnirom.org/#/c/5902/) to the rhine-common device tree. At the end the build booted but the cellular network wasn't working.
Click to expand...
Click to collapse
Yeah I have the same problem now
Sent from my C6903 using Tapatalk

kernel build and "please run 'make mrproper'"

I'm building kernel on Ubuntu 14.04
To build kernel...
1. make mrproper (delete config files..)
2. make menuconfig (create new config files..)
3. mp dev (compile and build kernel)
and, after mp dev
CHK include/generated/utsrelease.h
Using /root/shield-open-source_1/kernel as source for kernel
/root/shield-open-source_1/kernel is not clean, please run 'make mrproper'
in the '/root/shield-open-source_1/kernel' directory.
make[2]: *** [prepare3] Error 1
make[2]: *** Waiting for unfinished jobs....
UPD include/generated/utsrelease.h
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/root/shield-open-source_1/kernel'
dmake: *** [/root/shield-open-source_1/out/target/product/t210/obj/KERNEL/arch/arm64/boot/Image] Error 2
make: *** Waiting for unfinished jobs....
I changed menuconfig ex) randconfig, defconfig etc...
but this >please run 'make mrproper'< message always appear!
plz help what should I do..
Remove your .config file from your root directory. That's normally what will cause that error. You need a clean unmodified file tree.

Compile kernel

Is this guide enough for making kernel for android: http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276
Not really.
http://xda-university.com/as-a-developer/getting-started-building-a-kernel-from-source
Even this one you should look at as a advertisement for a good book that is free.
You need to read that book along side with going truth complete source on your git to get to know infrastructure & only after that you can go ahead with device specific not to get stuck to much & truly knowing what are you doing. When you do those two you are ready for costimizing & porting naturally counting on that you have a basic coding knowledge all redy. No shortcuts there.
I have problem.I am using linaro-arm-eabi-4.9.When I execute command -j3 it says:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC scripts/mod/empty.o
/opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:510: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
CC kernel/bounds.s
/opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
/media/sf_gti9301i/GT-I9301I_KK_Opensource/Kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 2
Makefile:990: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
@Pavlex4
You need to set the correct path to the tool chain in the makefile
Best Regards

Categories

Resources