[DEV][MaclawStudio] 3.0.101 kernel for Xperia Sola - Sony Xperia P, U, Sola, Go

Hello!
This is development thread of 3.0.101 kernel for Xperia Sola.
Latest release: building.
Credits:
Macław
marcin1147
Gava97
munjeni
other guys, who contributed to kernel when it was 3.0.8
If you appreciate our work, please, use thanks button or consider donating to me

Sources are available at:
http://opensource.maclaw.pl/ (direct link)
Kernel haven't been tested on Xperia Sola yet. If you want to compile it, you're using it on your own!
Binary to download is not available yet.

More info about our project: http://maclaw.pl/2013/11/17/xperia-u-kernel-development/
My site: http://maclaw.pl/

Work this Kernel with jb .100?
vom Xperia Sola 4.1.2

shadowfler said:
Work this Kernel with jb .100?
vom Xperia Sola 4.1.2
Click to expand...
Click to collapse
r u blind?
"Kernel haven't been tested on Xperia Sola yet"
"Latest release: building."
"This is development thread"

MEHRDAD595 said:
r u blind?
"Kernel haven't been tested on Xperia Sola yet"
"Latest release: building."
"This is development thread"
Click to expand...
Click to collapse
sorry it got skipped

Dzieki za wsparcie dla lekko wysluzonej juz Soli, wyczekuję dalszych postępów Will this kernel work on CM?
Tapatalk

wohow!! then i can compile it by myself and try it whether it's working or not.

Sry for my question is. This source can work with kitkat so we can compile and port kitkat to our sola

great work
wow this is awsome so the dev can make cm11 for out device

Ok. now the source code of kernal is here.
Waiting patiently for Munjeni to port it on Xperia Sola :highfive:

kacangajaib said:
Ok. now the source code of kernal is here.
Waiting patiently for Munjeni to port it on Xperia Sola :highfive:
Click to expand...
Click to collapse
then the kernel will try to solve those problems that are on the Xsole? Munjeni big boys are waiting for Xsole
thanks

itachilinux said:
wohow!! then i can compile it by myself and try it whether it's working or not.
Click to expand...
Click to collapse
If its compiled and boots on 4.4....please pm me the link....I will try it out too

Kernel
dwaipayanray95 said:
If its compiled and boots on 4.4....please pm me the link....I will try it out too
Click to expand...
Click to collapse
Why not share here then? I'm willing to try aswell...

according to maclaw's web site, WIFI got fixed on xperia U, is this means that we can also fix ours ??

but there is someone who is compiling a kernel for sola???

