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/lynxbee-core-image-minimal.bb

————————————————————-

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

IMAGE_INSTALL = “packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}”

IMAGE_LINGUAS = ” ”

LICENSE = “MIT”

inherit core-image

IMAGE_ROOTFS_SIZE ?= “8192”

EXTRA_USERS_PARAMS = “\
        useradd -P password124 lynxbee; \
        usermod -P password124 root; \

——————————————————–

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

Android Android Commands Android Java Applications Application Libraries Bash / Shell Scripts Bluetooth driver Build Frameworks Commands and Packages Core Kernel C Programs Development Environment Setup Documents / Books Errors & Failures File Systems Framebuffer / Display Driver git Go Language Programs Hardware Platforms Home JAVA Programs Kernel & Device Drivers Kernel Booting and Porting Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL NDK / Middleware / HAL Network Driver OS Concepts PHP Procfs Filesystem Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Userspace Utilities Web design and development Wordpress Yocto / Bitbake / Openembedded
Tags:

Leave a Reply