Bug 1930 - Kernel Configuration example (CONFIG_SMP) not working in YP Development Manual
Summary: Kernel Configuration example (CONFIG_SMP) not working in YP Development Manual
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.1.1
Hardware: x86 x86_64
: High major
Target Milestone: 1.1 Point Release
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard: 24-jan-2012: resolved/fixed
Depends on:
Blocks:
 
Reported: 2012-01-24 07:39 UTC by Scott Rifenbark
Modified: 2012-01-24 19:41 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
Three log files: bitbake-20120113180834-Pq6.log, bitbake-20120113180945-WWq.log, and bitbake-20120113181019-NtT.log (5.51 KB, text/x-log)
2012-01-24 07:39 UTC, Scott Rifenbark
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Rifenbark 2012-01-24 07:39:34 UTC
Created attachment 321 [details]
Three log files: bitbake-20120113180834-Pq6.log, bitbake-20120113180945-WWq.log, and bitbake-20120113181019-NtT.log

I was verifying an example in the YP Dev Manual and could not get it to work correctly using poky-contrib in the josh/edison branch.  The example begins with section B.2, which changes the kernel configuration using menuconfig and then rebuilds the kernel image and runs it in qemu to look at the configuration.  I worked a bit with Darren and he said the behavior here is strange and I should send the log files to you.

Here are the commands used:

cd ~/poky-contrib
source oe-init-build-env
log bitbake linux-yocto -c menuconfig
log bitbake linux-yocto -c compile -f
log bitbake linux-yocto -c deploy -f

I am attaching the three log files.

Here is more explanation from Darren....

Specifically the deploy command doesn't get run. If Scott just runs
"bitbake linux-yocto" after the forced compile, it doesn't run any tasks
(and it should run install->deploy->package). Maybe something wonky with
the stamp files? I thought the deploy -f should ignore those though, so
I can't explain why that doesn't work around the problem.
Comment 1 Darren Hart 2012-01-24 08:24:17 UTC
My impression is that this is a failure with bitbake not tracking the state properly. When a "bitbake $RECIPE -c compile -f" is run, it is my understanding that a subsequent "bitbake $RECIPE" command should pick up from the task following compile.

Richard, would you agree? Or do you feel there is more investigation to be done for the kernel recipe itself?

I'm marking this as High Major because this is a breakage in the defined Linux kernel workflow.
Comment 2 Darren Hart 2012-01-24 08:34:22 UTC
I'm trying to reproduce locally now.
Comment 3 Richard Purdie 2012-01-24 09:03:23 UTC
FWIW I agree. The -f to the deploy task shouldn't be necessary.
Comment 4 Darren Hart 2012-01-24 09:10:34 UTC
Agreed, the -f should not be necessary - but note from the log that it did not work either. The deploy task was not run even with -f.
Comment 5 Richard Purdie 2012-01-24 09:29:34 UTC
I agree that either way, whether you run "bitbake linux-yocto", "bitbake linux-yocto -c deploy" or add a -f too, it should rerun those tasks. The fact it doesn't is a clear bug.
Comment 6 Darren Hart 2012-01-24 11:12:29 UTC
This wasn't reproducible for me unfortunatley. I updated contrib/josh/edison and build for qemux86. I'm building with BB=14,PM=12, and only ipk. Otherwise my config should be mostly stock.

I built on Ubuntu 11.10 64b. Scott, what are you building on? Have you tried this from a completely clean state?
Comment 7 Scott Rifenbark 2012-01-24 11:21:05 UTC
Darren, 

My machine is 64-bit and runs Ubuntu 10.04 LTS.  BB=4 and PM=4.  MACHINE=qemux86.  PACKAGE_CLASSES = package_rpm. 

I ran it after running the example in B.1, which is the one that changes the kernel source and inserts the printk statements that you see when you start qemu.

I will completely wipe the slate and re-run everything clean.  I am going to use poky-contrib as the Git repo.  I will work from 'josh/edison' branch.  I will also work from the 'edison' branch in the poky-extras repo I set up inside poky-contrib.

Does this sound ok?
Comment 8 Darren Hart 2012-01-24 13:39:45 UTC
Scott, sounds good.
Comment 9 Scott Rifenbark 2012-01-24 19:41:56 UTC
I ran this with a clean slate and in a very isolated manner that did not piggy-back on the previous example.  The example worked as written.  So this apparently is not a bug.