Password Recovery - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
Release Date
2023.2 English

Use the following steps to recover password:

  1. Set "launch_ramdisk_init" U-Boot environment variable in uEnv.txt file
  2. Add the file into fat partition of sd/emmc/usb boot devices
    Note: Instead of previous variable, you can also set this bootargs setenv bootargs 'ext4=/dev/null:/rootfs init_fatal_sh=1 '; in uEnv.txt or from U-Boot prompt before kernel handoff.
  3. U-Boot reads the file and boot with tiny rootfs
  4. On tiny rootfs, mount rootfs partition to directory
    mount /dev/mmcblk0p2 /mnt/
  5. Change the root directory for the current running process to the specified directory
    chroot /mnt
  6. Change the password
    passwd petalinux
  7. Sync and unmount partition
    umount /dev/mmcblk0p2
  8. Reset the board and try to login using updated password