Bug 1494

Summary: [btrfs] kernel not support btrfs
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Jiajun Xu <jiajun.xu>
Component: meta-yoctoAssignee: Nitin Kamble <nitin.a.kamble>
Status: VERIFIED INVALID QA Contact:
Severity: major    
Priority: Medium CC: ke.yu, poky.bs.watcher, poky.watcher, richard.purdie, sgw, wenhuax.fan
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2011-09-18 03:55:55 UTC
tree/branch: poky/1.1_M4
commit: 6462c158fc482e495c1171ffc7747e2ad650a292

With latest 1.1 M4 branch, after I build a minimal image with btrfs enabled and boot up the btrfs image, the kernel will report "no valid root filesystem found". It seems btrfs related config options are not enabled for kernel.
Comment 1 Saul Wold 2011-09-19 08:14:24 UTC
Could you please give more information about how you set the flags for the kernel and image type setting?

You need to include the following line in your local.conf file:

IMAGE_FSTYPES += " btrfs"
KERNEL_FEATURES_append = " cfg/btrfs "

for some reason += does not work with KERNEL_FEATURES.
Comment 2 Nitin Kamble 2011-09-19 08:56:35 UTC
Jiajun,
  Saul said it right, the kernel btrfs config needs to be enabled with KERNEL_FEATURES line in the local.conf.  Without that kernel will not include the btrfs support.

Thanks,
Nitin
Comment 3 Nitin Kamble 2011-09-19 08:57:09 UTC
Jiajun,
  Saul said it right, the kernel btrfs config needs to be enabled with KERNEL_FEATURES line in the local.conf.  Without that kernel will not include the btrfs support.

Thanks,
Nitin
Comment 4 Jiajun Xu 2011-09-19 22:30:46 UTC
(In reply to comment #3)
> Jiajun,
>   Saul said it right, the kernel btrfs config needs to be enabled with
> KERNEL_FEATURES line in the local.conf.  Without that kernel will not include
> the btrfs support.
> Thanks,
> Nitin

Thanks, Saul, Nitin. After setting KERNEL_FEATURES_append, btrfs option is enabled for kernel.
Comment 5 Jiajun Xu 2011-09-19 22:31:10 UTC
Verify the bug as INVALID.