Building linux PM kernel fails

I am trying to build the PM branch of the kernel maintained by Kevin Hilman (see, but of some reason it result in some
errors. Before building that I have successfully build the mainline kernel (see

This is what I do:
git clone git:// linux-omap-pm
cd linux-omap-pm
git checkout origin/pm
make CROSS_COMPILE=arm-angstrom-linux-gnueabi- distclean
make CROSS_COMPILE=arm-angstrom-linux-gnueabi- omap3_beagle_defconfig
make CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage

Below here is the output from the terminal window for the last two commands. The
configuration command gives some warnings. Do I need to care about them or are they
harmless? The final ‘make’ command gives some errors and stops. Are anybody able to
tell me what I am doing wrong?

Best regards,
Karsten Quist

(make CROSS_COMPILE=arm-angstrom-linux-gnueabi- omap3_beagle_defconfig)
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/
HOSTLD scripts/kconfig/conf
arch/arm/configs/omap3_beagle_defconfig:947:warning: override: USB_GADGET_M66592 changes choice state
arch/arm/configs/omap3_beagle_defconfig:972:warning: override: reassigning to symbol ISP1301_OMAP


select ti inventra in gadget device.

Can you please tell me where to do this selection? All this compiling
of kernel is new to me.


After a lot of googl’ing I found out that I had to disable USB gadget (in kernel ‘menuconfig’) to make it build. Has anybody else seen the same problem?

Now I was able to build the kernel, but when I booted it at stalled after ‘… done, booting the kernel.’. Some more googl’ing and I found that I had to apply a patch:

After I applied the patch, and build the kernel, I was able to boot the kernel. I hope this can help others in the same situation!


2009/9/17 Quist <>