Follow the steps for login change:
- serial-autologin-root option in PetaLinux tool is disabled by default. If required, you can enable this with $ petalinux-config -c rootfs -→ Image Features -→ [ ] serial-autologin-root.
- The root login is disabled by default. The default user is petalinux and the password should be set on first boot. If you want to use ssh login, you should first boot via console and need to set password.
- Yocto removed plain text passwords support. The password should be in salt
form. PetaLinux converts the provided password in config to static salt password
using openssl and add to plnxtool.conf.Config settings to set user and password:
In plnxtool.conf EXTRA_USERS_PARAMS looks like:petalinux-config -c rootfs -→ PetaLinux RootFS Settings -→ (root:root;petalinux:petalinux:passwd-expire;)
EXTRA_USERS_PARAMS = "usermod -p '\$6\$xx\$CkLCyUiVJPDvNL9C/gQans7jV3BvnVoW60raOcEE.KlziPn8pPMe8WvAQ3cPwwO4YRcYRBjlUhSfw/kaubhtp1' root; \ useradd -p \$6\$xx\$12fBVQgrrkB6ZmS6DSUIeVLW3Cot/hC4g8ZhbcwLZtKG93spibFJ/.0rF688RnsqMrgIbnHFkZnJu0Tk9.7F41' petalinux;passwd-expire petalinux; \"
Note: Display WARNING message when 'root' password is set to 'root'. Warning: Root password set to 'root', It is highly recommended to change Root password. - Add config support to specify passwd-expire.
petalinux-config -c rootfs -→ PetaLinux RootFS Settings -→ (root:root;petalinux:petalinux:passwd-expire;) Add Extra Users
- Removed the ROOTFS_PASSWD configuration option. Use EXTRA_USERS configuration to specify the root user password.
- You can skip the root password using petalinux-config -c rootfs -> Image Features -> empty-root-password