[email protected]:~/android/kernel$ make ARCH=arm CROSS_COMPILE=/home/garynych/linaro/android-toolchain-eabi/bin/arm-eabi- clean
CLEAN .
CLEAN usr
CLEAN .tmp_versions
[email protected]:~/android/kernel$ make ARCH=arm CROSS_COMPILE=/home/garynych/linaro/android-toolchain-eabi/bin/arm-eabi- menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
scripts/kconfig/lxdialog/textbox.c: В функции «print_line»:
scripts/kconfig/lxdialog/textbox.c:323:9: предупреждение: variable «x» set but not used [-Wunused-but-set-variable]
scripts/kconfig/lxdialog/textbox.c:323:6: предупреждение: variable «y» set but not used [-Wunused-but-set-variable]
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/kernel$ make ARCH=arm CROSS_COMPILE=/home/garynych/linaro/android-toolchain-eabi/bin/arm-eabi-
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' не требует обновления.
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/bin2c
HOSTCC scripts/recordmcount
CC init/main.o
CHK include/generated/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
CC init/boottime.o
LD init/built-in.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/vfp/vfpmodule.o
arch/arm/vfp/vfpmodule.c: In function 'vfp_init':
arch/arm/vfp/vfpmodule.c:595:18: error: 'HWCAP_VFPD32' undeclared (first use in this function)
elf_hwcap |= HWCAP_VFPD32;
^
arch/arm/vfp/vfpmodule.c:595:18: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [arch/arm/vfp/vfpmodule.o] Ошибка 1
make: *** [arch/arm/vfp] Ошибка 2
[email protected]:~/android/kernel$
that it does not come out, anyone have thought ...?
PS if i`m make from 3.0.8 ,all ok...tell me what the problem is and how to fix
try build with GCC 4.8 2013-10 & xperiasola_defconfig
UPD ok... another problem
CC arch/arm/mm/cache-l2x0.o
arch/arm/mm/cache-l2x0.c:323:20: warning: 'l2x0_unlock' defined but not used [-Wunused-function]
static void __init l2x0_unlock(__u32 cache_id)
^
LD arch/arm/mm/built-in.o
CC arch/arm/common/gic.o
CC arch/arm/common/boottime.o
LD arch/arm/common/built-in.o
CC arch/arm/mach-ux500/clock.o
CC arch/arm/mach-ux500/cpu.o
In file included from /home/garynych/android/kernel/arch/arm/include/asm/byteorder.h:21:0,
from include/asm-generic/bitops/le.h:5,
from /home/garynych/android/kernel/arch/arm/include/asm/bitops.h:308,
from include/linux/bitops.h:22,
from include/linux/thread_info.h:52,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/kobject.h:23,
from include/linux/device.h:17,
from include/linux/platform_device.h:14,
from arch/arm/mach-ux500/cpu.c:8:
arch/arm/mach-ux500/cpu.c: In function 'ux500_init_devices':
arch/arm/mach-ux500/cpu.c:51:32: error: 'L2X0_LOCKDOWN_WAY_D' undeclared (first use in this function)
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
include/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:6: note: in expansion of macro '__raw_readl'
__raw_readl(__mem_pci(c))); __v; })
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:18: note: in expansion of macro '__mem_pci'
__raw_readl(__mem_pci(c))); __v; })
^
arch/arm/mach-ux500/cpu.c:51:6: note: in expansion of macro 'readl_relaxed'
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
arch/arm/mach-ux500/cpu.c:51:32: note: each undeclared identifier is reported only once for each function it appears in
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
include/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:6: note: in expansion of macro '__raw_readl'
__raw_readl(__mem_pci(c))); __v; })
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:18: note: in expansion of macro '__mem_pci'
__raw_readl(__mem_pci(c))); __v; })
^
arch/arm/mach-ux500/cpu.c:51:6: note: in expansion of macro 'readl_relaxed'
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_D) & 0xFF)
^
arch/arm/mach-ux500/cpu.c:54:32: error: 'L2X0_LOCKDOWN_WAY_I' undeclared (first use in this function)
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_I) & 0xFF)
^
include/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:6: note: in expansion of macro '__raw_readl'
__raw_readl(__mem_pci(c))); __v; })
^
/home/garynych/android/kernel/arch/arm/include/asm/io.h:202:18: note: in expansion of macro '__mem_pci'
__raw_readl(__mem_pci(c))); __v; })
^
arch/arm/mach-ux500/cpu.c:54:6: note: in expansion of macro 'readl_relaxed'
if (readl_relaxed(l2x0_base + L2X0_LOCKDOWN_WAY_I) & 0xFF)
^
make[1]: *** [arch/arm/mach-ux500/cpu.o] Ошибка 1
make: *** [arch/arm/mach-ux500] Ошибка 2
[email protected]:~/android/kernel$

Hoping that the kernel gets its first release for Sola next, since its out for XU now with a fix for Wifi.

Dev ur development for S3 mini was amazing,then why can't u do that same for Sony novathor devices?we are waiting....
Sent from my HTC Desire C using xda app-developers app

@New Macław
We really need help in OMX please help us and we will appreciate it and give you proper credits
so can you help us fix it

Related

Kernel Compiling Error

I'm trying to compile a kernel for my Neo V.
But it stops at error.
Error:
Code:
ARCH=arm CROSS_COMPILE=/host/arm/bin/arm-none-linux-gnueabi- make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562:12: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/linux/mempolicy.h:62:0,
from init/main.c:52:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
Error at Last line.
Why this happening?
I followed the Sony Ericsson Tutorial.
svprm said:
I'm trying to compile a kernel for my Neo V.
But it stops at error.
Error:
Code:
ARCH=arm CROSS_COMPILE=/host/arm/bin/arm-none-linux-gnueabi- make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562:12: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from include/linux/mempolicy.h:62:0,
from init/main.c:52:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: error: variable 'c' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
Error at Last line.
Why this happening?
I followed the Sony Ericsson Tutorial.
Click to expand...
Click to collapse
gcc and make need to be a certain version. What OS are you running?
Ubuntu 11.10
Sent from my MT11i using XDA App
I met the same issue in the few days ago.
But these issues had been resolved as follow solution:
1. Remove the -Wall argument in the Kernel/ Makefile
2. Copy the cc1 from eabi tool chain sub folder libexec/gcc/arm-none-eabi/4.6.1
(OR, you can create the soft link from libexec/gcc/arm-none-eabi/4.6.1 to current working directory)
Kernel Compilation error.
Hi All,
I have an LG O2X, and trying to compile stock kernel.
But while compiling i am facing the following error.
[email protected]:/home/kartik/Desktop/DriodKernel/kernel# make ARCH=arm CROSS_COMPILE=/home/kartik/Desktop/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
<command-line>: error: macro names must be identifiers
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
PLzzz help.

[Q] Can anyone help me to Building Kernel[DEV]

Hi,
I am trying To build a Custom Kernel But seems there many errors found, specially cant able to find Lianaro toolchain for cortex a7.
cortex a15 giving some error ,like this " you choose the correct path/some time different after figured the path". so if possible link me to the cortex a7 toolchain and help needed as necessary .
@Shivam Kuchhal , @cybojenix , @newhor1z0n , @xperiafan13 , @Falcon G @varun.chitre15
{
"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"
}
Code:
[email protected]:~$ cd android
[email protected]:~/android$ cd kernel
[email protected]:~/android/kernel$ export ARCH=arm
[email protected]:~/android/kernel$ export CROSS_COMPILE=~/android/toolchains/cortex15/bin/arm-eabi-
[email protected]:~/android/kernel$ make msm8610_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
[email protected]:~/android/kernel$ make -j1
scripts/kconfig/conf --silentoldconfig Kconfig
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
/home/lino/android/toolchains/cortex15/bin/arm-eabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /home/lino/android/toolchains/cortex15/bin/arm-eabi-gcc -print-file-name=include [Errno 8] Exec format error -I/home/lino/android/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/lino/android/kernel/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c [Errno 8] Exec format error
make[1]: *** [kernel/bounds.s] Error 8
make: *** [prepare0] Error 2
EDIT:- tried with other toolchains, seems same error, so i think i am missing something. please figure it out
Regards,
Rajit Saha
No one ..
As expected :thumbup:
Sent from my XT1022 using XDA Free mobile app
I am too getting same error
TheStrix said:
I am too getting same error
Click to expand...
Click to collapse
Hmm seems no one cares for us
EDit:- 1st issue fixed.. Use 64bit ubuntu
Now getting this error
Code:
[email protected]:~$ cd android
[email protected]:~/android$ make clean
make: *** No rule to make target `clean'. Stop.
[email protected]:~/android$ cd kernel
[email protected]:~/android/kernel$ make clean
CLEAN .
CLEAN kernel
CLEAN security/selinux
CLEAN usr
CLEAN .tmp_versions
[email protected]:~/android/kernel$ export ARCH=arm
[email protected]:~/android/kernel$ export CROSS_COMPILE=~/android/toolchains/bin/arm-eabi-
[email protected]:~/android/kernel$ make -j1
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/util.o
HOSTLD scripts/dtc/dtc
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/genksyms/parse.tab.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
CHK include/generated/compile.h
CC init/version.o
CC init/do_mounts.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/vfp/vfpmodule.o
AS arch/arm/vfp/entry.o
AS arch/arm/vfp/vfphw.o
CC arch/arm/vfp/vfpsingle.o
CC arch/arm/vfp/vfpdouble.o
LD arch/arm/vfp/vfp.o
LD arch/arm/vfp/built-in.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
CC arch/arm/kernel/opcodes.o
CC arch/arm/kernel/process.o
CC arch/arm/kernel/ptrace.o
CC arch/arm/kernel/return_address.o
arch/arm/kernel/return_address.c:62:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp]
#warning "TODO: return_address should use unwind tables"
^
CC arch/arm/kernel/sched_clock.o
CC arch/arm/kernel/setup.o
CC arch/arm/kernel/signal.o
CC arch/arm/kernel/stacktrace.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
CC arch/arm/kernel/cpuidle.o
CC arch/arm/kernel/armksyms.o
CC arch/arm/kernel/module.o
AS arch/arm/kernel/sleep.o
CC arch/arm/kernel/suspend.o
CC arch/arm/kernel/smp.o
CC arch/arm/kernel/smp_tlb.o
CC arch/arm/kernel/smp_scu.o
CC arch/arm/kernel/arch_timer.o
CC arch/arm/kernel/kprobes.o
CC arch/arm/kernel/kprobes-common.o
CC arch/arm/kernel/patch.o
CC arch/arm/kernel/kprobes-arm.o
CC arch/arm/kernel/unwind.o
CC arch/arm/kernel/devtree.o
CC arch/arm/kernel/swp_emulate.o
CC arch/arm/kernel/hw_breakpoint.o
CC arch/arm/kernel/pmu.o
CC arch/arm/kernel/perf_event.o
CC arch/arm/kernel/topology.o
CC arch/arm/kernel/io.o
LD arch/arm/kernel/built-in.o
AS arch/arm/kernel/head.o
CC arch/arm/kernel/init_task.o
LDS arch/arm/kernel/vmlinux.lds
CC arch/arm/mm/dma-mapping.o
CC arch/arm/mm/extable.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
CC arch/arm/mm/iomap.o
CC arch/arm/mm/fault-armv.o
CC arch/arm/mm/flush.o
CC arch/arm/mm/idmap.o
CC arch/arm/mm/ioremap.o
CC arch/arm/mm/mmap.o
CC arch/arm/mm/pgd.o
CC arch/arm/mm/mmu.o
CC arch/arm/mm/vmregion.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
AS arch/arm/mm/abort-ev7.o
AS arch/arm/mm/pabort-v7.o
AS arch/arm/mm/cache-v7.o
CC arch/arm/mm/copypage-v6.o
CC arch/arm/mm/context.o
AS arch/arm/mm/tlb-v7.o
AS arch/arm/mm/proc-v7.o
LD arch/arm/mm/built-in.o
CC arch/arm/common/gic.o
CC arch/arm/common/cpaccess.o
LD arch/arm/common/built-in.o
LD arch/arm/net/built-in.o
CC arch/arm/mach-msm/io.o
CC arch/arm/mach-msm/dma.o
CC arch/arm/mach-msm/memory.o
CC arch/arm/mach-msm/clock.o
CC arch/arm/mach-msm/clock-voter.o
CC arch/arm/mach-msm/clock-dummy.o
CC arch/arm/mach-msm/clock-generic.o
CC arch/arm/mach-msm/modem_notifier.o
CC arch/arm/mach-msm/board-dt.o
CC arch/arm/mach-msm/acpuclock.o
CC arch/arm/mach-msm/clock-a7.o
CC arch/arm/mach-msm/perf_trace_counters.o
AS arch/arm/mach-msm/headsmp.o
CC arch/arm/mach-msm/platsmp.o
CC arch/arm/mach-msm/hotplug.o
AS arch/arm/mach-msm/idle-v7.o
CC arch/arm/mach-msm/smd.o
CC arch/arm/mach-msm/smd_debug.o
CC arch/arm/mach-msm/remote_spinlock.o
/tmp/ccCzaDZp.s: Assembler messages:
/tmp/ccCzaDZp.s:169: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/ccCzaDZp.s:196: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
CC arch/arm/mach-msm/smd_private.o
CC arch/arm/mach-msm/smem.o
CC arch/arm/mach-msm/smd_init_dt.o
arch/arm/mach-msm/smd_init_dt.c:24:25: fatal error: smd_private.h: No such file or directory
#include <smd_private.h>
^
compilation terminated.
make[1]: *** [arch/arm/mach-msm/smd_init_dt.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
[email protected]:~/android/kernel$
Edit 2:-
Code:
CC drivers/char/adsprpc.o
LD drivers/char/built-in.o
CC [M] drivers/char/rdbg.o
CC drivers/clk/clkdev.o
LD drivers/clk/built-in.o
LD drivers/clocksource/built-in.o
CC drivers/cpufreq/cpufreq.o
CC drivers/cpufreq/cpu-boost.o
CC drivers/cpufreq/cpufreq_stats.o
CC drivers/cpufreq/cpufreq_performance.o
CC drivers/cpufreq/cpufreq_powersave.o
CC drivers/cpufreq/cpufreq_userspace.o
CC drivers/cpufreq/cpufreq_ondemand.o
CC drivers/cpufreq/cpufreq_conservative.o
CC drivers/cpufreq/cpufreq_interactive.o
drivers/cpufreq/cpufreq_interactive.c: In function ‘show_target_loads’:
drivers/cpufreq/cpufreq_interactive.c:813:6: warning: operation on ‘ret’ may be undefined [-Wsequence-point]
error, forbidden warning: cpufreq_interactive.c:813
make[2]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
Fixed
finally able to make a zImage..
so I put it into boot.img but after flashing Bootup failed
Fastboot reason: Fall-through from normal boot mode. did I missed anything??
plaese help @Shivam Kuchhal , @cybojenix , @newhor1z0n , @xperiafan13 , @Falcon G @savoca @varun.chitre15
rajit said:
finally able to make a zImage..
so I put it into boot.img but after flashing Bootup failed
Fastboot reason: Fall-through from normal boot mode. did I missed anything??
plaese help @Shivam Kuchhal , @cybojenix , @newhor1z0n , @xperiafan13 , @Falcon G @varun.chitre15
Click to expand...
Click to collapse
Wrong packaging/ramdisk it seems.
Shivam Kuchhal said:
Wrong packaging/ramdisk it seems.
Click to expand...
Click to collapse
can you link me any helpful post?
i am using cygwin kitchen to extract and repack kernel. and the wlan module seems huge size.almost 36mb so can can you help me in that? :silly:
rajit said:
can you link me any helpful post?
i am using cygwin kitchen to extract and repack kernel. and the wlan module seems huge size.almost 36mb so can can you help me in that? :silly:
Click to expand...
Click to collapse
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-gcc.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-gcc4.7.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-linaro4.8.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-linaro4.9.sh
These are my build scripts, you can modify any of them to work for you. You just need to change paths for defconfig, kernel directory and toolchain etc. Also change path for packing tools too and put ramdisk folder in kernel directory. It will take a bit of a time to understand but its worth it.
Shivam Kuchhal said:
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-gcc.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-gcc4.7.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-linaro4.8.sh
https://github.com/shivamk11/android_kernel_motorola_stock/blob/condor/build-linaro4.9.sh
These are my build scripts, you can modify any of them to work for you. You just need to change paths for defconfig, kernel directory and toolchain etc. Also change path for packing tools too and put ramdisk folder in kernel directory. It will take a bit of a time to understand but its worth it.
Click to expand...
Click to collapse
Thnxz buddy,, actually i am total noob in kernel dev...... can you please elaborate ? i mean what i have to do after getting zimage .. i can cross compile with toolchians and all the path ? and in the config folder there two msm8610 config.. 1st. msm8610_defconfig 2nd msm8610-perf_defconfig .. which one should i choose? :silly:
Click 'Dev Resources' to get an idea of how newer qcom kernels are made.
http://forum.xda-developers.com/one...ent/kernel-furnace-1-0-0-oneplus-one-t2817651
Correct offsets/values can be found by digging around github.
savoca said:
Click 'Dev Resources' to get an idea of how newer qcom kernels are made.
http://forum.xda-developers.com/one...ent/kernel-furnace-1-0-0-oneplus-one-t2817651
Correct offsets/values can be found by digging around github.
Click to expand...
Click to collapse
unpacked boot.img with this
To unpack:
Code:
mkdir output
./unpackbootimg -i boot.img -o output
Click to expand...
Click to collapse
then changed boot.img-zImage
and repack it with
Code:
./mkbootimg --kernel output/boot.img-zImage --ramdisk output/boot.img-ramdisk.[COLOR="Red"]gz[/COLOR] --cmdline "console=ttyHSL0,115200,n8 androidboot.hardware=bacon user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3" --base 0x00000000 --pagesize 2048 --ramdisk_offset 0x02000000 --tags_offset 0x01e00000 --dt output/boot.img-dt -o boot.img
Click to expand...
Click to collapse
Result:- stuck on moto LOGO :silly:
havenot pushed the Module
I said correct offsets and values can be found on github. Obviously a 1+1 kernel won't boot on condor.
Code:
[email protected]:~/android/kernel$ ./build-linaro4.9.sh
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
arch/arm/configs/phantom_defconfig:117:warning: override: reassigning to symbol XFRM_USER
arch/arm/configs/phantom_defconfig:278:warning: override: reassigning to symbol PPP
arch/arm/configs/phantom_defconfig:279:warning: override: reassigning to symbol PPP_BSDCOMP
arch/arm/configs/phantom_defconfig:280:warning: override: reassigning to symbol PPP_DEFLATE
arch/arm/configs/phantom_defconfig:282:warning: override: reassigning to symbol PPP_ASYNC
arch/arm/configs/phantom_defconfig:284:warning: override: reassigning to symbol PPPOLAC
arch/arm/configs/phantom_defconfig:285:warning: override: reassigning to symbol PPPOPNS
arch/arm/configs/phantom_defconfig:286:warning: override: reassigning to symbol PPP_MPPE
arch/arm/configs/phantom_defconfig:446:warning: override: reassigning to symbol SCSI
arch/arm/configs/phantom_defconfig:447:warning: override: reassigning to symbol SCSI_TGT
arch/arm/configs/phantom_defconfig:448:warning: override: reassigning to symbol BLK_DEV_SD
arch/arm/configs/phantom_defconfig:449:warning: override: reassigning to symbol CHR_DEV_SG
arch/arm/configs/phantom_defconfig:450:warning: override: reassigning to symbol CHR_DEV_SCH
arch/arm/configs/phantom_defconfig:451:warning: override: reassigning to symbol SCSI_MULTI_LUN
arch/arm/configs/phantom_defconfig:452:warning: override: reassigning to symbol SCSI_CONSTANTS
arch/arm/configs/phantom_defconfig:453:warning: override: reassigning to symbol SCSI_SCAN_ASYNC
arch/arm/configs/phantom_defconfig:469:warning: override: reassigning to symbol USB_USBNET
arch/arm/configs/phantom_defconfig:567:warning: override: reassigning to symbol SECURITY
arch/arm/configs/phantom_defconfig:568:warning: override: reassigning to symbol AUDIT
arch/arm/configs/phantom_defconfig:569:warning: override: reassigning to symbol SECURITY_NETWORK
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
Building modules, stage 2.
MODPOST 10 modules
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
CAT arch/arm/boot/zImage-dtb
Kernel: arch/arm/boot/zImage-dtb is ready
Copying modules
rm: cannot remove ‘/home/leno/android/modules/*’: No such file or directory
Stripping modules for size
./build-linaro4.9.sh: line 26: /home/leno/scripts/dtbTool: No such file or directory
error: could not load device tree image 'dt.img'
Build completed in 0 minute(s) and 21 seconds.
HAve a look @Shivam Kuchhal @savoca
rajit said:
Code:
[email protected]:~/android/kernel$ ./build-linaro4.9.sh
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
arch/arm/configs/phantom_defconfig:117:warning: override: reassigning to symbol XFRM_USER
arch/arm/configs/phantom_defconfig:278:warning: override: reassigning to symbol PPP
arch/arm/configs/phantom_defconfig:279:warning: override: reassigning to symbol PPP_BSDCOMP
arch/arm/configs/phantom_defconfig:280:warning: override: reassigning to symbol PPP_DEFLATE
arch/arm/configs/phantom_defconfig:282:warning: override: reassigning to symbol PPP_ASYNC
arch/arm/configs/phantom_defconfig:284:warning: override: reassigning to symbol PPPOLAC
arch/arm/configs/phantom_defconfig:285:warning: override: reassigning to symbol PPPOPNS
arch/arm/configs/phantom_defconfig:286:warning: override: reassigning to symbol PPP_MPPE
arch/arm/configs/phantom_defconfig:446:warning: override: reassigning to symbol SCSI
arch/arm/configs/phantom_defconfig:447:warning: override: reassigning to symbol SCSI_TGT
arch/arm/configs/phantom_defconfig:448:warning: override: reassigning to symbol BLK_DEV_SD
arch/arm/configs/phantom_defconfig:449:warning: override: reassigning to symbol CHR_DEV_SG
arch/arm/configs/phantom_defconfig:450:warning: override: reassigning to symbol CHR_DEV_SCH
arch/arm/configs/phantom_defconfig:451:warning: override: reassigning to symbol SCSI_MULTI_LUN
arch/arm/configs/phantom_defconfig:452:warning: override: reassigning to symbol SCSI_CONSTANTS
arch/arm/configs/phantom_defconfig:453:warning: override: reassigning to symbol SCSI_SCAN_ASYNC
arch/arm/configs/phantom_defconfig:469:warning: override: reassigning to symbol USB_USBNET
arch/arm/configs/phantom_defconfig:567:warning: override: reassigning to symbol SECURITY
arch/arm/configs/phantom_defconfig:568:warning: override: reassigning to symbol AUDIT
arch/arm/configs/phantom_defconfig:569:warning: override: reassigning to symbol SECURITY_NETWORK
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: Nothing to be done for `arch/arm/boot/dtbs'.
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
Building modules, stage 2.
MODPOST 10 modules
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
CAT arch/arm/boot/zImage-dtb
Kernel: arch/arm/boot/zImage-dtb is ready
Copying modules
rm: cannot remove ‘/home/leno/android/modules/*’: No such file or directory
Stripping modules for size
./build-linaro4.9.sh: line 26: /home/leno/scripts/dtbTool: No such file or directory
error: could not load device tree image 'dt.img'
Build completed in 0 minute(s) and 21 seconds.
HAve a look @Shivam Kuchhal @savoca
Click to expand...
Click to collapse
./build-linaro4.9.sh: line 26: /home/leno/scripts/dtbTool: No such file or directory
Click to expand...
Click to collapse
You need dtbTool.
http://savoca.codefi.re/dev-resources/x86/
savoca said:
You need dtbTool.
http://savoca.codefi.re/dev-resources/x86/
Click to expand...
Click to collapse
I have checked that folder .. dtbTool is there so
Do you have gcc-multilib installed?
savoca said:
Do you have gcc-multilib installed?
Click to expand...
Click to collapse
this one na ?
Code:
sudo apt-get install gcc-4.3-multilib g++-4.3-multilib
error shows
Code:
[email protected]:~$ sudo apt-get install gcc-4.3-multilib g++-4.3-multilib
[sudo] password for leno:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-4.3-multilib
E: Couldn't find any package by regex 'gcc-4.3-multilib'
E: Unable to locate package g++-4.3-multilib
E: Couldn't find any package by regex 'g++-4.3-multilib'
[email protected]:~$
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Here is my build script , each and everything in right folder. & also I have tried to change the location of dtbTool but the same , i think i should give up
here is my build script
Code:
#!/bin/bash
TOOLCHAIN="/home/leno/android/toolchains/bin/arm-eabi"
MODULES_DIR="/home/leno/android/modules"
ZIMAGE="/home/leno/android/kernel/arch/arm/boot/zImage"
KERNEL_DIR="/home/leno/android/kernel"
MKBOOTIMG="/home/leno/boot-tools-falcon/tools/mkbootimg"
MKBOOTFS="/home/leno/boot-tools-falcon/tools/mkbootfs"
DTBTOOL="/home/leno/boot-tools-falcon/tools/dtbTool"
DTBTOOLCM="/home/leno/boot-tools-falcon/tools/dtbToolCM"
BUILD_START=$(date +"%s")
if [ -a $ZIMAGE ];
then
rm $ZIMAGE
rm $MODULES_DIR/*
fi
make ARCH=arm CROSS_COMPILE=$TOOLCHAIN- msm8610_defconfig
make ARCH=arm CROSS_COMPILE=$TOOLCHAIN- -j8
if [ -a $ZIMAGE ];
then
echo "Copying modules"
rm $MODULES_DIR/*
find . -name '*.ko' -exec cp {} $MODULES_DIR/ \;
cd $MODULES_DIR
echo "Stripping modules for size"
$TOOLCHAIN-strip --strip-unneeded *.ko
cd $KERNEL_DIR
$DTBTOOL -o dt.img -s 2048 -p scripts/dtc/ arch/arm/boot/
$MKBOOTFS ramdisk/ > $KERNEL_DIR/ramdisk.cpio
cat $KERNEL_DIR/ramdisk.cpio | gzip > $KERNEL_DIR/root.fs
$MKBOOTIMG --kernel $ZIMAGE --ramdisk $KERNEL_DIR/root.fs --pagesize 2048 --base 0x10000000 --cmdline 'console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 vmalloc=400M utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags' --dt dt.img -o $KERNEL_DIR/boot.img
BUILD_END=$(date +"%s")
DIFF=$(($BUILD_END - $BUILD_START))
echo "Build completed in $(($DIFF / 60)) minute(s) and $(($DIFF % 60)) seconds."
else
echo "Compilation failed! Fix the errors!"
fi
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Finally got dt.img and zImage .. now??
@savoca
unpack code
Code:
mkdir output
./unpackbootimg -i boot.img -o output
Click to expand...
Click to collapse
repack code
Code:
./mkbootimg --kernel output/boot.img-zImage --ramdisk output/boot.img-ramdisk.gz --dt output/dt.img --cmdline "console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags vmalloc=400M" --base 0x00000000 --pagesize 2048 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --dt output/boot.img-dt -o leno_boot.img
Click to expand...
Click to collapse
Click to expand...
Click to collapse
correct me please and also tell me how to repack
its pretty Strange that the kernel still nowt booting .. no modification yet .. anyhelp ? devices boot loop after flashing kernel
savoca said:
Do you have gcc-multilib installed?
Click to expand...
Click to collapse
I tried every possible way.. but the kernel never get booted.. no modification simple as stock. tried with your new kernel flasher. but still no help .

[Q] Another compiling question - kernels

It seems like I'm stuck in a different difficult situation now. I've been reading through 11 how-to guides on building/compiling a kernel, none of them are the same, but similar--some are missing steps, some have additional steps, some have modified steps, some do things in a different order. Not a single one gets me from start to finish, but picking parts from various guides seems to help me make progress, but I'm still stuck. I'm not a linux guy, I just get by with following directions and a few things I remember from my old job.
My goal is not to be told how to tweak things or change things or add 50 new governors. All I want is some help to successfully make a plain, boring, unmodified, OEM or Cyanogenmod kernel. I'll be happy to flash what I already have on there, the source from Cyanogenmod that I built from, and make no changes to my phone. I just want to be able to build it and flash it without my phone bricking so that I know I'm doing things correctly.
So, I need help at a 10 year old's level. I need to know the steps where I'm unable to read between the lines for things such as "if you make changes to .bashrc, they won't actually take effect until you
Code:
source .bashrc
, which I eventually remembered, fortunately, from the little linux I know. It's those "on Tuesdays, you have to ____ for android builds to work" presumed-knowledge things that are never mentioned in even the "noob-friendly" guides. That's the stuff I need help with, so that I can compile a kernel. Success with the Cyanogenmod build came primarily from the switch to dual-boot, because I may have actually gotten things correct after frankenstein rigging multiple guides/documentation, but VirtualBox completely froze at various hours into the compiling, so I never really knew.
I have the huge NDK source setup.
I have the huge kernel source from Samsung setup.
Everything has the highest level of permissions.
I've done ARCH=arm and export ARCH=arm, and the same for SUBARCH=arm
I've done the PATH stuff two ways for the toolchains, both in .bashrc and through the terminal
I've entered CROSS_COMPILE in two different ways
I've done about 8 or more different make commands (not including clean and mrproper)
I've moved the missing msm_rtb.h file from its other location, but stopped there because I don't want to cherry-pick things like I did with permissions (ended up chmod +777 -R because I got fed up with random permission denied errors)
Other things that I'm having a hard time remembering because I've been working on the kernel stuff for about five straight hours
I believe I'm supposed to only use jf_vzw_defconfig, but some guides mention additional defconfigs
One guide has a step that no others have, and that's the VARIANT_DEFCONFIG and VARIANT_SELINUX or whatever it is command...and it had two things listed for DEFCONFIG, so I got lost there as well
Here are the applicable, android contents of my .bashrc (if you read it and say to yourself "why did he..."--I had to because none of the guides worked for me and I had to follow step 1 from one guide C, step 2 from guide A, and so on):
Code:
# Android tools
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
export PATH=~/bin:$PATH
export PATH=$PATH:~/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/
PATH=$PATH:~/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export USE_CCACHE=1
Warning, this is long stuff from the terminal, but it's mostly repetitive (and is a snippet of things I just recently did). I tried different things from different guides in different orders because I can't seem to get any guide to get me to the finish line. If it looks like I did things in the wrong order or things I shouldn't have, it's for two reasons--one is that some guides have things way out of order from others and some have instructions that others don't. I figured if none work, I'll frankenstein the instructions like I had to for the Cyanogenmod build.
Code:
[email protected]:~/android/NC5/Kernel$ ./make_defconfig.sh
Need defconfig file(j1v-perf_defconfig)!
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
[email protected]:~/android/NC5/Kernel$ make maker.config
HOSTCC scripts/basic/fixdep
make[1]: *** No rule to make target `maker.config'. Stop.
make: *** [maker.config] Error 2
[email protected]:~/android/NC5/Kernel$ cd arch/arm/configs/
[email protected]:~/android/NC5/Kernel/arch/arm/configs$ make maker.defconfig
make: Nothing to be done for `maker.defconfig'.
[email protected]:~/android/NC5/Kernel/arch/arm/configs$ cd ..
[email protected]:~/android/NC5/Kernel/arch/arm$ cd ..
[email protected]:~/android/NC5/Kernel/arch$ cd ..
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
#
# using defaults found in /boot/config-3.16.0-34-generic
#
/boot/config-3.16.0-34-generic:1647:warning: symbol value 'm' invalid for MTD_CMDLINE_PARTS
/boot/config-3.16.0-34-generic:3531:warning: symbol value 'm' invalid for SPI_PXA2XX_PCI
/boot/config-3.16.0-34-generic:3545:warning: symbol value 'm' invalid for SPMI
/boot/config-3.16.0-34-generic:3657:warning: symbol value 'm' invalid for GPIO_UCB1400
/boot/config-3.16.0-34-generic:4118:warning: symbol value 'm' invalid for REGULATOR_88PM8607
/boot/config-3.16.0-34-generic:4177:warning: symbol value 'm' invalid for REGULATOR_TWL4030
/boot/config-3.16.0-34-generic:4404:warning: symbol value 'm' invalid for VIDEO_EM28XX_RC
/boot/config-3.16.0-34-generic:5185:warning: symbol value 'm' invalid for SND_HDA_CODEC_REALTEK
/boot/config-3.16.0-34-generic:5186:warning: symbol value 'm' invalid for SND_HDA_CODEC_ANALOG
/boot/config-3.16.0-34-generic:5187:warning: symbol value 'm' invalid for SND_HDA_CODEC_SIGMATEL
/boot/config-3.16.0-34-generic:5188:warning: symbol value 'm' invalid for SND_HDA_CODEC_VIA
/boot/config-3.16.0-34-generic:5189:warning: symbol value 'm' invalid for SND_HDA_CODEC_HDMI
/boot/config-3.16.0-34-generic:5191:warning: symbol value 'm' invalid for SND_HDA_CODEC_CIRRUS
/boot/config-3.16.0-34-generic:5192:warning: symbol value 'm' invalid for SND_HDA_CODEC_CONEXANT
/boot/config-3.16.0-34-generic:5193:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0110
/boot/config-3.16.0-34-generic:5194:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0132
/boot/config-3.16.0-34-generic:5196:warning: symbol value 'm' invalid for SND_HDA_CODEC_CMEDIA
/boot/config-3.16.0-34-generic:5197:warning: symbol value 'm' invalid for SND_HDA_CODEC_SI3054
/boot/config-3.16.0-34-generic:5198:warning: symbol value 'm' invalid for SND_HDA_GENERIC
/boot/config-3.16.0-34-generic:6098:warning: symbol value 'm' invalid for XEN_TMEM
/boot/config-3.16.0-34-generic:7067:warning: symbol value 'm' invalid for NFS_V3
/boot/config-3.16.0-34-generic:7069:warning: symbol value 'm' invalid for NFS_V4
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
#
# configuration written to .config
#
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/NC5/Kernel$ make -j5 ARCH=arm
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
Generating include/generated/mach-types.h
HOSTCC scripts/mod/mk_elfconfig
CC kernel/bounds.s
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/genksyms/lex.lex.o
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/kallsyms
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/jon8rfc/android/NC5/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/conmakehash
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/recordmcount
HOSTLD scripts/genksyms/genksyms
HOSTLD scripts/mod/modpost
[email protected]:~/android/NC5/Kernel$ chmod +777 -R android-ndk-r10d*
chmod: cannot access ‘android-ndk-r10d*’: No such file or directory
[email protected]:~/android/NC5/Kernel$ chmod +777 -R android-ndk-r10d/* -R
chmod: cannot access ‘android-ndk-r10d/*’: No such file or directory
[email protected]:~/android/NC5/Kernel$ cd ..
[email protected]:~/android/NC5$ chmod +777 -R Kernel/*
[email protected]:~/android/NC5$ chmod +777 -R Kernel*
[email protected]:~/android/NC5$ make clean
make: *** No rule to make target `clean'. Stop.
[email protected]:~/android/NC5$ cd Kernel/
[email protected]:~/android/NC5/Kernel$ make clean
CLEAN .
CLEAN .tmp_versions
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/genksyms
CLEAN scripts/kconfig
CLEAN scripts/mod
CLEAN scripts/selinux/genheaders
CLEAN scripts/selinux/mdp
CLEAN scripts
CLEAN include/config include/generated arch/arm/include/generated
CLEAN .config include/linux/version.h
[email protected]:~/android/NC5/Kernel$ make -j5 ARCH=arm
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ export CROSS_COMPILE=/home/jon8rfc/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-^C
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ export ARCH=arm
[email protected]:~/android/NC5/Kernel$ sudo make jf_vzw_defconfig
[sudo] password for jon8rfc:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ sudo make VARIANT_DEFCONFIG=jf_vzw_defconfig SELINUX_DEFCONFIG=selinux_defconfigscripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ make mrproper
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make VARIANT_DEFCONFIG=jf_vzw_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/NC5/Kernel$ make clean
[email protected]:~/android/NC5/Kernel$ make mrproper
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
[email protected]:~/android/NC5/Kernel$ export ARCH=arm
[email protected]:~/android/NC5/Kernel$ export SUBARCH=arm
[email protected]:~/android/NC5/Kernel$ export CROSS_COMPILE=/home/jon8rfc/android-ndk-r10d/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
#
# using defaults found in /boot/config-3.16.0-34-generic
#
/boot/config-3.16.0-34-generic:1647:warning: symbol value 'm' invalid for MTD_CMDLINE_PARTS
/boot/config-3.16.0-34-generic:3531:warning: symbol value 'm' invalid for SPI_PXA2XX_PCI
/boot/config-3.16.0-34-generic:3545:warning: symbol value 'm' invalid for SPMI
/boot/config-3.16.0-34-generic:3657:warning: symbol value 'm' invalid for GPIO_UCB1400
/boot/config-3.16.0-34-generic:4118:warning: symbol value 'm' invalid for REGULATOR_88PM8607
/boot/config-3.16.0-34-generic:4177:warning: symbol value 'm' invalid for REGULATOR_TWL4030
/boot/config-3.16.0-34-generic:4404:warning: symbol value 'm' invalid for VIDEO_EM28XX_RC
/boot/config-3.16.0-34-generic:5185:warning: symbol value 'm' invalid for SND_HDA_CODEC_REALTEK
/boot/config-3.16.0-34-generic:5186:warning: symbol value 'm' invalid for SND_HDA_CODEC_ANALOG
/boot/config-3.16.0-34-generic:5187:warning: symbol value 'm' invalid for SND_HDA_CODEC_SIGMATEL
/boot/config-3.16.0-34-generic:5188:warning: symbol value 'm' invalid for SND_HDA_CODEC_VIA
/boot/config-3.16.0-34-generic:5189:warning: symbol value 'm' invalid for SND_HDA_CODEC_HDMI
/boot/config-3.16.0-34-generic:5191:warning: symbol value 'm' invalid for SND_HDA_CODEC_CIRRUS
/boot/config-3.16.0-34-generic:5192:warning: symbol value 'm' invalid for SND_HDA_CODEC_CONEXANT
/boot/config-3.16.0-34-generic:5193:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0110
/boot/config-3.16.0-34-generic:5194:warning: symbol value 'm' invalid for SND_HDA_CODEC_CA0132
/boot/config-3.16.0-34-generic:5196:warning: symbol value 'm' invalid for SND_HDA_CODEC_CMEDIA
/boot/config-3.16.0-34-generic:5197:warning: symbol value 'm' invalid for SND_HDA_CODEC_SI3054
/boot/config-3.16.0-34-generic:5198:warning: symbol value 'm' invalid for SND_HDA_GENERIC
/boot/config-3.16.0-34-generic:6098:warning: symbol value 'm' invalid for XEN_TMEM
/boot/config-3.16.0-34-generic:7067:warning: symbol value 'm' invalid for NFS_V3
/boot/config-3.16.0-34-generic:7069:warning: symbol value 'm' invalid for NFS_V4
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
#
# configuration written to .config
#
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[email protected]:~/android/NC5/Kernel$ make jf_vzw_defconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (VMWARE_MVP) selects INET which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects TUN which has unmet direct dependencies (NETDEVICES && NET_CORE)
warning: (VMWARE_MVP) selects IPV6 which has unmet direct dependencies (NET && INET)
warning: (VMWARE_MVP) selects NETFILTER which has unmet direct dependencies (NET)
warning: (VMWARE_MVP) selects NET_NS which has unmet direct dependencies (NAMESPACES && NET)
KCONFIG_SELINUX((null))
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT((null))
***
*** You must specify VARIANT_DEFCONFIG !
***
make[1]: *** [jf_vzw_defconfig] Error 1
make: *** [jf_vzw_defconfig] Error 2
[email protected]:~/android/NC5/Kernel$ make VARIANT_DEFCONFIG=jf_vzw_defconfig
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:119:warning: choice value used outside its choice group
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
warning: (SCSI_SRP) selects SCSI_TGT which has unmet direct dependencies (SCSI && EXPERIMENTAL)
warning: (DRM && ION) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
warning: (USB_DWC3) selects USB_XHCI_PLATFORM which has unmet direct dependencies (USB_SUPPORT && USB_XHCI_HCD)
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/jon8rfc/android/NC5/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
[email protected]:~/android/NC5/Kernel$ make -j4
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/selinux/mdp/mdp
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
SHIPPED scripts/genksyms/parse.tab.c
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/kallsyms
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/mod/modpost.o
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/conmakehash
In file included from include/linux/scatterlist.h:10:0,
from include/linux/dma-mapping.h:9,
from arch/arm/kernel/asm-offsets.c:15:
/home/jon8rfc/android/NC5/Kernel/arch/arm/include/asm/io.h:30:26: fatal error: mach/msm_rtb.h: No such file or directory
#include <mach/msm_rtb.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/recordmcount
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
[email protected]:~/android/NC5/Kernel$
Any ideas on what I'm doing wrong, or do you know of a guide that will actually get me from start to finish?
Jon8RFC said:
Any ideas on what I'm doing wrong, or do you know of a guide that will actually get me from start to finish?
Click to expand...
Click to collapse
From the log output it seems you're not defining variant defconfig. Here's one I used for nc5 or maybe it's for mj7 either way you get the picture. Also in the kernel source zip there's a text file that should help you define these.
export PATH=$PATH:~/android/arm-eabi-4.7/bin
export ARCH=arm
export CROSS_COMPILE=arm-eabi-
export PATH=${PATH}:/opt/android-sdk/tools
export PATH=${PATH}:/opt/android-sdk/platform-tools
export PATH=${PATH}:~/bin
#export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
export KERNEL_DIR=`pwd`
export KERNELDIR=$KERNEL_DIR
make ARCH=arm VARIANT_DEFCONFIG=jf_vzw_defconfig SELINUX_DEFCONFIG=selinux_defconfig SELINUX_LOG_DEFCONFIG=selinux_log_defconfig jf_defconfig
make -j8 ARCH=arm zImage
make -j8 ARCH=arm modules
There's likely not a guide on doing this that in depth Samsung Galaxy only, but hope this helps.
Oh and you need to arm-eabi-4.7 or atleast some recent toolchain that you will also need to add to your path for cross compiling
P.S. Nice job with recent questions in Q&A, yours are the first in a long time that one can't find the answer to via googling and/or reading. (thus why I'm answering/trying to help)
Awesome, thanks! I'm getting it to come along now, and I'm just making corrections (fixes, maybe?) as errors come up, because I still can't reach the finish line. I've begun doing make -j1 to see each thing as it pops up and I'm fixing each thing as it happens. I'm stuck with this particular one though, and I've been hunting for a couple of hours to no avail:
Code:
sound/soc/codecs/wcd9310.c: In function 'tabla_codec_remove':
sound/soc/codecs/wcd9310.c:9109:22: warning: iteration 6u invokes undefined behavior [-Waggressive-loop-optimizations]
error, forbidden warning: wcd9310.c:9109
make[3]: *** [sound/soc/codecs/wcd9310.o] Error 1
make[2]: *** [sound/soc/codecs] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2
I couldn't find anyone with code corrections, just slightly different code which didn't seem to apply. The code which did seem to apply (although it wasn't for the s4), didn't have changes and people just used the same source. I also looked at the MDK source, and it's the same as NC5 (I thought it was an i9505 issue at first from one repository I found, but MDK is the same). Apparently, I need to enable -fno-aggressive-loop-optimizations, I believe. I think? It's supposed to be enabled by default, according to GCC 4.8 documentation as a "new feature" to avoid these issues, but maybe it's not in my case. From the error shown, it looks like -Wno-aggressive-loop-optimizations is in effect, right? I can't figure out how to make GCC use the -fno option though. I'm barely understanding myself, heh, please keep that in mind.
https://android.googlesource.com/toolchain/gcc/+/325a57a9cceb570741de8b68c40f4a72136cc35d/gcc-4.8/NEWS said:
GCC now uses a more aggressive analysis to derive an upper bound for
the number of iterations of loops using constraints imposed by language
standards. This may cause non-conforming programs to no longer work as
expected, such as SPEC CPU 2006 464.h264ref and 416.gamess. A new
option, -fno-aggressive-loop-optimizations, was added to disable this
aggressive analysis. In some loops that have known constant number of
iterations, but undefined behavior is known to occur in the loop before
reaching or during the last iteration, GCC will warn about the
undefined behavior in the loop instead of deriving lower upper bound of
the number of iterations for the loop. The warning can be disabled with
-Wno-aggressive-loop-optimizations.
Click to expand...
Click to collapse
Whew...finally found it, here:
http://forum.xda-developers.com/showpost.php?p=51966700&postcount=5529
I'm still going to post this in the event it's helpful for anyone else. Thanks a lot Surge...I was going crazy until you gave me those new things to put into .bashrc and what commands to actually use. Hopefully I'll get through and zImage will compile and if I can do it without errors, all the better. Thanks again. I really do appreciate it =)
Woohoo! Thanks, Surge =)
Code:
OBJCOPY arch/arm/boot/zImage
/home/jon8rfc/android/Kernel/scripts/mk_fipsbinary.sh arch/arm/boot/zImage
Make kernel fips binary..
Done.
Kernel: arch/arm/boot/zImage is ready
Now, on to modules...

[HELP][KERNEL]Problems in porting interactive CPU governor to kernel

Hi guys,
I'm building dorimanX kernel for the samsung galaxy s2 and I've update the interactive CPU governor. The problem is that the CPU governor fails to compile with the following error:
Code:
GCC 4.9.X Compiler Detected, building
not dorimanx system detected, setting 4 build threads
removing old temp initramfs_source
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 9 modules
LD [M] drivers/block/eds/eds.ko
LD [M] drivers/net/wireless/bcmdhd/dhd.ko
LD [M] drivers/samsung/fm_si4709/Si4709_driver.ko
LD [M] drivers/scsi/scsi_wait_scan.ko
LD [M] drivers/usb/serial/ftdi_sio.ko
LD [M] drivers/usb/serial/pl2303.ko
LD [M] drivers/usb/serial/usbserial.ko
LD [M] fs/cifs/cifs.ko
LD [M] fs/exfat/exfat.ko
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/fs/exfat/exfat.ko’ -> ‘/tmp/initramfs_source/lib/modules/exfat.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/fs/cifs/cifs.ko’ -> ‘/tmp/initramfs_source/lib/modules/cifs.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/scsi/scsi_wait_scan.ko’ -> ‘/tmp/initramfs_source/lib/modules/scsi_wait_scan.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/samsung/fm_si4709/Si4709_driver.ko’ -> ‘/tmp/initramfs_source/lib/modules/Si4709_driver.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/net/wireless/bcmdhd/dhd.ko’ -> ‘/tmp/initramfs_source/lib/modules/dhd.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/block/eds/eds.ko’ -> ‘/tmp/initramfs_source/lib/modules/eds.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/usb/serial/usbserial.ko’ -> ‘/tmp/initramfs_source/lib/modules/usbserial.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/usb/serial/ftdi_sio.ko’ -> ‘/tmp/initramfs_source/lib/modules/ftdi_sio.ko’
‘/home/josh/dorimanx/kk/TRIM/Dorimanx-SG2-I9100-Kernel/drivers/usb/serial/pl2303.ko’ -> ‘/tmp/initramfs_source/lib/modules/pl2303.ko’
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/devicetable-offsets.s
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
GEN usr/initramfs_data.cpio
CC drivers/cpufreq/cpufreq_interactive.o
drivers/cpufreq/cpufreq_interactive.c:135:98: error: static declaration of 'get_cpu_idle_time' follows non-static declaration
static inline cputime64_t get_cpu_idle_time(unsigned int cpu,
^
In file included from drivers/cpufreq/cpufreq_interactive.c:21:0:
include/linux/cpufreq.h:144:5: note: previous declaration of 'get_cpu_idle_time' was here
u64 get_cpu_idle_time(unsigned int cpu, u64 *wall);
^
make[2]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
AS usr/initramfs_data.o
LD usr/built-in.o
real 0m2.600s
user 0m2.171s
sys 0m2.650s
Kernel STUCK in BUILD! no zImage exist
Any ideas?
Thanks, gsstudios
Apparently your get_cpu_idle_time function collides with another one. You need to check if the version declared in the header file is implemented elsewhere or if you are supposed to implement it (without "static" and with the same parameter and return types). If it is implemented elsewhere you need to find out if you can simply use it instead of the inline function or if you need to rename your inline function and its calls.

Build kernel error

Hi guys i want make a kernel but when i compile, by an error :
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
CHK kernel/config_data.h
CC mm/page_alloc.o
mm/page_alloc.c: In function '__rmqueue_cma':
mm/page_alloc.c:1162:12: error: 'struct zone' has no member named 'cma_alloc'
if (!zone->cma_alloc = 0)
^
mm/page_alloc.c:1163:43: error: 'MIGRATE_CMA' undeclared (first use in this function)
page = __rmqueue_smallest(zone, order, MIGRATE_CMA);
^
mm/page_alloc.c:1163:43: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:308: recipe for target 'mm/page_alloc.o' failed
make[1]: *** [mm/page_alloc.o] Error 1
Makefile:825: recipe for target 'mm' failed
make: *** [mm] Error 2
in the file source the fuction __rmqueue_cma is :
static struct page *__rmqueue_cma(struct zone *zone, unsigned int order)
{
struct page *page = 0;
if (IS_ENABLED(CONFIG_CMA))
if (!zone->cma_alloc)
page = __rmqueue_smallest(zone, order, MIGRATE_CMA);
return page;
}
why ?My command to build is:
export ARCH=arm64
export SUBARCH=arm64
export CROSS_COMPILE= "mypwd"/toolchain64/bin/aarch64-linux-android-
Help my please
Up
Up up
Up

Categories

Resources