Hi Wei Tee,

I'm not sure what is causing the issue you're seeing when trying to run the selftests, but I was able to track down the issue causing the selftests to fail in normal usage.

Apparently, only systemd-boot sets no "root=" kernel command line parameter when booting live. Our other bootloaders (grub, syslinux) set root=/dev/ram0. The selftests use syslinux.

From what I can tell from the kernel docs, this is basically just a sentinel value to say "mount the initrd as root":
https://www.kernel.org/doc/html/v4.11/admin-guide/initrd.html

We already have the procedure correct, and just have to account for /dev/ram0 as well now.

I'll send a patch for it.

Thanks,
Cal

On 08/04/2017 12:17 AM, Ng, Wei Tee wrote:
Hi Richard,

Noted with the changes. I had try to reproduce the same failure log that you 
send to me. However, the result is different.

How can I run the oe-selftest to test out the patch on my machine correctly? 
Can you verify with me whether the steps below are the correct steps?
Firstly git clone a poky and meta-intel layer, then source a build. I also enable the 
oe-selftest configuration on my local.conf and run the command "oe-selftest -r 
runqemu.RunqemuTests.test_boot_deploy_hddimg"?

I try to test the latest poky master branch without my "use initramfs-framework by 
default" commit, the oe-selftest for those two testcases are failed too)
Here is the failure log that I captured: 
http://pastebin.intel.com/hefizelixo.vhdl

Regards,
Wei Tee

-----Original Message-----
From: Richard Purdie [mailto:richard.pur...@linuxfoundation.org]
Sent: Sunday, July 30, 2017 3:48 PM
To: Ng, Wei Tee <wei.tee...@intel.com>; openembedded-core@lists.openembedded.org
Cc: Wold, Saul <saul.w...@intel.com>
Subject: Re: [OE-core] [PATCH 3/3] core-image-minimal-initramfs: use 
initramfs-framework by default

On Sun, 2017-07-23 at 16:51 -0700, wei.tee...@intel.com wrote:
From: "Ng, Wei Tee" <wei.tee...@intel.com>

Use the initramfs-framework for initialization by default due to the
modularity and expansibility.

[YOCTO #10987]

Signed-off-by: Ng, Wei Tee <wei.tee...@intel.com>
---
  meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
I'm afraid I had to revert this change:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=fab2219af4a6566124
cf95d1d2648d4729391baf

because it was causing oe-selftest failures as shown here:

https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/415/st
eps/Running%20oe-selftest/logs/stdio

Cheers,

Richard

--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to