On Sun, 2021-05-02 at 20:12 +0000, Armin Kuster wrote:
> The only clue is this:
> 
> WARNING: core-image-minimal-1.0-r0 do_testimage: Couldn't login into serial 
> console as root using blank password
> WARNING: core-image-minimal-1.0-r0 do_testimage: The output:
> root
> Login incorrect
> qemux86 login:
> Login timed out after 60 seconds
> 
> Poky (Yocto Project Reference Distro) 
> 3.3+snapshot-65e75bd5d40c10509a3416026e551b7b7111c42a qemux86 /dev/ttyS1
> 
> qemux86 login: <<< run_serial(): command timed out after 120 seconds without 
> output >>>
> 
> Hangs here....
> 
> We should issue a error and quit.

What happens if I set IMAGE_FEATURES = "empty-root-password 
allow-empty-password"?

Should we disable the serial monitoring if these or debug-tweaks isn't 
enabled? I'm surprised it causes the image to hang, it should just trigger the
warning but continue to work...

Cheers,

Richard

> Signed-off-by: Armin Kuster <akuster...@gmail.com>
> ---
>  meta/classes/testimage.bbclass | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
> index 43de9d4d767..18ebbf90ec5 100644
> --- a/meta/classes/testimage.bbclass
> +++ b/meta/classes/testimage.bbclass
> @@ -142,6 +142,10 @@ do_testimage[depends] += "${TESTIMAGEDEPENDS}"
>  do_testimage[lockfiles] += "${TESTIMAGELOCK}"
>  
> 
> 
> 
>  def testimage_sanity(d):
> +    if (bb.utils.contains("IMAGE_FEATURES", [ 'debug-tweaks'], False, True, 
> d)):
> +        bb.fatal('testimage requires a blank root password'
> +                'Please check if debug-tweaks is IMAGE_FEATURES.')
> +
>      if (d.getVar('TEST_TARGET') == 'simpleremote'
>          and (not d.getVar('TEST_TARGET_IP')
>               or not d.getVar('TEST_SERVER_IP'))):
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#151181): 
https://lists.openembedded.org/g/openembedded-core/message/151181
Mute This Topic: https://lists.openembedded.org/mt/82536316/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to