To recover the root password of a BeagleBone Black, you'll need the following items:
- A 5V, minimum 1 A dedicated power source (you shouldn't really be powering the board off of the micro USB port)
- An SD card (and reader, of course)
- An FTDI USB-to-serial cable for accessing the debug serial port of the BeagleBone Black.
- Flash the SD card with an image that you can obtain from BeagleBone.org/GettingStarted.
- Insert the SD card into the *unpowered* BeagleBone Black.
- Apply power.
- The BeagleBone Black should boot from the SD card (assuming that you've flashed the correct image)
- Connect the FTDI serial cable to the board and your compter, and open your serial client of choice to connect to the board.
- Hit enter once or twice, and a command prompt should come up, assuming you've used the correct settings:
- 115200
- 8N1
- Log in using root and a blank password (should be the default on the SD card image that you downloaded from the BeagleBoard.org website.)
- Mount the eMMC flash: mount /dev/mmcblk1p2 /media/card
- Change the root of the file system to be the partition on the eMMC flash which you just mounted: chroot /media/card
- Change the password of the root user to something you know: passwd root
- Exit out of the changed root: exit
- Shutdown the BeagleBone Black : shutdown -h now
- Disconnect the power from the board
- Eject the microSD card.
- Reconnect the power to the board
- Watch the board boot up, and log in as root. You should be able to log in with the password that you just set.
I would like to ask author to add a few words about voltage of usb-serial cable. Many cables have that voltage too high and will damage your BBB.
ReplyDelete