Build kernel imx_v7_mfg_defconfig on Android KK 4.4.3 2.0.0 error

cancel
Showing results for 
Search instead for 
Did you mean: 

Build kernel imx_v7_mfg_defconfig on Android KK 4.4.3 2.0.0 error

1,745 Views
m_c
Senior Contributor I

cd kernel_imx

git checkout kk4.4.3_2.0.0-ga

ARCH=arm \

CROSS_COMPILE=../prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- \

make ${JOBS} distclean

ARCH=arm \

CROSS_COMPILE=../prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- \

make ${JOBS} imx_v7_mfg_defconfig

ARCH=arm \

CROSS_COMPILE=../prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- \

make uImage LOADADDR=0x10008000

  CC      kernel/power/earlysuspend.o

kernel/power/earlysuspend.c: In function 'early_suspend':

kernel/power/earlysuspend.c:109:3: error: implicit declaration of function 'android_wake_unlock' [-Werror=implicit-function-declaration]

kernel/power/earlysuspend.c: In function 'request_suspend_state':

kernel/power/earlysuspend.c:173:3: error: implicit declaration of function 'android_wake_lock' [-Werror=implicit-function-declaration]

cc1: some warnings being treated as errors

make[2]: *** [kernel/power/earlysuspend.o] Error 1

make[1]: *** [kernel/power] Error 2

make: *** [kernel] Error 2

Labels (2)
7 Replies

277 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Mfg confg did not set android config, so when use android function will build fail.

It is because Mfg kernel is use linux kernel, you can switch to linux branch like imx_3.10.53_1.1.0_ga. And $make imx_v7_mfg_defconfig will build successfully.

Or you can replace the ~myandroid/kernel_imx/.config file with attach file, and will build successfully.

Best Regards,

Alejandro

277 Views
rote_chen
Contributor I

Thanks! I replaced attach file. It is work.

0 Kudos

277 Views
huangkc
Contributor I

I have the same mistake, someone answer the question?

0 Kudos

277 Views
saurabh206
Senior Contributor III

Hi

huang kc

Use Yocto build to generate kernel for mfgtool.

pastedImage_0.png

0 Kudos

277 Views
saurabh206
Senior Contributor III

Hi

I had same issue.

I have generated mfgtool image using yocto build.

It work for me.

Thanks

Saurabh

277 Views
rote_chen
Contributor I

I have the same mistake, and i had to use yocto build.

But i can not booting after i replace the zImage in mfgtools.

It will be stop when the system check emmc.

mmc3: BKOPS_EN bit is not set

mmc3: new high speed DDR MMC card at address 0001

mmcblk3: mmc3:0001 S10008 7.28 GiB

mmcblk3boot0: mmc3:0001 S10008 partition 1 4.00 MiB

mmcblk3boot1: mmc3:0001 S10008 partition 2 4.00 MiB

mmcblk3rpmb: mmc3:0001 S10008 partition 3 4.00 MiB

mmcblk3: p1 p2 p3 < p5 p6 p7 > p4

mmcblk3: p4 size 13090816 extends beyond EOD, truncated

mmcblk3boot1: unknown partition table

mmcblk3boot0: unknown partition table

Do you know what is happened?

0 Kudos

277 Views
m_c
Senior Contributor I

Hello Saurabh,

Thank you for your help. However, it doesn't make sense for customer to maintain two version of kernel if only develop Android project. Truly wish Freescale can solve this issue soon.

0 Kudos