WB5 root password recovery

Материал из Wiren Board
Это утверждённая версия страницы. Она же — наиболее свежая версия.
Другие языки:


uboot autoboot stop
Entering commands

Root password recovery procedure on Wiren Board 5

  1. Plug the USB-UART adapter to the controller. The connection is described in detail on the page Debug UART. Note that in the latest versions of the controller, the UART debug port is represented as a microUSB connector, so no additional USB-UART Converter is required.
  2. Turn on the power of the controller and in the UART-console quickly press any key.
  3. Very fast sequentially enter the commands (it is better to copy them in advance to the clipboard):
    setenv optargs rootwait fixrtc single init=/bin/sh
    run bootcmd
    If the commands enter slowly (manually), the interrupted boot process will continue.
  4. Load and get the system prompt #
  5. Mount the root filesystem
    mount -n -o remount,rw /dev/mmcblk0p2 /
    and get the message EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
  6. Mount the partition from the configuration backup:
    mount /dev/mmcblk0p6 /mnt/data
    and get the message EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
  7. Enter the command passwd and change the password. Successful password change: passwd: password updated successfully
  8. Copy the new password to the configuration backup section:
    cp /etc/shadow /mnt/data/etc
  9. Unmount all:
    # sync
    # umount /mnt/data
    # umount /
  10. Turn off and turn on the power again. The password is changed.