projects:3dprinting:flashforge_creator_3_pro_fan_fix:root_access
Flashforge Creator 3 Pro - root access
This page will show one way how to get root access via a serial cable. (See here for details about the cable and the connection.)
Getting root access
To get access to a linux console with root rights, there are several methods. I used the following method:
- Power off printer
- Write following lines in a flashforge_init.sh script:
(cat <<- _EOF_ #!/bin/sh set -x WORK_DIR=`dirname $0` #Test the machine's architecture and quit immediately if there's an error. CHECK_ARCH=`uname -m` if [ "${CHECK_ARCH}" != "armv7l" ];then echo "Machine architecture error." echo ${CHECK_ARCH} exit 1 fi # Ask user to change root password $WORK_DIR/play cp /etc/shadow /etc/shadow_old cat /etc/shadow passwd sync $WORK_DIR/play exit 0 ) > ~/flashforge_init.sh
- Format a usb stick to FAT32, download a Flashforge update file and extract all files to the usb stick.
- Overwrite flashforge_init.sh with the one from above.
- Connect printer via serial connection. connect using 115200 8n1. E.g.:
minicom -b 115200 -D /dev/ttyUSB0 -C serial_port_115200.pw_change.txt
- Insert usb stick in 3d printer and power-on
- Verify kernel log messages output in minicom
- Enter a new password when asked for.
- Wait until the music is finished. Power off printer. Remove usb stick and power on. try to login via serial. Connect using:
user: root
The password which was just entered.
projects/3dprinting/flashforge_creator_3_pro_fan_fix/root_access.txt · Last modified: 2024/10/23 17:25 by admin