unable to build the 3.10 kernel with the lp

unable to build the 3.10 kernel with the lp

Questions : unable to build the 3.10 kernel with the lp


Can you please give the steps to compile the in4codes_porting linux 3.10 kernel with lp. I am porting the in4codes_porting 3.10 kernel into the arndale board ie exynos in4codes_porting with device tree. I created the defconfig in4codes_porting by running

ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/exynos_defconfig android/configs/android-base.cfg 

and i tried to compile it.

But getting compilation errors like

In file included from include/linux/jbd.h:247:0, from fs/ext3/ext3.h:23, from fs/ext3/balloc.c:16: include/linux/jbd_common.h: In function 'jbd_lock_bh_state': include/linux/jbd_common.h:18:16: error: 'BH_State' undeclared (first use in this function) bit_spin_lock(BH_State, &bh->b_state); ^ include/linux/jbd_common.h:18:16: note: each undeclared identifier is reported only once for each function it appears in include/linux/jbd_common.h: In function 'jbd_trylock_bh_state': include/linux/jbd_common.h:23:26: error: 'BH_State' undeclared (first use in this function) return bit_spin_trylock(BH_State, &bh->b_state); ^ include/linux/jbd_common.h: In function 'jbd_is_locked_bh_state': include/linux/jbd_common.h:28:28: error: 'BH_State' undeclared (first use in this function) return bit_spin_is_locked(BH_State, &bh->b_state); ^ include/linux/jbd_common.h: In function 'jbd_unlock_bh_state': include/linux/jbd_common.h:33:18: error: 'BH_State' undeclared (first use in this function) bit_spin_unlock(BH_State, &bh->b_state); ^ include/linux/jbd_common.h: In function 'jbd_lock_bh_journal_head': include/linux/jbd_common.h:38:16: error: 'BH_JournalHead' undeclared (first use in this function) bit_spin_lock(BH_JournalHead, &bh->b_state); ^ include/linux/jbd_common.h: In function 'jbd_unlock_bh_journal_head': include/linux/jbd_common.h:43:18: error: 'BH_JournalHead' undeclared (first use in this function) bit_spin_unlock(BH_JournalHead, &bh->b_state); ^ make[2]: *** [fs/ext3/balloc.o] Error 1 make[1]: *** [fs/ext3] Error 2 make: *** [fs] Error 2 

Can anyone say what are the steps that I in4codes_porting need to follow to build the kernel?

And where I am going wrong while building in4codes_porting the kernel?

Total Answers 2

Answers 1 : of unable to build the 3.10 kernel with the lp

1.Take a working opensource 3.10 android in4codes_porting kernel from arm based chipset like in4codes_porting vexpress from in4codes_porting http://releases.linaro.org/15.01/android/vexpress-lcr

2.The above kernel already has support in4codes_porting for exynos based chipset it also has in4codes_porting exynos defconfig in in4codes_porting arch/arm/configs/exynos_defconfig you in4codes_porting can use this defconfig and flash it on in4codes_porting arndale, the kernel should boot as in4codes_porting arndale uses exynos based chipset only.

3.This kernel only has support for SoC in4codes_porting used in arndale i.e exynos5250, you need in4codes_porting to add support for arndale specific in4codes_porting changes like GUI related changes, in4codes_porting peripheral related changes etc, for that in4codes_porting you have to take reference from working in4codes_porting arndale android kernel from source like in4codes_porting http://releases.linaro.org/14.08/android/arndale in4codes_porting and look for changes done for adding in4codes_porting support for arndale. Below is the first in4codes_porting patch they added where they started in4codes_porting adding support for arndale

From 6f50912b63088c098b9a0d14f7384567631df356 Mon Sep 17 00:00:00 2001 From: Girish K S <ks.giri@samsung.com> Date: Mon, 8 Oct 2012 13:32:56 +0900 Subject: [PATCH 001/130] ARM: DTS: exynos5250-arndale: Add initial board support file 

and below is the last patch added

From 5a93c058f6bd377fc5edad3e07b1f4d9f18f0c32 Mon Sep 17 00:00:00 2001 From: Pranav Tipnis <[email protected]> Date: Tue, 9 Jul 2013 18:20:41 +0530 Subject: [PATCH 085/130] media: vb2: Activate display as soon as mmap is 

you have to study all the patches in in4codes_porting between including the above two and port in4codes_porting relevant changes to your 3.10 in4codes_porting kernel. All the best!.

Thanks, Devarsh



Answers 2 : of unable to build the 3.10 kernel with the lp

The workaround is to disable ext3: