Adding a new user, setting a password for new user and changing root password for Yocto

Created a new image recipe like below and named it as, recipes-images/images/


inherit extrausers
SUMMARY = “A small image just capable of allowing a device to boot.”




inherit core-image


        useradd -P password124 lynxbee; \
        usermod -P password124 root; \

READ  Setting up ubuntu development machine for Yocto


Compile the image as,

$ bitbake lynxbee-core-image-minimal

and run as,

$  runqemu qemuarm

On, login menu you should be able to use the user & passwords as defined above.

Reference : Yocto manual

Leave a Reply

Your email address will not be published. Required fields are marked *