Bug 3142 - [yocto-bsp] kernel panic message for yocto-bsp based images
Summary: [yocto-bsp] kernel panic message for yocto-bsp based images
Status: RESOLVED NOTABUG
Alias: None
Product: Kernel
Classification: Yocto Project Subprojects
Component: kernel-configuration (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3
Assignee: Tom Zanussi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-09-20 09:56 UTC by Laurentiu Serban
Modified: 2012-10-05 21:40 UTC (History)
4 users (show)

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


Attachments
kernel_panic (459.64 KB, image/png)
2012-09-20 09:56 UTC, Laurentiu Serban
no flags Details
meta-json (5.20 KB, application/x-gzip)
2012-09-20 14:54 UTC, Laurentiu Serban
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurentiu Serban 2012-09-20 09:56:57 UTC
Created attachment 820 [details]
kernel_panic

After a layer for a new machine is created using the yocto-bsp tool, the image generated is not starting due to kernel panic.
Apparantly there is no filesystem found 

A screenshot of the qemu screen is attached.
Comment 1 Darren Hart 2012-09-20 14:39:50 UTC
Laurentiu Serban to add build and machine details.
Comment 2 Laurentiu Serban 2012-09-20 14:46:46 UTC
Adding further info:
for json file:
Build Configuration:
BB_VERSION        = "1.15.3"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemujson"
DISTRO            = "poky"
DISTRO_VERSION    = "1.2+snapshot-20120919"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    
meta-json         = "1.3_M4:e5c3513ca8abb21eb5e9b8c19d1b9199b14ae07c

for yocto-bsp based image:

Build Configuration:
BB_VERSION        = "1.15.3"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemujson"
DISTRO            = "poky"
DISTRO_VERSION    = "1.2+snapshot-20120919"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    
meta-json         = "1.3_M4:e5c3513ca8abb21eb5e9b8c19d1b9199b14ae07c"
Comment 3 Tom Zanussi 2012-09-20 14:50:04 UTC
Please provide json used.
Comment 4 Laurentiu Serban 2012-09-20 14:51:15 UTC
{"kernel_choice":"linux-yocto_3.4","use_default_kernel":"n","keyboard":"y","qemuarch":"i386","smp":"y","touchscreen":"n","need_new_kbranch":"y","new_kbranch":"standard/base"}
Comment 5 Laurentiu Serban 2012-09-20 14:54:14 UTC
Created attachment 824 [details]
meta-json
Comment 6 Darren Hart 2012-09-20 14:57:52 UTC
I mentioned that I suspected this was just the fact that you need to select the deprecated ATA drivers for qemu in order use /dev/hda.
Comment 7 Tom Zanussi 2012-09-20 15:05:23 UTC
Hmm, ok, but it should pick up the same kernel branch/config that the official qemu 'BSP' picks up, unless something here changed recently.
Comment 8 Laurentiu Serban 2012-09-20 15:13:46 UTC
The default branch for qemu is:

standard/common-pc/base
Do you think the same should be used for the others?
Comment 9 Tom Zanussi 2012-09-20 15:21:53 UTC
Oh, yeah, I see now - in the json you're using standard/base - qemux86 needs standard/common-pc/base as you mention.  For boot testing, you should use the defaults, which for qemu have been set up to give you something buildable and bootable for testing.

Other selections may or many not give you something completely unbootable, which I think is mentioned in the docs.  yocto-bsp doesn't give any guarantees about run-time for any of the BSPs, just a buildable starting point.  However some of them such as qemu have been set with defaults that should work if chosen, qemu in particular since a qemu BSP would only be useful as a demo in the first place.
Comment 10 Laurentiu Serban 2012-09-20 22:38:12 UTC
Ok, Tom, thank you for the answer. I will modify and retest
Comment 11 Tom Zanussi 2012-09-21 21:27:41 UTC
As mentioned above, the default inputs weren't used, so this is not unexpected.
Comment 12 Laurentiu Serban 2012-10-05 14:35:48 UTC
Hello Tom,
I am using the default options and still have the same issues for i386.
Comment 13 Tom Zanussi 2012-10-05 14:40:41 UTC
Is this qemu or i386, what hardware are you using, what's the error message?  again, other than the qemu images, the result isn't guaranteed to boot on random hardware.
Comment 14 Laurentiu Serban 2012-10-05 19:50:08 UTC
The option is i386. This is how I "inherited" the test case.
But in this case, I will remove the test case and ask Song for a feature to cover other things than defaults. Is that ok with you?
Comment 15 Tom Zanussi 2012-10-05 21:40:53 UTC
I just created an 1386 BSP using all the defaults and booted a core-image-minimal ok on the crownbay.

So I don't really know what you're looking for here or what you're expecting.

If you're looking for enhancements to the default templates, there is this bug, not sure it's what you want:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=2392