[Kernel][4.4.174][r2.2] Labyrinth Kernel for Huawei P8 Lite 2017 (all variants) - P8 Lite (2017) Development

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Main kernel goals:
This kernel builds up on two unavoidable concerns:
Smooth performance and good battery backup.
I'm honestly not a fan of phones used as gaming-devices.
So if you expect overclocking and giggles, just leave.
Kernel features:
Wireguard;
Touchboost*;
Dynamic SchedTune Boost;
Fastcharge inherited in kernel*;
Blu_active governor*;
WQ Power Efficient Toggle;
Advanced TCP*;
Boeffla WL handler;
FIOPS IO*;
ZEN IO*
Fsync;
Kernel stack increased to 32K;
Hotplug for more cores (instead of the stock 2)
VNSwap;
UKSM;
Enhancing Boeffla WL blocking;
NTFS support;
Fastest sleep-time on screenlock;
GPU Governors;
GPU is now Scene Aware;
New entropy levels;
Maple I/O Scheduler;
Reduced Wakelocks;
Test to re-enable setEnforce command.
Upstreamed to 4.4.174
Installation instructions:
Code:
fastboot flash kernel <kernelimagename.img>
Downloads:
rev2.2 4.4.174
Spectrum profile flashable via TWRP (you'll need root and spectrum app)
Download
Follow the guide under the spoiler to have better result with spectrum conf
SSC Instructions
First download the SSC flashable zip for your device file from the link above and place it on external SD card
Go to <root>/vendor/etc and delete the "perfgenius_boost_policy" and "perfgenius_config" XML files.
Go to <root>/vendor/bin/hw and rename (do not delete) "[email protected]" and "[email protected]" (just add ".bak" in the end)
Go to <root>product/etc/xml and delete the "uniperf_config_cust" XML file.
Go back to <root>/vendor and open the build.prop, find the lines "ro.config.hw_perfgenius" and "persist.sys.iaware.cpuenable" and change them from 'true' to 'false'.
If you were already using Spectrum, on your Internal Storage, delete the Spectrum folder, along with the profiles. Leave the Spectrum app installed.
Reboot to TWRP and flash the SSC file and reboot. (If you do not have Spectrum app installed, install it). Just give root permissions to the app and set whatever profile you want to use.
Note:
BY DEFAULT ALL THE TWEAKS MARKED WITH A * ARE DISABLED.
This is to enhance user interaction in choosing, on their own, the right setup/features for themselves.
Also, this is ****"""""SUPPOSED"""""**** to work on other HI6250 platform devices as-well.
But I honestly don't care of anything else than PRA.
So don't waste your time reporting from other devices.
THIS IS A KERNEL FOR OREO/PIE ROMS.
TESTED ON CUSTOM ROMS (I DON'T CARE OF EMUI AS OF NOW).
Supportive people:
@neondragon1909 for fixing derps that I commit half asleep at 6am;
@hexxr for this awesome logo;
@petya230 for being always supportive.
Special thanks:
All the people in my commits;
If you'd like to contribute please feel free to PR:
https://github.com/Dil3mm4/labyrinth_kernel_prague/
XDA:DevDB Information
Labyrinth Kernel, Kernel for the Huawei P8lite/P8 Lite
Contributors
dil3mm4
Source Code: https://github.com/Dil3mm4/labyrinth_kernel_prague/
Version Information
Status: Testing
Created 2018-06-27
Last Updated 2018-06-27

does it fix the headphone problem in some roms ????

jeuxtype said:
does it fix the headphone problem in some roms ????
Click to expand...
Click to collapse
There are no problems as far as I know on Prague devices.

dil3mm4.dev said:
There are no problems as far as I know on Prague devices.
Click to expand...
Click to collapse
yes your roms are perfect in many areas and the headphone works in yours.
but in some roms like phh rom the headphone doesn't work.

jeuxtype said:
yes your roms are perfect in many areas and the headphone works in yours.
but in some roms like phh rom the headphone doesn't work.
Click to expand...
Click to collapse
Dunno what to say, honestly.
You can try out, but no guarantees.

dil3mm4.dev said:
Dunno what to say, honestly.
You can try out, but no guarantees.
Click to expand...
Click to collapse
okey i'll test it and i will tell you the results.

At what point do I flash this, after flashing a rom, anytime? Also do I manage this with a third party app like kernel auditor? Sry am noob

RoccoA said:
At what point do I flash this, after flashing a rom, anytime? Also do I manage this with a third party app like kernel auditor? Sry am noob
Click to expand...
Click to collapse
Doesn't really matter at which point you install it.
And yes, you can manage the features with apps like Kernel audiutor or equivalent.

Anyway to boost color of the screen,honor 6x colors look bit dull

so it means that this is under clocked? im just wondering

Any way to flash it with TWRP?

Wdowa94 said:
Any way to flash it with TWRP?
Click to expand...
Click to collapse
Same question here
---------- Post added at 04:55 AM ---------- Previous post was at 04:26 AM ----------
dil3mm4.dev said:
Main kernel goals:
This kernel builds up on two unavoidable concerns:
Smooth performance and good battery backup.
I'm honestly not a fan of phones used as gaming-devices.
So if you expect overclocking and giggles, just leave.
Kernel features:
Wireguard;
Touchboost*;
Dynamic SchedTune Boost;
Fastcharge inherited in kernel*;
Blu_active governor*;
WQ Power Efficient Toggle;
Advanced TCP*;
Boeffla WL handler;
FIOPS IO*;
ZEN IO*
Fsync;
Kernel stack increased to 32K;
Hotplug for more cores (instead of the stock 2)
VNSwap;
UKSM.
Installation instructions:
Code:
fastboot flash kernel <kernelimagename.img>
Downloads:
Check the thread Downloads section
Note:
BY DEFAULT ALL THE TWEAKS MARKED WITH A * ARE DISABLED.
This is to enhance user interaction in choosing, on their own, the right setup/features for themselves.
Also, this is ****"""""SUPPOSED"""""**** to work on other HI6250 platform devices as-well.
But I honestly don't care of anything else than PRA.
So don't waste your time reporting from other devices.
Supportive people:
@neondragon1909 for fixing derps that I commit half asleep at 6am;
@hexxr for this awesome logo;
@petya230 for being always supportive.
Special thanks:
All the people in my commits;
If you'd like to contribute please feel free to PR:
https://github.com/Dil3mm4/labyrinth_kernel_prague/
XDA:DevDB Information
Labyrinth Kernel, Kernel for the Huawei P8lite/P8 Lite
Contributors
dil3mm4.dev
Source Code: [url]https://github.com/Dil3mm4/labyrinth_kernel_prague/[/URL]
Version Information
Status: Testing
Created 2018-06-27
Last Updated 2018-06-27
Click to expand...
Click to collapse
bootloop after install ;( fixed by flashing stock kernel.
My device is PRA-LX1 C432 on Emui 8.0 android 8.0
Is it because I had magisk before installing this kernel?

This Rom is for noughat roms

3rs3 said:
This Rom is for noughat roms
Click to expand...
Click to collapse
Oh...
Any chance for an oreo version?

3rs3 said:
This Rom is for noughat roms
Click to expand...
Click to collapse
MrViking said:
Oh...
Any chance for an oreo version?
Click to expand...
Click to collapse
THIS IS MEANT ONLY FOR OREO DEVICES.
Added this crucial info in the OP.

P8lite kernel, compile under Linux Mint (Ubuntu)
How do you compile the P8lite kernel source?
Which tools (and exact version)?
What sequence of commands?
My current setup: VMWare Player / Linux Mint 18.3 Cinnamon 64bit (Ubuntu)
I only receive errors and warnings, following instructions from [REFERENCE] How to compile an Android kernel and OhHeyItsLou Custom Android Kernel Guide
Error Log:
Code:
# ----------------------------------------------------------------------------------------------------
sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2
# ----------------------------------------------------------------------------------------------------
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
# ----------------------------------------------------------------------------------------------------
cd $HOME/kernel/toolchain
export CROSS_COMPILE=$HOME/kernel/toolchain/bin/aarch64-linux-android-
export ARCH=arm64 && export SUBARCH=arm64
# ----------------------------------------------------------------------------------------------------
cd $HOME/kernel/android
make clean
[COLOR="Red"]drivers/connectivity/hisi/wifi/Makefile:2: HI1102_DRIVER_BUILTIN_PATH
find lcdkit qcom folder, include it now![/COLOR]
# ----------------------------------------------------------------------------------------------------
make mrproper
[COLOR="Red"]drivers/connectivity/hisi/wifi/Makefile:2: HI1102_DRIVER_BUILTIN_PATH
find lcdkit qcom folder, include it now![/COLOR]
# ----------------------------------------------------------------------------------------------------
make labyrinth_prague_defconfig
[COLOR="Red"]drivers/huawei_platform/sw/Kconfig:4:warning: prompt redefined
arch/arm64/configs/labyrinth_prague_defconfig:317:warning: override: DEFAULT_ROW changes choice state
arch/arm64/configs/labyrinth_prague_defconfig:321:warning: override: reassigning to symbol DEFAULT_IOSCHED
arch/arm64/configs/labyrinth_prague_defconfig:687:warning: override: reassigning to symbol DEFAULT_TCP_CONG
arch/arm64/configs/labyrinth_prague_defconfig:5008:warning: override: reassigning to symbol NTFS_FS[/COLOR]
# ----------------------------------------------------------------------------------------------------
make -j2
[COLOR="Red"]scripts/kconfig/conf --silentoldconfig Kconfig
drivers/huawei_platform/sw/Kconfig:4:warning: prompt redefined
drivers/connectivity/hisi/wifi/Makefile:24: defconfig: ./drivers/connectivity/hisi/wifi/wifi_1102_v8r2_defconfig
find lcdkit hisi folder, include it now!
arch/arm64/kernel/insn.c:1271:2: warning: initialization from incompatible pointer type
__check_eq, __check_ne, __check_cs, __check_cc,
^
arch/arm64/kernel/insn.c:1271:2: warning: (near initialization for 'aarch32_opcode_cond_checks[0]')
arch/arm64/kernel/insn.c:1271:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1271:2: warning: (near initialization for 'aarch32_opcode_cond_checks[1]')
arch/arm64/kernel/insn.c:1271:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1271:2: warning: (near initialization for 'aarch32_opcode_cond_checks[2]')
arch/arm64/kernel/insn.c:1271:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1271:2: warning: (near initialization for 'aarch32_opcode_cond_checks[3]')
arch/arm64/kernel/insn.c:1272:2: warning: initialization from incompatible pointer type
__check_mi, __check_pl, __check_vs, __check_vc,
^
arch/arm64/kernel/insn.c:1272:2: warning: (near initialization for 'aarch32_opcode_cond_checks[4]')
arch/arm64/kernel/insn.c:1272:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1272:2: warning: (near initialization for 'aarch32_opcode_cond_checks[5]')
arch/arm64/kernel/insn.c:1272:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1272:2: warning: (near initialization for 'aarch32_opcode_cond_checks[6]')
arch/arm64/kernel/insn.c:1272:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1272:2: warning: (near initialization for 'aarch32_opcode_cond_checks[7]')
arch/arm64/kernel/insn.c:1273:2: warning: initialization from incompatible pointer type
__check_hi, __check_ls, __check_ge, __check_lt,
^
arch/arm64/kernel/insn.c:1273:2: warning: (near initialization for 'aarch32_opcode_cond_checks[8]')
arch/arm64/kernel/insn.c:1273:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1273:2: warning: (near initialization for 'aarch32_opcode_cond_checks[9]')
arch/arm64/kernel/insn.c:1273:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1273:2: warning: (near initialization for 'aarch32_opcode_cond_checks[10]')
arch/arm64/kernel/insn.c:1273:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1273:2: warning: (near initialization for 'aarch32_opcode_cond_checks[11]')
arch/arm64/kernel/insn.c:1274:2: warning: initialization from incompatible pointer type
__check_gt, __check_le, __check_al, __check_al
^
arch/arm64/kernel/insn.c:1274:2: warning: (near initialization for 'aarch32_opcode_cond_checks[12]')
arch/arm64/kernel/insn.c:1274:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1274:2: warning: (near initialization for 'aarch32_opcode_cond_checks[13]')
arch/arm64/kernel/insn.c:1274:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1274:2: warning: (near initialization for 'aarch32_opcode_cond_checks[14]')
arch/arm64/kernel/insn.c:1275:1: warning: initialization from incompatible pointer type
};
^
arch/arm64/kernel/insn.c:1275:1: warning: (near initialization for 'aarch32_opcode_cond_checks[15]')
arch/arm64/kernel/module-plts.c: In function 'livepatch_emit_plt_entry':
arch/arm64/kernel/module-plts.c:242:14: warning: initialization from incompatible pointer type
u32 *addr = &plt[num];
^
kernel/fork.c:102:41: fatal error: ./cgroup_huawei/cgroup_pids.h: No such file or directory
#include <./cgroup_huawei/cgroup_pids.h>
^
compilation terminated.
scripts/Makefile.build:274: recipe for target 'kernel/fork.o' failed
make[1]: *** [kernel/fork.o] Error 1
Makefile:1048: recipe for target 'kernel' failed
make: *** [kernel] Error 2
mm/rmap.c: In function 'rmap_walk_anon':
mm/rmap.c:1592:24: warning: unused variable 'mapping' [-Wunused-variable]
struct address_space *mapping = page->mapping;
^
mm/unmovable_isolate.c: In function 'get_ddr_size':
mm/unmovable_isolate.c:235:143: warning: comparison of distinct pointer types lacks a cast
ret = min(MEMSIZE_INDEX_MAX + MEMSIZE_INDEX_OFFSET, ddr_size_cmdline);[/COLOR]

noobington said:
How do you compile the P8lite kernel source?
Which tools (and exact version)?
What sequence of commands?
My current setup: VMWare Player / Linux Mint 18.3 Cinnamon 64bit (Ubuntu)
I only receive errors and warnings, following instructions from [REFERENCE] How to compile an Android kernel and OhHeyItsLou Custom Android Kernel Guide
Error Log:
Code:
# ----------------------------------------------------------------------------------------------------
sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2
# ----------------------------------------------------------------------------------------------------
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
# ----------------------------------------------------------------------------------------------------
cd $HOME/kernel/toolchain
export CROSS_COMPILE=$HOME/kernel/toolchain/bin/aarch64-linux-android-
export ARCH=arm64 && export SUBARCH=arm64
# ----------------------------------------------------------------------------------------------------
cd $HOME/kernel/android
make clean
[COLOR="Red"]drivers/connectivity/hisi/wifi/Makefile:2: HI1102_DRIVER_BUILTIN_PATH
find lcdkit qcom folder, include it now![/COLOR]
# ----------------------------------------------------------------------------------------------------
make mrproper
[COLOR="Red"]drivers/connectivity/hisi/wifi/Makefile:2: HI1102_DRIVER_BUILTIN_PATH
find lcdkit qcom folder, include it now![/COLOR]
# ----------------------------------------------------------------------------------------------------
make labyrinth_prague_defconfig
[COLOR="Red"]drivers/huawei_platform/sw/Kconfig:4:warning: prompt redefined
arch/arm64/configs/labyrinth_prague_defconfig:317:warning: override: DEFAULT_ROW changes choice state
arch/arm64/configs/labyrinth_prague_defconfig:321:warning: override: reassigning to symbol DEFAULT_IOSCHED
arch/arm64/configs/labyrinth_prague_defconfig:687:warning: override: reassigning to symbol DEFAULT_TCP_CONG
arch/arm64/configs/labyrinth_prague_defconfig:5008:warning: override: reassigning to symbol NTFS_FS[/COLOR]
# ----------------------------------------------------------------------------------------------------
make -j2
[COLOR="Red"]scripts/kconfig/conf --silentoldconfig Kconfig
drivers/huawei_platform/sw/Kconfig:4:warning: prompt redefined
drivers/connectivity/hisi/wifi/Makefile:24: defconfig: ./drivers/connectivity/hisi/wifi/wifi_1102_v8r2_defconfig
find lcdkit hisi folder, include it now!
arch/arm64/kernel/insn.c:1271:2: warning: initialization from incompatible pointer type
__check_eq, __check_ne, __check_cs, __check_cc,
^
arch/arm64/kernel/insn.c:1271:2: warning: (near initialization for 'aarch32_opcode_cond_checks[0]')
arch/arm64/kernel/insn.c:1271:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1271:2: warning: (near initialization for 'aarch32_opcode_cond_checks[1]')
arch/arm64/kernel/insn.c:1271:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1271:2: warning: (near initialization for 'aarch32_opcode_cond_checks[2]')
arch/arm64/kernel/insn.c:1271:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1271:2: warning: (near initialization for 'aarch32_opcode_cond_checks[3]')
arch/arm64/kernel/insn.c:1272:2: warning: initialization from incompatible pointer type
__check_mi, __check_pl, __check_vs, __check_vc,
^
arch/arm64/kernel/insn.c:1272:2: warning: (near initialization for 'aarch32_opcode_cond_checks[4]')
arch/arm64/kernel/insn.c:1272:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1272:2: warning: (near initialization for 'aarch32_opcode_cond_checks[5]')
arch/arm64/kernel/insn.c:1272:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1272:2: warning: (near initialization for 'aarch32_opcode_cond_checks[6]')
arch/arm64/kernel/insn.c:1272:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1272:2: warning: (near initialization for 'aarch32_opcode_cond_checks[7]')
arch/arm64/kernel/insn.c:1273:2: warning: initialization from incompatible pointer type
__check_hi, __check_ls, __check_ge, __check_lt,
^
arch/arm64/kernel/insn.c:1273:2: warning: (near initialization for 'aarch32_opcode_cond_checks[8]')
arch/arm64/kernel/insn.c:1273:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1273:2: warning: (near initialization for 'aarch32_opcode_cond_checks[9]')
arch/arm64/kernel/insn.c:1273:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1273:2: warning: (near initialization for 'aarch32_opcode_cond_checks[10]')
arch/arm64/kernel/insn.c:1273:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1273:2: warning: (near initialization for 'aarch32_opcode_cond_checks[11]')
arch/arm64/kernel/insn.c:1274:2: warning: initialization from incompatible pointer type
__check_gt, __check_le, __check_al, __check_al
^
arch/arm64/kernel/insn.c:1274:2: warning: (near initialization for 'aarch32_opcode_cond_checks[12]')
arch/arm64/kernel/insn.c:1274:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1274:2: warning: (near initialization for 'aarch32_opcode_cond_checks[13]')
arch/arm64/kernel/insn.c:1274:2: warning: initialization from incompatible pointer type
arch/arm64/kernel/insn.c:1274:2: warning: (near initialization for 'aarch32_opcode_cond_checks[14]')
arch/arm64/kernel/insn.c:1275:1: warning: initialization from incompatible pointer type
};
^
arch/arm64/kernel/insn.c:1275:1: warning: (near initialization for 'aarch32_opcode_cond_checks[15]')
arch/arm64/kernel/module-plts.c: In function 'livepatch_emit_plt_entry':
arch/arm64/kernel/module-plts.c:242:14: warning: initialization from incompatible pointer type
u32 *addr = &plt[num];
^
kernel/fork.c:102:41: fatal error: ./cgroup_huawei/cgroup_pids.h: No such file or directory
#include <./cgroup_huawei/cgroup_pids.h>
^
compilation terminated.
scripts/Makefile.build:274: recipe for target 'kernel/fork.o' failed
make[1]: *** [kernel/fork.o] Error 1
Makefile:1048: recipe for target 'kernel' failed
make: *** [kernel] Error 2
mm/rmap.c: In function 'rmap_walk_anon':
mm/rmap.c:1592:24: warning: unused variable 'mapping' [-Wunused-variable]
struct address_space *mapping = page->mapping;
^
mm/unmovable_isolate.c: In function 'get_ddr_size':
mm/unmovable_isolate.c:235:143: warning: comparison of distinct pointer types lacks a cast
ret = min(MEMSIZE_INDEX_MAX + MEMSIZE_INDEX_OFFSET, ddr_size_cmdline);[/COLOR]
Click to expand...
Click to collapse
1. Next time use pastebin.
2. This question doesn't belong here, use GitHub issues instead.
3. Also, I don't see any fork of the kernel. Do it for better tracking and help (and to avoid cloning and reuploading with authorship loss).
Thanks.

How can I enable the tweaks marked with * ?

kearlsaint said:
How can I enable the tweaks marked with * ?
Click to expand...
Click to collapse
By Using a kernel control app, like kernelAdiutor for instance.

Dil3mm4 said:
1. Next time use pastebin.
2. This question doesn't belong here, use GitHub issues instead.
Click to expand...
Click to collapse
Okay, noted.
Dil3mm4 said:
3. Also, I don't see any fork of the kernel. Do it for better tracking and help (and to avoid cloning and reuploading with authorship loss).
Click to expand...
Click to collapse
I don't understand, please explain.

Related

Kernel Compile Fails

Any guru's up....
I keep getting a failure compiling the kernel. its failing at the proximity sensor. I used the kernel config from my phone and proximity is disabled. any how here is the code.
In file included from drivers/misc/proximity.c:14:
/root/myandroid/kernel-hero/arch/arm/include/asm/gpio.h:5:23: error: mach/gpio.h: No such file or directory
drivers/misc/proximity.c:20:23: error: mach/vreg.h: No such file or directory
drivers/misc/proximity.c:21:28: error: mach/msm_iomap.h: No such file or directory
drivers/misc/proximity.c: In function 'proximity_store':
drivers/misc/proximity.c:39: error: implicit declaration of function 'gpio_direction_output'
drivers/misc/proximity.c:42: error: implicit declaration of function 'gpio_get_value'
drivers/misc/proximity.c: In function 'proximity_interrupt':
drivers/misc/proximity.c:61: error: implicit declaration of function 'gpio_to_irq'
drivers/misc/proximity.c: In function 'proximity_early_suspend':
drivers/misc/proximity.c:87: error: implicit declaration of function 'vreg_get'
drivers/misc/proximity.c:87: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:88: error: implicit declaration of function 'vreg_disable'
drivers/misc/proximity.c: In function 'proximity_early_resume':
drivers/misc/proximity.c:95: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:96: error: implicit declaration of function 'vreg_enable'
drivers/misc/proximity.c: In function 'proximity_sensor_probe':
drivers/misc/proximity.c:116: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:117: error: implicit declaration of function 'vreg_set_level'
drivers/misc/proximity.c:121: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:123: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:127: error: implicit declaration of function 'gpio_request'
drivers/misc/proximity.c:139: error: implicit declaration of function 'gpio_direction_input'
drivers/misc/proximity.c:170: error: 'struct early_suspend' has no member named 'suspend'
drivers/misc/proximity.c:171: error: 'struct early_suspend' has no member named 'resume'
make[2]: *** [drivers/misc/proximity.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
Thanks in advanced for the help
cteneyck said:
Any guru's up....
I keep getting a failure compiling the kernel. its failing at the proximity sensor. I used the kernel config from my phone and proximity is disabled. any how here is the code.
In file included from drivers/misc/proximity.c:14:
/root/myandroid/kernel-hero/arch/arm/include/asm/gpio.h:5:23: error: mach/gpio.h: No such file or directory
drivers/misc/proximity.c:20:23: error: mach/vreg.h: No such file or directory
drivers/misc/proximity.c:21:28: error: mach/msm_iomap.h: No such file or directory
drivers/misc/proximity.c: In function 'proximity_store':
drivers/misc/proximity.c:39: error: implicit declaration of function 'gpio_direction_output'
drivers/misc/proximity.c:42: error: implicit declaration of function 'gpio_get_value'
drivers/misc/proximity.c: In function 'proximity_interrupt':
drivers/misc/proximity.c:61: error: implicit declaration of function 'gpio_to_irq'
drivers/misc/proximity.c: In function 'proximity_early_suspend':
drivers/misc/proximity.c:87: error: implicit declaration of function 'vreg_get'
drivers/misc/proximity.c:87: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:88: error: implicit declaration of function 'vreg_disable'
drivers/misc/proximity.c: In function 'proximity_early_resume':
drivers/misc/proximity.c:95: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:96: error: implicit declaration of function 'vreg_enable'
drivers/misc/proximity.c: In function 'proximity_sensor_probe':
drivers/misc/proximity.c:116: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:117: error: implicit declaration of function 'vreg_set_level'
drivers/misc/proximity.c:121: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:123: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:127: error: implicit declaration of function 'gpio_request'
drivers/misc/proximity.c:139: error: implicit declaration of function 'gpio_direction_input'
drivers/misc/proximity.c:170: error: 'struct early_suspend' has no member named 'suspend'
drivers/misc/proximity.c:171: error: 'struct early_suspend' has no member named 'resume'
make[2]: *** [drivers/misc/proximity.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
Thanks in advanced for the help
Click to expand...
Click to collapse
I have never recieved any issues compiling the kernel. Could you explain what exactly you did to receive this?
im running ubuntu 9.04
have followed the instructions at source.android.com to set up my workspace.
downloaded the kernel
decompressed file
make menuconfig
loaded up the module which i pulled from my phone
saved .config
exit menu config
make
i think i was in the wrong dir. dang its getting late...lol
i was in the wrong dir lol
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 0 modules
cteneyck said:
i was in the wrong dir lol
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 0 modules
Click to expand...
Click to collapse
ha ha. Can't say it's not something I have ever done. Glad you got it working. You have a fully patched and working 2.6.29 CDMA Kernel now, right?
no not a .29 kernel just the stock .27 kernel. I having more problems tho. i am stuck with the zImage and i have tried to test it using the commands below but its not working both ways
1.Put my phone into fast
2. c:\fastboot boot /path/to/my/zImage
it outputs and fails.
creating boot image...
creating boot image - 1675264 bytes
downloading 'boot.img'... FAILED (remote: not allow)
so i thought i would flash /dev/mtd2 by unpacking and repacking the mtd2.img with my zImage but the script (the script at android-dls modified with the –base 0×19200000 code in the repack) but it says there is extra info found in my the mtd2.img
so i am am stuck at the moment and trying to figure this one out
and i have no clue on how to make an update.zip. which is the way i should probably go.
cteneyck said:
no not a .29 kernel just the stock .27 kernel. I having more problems tho. i am stuck with the zImage and i have tried to test it using the commands below but its not working both ways
1.Put my phone into fast
2. c:\fastboot boot /path/to/my/zImage
it outputs and fails.
creating boot image...
creating boot image - 1675264 bytes
downloading 'boot.img'... FAILED (remote: not allow)
so i thought i would flash /dev/mtd2 by unpacking and repacking the mtd2.img with my zImage but the script (the script at android-dls modified with the –base 0×19200000 code in the repack) but it says there is extra info found in my the mtd2.img
so i am am stuck at the moment and trying to figure this one out
and i have no clue on how to make an update.zip. which is the way i should probably go.
Click to expand...
Click to collapse
Follow Lox_Dev's tutorial here: http://forum.xda-developers.com/showthread.php?t=551711
You have to unpack an existing boot.img, replace the boot.img-kernel file with the zImage you made (rename zImage to boot.img-kernel) and then repackage it. The flash the new boot.img file.
P.S. The .29 comment was sarcasm
LOL. you got me. thanks for the link. i'll report back.
I got it up and running
I have a stupid question. So if I compiled the kernel that I downloaded. What do I do to put my new kernel on my phone?
s0v3r1gn said:
I have a stupid question. So if I compiled the kernel that I downloaded. What do I do to put my new kernel on my phone?
Click to expand...
Click to collapse
Look back a couple posts, sparky. That was just covered.
s0v3r1gn said:
I have a stupid question. So if I compiled the kernel that I downloaded. What do I do to put my new kernel on my phone?
Click to expand...
Click to collapse
Its not a stupid question but basically you have to grab the boot image from your phone. then split the kernel and the ramdisk. rename your zimage and pack it back into a new boot image and flash it to your phone. I will post the steps i took in a how to soon as i get wireless back working. for what ever reason i can't get it working.
^ Great! Sounds good. I'm going to give compiling a try once you get that posted.
i know about the password being shown. im not running that rom and have gone to a stock (root) version to make my own mods. now that the kernel souce is avialable. im gonna try and build a complete custom rom.
cteneyck said:
Any guru's up....
I keep getting a failure compiling the kernel. its failing at the proximity sensor. I used the kernel config from my phone and proximity is disabled. any how here is the code.
In file included from drivers/misc/proximity.c:14:
/root/myandroid/kernel-hero/arch/arm/include/asm/gpio.h:5:23: error: mach/gpio.h: No such file or directory
drivers/misc/proximity.c:20:23: error: mach/vreg.h: No such file or directory
drivers/misc/proximity.c:21:28: error: mach/msm_iomap.h: No such file or directory
drivers/misc/proximity.c: In function 'proximity_store':
drivers/misc/proximity.c:39: error: implicit declaration of function 'gpio_direction_output'
drivers/misc/proximity.c:42: error: implicit declaration of function 'gpio_get_value'
drivers/misc/proximity.c: In function 'proximity_interrupt':
drivers/misc/proximity.c:61: error: implicit declaration of function 'gpio_to_irq'
drivers/misc/proximity.c: In function 'proximity_early_suspend':
drivers/misc/proximity.c:87: error: implicit declaration of function 'vreg_get'
drivers/misc/proximity.c:87: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:88: error: implicit declaration of function 'vreg_disable'
drivers/misc/proximity.c: In function 'proximity_early_resume':
drivers/misc/proximity.c:95: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:96: error: implicit declaration of function 'vreg_enable'
drivers/misc/proximity.c: In function 'proximity_sensor_probe':
drivers/misc/proximity.c:116: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:117: error: implicit declaration of function 'vreg_set_level'
drivers/misc/proximity.c:121: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:123: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:127: error: implicit declaration of function 'gpio_request'
drivers/misc/proximity.c:139: error: implicit declaration of function 'gpio_direction_input'
drivers/misc/proximity.c:170: error: 'struct early_suspend' has no member named 'suspend'
drivers/misc/proximity.c:171: error: 'struct early_suspend' has no member named 'resume'
make[2]: *** [drivers/misc/proximity.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
Thanks in advanced for the help
Click to expand...
Click to collapse
Hello, I have the same problem with drivers/i2c/chips/mt9t013.c when I compiled HTC Magic kernel
Can you say me more about good folder?
+1
Please answer someone
!
edit: just realized this thread was necro-bumped. Removed my post. Apologies for assisting in bringing back the dead.

[Tutorial] Build CM10.1 / CM10 for i9001

I thought that this would get the development of JB for our device a bit faster. I am going to be explaining for Ubuntu 12.04 and up.
If you get any errors use pastebin and link it here. Good luck
Requirements
64bit Ubuntu
You will need 25GB (or more) free to complete a single build, and up to 80GB (or more) for a full set of builds.
JDK 6
Code:
sudo apt-get install openjdk-6-jdk
Python 2.4--2.7
Code:
sudo apt-get install python
Git 1.7 or newer
Code:
sudo apt-get install git-core
Installing Android SDK
Download the SDK here: http://developer.android.com/sdk/index.html
Extract the SDK and place it in your home directory.
I renamed my SDK to android-sdk to make it easier to navigate to.
Go to your home folder, press Ctrl+H to show hidden files, and open up your .bashrc file.
Add these lines at the bottom of the file(Change path according to your SDK dir):
Code:
# Android tools
export PATH=${PATH}:~/android-sdk/tools
export PATH=${PATH}:~/android-sdk/platform-tools
export PATH=${PATH}:~/bin
Find your .profile file and add this at the bottom of the file:
Code:
PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"
Check for updates by entering this in terminal:
Code:
android
Install required packages(12.04)
Code:
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-glx \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Configure your USB
Code:
gksudo gedit /etc/udev/rules.d/51-android.rules
Inside of the blank text file insert :
Code:
#Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"
#ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"
#Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"
#Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"
#Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"
#Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"
#HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
#Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"
#K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"
#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"
#Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"
#Lenevo
SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"
#LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
#Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"
#NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"
#Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"
#Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"
#OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"
#Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"
#Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"
#PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"
#Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"
#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"
#Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
#Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"
#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"
#Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"
#ZTE
SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
Save the file and enter this into the terminal :
Code:
sudo chmod a+r /etc/udev/rules.d/51-android.rules
Install repo
Code:
mkdir -p ~/bin
mkdir -p ~/android-sdk
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Initialize the repo(use "-b jellybean" for CM10)
Code:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
When asked for, enter your real name and email.
Sync your repo
Enter this into terminal. This will take a while according to your connection.
Code:
repo sync -j16
NOTE: According to your connection change the -j16. I use -j16 with a 100Mbit connection. Drop to -j8 if you have 10Mbit connection or even less if you have a slower connection or you will get connection errors.
Click to expand...
Click to collapse
Add i9001 to the device list
Change your directory to where you will clone the device tree:
Code:
cd WORKING_DIRECTORY/device
mkdir samsung
cd samsung
Clone the device tree from remote to local (Change git to whatever you want, I used the ADC team as an example) :
Code:
git clone git://github.com/AriesVE-DevCon-TEAM/android_device_samsung_ariesve.git -b cm-10.1 ariesve
NOTE: Use -b jb-3.0 for CM10
Now cd to ariesve :
Code:
cd ariesve
Connect your phone to your computer and make sure debugging is open and adb is set up.
Get vendor files :
Code:
cd ~/WORKING_DIRECTORY/vendor
mkdir samsung
cd samsung
git clone git://github.com/ivendor/android_vendor_samsung_ariesve.git -b jellybean ariesve
Get extra files
Code:
~/WORKING_DIRECTORY/vendor/cm/get-prebuilts
Go back to your home dir to build :
Code:
cd ~/WORKING_DIRECTORY
Get some needed files
FOR CM10.1:
You can either fetch from a dev's git or just download frameworks/av and frameworks/native completely and replace it with your own if you find that easier. I'll just do the latter for the sake of simplicity:
Code:
cd frameworks
rm -rf av
rm -rf native
git clone https://github.com/camcory/android_frameworks_av.git -b cm-10.1 av
git clone https://github.com/camcory/android_frameworks_native.git -b cm-10.1 native
cd ..
FOR CM10:
Download this script and give it permission to execute in settings and open it. Choose to run from terminal and follow the script. This should fix any errors you get while compiling. Credits to blackmambazzz for the script.
Code:
[url]http://www.mediafire.com/?b1kj0slcwo9r707[/url]
Build CM
Prepare to compile :
Code:
. build/envsetup.sh
Now compile for device
Code:
brunch ariesve -j#
Change # according to your CPU cores. It should usually be CPU cores+1.
If you wish to be able to see the errors despite it being very slow enter -j1.
Click to expand...
Click to collapse
Fixes for some errors
If you are running into issues such as:
Code:
Which would you like? [full-eng] 5
build/core/product_config.mk:209: *** No matches for product "ariesve". Stop.
Device ariesve not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for shooter not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:209: *** No matches for product "ariesve". Stop.
** Don't have a product spec for: 'ariesve'
** Do you have the right repo manifest?
What you need to do is to edit your blob to match the PRODUCT_NAME to the file name. For example with mine I have full_ariesve.mk therefore in this file I need to have PRODUCT_NAME to match it. Whatever error it is looking for you just need to change the PRODUCT_NAME line to match what the error shows.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you run into issues with Java being the incorrect version here is the fix:
Make sure Java 6 JDK is installed by typing in:
Code:
java -version
Open the file main.mk in build/core and delete this line from the java error code section:
Code:
$(error stop)
Credits
arco68
ivendor
Doomsday94
dastin1015
camcory
This tutorial is based off of this one : http://forum.xda-developers.com/showthread.php?t=1762641
This is my first time making a tutorial so please tell me if I missed something . I wish you guys luck on your builds.
Here is an example of what happens if it builds correctly :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Nice tutorial dude!
Really easy to understand and well wrote.
Keep up the good work!
Thank you so much I bookmarked this thread and I might really try it. Have been wondering about this already but I m not a programmer of profession, though I have a bit of experience in it.. will see.. thank you !
Instead of the combination
Code:
lunch # && make -j# otapackage
you also can use simply
Code:
brunch ariesve
which will do the same.
Thank You Very Much ,, I'm Now in repo sync, When it finishes , i'll see if it builds well ( hopefully ) :good:
Nice guide...now at office...will try after going home.
Sent from my GT-I9001 using xda premium
crybert said:
Instead of the combination
Code:
lunch # && make -j# otapackage
you also can use simply
Code:
brunch ariesve
which will do the same.
Click to expand...
Click to collapse
Yeah I guess but you need to add ariesve to the brunch list. I thought this would be easier or do I know it wrong? Thanks for your suggestion
Edit: Ahaha, sorry crybert. I had tried before but the device wasn't in the list so I thought we had to add it there. After checking again it's there
Sent from my GT-I9001 using xda premium
Xistance said:
Enter toolchain path to .bashrc in your home dir. Use ctrl+h to see it. Enter your username where needed.
Click to expand...
Click to collapse
Is the toolchain in android sdk ??
UpGado said:
Is the toolchain in android sdk ??
Click to expand...
Click to collapse
Yeah, fixed that. Sorry for the wrong path :S
After getting a PM I noticed I got some paths wrong. I fixed them all now and it should be fully okay. Sorry if anyone couldn't build it correctly before this .
Edit : Please follow the steps starting with the repo init. Before, since I made you guys cd to the wrong folder to init repo the sync also went to the wrong folder. CD to the working dir and init repo again and then sync. If you don't want to wait that long again for it to sync again since I probably made you sync to the wrong folder, use Ctrl+H at where you synced and copy paste the .repo folder to the WORKING_DIRECTORY folder and sync again.
Perhaps an stupid and noob question, but why Ubuntu x64? And not x32? :silly:
mrjraider said:
Perhaps an stupid and noob question, but why Ubuntu x64? And not x32? :silly:
Click to expand...
Click to collapse
I don't know the specific reason but Google said it must be 64bit. You shouldn't even be trying to build with less than 4GB of RAM anyway. It wasn't a stupid question. All questions are welcome here .
Xistance said:
I don't know the specific reason but Google said it must be 64bit. You shouldn't even be trying to build with less than 4GB of RAM anyway. It wasn't a stupid question. All questions are welcome here .
Click to expand...
Click to collapse
Also a decent CPU? I got an intel dual core 2,0 ghz and 3GB RAM..
Haha, I am not able to try it haha.
Thanks for the info :silly:
mrjraider said:
Also a decent CPU? I got an intel dual core 2,0 ghz and 3GB RAM..
Haha, I am not able to try it haha.
Thanks for the info :silly:
Click to expand...
Click to collapse
You can still build it if you want . It might be a little slower than usual but if you are willing do it for the development of JB for our device than it is fine.
i am trying to make ics with arco source following this tutorial with repo sync of ics.
i am facing these errors..
build/core/base_rules.mk:166: *** hardware/msm7k/liblights: MODULE.TARGET.SHARED_LIBRARIES.lights.msm7x30 already defined by device/samsung/ariesve/liblight. Stop.
i am getting this error???? Help
Edit : i corrected it but now i am stucking at
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=cm_ariesve
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
build/core/main.mk:322: implicitly installing apns-conf_sdk.xml
No private recovery resources for TARGET_DEVICE ariesve
make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-50000/loc_api_cb.h', needed by `out/target/product/ariesve/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.
????????
nikku_hot123 said:
i am trying to make ics with arco source following this tutorial with repo sync of ics.
i am facing these errors..
build/core/base_rules.mk:166: *** hardware/msm7k/liblights: MODULE.TARGET.SHARED_LIBRARIES.lights.msm7x30 already defined by device/samsung/ariesve/liblight. Stop.
i am getting this error???? Help
Edit : i corrected it but now i am stucking at
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=cm_ariesve
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
build/core/main.mk:322: implicitly installing apns-conf_sdk.xml
No private recovery resources for TARGET_DEVICE ariesve
make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-50000/loc_api_cb.h', needed by `out/target/product/ariesve/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.
????????
Click to expand...
Click to collapse
First of all,
PLATFORM_VERSION=4.0.1
BUILD_ID=ITL41D
Why is your version and build ID that? The version it says is ICS, not JB. They should be 4.1.1 and JRO03L(I think that was it). Did you make sure to clone the git as jellybean?
okey my source was incorrect i resynched the source of cm9 as i am trying to make cm9 with your tutorial.
now i cloned ivendor ics branch. but while compiling now i am getting following error after 15 minutes.
Plz help???
Code:
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_neon.c
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_armv6.c
target thumb C: libpower <= hardware/libhardware_legacy/power/power.c
target thumb C: audio.primary.default <= hardware/libhardware/modules/audio/audio_hw.c
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/AudioHardware.cpp
make: *** No rule to make target `out/target/product/ariesve/obj/lib/libaudioalsa.so', needed by `out/target/product/ariesve/obj/SHARED_LIBRARIES/audio.primary.msm7x30_intermediates/LINKED/audio.primary.msm7x30.so'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/audio_hw_hal.cpp
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::updateDeviceInfo(int, int, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:410: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:433: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
hardware/qcom/media/audio/msm7x30/AudioHardware.h:618: warning: 'android_audio_legacy::AudioHardware::mOutput' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:613: warning: 'bool android_audio_legacy::AudioHardware::mBluetoothVGS'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.h:636: warning: 'android_audio_legacy::AudioHardware::mEffectEnabled' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:611: warning: 'int android_audio_legacy::AudioHardware::mFmFd'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:595: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1379: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1380: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1381: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::do_route_audio_rpc(uint32_t, bool, bool, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1561: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1651: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1653: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1673: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1676: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1680: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1686: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2358: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2361: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:4132: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'
nikku_hot123 said:
okey my source was incorrect i resynched the source of cm9 as i am trying to make cm9 with your tutorial.
now i cloned ivendor ics branch. but while compiling now i am getting following error after 15 minutes.
Plz help???
Code:
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_neon.c
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_armv6.c
target thumb C: libpower <= hardware/libhardware_legacy/power/power.c
target thumb C: audio.primary.default <= hardware/libhardware/modules/audio/audio_hw.c
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/AudioHardware.cpp
make: *** No rule to make target `out/target/product/ariesve/obj/lib/libaudioalsa.so', needed by `out/target/product/ariesve/obj/SHARED_LIBRARIES/audio.primary.msm7x30_intermediates/LINKED/audio.primary.msm7x30.so'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/audio_hw_hal.cpp
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::updateDeviceInfo(int, int, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:410: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:433: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
hardware/qcom/media/audio/msm7x30/AudioHardware.h:618: warning: 'android_audio_legacy::AudioHardware::mOutput' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:613: warning: 'bool android_audio_legacy::AudioHardware::mBluetoothVGS'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.h:636: warning: 'android_audio_legacy::AudioHardware::mEffectEnabled' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:611: warning: 'int android_audio_legacy::AudioHardware::mFmFd'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:595: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1379: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1380: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1381: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::do_route_audio_rpc(uint32_t, bool, bool, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1561: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1651: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1653: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1673: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1676: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1680: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1686: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2358: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2361: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:4132: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'
Click to expand...
Click to collapse
For CM9 you need to cherry-pick or pull the following commit for working audio: http://review.cyanogenmod.com/#/c/21004/
thanks cybert.
i fixed that but now i am getting error related to camera HAL??
Code:
target thumb C++: camera.msm7x30 <= device/samsung/ariesve/camerahal/cameraHAL.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp:34:27: error: ui/OverlayHtc.h: No such file or directory
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/copybit_c2d.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp: In function 'int camera_set_preview_window(camera_device*, preview_stream_ops*)':
device/samsung/ariesve/camerahal/cameraHAL.cpp:495: error: invalid use of incomplete type 'struct android::eek:verlay'
device/samsung/ariesve/camerahal/CameraHardwareInterface.h:29: error: forward declaration of 'struct android::eek:verlay'
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/software_converter.cpp
make: *** [out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::dso'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::reserved'
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int msm_copybit(copybit_context_t*, blitlist*, uint32)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:728: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::buffer'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::phys'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::stride'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1486: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1490: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int set_image(int, uint32, const copybit_image_t*, int*, uint32_t*, eC2DFlags)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:488: warning: 'yuvInfo.yuvPlaneInfo::plane2_offset' may be used uninitialized in this function
hardware/qcom/display/libcopybit/copybit_c2d.cpp:490: warning: 'yuvInfo.yuvPlaneInfo::plane2_stride' may be used uninitialized in this function
nikku_hot123 said:
thanks cybert.
i fixed that but now i am getting error related to camera HAL??
Code:
target thumb C++: camera.msm7x30 <= device/samsung/ariesve/camerahal/cameraHAL.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp:34:27: error: ui/OverlayHtc.h: No such file or directory
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/copybit_c2d.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp: In function 'int camera_set_preview_window(camera_device*, preview_stream_ops*)':
device/samsung/ariesve/camerahal/cameraHAL.cpp:495: error: invalid use of incomplete type 'struct android::eek:verlay'
device/samsung/ariesve/camerahal/CameraHardwareInterface.h:29: error: forward declaration of 'struct android::eek:verlay'
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/software_converter.cpp
make: *** [out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::dso'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::reserved'
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int msm_copybit(copybit_context_t*, blitlist*, uint32)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:728: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::buffer'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::phys'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::stride'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1486: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1490: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int set_image(int, uint32, const copybit_image_t*, int*, uint32_t*, eC2DFlags)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:488: warning: 'yuvInfo.yuvPlaneInfo::plane2_offset' may be used uninitialized in this function
hardware/qcom/display/libcopybit/copybit_c2d.cpp:490: warning: 'yuvInfo.yuvPlaneInfo::plane2_stride' may be used uninitialized in this function
Click to expand...
Click to collapse
You need this: http://review.cyanogenmod.com/#/c/13285/

[Guide][Compile][Patching]A Kernel From Source For Newbies[Any Device]

Hey Guys,
With All the awesome development going on in the Android world. There Are Many newbies who want to strat development but they exactly Dont Know How To begin with or from where to strat with. So I will Write a guide on how to compile your own kernel from source
=================
What Is A Kernel???
=================
The operating system of a device is the part of the device responsible for basic use and administration. This includes the kernel and device drivers, boot loader, command shell or other user interface, and basic file and system utilities. Whereas the user interface is the outermost portition of the operating system, kernel is the innermost. It is the core internals, the software that provides basic services for all other parts of the system, manages hardware and distributes system resources.
============================
Prerequisites To Compile A kernel
============================
1.A Unix Based Os(Ubuntu Recommended Both 32-bit and 64-bit are good to compile a kernel)
2.A few packages, to let the system know that we are compiling a kernel
3. The Source Code of kernel for your Device
Ok, So Now Lets Begin
==================
Packages Required:
==================
Ok So Now Open The Terminal And Copy Paste This Code:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 git
Okay SO Now If You Are using Ubuntu12.04 , you need to create links of certain files
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Okay now we are done with installing packages
SO Now we need java
Open a terminal and Run This Code:
sudo add-apt-repository ppa:ferramroberto/java
Click to expand...
Click to collapse
Then Run This:
sudo apt-get update
Click to expand...
Click to collapse
Then Type This:
sudo apt-get-install sun-java6-jdk
Click to expand...
Click to collapse
So Now You Have all the needed packages to compile a kernel
Next you need the bootimagetools,source code of kernel and Androidtoolchainsto compile a kernel
Bootimagetools:https://github.com/SaumitraYadav/Boot-Image-tools
AndroidToolchains:https://github.com/SaumitraYadav/Android_Toolchains
Okay once you have Downloaded everything ... now Lets Start Compiling A Kernel
Ok So Fireup A Terminal :
Code:
mkdir kernel
This Will Create a Directory named kernel in your Home Folder
Now extract your kernel Source in this directory
Then Run This:
Code:
cd kernel
Now You Have To Edit the Make File:
Code:
gedit Makefile
The Make file will open.........look out for this and change CROSS_COMPILE= "your toolchain path"
EXAMPLE:
Code:
CROSS_COMPILE?= /home/saumitra/Downloads/Toolchains/arm-eabi-4.4.3/bin/arm-eabi-
this will open up Makefile in gedit, now set the path where youn have downloaded and extracted the toolchains
Now, make the kernel config
Code:
make pico_defconfig
Note: I have a Htc Explorer and my device codename is pico. So i run pico_defconfig
Now Other device users have to look for codename or config names in arch/arm/configs
This Will Make a working kernel config according to the source
Now, if You Wanna Make Some Changes In Your Source Do so , and run this command to start compiling:
Code:
make -jX
The X can be replaced by the maximum number of jobs your computer can handle simultaneously.. The higher this number, the faster the compiling will get.. But do not enter a number too high, your computer may explode due to overheating.
Okay if all goes well your kernel will be compiled in 15mins
The resulting kernel will be in Kernel/arch/arm/boot/zImage
Now We also need modules for wifi and BT to work. So,
cd kernel
Click to expand...
Click to collapse
mkdir modules
Click to expand...
Click to collapse
find . -name '*ko' -exec cp '{}' modules \;
Click to expand...
Click to collapse
Okay So Now The Moules will be in kernel/modules
So Now We will pack the kernel to be flashed on the target Device
-Okay So Now Get A Working Boot.img Of THe Rom on which Wanna Test Your Kernel
-Download and extract The Bootimagetools From The Link Given Above
-place the boot.img in source_img folder inside the boot.img-tools
-enter the bootimagetools Directory
-unpack(This Will extract the boot.img)
$ mkdir -p unpack
$ tools/unpackbootimg -i source_img/boot.img -o unpack
Click to expand...
Click to collapse
-Extracting boot.img-ramdisk.gz(This Will Extract The ramdisk From the boot.img)
$ mkdir -p boot
$ cd boot
$ gzip -dc ../unpack/boot.img-ramdisk.gz | cpio -i
$ cd ../
Click to expand...
Click to collapse
-Packing a new ramdisk(This Will Pack A new ramdisk which will be used in your kernel)
$ tools/mkbootfs boot | gzip > unpack/boot.img-ramdisk-new.gz
Click to expand...
Click to collapse
Now As we want to create a boot.img from the zImage you made so copy the zImage from arch/arm/boot
Then goto the folder unpack in bootimagetools directory and delete boot.img-zImage
now paste the zImage You copied from arch/arm/boot and paste it in unpack folder and rename it to boot.img-zImage
-Create a new boot.img:
$ mkdir -p target_img
$ tools/mkbootimg --kernel unpack/boot.img-zImage --ramdisk unpack/boot.img-ramdisk-new.gz -o target_img/boot.img --base `cat unpack/boot.img-base`
Click to expand...
Click to collapse
Done
Now Take The boot.img for target_img folder and flash it via fastboot and dont forget to push modules else wifi will not work
=============================
Patching The kernel[The Easy Way]
=============================
This will Show You How to Patch your kernel to the latest version.
All The Patches are Available on kernel.org.
So If you apply the patches manually, then your source code will be messed up and you will face compiling errors+ it's time consuming to allow every patch as yes
So I am going to use a program called interdiff to
generate a patch representing the differences between two patches and then
apply the result.
Download:
Code:
http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.3.3.tar.xz
SO Now Setting up the program to work :
1. Download the given file and extract it somewhere ,you swill get a folder named patchutils-0.3.3
2. First Install these Two Packages:
Code:
sudo apt-get install gcc
sudo apt-get install g++
3. Now cd to the folder patchutils-0.3.3
4. Now Type this in terminal
Code:
./configure
5.Now type this
Code:
make
6. Then this
Code:
sudo make install
Now You have setup the program 'interdiff' for applying the patches
To Apply The patches:
Code:
interdiff -z patch-xy patch-yx | patch -p1
Code:
patch-xy: The current kernel version ( for example= patch-3.0.97)
patch-yx: The version to be patched ( for example=patch-3.0.98)
Note: Both the patches should be in your kernel source directory
Credits:
@Red Devil (For Teaching me how to compile a kernel)
Awesome
Markyzz said:
Awesome
Click to expand...
Click to collapse
Thanks
Please Unquote The Post
Great Guide For Noobs Like Me
Speaking Frankly There is a guide by @legen_dary which is really good.
I Don't think this is actually needed.
Thank you.
Brother.. At least change it a little eh??
Or if you want, I can have the original guide thread handed over to you..
ғг๏๓ ҭђє ғเรђ!
Very very useful i'll take a closer look at it later tonight! :good:
Corrected the grammatical errors Happy compiling
Sent from my HTC Explorer using Tapatalk 4 Beta
Added Guide on How to Patch the Kernel Happy compiling
Saumitra Yadav said:
Added Guide on How to Patch the Kernel Happy compiling
Click to expand...
Click to collapse
i need a easy way for patching kernel ...thnxx man u helped a lot ..>!!:laugh:
How to solve this?
Code:
LD drivers/hid/built-in.o
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1408: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1408: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1409: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1409: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1410: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1410: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1415: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1415: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1416: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1416: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1417: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1417: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1418: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1418: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1419: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1419: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1423: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1423: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1424: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1424: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1425: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1425: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1426: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1426: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1427: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1427: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1431: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1431: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1432: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1432: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1433: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1433: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1434: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1434: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1435: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1435: error: (near initialization for 'ion_pdata.heaps')
make[3]: *** [arch/arm/mach-msm/board-tamsui-jlo.o] Błąd 1
make[3]: *** Oczekiwanie na niezakończone zadania....
CC net/core/utils.o
CC drivers/hwmon/hwmon.o
CC fs/fat/fatent.o
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:862: error: 'KGSL_3D0_REG_MEMORY' undeclared here (not in a function)
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:868: error: 'KGSL_3D0_IRQ' undeclared here (not in a function)
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:875: error: variable 'kgsl_3d0_pdata' has initializer but incomplete type
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:876: error: unknown field 'pwrlevel' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:876: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:876: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:877: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:877: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:881: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:881: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:885: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:885: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:890: error: unknown field 'init_level' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:891: error: unknown field 'num_levels' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:892: error: unknown field 'set_grp_async' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:893: error: unknown field 'idle_timeout' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:894: error: unknown field 'strtstp_sleepwake' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:895: error: unknown field 'nap_allowed' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:896: error: unknown field 'clk_map' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c: In function 'msm7x25a_kgsl_3d0_init':
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:912: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:913: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:913: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:914: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:914: error: 'struct resource' has no member named 'bus_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:915: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:915: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:916: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:916: error: 'struct resource' has no member named 'bus_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c: In function 'msm8x25_kgsl_3d0_init':
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:923: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:924: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:928: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:928: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:930: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:930: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:932: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:932: error: 'struct resource' has no member named 'bus_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c: At top level:
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1581: error: initializer element is not constant
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1581: error: (near initialization for 'msm8625_kgsl_3d0_resources[0].name')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1587: error: initializer element is not constant
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1587: error: (near initialization for 'msm8625_kgsl_3d0_resources[1].name')
make[3]: *** [arch/arm/mach-msm/devices-tamsui-jlo.o] Błąd 1
CC fs/fat/file.o
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:664: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:664: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:665: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:665: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:666: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:666: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:671: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:671: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:672: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:672: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:673: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:673: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:674: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:674: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:675: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:675: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:679: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:679: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:680: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:680: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:681: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:681: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:682: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:682: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:683: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:683: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:687: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:687: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:688: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:688: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:689: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:689: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:690: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:690: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:691: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:691: error: (near initialization for 'ion_pdata.heaps')
make[3]: *** [arch/arm/mach-msm/board-qrd7627a.o] Błąd 1
make[2]: *** [arch/arm/mach-msm] Błąd 2
make[2]: *** Oczekiwanie na niezakończone zadania....
do I have to add -w to more flags?
This is part of my makefile
Code:
CFLAGS_MODULE = -w
AFLAGS_MODULE = -w
LDFLAGS_MODULE =
CFLAGS_KERNEL = -w
AFLAGS_KERNEL = -w
CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
hey bro @Saumitra Yadav , can you help me to fix this? thx
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ocoot said:
hey bro @Saumitra Yadav , can you help me to fix this? thx
Click to expand...
Click to collapse
Some Package Is Missing Please Give me A pastie of full error
Saumitra Yadav said:
Some Package Is Missing Please Give me A pastie of full error
Click to expand...
Click to collapse
now it's fixed. just install lzop from terminal
mmm can you make a tutorial how to add gov,i/o or freq? coz i added some gov on my kernel when i flash it, it not showing on no frillis, but on command "make menuconfig" its showing the gov i am added before -_-
@Saumitra Yadav can you help me with this?
stuck because of this from 2 days.
Xperia mini | Stock GB kernel Source | ndk 9b
Code:
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
arch/arm/boot/compressed/head.S: Assembler messages:
arch/arm/boot/compressed/head.S:363: Warning: (null)
arch/arm/boot/compressed/head.S:444: Warning: (null)
arch/arm/boot/compressed/head.S:465: Warning: (null)
arch/arm/boot/compressed/head.S:484: Warning: (null)
arch/arm/boot/compressed/head.S:492: Warning: (null)
arch/arm/boot/compressed/head.S:783: Warning: (null)
arch/arm/boot/compressed/head.S:822: Warning: (null)
arch/arm/boot/compressed/head.S:823: Warning: (null)
arch/arm/boot/compressed/head.S:870: Warning: (null)
arch/arm/boot/compressed/head.S:877: Warning: (null)
arch/arm/boot/compressed/head.S:885: Warning: (null)
arch/arm/boot/compressed/head.S:896: Warning: (null)
arch/arm/boot/compressed/head.S:910: Warning: (null)
arch/arm/boot/compressed/head.S:942: Warning: (null)
arch/arm/boot/compressed/head.S:944: Warning: (null)
arch/arm/boot/compressed/head.S:945: Warning: (null)
arch/arm/boot/compressed/head.S:952: Warning: (null)
arch/arm/boot/compressed/head.S:984: Warning: (null)
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
arm-linux-androideabi-ld: error: arch/arm/boot/compressed/piggy.o: unknown CPU architecture
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
[email protected]:~/android/kernel/4.0.2.A.0.84/kernel$
piousheart said:
@Saumitra Yadav can you help me with this?
stuck because of this from 2 days.
Xperia mini | Stock GB kernel Source | ndk 9b
Code:
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
arch/arm/boot/compressed/head.S: Assembler messages:
arch/arm/boot/compressed/head.S:363: Warning: (null)
arch/arm/boot/compressed/head.S:444: Warning: (null)
arch/arm/boot/compressed/head.S:465: Warning: (null)
arch/arm/boot/compressed/head.S:484: Warning: (null)
arch/arm/boot/compressed/head.S:492: Warning: (null)
arch/arm/boot/compressed/head.S:783: Warning: (null)
arch/arm/boot/compressed/head.S:822: Warning: (null)
arch/arm/boot/compressed/head.S:823: Warning: (null)
arch/arm/boot/compressed/head.S:870: Warning: (null)
arch/arm/boot/compressed/head.S:877: Warning: (null)
arch/arm/boot/compressed/head.S:885: Warning: (null)
arch/arm/boot/compressed/head.S:896: Warning: (null)
arch/arm/boot/compressed/head.S:910: Warning: (null)
arch/arm/boot/compressed/head.S:942: Warning: (null)
arch/arm/boot/compressed/head.S:944: Warning: (null)
arch/arm/boot/compressed/head.S:945: Warning: (null)
arch/arm/boot/compressed/head.S:952: Warning: (null)
arch/arm/boot/compressed/head.S:984: Warning: (null)
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
arm-linux-androideabi-ld: error: arch/arm/boot/compressed/piggy.o: unknown CPU architecture
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
[email protected]:~/android/kernel/4.0.2.A.0.84/kernel$
Click to expand...
Click to collapse
Wrong Toolchain Try This Toolchain
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7
Saumitra Yadav said:
Wrong Toolchain Try This Toolchain
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7
Click to expand...
Click to collapse
I don't know how to use git.
where to download that toolchain
Any idea how much time would it take to download all the neccesary things except the packages used for setting up build envi?
Sent from my GT-I9100 using xda premium
Doesn't take me long to download in Ubuntu.
Samsung open source will probably take you longest
engloa said:
Doesn't take me long to download in Ubuntu.
Samsung open source will probably take you longest
Click to expand...
Click to collapse
Hey buddy..
Haha..nice to see u everywhere.
Thank u..
Sent from my GT-I9100 using xda premium

[Q] How to Use a Different Kernel When Building CM12?

I have been learning how to compile CM12 on my own and it has been going really good so far. I've done two nightly builds for myself but now I am curious how I would go about compiling a custom kernel with it. Say I wanted to substitute in Franco's kernel or Faux. . .what do I need to do in order to sync the required code to my build?
Off the top of my head, I would think that the line in the local_manifest needs to be changed, but I honestly have no idea if it is that easy.
Here you go.
http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
So, I have added Franco's details into the local_manifest.xml file and done the repo sync command to pull down all of the source code. Franco's kernel source seemed to pull down successfully and I thought everything was good
However, when I try the "time brunch hammerhead" command, I get some errors. . .
Code:
PRODUCT_COPY_FILES device/lge/hammerhead/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/lge/hammerhead/spn-conf.xml:system/etc/spn-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
No private recovery resources for TARGET_DEVICE hammerhead
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
make -C kernel/lge/hammerhead O=/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_hammerhead_defconfig
make[1]: Entering directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host StaticLib: libhost_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (/home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
host C: checkpolicy <= external/checkpolicy/queue.c
host C: checkpolicy <= external/checkpolicy/module_compiler.c
host C: checkpolicy <= external/checkpolicy/parse_util.c
external/checkpolicy/module_compiler.c: In function 'add_perm_to_class':
external/checkpolicy/module_compiler.c:710:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'is_scope_in_stack':
external/checkpolicy/module_compiler.c:1233:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'end_optional':
external/checkpolicy/module_compiler.c:1448:22: warning: unused parameter 'pass' [-Wunused-parameter]
external/checkpolicy/module_compiler.c: In function 'copy_requirements':
external/checkpolicy/module_compiler.c:1511:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c:1517:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: checkpolicy <= external/checkpolicy/policy_define.c
GEN /home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/Makefile
host C: checkpolicy <= external/checkpolicy/checkpolicy.c
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host StaticLib: libsepol_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/libsepol.a)
host C: checkfc <= external/sepolicy/tools/checkfc.c
external/checkpolicy/policy_define.c: In function 'define_dominance':
external/checkpolicy/policy_define.c:867:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'clone_level':
external/checkpolicy/policy_define.c:997:38: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'define_compute_type_helper':
external/checkpolicy/policy_define.c:1569:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'dominate_role_recheck':
external/checkpolicy/policy_define.c:2146:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2152:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2125:48: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'parse_semantic_categories':
external/checkpolicy/policy_define.c:3445:64: warning: unused parameter 'levdatum' [-Wunused-parameter]
host C: libselinux_32 <= external/libselinux/src/callbacks.c
external/checkpolicy/checkpolicy.c: In function 'display_bools':
external/checkpolicy/checkpolicy.c:296:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/checkpolicy.c: In function 'check_level':
external/checkpolicy/checkpolicy.c:364:72: warning: unused parameter 'arg' [-Wunused-parameter]
external/checkpolicy/checkpolicy.c: In function 'main':
external/checkpolicy/checkpolicy.c:472:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: libselinux_32 <= external/libselinux/src/check_context.c
host C: libselinux_32 <= external/libselinux/src/freecon.c
***
*** Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!
***
make[3]: *** [cyanogenmod_hammerhead_defconfig] Error 1
make[2]: *** [cyanogenmod_hammerhead_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host C: libselinux_32 <= external/libselinux/src/init.c
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
real 0m55.220s
user 0m46.604s
sys 0m11.489s
It seems to be hanging up on this error "Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!" and I'm not sure how to proceed
I found this and he said that person needed to "Go to the device tree BoardConfig.mk and change cyanogenmod_d802_defconfig to d802_defconfig"
So I went into the BoardConfig.mk file and rmeoved the cyanogenmod bit from that line.
repo sync'd and set everything back up and it seems to be going through the full build right now *crossing my fingers*
Blah
So not I'm getting this error about 20 minutes into the build
Code:
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/profiler.cpp
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:76:18: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
^
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
Does anyone have any idea what this pertains to?

[ROM][N7100][6.0.1] Temasek's UNOFFICIAL CyanogenMod 13 [V10.4]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
temasek's UNOFFICIAL CyanogenMod 13 BUILDS
This is an official maintainer thread for all current and future unofficial builds of CM13 created by @temasek. This thread was created on his behalf and will be maintained accordingly. Please report any bugs or issues that you see; when applicable, please follow the bug reporting format found in post #3. Download links, changelogs and other important information can be found in post #2. Thank you.
DISCLAIMER
Code:
/*
* Your warranty is now void. Knox 0x1.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
*/
STOP!
If you do not read EACH and EVERY "OP" POST made by me (i.e. the first 5 posts) and post rudely, report bugs incorrectly, or ask for ETAs/feature requests, you WILL be called out for it.
You have been warned. Most, if not, any information you may be looking for can be found either in among these 5 posts or by performing a simple search using good key words. Think before you post. Thank you.
Download:
AndroidFileHost
The lastest version TWRP (2.8.7.0) is recommended.
Clean Installation
1. Download the appropriate ROM using links provide in the second post.
2. Download the appropriate GApps following the links in the second post.
3. Back up any and all important data.
5. WIPE DALVIK/CACHE/DATA/FACTORY RESET.
6. WIPE SYSTEM.
7. Flash the ROM in recovery.
7.1. DO NOT FIX PERMISSIONS AFTER FLASHING, doing so will cause a bootloop.
8. Flash the GApps.
9. WIPE DALVIK/CACHE (for good measure).
10. Reboot Device.
Dirty Flash/Update
1. Download the appropriate ROM using links provide in the second post.
2. WIPE CACHE/DALVIK.
3. Install the update zip from recovery.
3.1. DO NOT FIX PERMISSIONS AFTER FLASHING, doing so will cause a bootloop.
4. WIPE DALVIK/CACHE (for good measure).
5. Reboot Device.
@arter97
@temasek
Ivan_Meler | Donate
Source Code:
Device
Kernel
SMDK4412-Common
Hardware Samsung
Vendor Samsung
Libhardware
Frameworks-Native
XDA:DevDB Information
Temasek, ROM for the Samsung Galaxy Note II
Contributors
Trafalgar Square, temasek
Source Code: https://github.com/temasek
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.0.x
Based On: CyanogenMod, AICP, OmniROM, Slim ROMs
Version Information
Status: Stable
Created 2016-01-16
Last Updated 2016-08-03​
Download
Downloads
ROM: AndroidFileHost
GApps: GitHub
Informations
AOSP Google Version: 43
Android-Version: 6.0.1
Security Patch Level: 01.05.16
Additional
Titanium Backup - External SD Card problems (This Folder is NOT Writeable)
http://www.titaniumtrack.com/kb/tita...-not-writeable
Kernel Features:
I added some new features to my kernel for this ROM. You can configure them via Kernel Adiutor and Boeffla Sound.
New Features:
ZZmoove Governor
Boeffla Sound
Sio Scheduler
Zen Scheduler
ROW Scheduler
SmartAss V2
Luzactive Governor
Some other issue?
You can't just say 'x is broken!' and expect me to magically find the bug and fix it.
Here's what I need:
Steps to reproduce - I don't care if "it's simple". I want to know exactly what you were doing at the time of the bug. How'd it happen? Does it only happen on Tuesdays when watching a specific YouTube video? Include it *all*
What happened - in what way is this *not* the expected behaviour? Don't just say "it didn't play/upload/whatever". Did the entire phone crash? Did it show an error? Did it just show an endless progress indicator? Again, I need specifics here.
Logcat/last_kmsg - Include the whole thing please, and if your phone's been running for a while, give me a rough region of time when the issue happened. Use last_kmsg if your device reboots unexpectedly, otherwise use a logcat. (See below for info on how to get them)
Tell me​
Wow, new ROM to our beloved Note 2. Thank you Trafalgar Square.
Downloading it right now.
Question: Is the screenshot, is that a stock theme?
new rom new rom!! woohoo
thanks mate. :good:
LabBoy97 said:
Question: Is the screenshot, is that a stock theme?
Click to expand...
Click to collapse
No,
[THEME] OceanLay CM12/13 Theme
by @Lars124
@Trafalgar Square
ROM OS Version: 2.3.x Gingerbread?? thats what written in OP, change it
Edit: found more screenshots in screenshot tab.
roopeshbhardwaj said:
@Trafalgar Square
ROM OS Version: 2.3.x Gingerbread?? its written in OP, change it
and please put more screenshots with stock theme
Click to expand...
Click to collapse
Done
Trafalgar Square said:
No,
[THEME] OceanLay CM12/13 Theme
by @Lars124
Click to expand...
Click to collapse
Thanks dude
Anyone tried this version and can provide some feedback? How is it compared to Ivan's CM13? Thanks!
I'm very happy to see new CM13 rom developing and wish only the bests in realizing. Should be useful for us some more info about the rom, features etc. please.
@Trafalgar Square ok i downloaded it and just about to flash it. First thought, are you going to keep developing it in future? will it be regularly synced with cm sources?
roopeshbhardwaj said:
@Trafalgar Square ok i downloaded it and just about to flash it. First thought, are you going to keep developing it in future? will it be regularly synced with cm sources?
Click to expand...
Click to collapse
Sure. This is my daily device
If Temasek releases a update (ever two day), I will compile.
thank you so much @Trafalgar Square
For me all work fine, only thetering USB dont work
Inviato dal mio GT-N7100 utilizzando Tapatalk
Wanted to compile a new version of Temasek, but getting this error now
Code:
In file included from system/core/include/cutils/log.h:1:0,
from device/samsung/n7100/libsensors/SensorBase.cpp:26:
device/samsung/n7100/libsensors/SensorBase.cpp: In member function 'int SensorBase::open_device()':
device/samsung/n7100/libsensors/SensorBase.cpp:59:77: error: 'strerror' was not declared in this scope
ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno));
^
device/samsung/n7100/libsensors/SensorBase.cpp: In member function 'int SensorBase::openInput(const char*)':
device/samsung/n7100/libsensors/SensorBase.cpp:104:28: error: 'strcpy' was not declared in this scope
strcpy(devname, dirname);
^
device/samsung/n7100/libsensors/SensorBase.cpp:105:40: error: 'strlen' was not declared in this scope
filename = devname + strlen(devname);
^
device/samsung/n7100/libsensors/SensorBase.cpp:119:40: error: 'strcmp' was not declared in this scope
if (!strcmp(name, inputName)) {
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/SensorBase.o] Error 1
make: *** Waiting for unfinished jobs....
device/samsung/n7100/libsensors/LightSensor.cpp: In constructor 'LightSensor::LightSensor()':
device/samsung/n7100/libsensors/LightSensor.cpp:44:61: error: 'memset' was not declared in this scope
memset(mPendingEvent.data, 0, sizeof(mPendingEvent.data));
^
device/samsung/n7100/libsensors/LightSensor.cpp:47:53: error: 'strcpy' was not declared in this scope
strcpy(input_sysfs_path, "/sys/class/input/");
^
device/samsung/n7100/libsensors/LightSensor.cpp:48:44: error: 'strcat' was not declared in this scope
strcat(input_sysfs_path, input_name);
^
device/samsung/n7100/libsensors/LightSensor.cpp:50:55: error: 'strlen' was not declared in this scope
input_sysfs_path_len = strlen(input_sysfs_path);
^
device/samsung/n7100/libsensors/LightSensor.cpp: In member function 'virtual int LightSensor::setDelay(int32_t, int64_t)':
device/samsung/n7100/libsensors/LightSensor.cpp:75:65: error: 'strcpy' was not declared in this scope
strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_delay");
^
device/samsung/n7100/libsensors/LightSensor.cpp:80:34: error: 'strlen' was not declared in this scope
write(fd, buf, strlen(buf)+1);
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/LightSensor.o] Error 1
device/samsung/n7100/libsensors/ProximitySensor.cpp: In constructor 'ProximitySensor::ProximitySensor()':
device/samsung/n7100/libsensors/ProximitySensor.cpp:44:61: error: 'memset' was not declared in this scope
memset(mPendingEvent.data, 0, sizeof(mPendingEvent.data));
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:47:53: error: 'strcpy' was not declared in this scope
strcpy(input_sysfs_path, "/sys/class/input/");
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:48:44: error: 'strcat' was not declared in this scope
strcat(input_sysfs_path, input_name);
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:50:55: error: 'strlen' was not declared in this scope
input_sysfs_path_len = strlen(input_sysfs_path);
^
device/samsung/n7100/libsensors/ProximitySensor.cpp: In member function 'virtual int ProximitySensor::setDelay(int32_t, int64_t)':
device/samsung/n7100/libsensors/ProximitySensor.cpp:75:65: error: 'strcpy' was not declared in this scope
strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_delay");
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:80:34: error: 'strlen' was not declared in this scope
write(fd, buf, strlen(buf)+1);
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/ProximitySensor.o] Error 1
In file included from system/core/include/cutils/log.h:1:0,
from system/core/include/utils/Log.h:31,
from device/samsung/n7100/libsensors/sensors.cpp:31:
device/samsung/n7100/libsensors/sensors.cpp: In constructor 'sensors_poll_context_t::sensors_poll_context_t()':
device/samsung/n7100/libsensors/sensors.cpp:229:71: error: 'strerror' was not declared in this scope
ALOGE_IF(result<0, "error creating wake pipe (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp: In member function 'int sensors_poll_context_t::activate(int, int)':
device/samsung/n7100/libsensors/sensors.cpp:258:77: error: 'strerror' was not declared in this scope
ALOGE_IF(result<0, "error sending wake message (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp: In member function 'int sensors_poll_context_t::pollEvents(sensors_event_t*, int)':
device/samsung/n7100/libsensors/sensors.cpp:297:59: error: 'strerror' was not declared in this scope
ALOGE("poll() failed (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp:303:87: error: 'strerror' was not declared in this scope
ALOGE_IF(result<0, "error reading from wake pipe (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp: In function 'int open_sensors(const hw_module_t*, const char*, hw_device_t**)':
device/samsung/n7100/libsensors/sensors.cpp:380:62: error: 'memset' was not declared in this scope
memset(&dev->device, 0, sizeof(sensors_poll_device_1));
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/sensors.o] Error 1
make: Leaving directory `/home/demian/Temasek'
[COLOR=Red][B]#### make failed to build some targets (09:07 (mm:ss)) ####[/B][/COLOR]
[email protected] ~/Temasek $ ^
@Ivan_Meler
I have done a make clean and resynced the source, but getting the same error all time.
Trafalgar Square said:
Wanted to compile a new version of Temasek, but getting this error now
Code:
In file included from system/core/include/cutils/log.h:1:0,
from device/samsung/n7100/libsensors/SensorBase.cpp:26:
device/samsung/n7100/libsensors/SensorBase.cpp: In member function 'int SensorBase::open_device()':
device/samsung/n7100/libsensors/SensorBase.cpp:59:77: error: 'strerror' was not declared in this scope
ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno));
^
device/samsung/n7100/libsensors/SensorBase.cpp: In member function 'int SensorBase::openInput(const char*)':
device/samsung/n7100/libsensors/SensorBase.cpp:104:28: error: 'strcpy' was not declared in this scope
strcpy(devname, dirname);
^
device/samsung/n7100/libsensors/SensorBase.cpp:105:40: error: 'strlen' was not declared in this scope
filename = devname + strlen(devname);
^
device/samsung/n7100/libsensors/SensorBase.cpp:119:40: error: 'strcmp' was not declared in this scope
if (!strcmp(name, inputName)) {
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/SensorBase.o] Error 1
make: *** Waiting for unfinished jobs....
device/samsung/n7100/libsensors/LightSensor.cpp: In constructor 'LightSensor::LightSensor()':
device/samsung/n7100/libsensors/LightSensor.cpp:44:61: error: 'memset' was not declared in this scope
memset(mPendingEvent.data, 0, sizeof(mPendingEvent.data));
^
device/samsung/n7100/libsensors/LightSensor.cpp:47:53: error: 'strcpy' was not declared in this scope
strcpy(input_sysfs_path, "/sys/class/input/");
^
device/samsung/n7100/libsensors/LightSensor.cpp:48:44: error: 'strcat' was not declared in this scope
strcat(input_sysfs_path, input_name);
^
device/samsung/n7100/libsensors/LightSensor.cpp:50:55: error: 'strlen' was not declared in this scope
input_sysfs_path_len = strlen(input_sysfs_path);
^
device/samsung/n7100/libsensors/LightSensor.cpp: In member function 'virtual int LightSensor::setDelay(int32_t, int64_t)':
device/samsung/n7100/libsensors/LightSensor.cpp:75:65: error: 'strcpy' was not declared in this scope
strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_delay");
^
device/samsung/n7100/libsensors/LightSensor.cpp:80:34: error: 'strlen' was not declared in this scope
write(fd, buf, strlen(buf)+1);
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/LightSensor.o] Error 1
device/samsung/n7100/libsensors/ProximitySensor.cpp: In constructor 'ProximitySensor::ProximitySensor()':
device/samsung/n7100/libsensors/ProximitySensor.cpp:44:61: error: 'memset' was not declared in this scope
memset(mPendingEvent.data, 0, sizeof(mPendingEvent.data));
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:47:53: error: 'strcpy' was not declared in this scope
strcpy(input_sysfs_path, "/sys/class/input/");
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:48:44: error: 'strcat' was not declared in this scope
strcat(input_sysfs_path, input_name);
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:50:55: error: 'strlen' was not declared in this scope
input_sysfs_path_len = strlen(input_sysfs_path);
^
device/samsung/n7100/libsensors/ProximitySensor.cpp: In member function 'virtual int ProximitySensor::setDelay(int32_t, int64_t)':
device/samsung/n7100/libsensors/ProximitySensor.cpp:75:65: error: 'strcpy' was not declared in this scope
strcpy(&input_sysfs_path[input_sysfs_path_len], "poll_delay");
^
device/samsung/n7100/libsensors/ProximitySensor.cpp:80:34: error: 'strlen' was not declared in this scope
write(fd, buf, strlen(buf)+1);
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/ProximitySensor.o] Error 1
In file included from system/core/include/cutils/log.h:1:0,
from system/core/include/utils/Log.h:31,
from device/samsung/n7100/libsensors/sensors.cpp:31:
device/samsung/n7100/libsensors/sensors.cpp: In constructor 'sensors_poll_context_t::sensors_poll_context_t()':
device/samsung/n7100/libsensors/sensors.cpp:229:71: error: 'strerror' was not declared in this scope
ALOGE_IF(result<0, "error creating wake pipe (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp: In member function 'int sensors_poll_context_t::activate(int, int)':
device/samsung/n7100/libsensors/sensors.cpp:258:77: error: 'strerror' was not declared in this scope
ALOGE_IF(result<0, "error sending wake message (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp: In member function 'int sensors_poll_context_t::pollEvents(sensors_event_t*, int)':
device/samsung/n7100/libsensors/sensors.cpp:297:59: error: 'strerror' was not declared in this scope
ALOGE("poll() failed (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp:303:87: error: 'strerror' was not declared in this scope
ALOGE_IF(result<0, "error reading from wake pipe (%s)", strerror(errno));
^
device/samsung/n7100/libsensors/sensors.cpp: In function 'int open_sensors(const hw_module_t*, const char*, hw_device_t**)':
device/samsung/n7100/libsensors/sensors.cpp:380:62: error: 'memset' was not declared in this scope
memset(&dev->device, 0, sizeof(sensors_poll_device_1));
^
make: *** [/home/demian/Temasek/out/target/product/n7100/obj/SHARED_LIBRARIES/sensors.smdk4x12_intermediates/sensors.o] Error 1
make: Leaving directory `/home/demian/Temasek'
[COLOR=Red][B]#### make failed to build some targets (09:07 (mm:ss)) ####[/B][/COLOR]
[email protected] ~/Temasek $ ^
@Ivan_Meler
I have done a make clean and resynced the source, but getting the same error all time.
Click to expand...
Click to collapse
Looks like they tried to enable some sort of optimizations they usually break builds ill have to look at this
Temasek V3.0
Changelog:
==================== 01-19-2016 ====================
SystemUI: fix qs tile page regressions (android_frameworks_base)
cmsdk: Fix BuildTests. Bump parcelable version. (cm_platform_sdk)
soundrecorder: Put the menu back (android_packages_apps_SoundRecorder)
Themes: Expose hard coded colors from layouts (android_packages_apps_Trebuchet)
pm: Add persist property to enable lazy dexopt (android_frameworks_base)
telephony: Make sure to check whether application info is null. (android_frameworks_opt_telephony)
Themes: Expose hard coded colors and styles from layouts (android_packages_apps_Browser)
Keyguard: set separator for multi-sim CarrierText (android_frameworks_base)
Snap: Add missing ISO350 to ISO arrays (android_packages_apps_Snap)
telephony: update tests for disableCarrierAppsUntilPrivileged API change (android_frameworks_opt_telephony)
gps: Simplify guard makefile (android_hardware_qcom_gps)
Messaging: Implement option for swipe to delete. (android_packages_apps_Messaging)
Revert "charger_mode: Set font as 'log'" (android_system_core)
Fix mounting ext4 adopted storage (android_system_vold)
SnapdragonCamera: Fix overly-aggressive auto rotation (android_packages_apps_Snap)
SnapdragonCamera: Remove 'off' option for antibanding (android_packages_apps_Snap)
SnapdragonCamera: Clarify antibanding settings (android_packages_apps_Snap)
SnapdragonCamera: Add option to control antibanding in camcorder (android_packages_apps_Snap)
charger_mode: Set font as 'log' (android_system_core)
Improve Recents-View (android_frameworks_base)
Snap: Enlarge the saving queue size to 60M (android_packages_apps_Snap)
SystemUI: Fix copy-pasta of battery saver tile (android_frameworks_base)
libstagefright:Fix random memcmp crash while accessing output format. (android_frameworks_av)
AudioMixer: delete reformatBuffer provider in proper order (android_frameworks_av)
StagefrightMetadataRetriever: correct the status flag (android_frameworks_av)
ACodec: update native window crop rectangle (android_frameworks_av)
nuplayer: looping playback only if it was running (android_frameworks_av)
audio: Update anchor time for offload playback post resume (android_frameworks_av)
stagefright-plugins: Skip stream with jpeg tag (android_external_stagefright-plugins)
==================== 01-18-2016 ==================== * device/samsung/hltespr/ c41b60b hltespr: Set CDMA subscription to NV * frameworks/base/ 8f2df3d FWB: QS shade transparency (1/2) bb64dd5 Revert "Notifications: Custom colors, (1/2):" c8a3eca base: correctly save app notification config 2426237 SystemUI: Add battery saver tile (1/2) 15b0ebf SystemUI: Add heads up tile (1/2) e767bd0 Themes: Call recreateTheme when theme changed 8aa54e4 SysUI: Fix keyguard wallpaper not updating 02fd8b0 SysUI: Pass themed resources on to NavBarEditor 3a77bd4 Themes: Fix applying theme for notifications * kernel/samsung/hlte/ 9c2b357 Build v1.58 e985098 qcom: rpm-smd: Remove rpm workqueue initialization ad95af3 rpm-smd: Optimize smd data read 21e75f7 BACKPORT: arm: don't open-code ptrace_report_syscall() (part deux) e699027 UPSTREAM: arm: don't open-code ptrace_report_syscall() a5d85d4 msm_rmnet_bam: Remove watchdog_timeo 4a2eac0 msm_rmnet_bam: Add support for IOCTL RMNET_IOCTL_DEREGISTER_DEV 1d88d20 msm_rmnet_bam: Use the correct netif_rx api ed250cd xt_qtaguid: fix a race condition in if_tag_stat_update a2faaee nf: xt_qtaguid: fix handling for cases where tunnels are used. a375208 Revert "tick-sched: recalculate sleep length each time it is requested" 99bc30b sched: LOAD_FREQ (4*HZ+61) avoids loadavg Moire. 7e618c3 jiffies conversions: Use compile time constants when possible ed678a0 futex: Fix argument handling in futex_lock_pi() calls d8cdb11 futex: Ensure get_futex_key_refs() always implies a barrier a697a7f mm/ksm.c: use new hashtable implementation dca9b57 block,elevator: use new hashtable implementation 6afbc60 cgroup: use new hashtable implementation 6976757 futexes: Increase hash table size for better performance 5dea217 ARM: enable neon-vfpv4 support 56cc3db ARM: vfp: hardfloat 4319f4e ARM: make kernel oops easier to read 84285e2 lib/int_sqrt.c: optimize square root algorithm f5d21dc Remove '+' symbol from kernel version string 24e959b crypto: arm/aes update NEON AES module to latest OpenSSL version * packages/apps/Settings/ ac16dc2 Build V3.0 d9ba16e Settings: QS shade transparency (2/2) cf8ade6 Notification drawer: Custom clear all icon color, (2/2): 5f5f02e Revert "Notifications: Custom colors, (2/2):" e87ab5b Allow launching notification manager settings externally * packages/providers/ThemesProvider/ 5756a99 Fix blank WiFi and signal icon previews * vendor/cmsdk/ 0295218 Merge branch 'cm-13.0' of github.com:CyanogenMod/cm_platform_sdk into cm-13.0 5400b2f cmsdk: Add battery saver tile (2/2) 55cb123 cmsdk: Add heads up tile (2/2)
==================== 01-17-2016 ==================== * kernel/samsung/hlte/ 033090f smpboot: Add missing get_online_cpus() in smpboot_register_percpu_thread() 7af454c Build v1.57 b5b3164 ARM: dma-mapping: Always pass proper prot flags to iommu_map() 4b2e804 ARM: dma-mapping: convert DMA direction into IOMMU protection attributes a02f474 dma-mapping: Add dma_remap functions a19b222 arch: mm: do not invoke OOM killer on kernel fault OOM 345aaf8 ARM: cleanup gate_vma initializationALL CHANGES FROM CYNOGENMOD NIGHTLYS ARE INCLUDED!
Download:
Link deleted
Waiting 30 minutes on starting apps..anyfix?
So after using it for a few days in v2.9, everything works okay for me.
1. Battery drain for me if I use Chrome for like more than an hour.
2. And sometimes Chrome force close after an hour used just to read my novel.
3. Watching Youtube and Twitch doesnt drain but make the device overheated.
4. Oh yeah and don't install any Theme, just install stock one cause it makes everything force close.
5. Clash of Clans is playable and doesn't lag for me.
6. Wi Fi is okay for me eventhough the signal bar is 1.
And now downloading v3.0, Thanks @Trafalgar Square
---------- Post added at 07:54 PM ---------- Previous post was at 07:34 PM ----------
examiner said:
Waiting 30 minutes on starting apps..anyfix?
Click to expand...
Click to collapse
What version?
Have you tried restarting your device after booting for the first time, happen to me with MX player with no video found until rebooted.

Categories

Resources