<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15401</bug_id>
          
          <creation_ts>2024-02-15 10:06:34 +0000</creation_ts>
          <short_desc>testimage fails with linux-yocto-tiny and poky/custom distro</short_desc>
          <delta_ts>2024-02-23 10:53:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kweihmann</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98203</commentid>
    <comment_count>0</comment_count>
    <who name="">kweihmann</who>
    <bug_when>2024-02-15 10:06:34 +0000</bug_when>
    <thetext>Using 

PREFERRED_PROVIDER_virtual/kernel = &quot;linux-yocto-tiny&quot;

in combination with poky or a custom distro (everything but poky-tiny) results in
a not bootable qemu image.

Tested setup

MACHINE = qemuarm64
DISTRO = poky

PREFERRED_PROVIDER_virtual/kernel = &quot;linux-yocto-tiny&quot;

bitbake core-image-minimal &amp;&amp; bitbake core-image-minimal testimage

--------
Error from testimage run

[    0.396777] netconsole: network logging started
[    0.431873] Sending DHCP requests ., OK
[    0.440728] IP-Config: Got DHCP answer from 10.0.2.2, my address is 10.0.2.15
[    0.442005] IP-Config: Complete:
[    0.442561]      device=eth0, hwaddr=52:54:00:12:35:02, ipaddr=10.0.2.15, mask=255.255.255.0, gw=10.0.2.2
[    0.444344]      host=10.0.2.15, domain=, nis-domain=(none)
[    0.445194]      bootserver=10.0.2.2, rootserver=10.0.2.2, rootpath=
[    0.445245]      nameserver0=10.0.2.3
[    0.450137] clk: Disabling unused clocks
[    0.460883] List of all partitions:
[    0.461578] 0100            6144 ram0 
[    0.461613]  (driver?)
[    0.462619] fe00          519844 vda 
[    0.462650]  driver: virtio_blk
[    0.464035] No filesystem could mount root, tried: 
[    0.464061]  vfat
[    0.464384] 
[    0.464739] VFS: Unable to mount root fs on unknown-block(254,0)
[    0.465118] User configuration error - no valid root filesystem found
[    0.465629] Kernel panic - not syncing: Invalid configuration from end user prevents continuing
[    0.466326] SMP: stopping secondary CPUs
[    0.466928] Kernel Offset: disabled
[    0.467272] CPU features: 0x0,00000000,34000000,0000400b
[    0.467878] Memory Limit: 1024 MB
[    0.468411] ---[ end Kernel panic - not syncing: Invalid configuration from end user prevents continuing ]---

----

With linux-yocto everything works like expected</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98256</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-22 15:33:31 +0000</bug_when>
    <thetext>Ross, you were going to triage this bug report...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98315</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-02-23 10:53:22 +0000</bug_when>
    <thetext>The tiny configuration of linux-yocto is an *example* of how to build a minimal system.  It&apos;s tightly coupled with poky-tiny, notably the list of file systems in the kernel are limited and it expects to be booted with an initramfs.

Basically, it&apos;s not expected that any of the -tiny pieces will &apos;just work&apos; in isolation.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>