正式版本rboot shell封掉后,不支持ctrl+c 這種方式做密碼恢復的,只能通過ctrl+B的方式,進入Boot無密碼登錄設備查看或修改設備密碼
注意:
1、此方式下只是提供首次無密碼登錄設備,設備原配置不會丟失;
2、若首次無密碼登錄設備后,未修改密碼情況下退出登錄設備,仍會要求使用密碼登錄。
二、操作步驟:
步驟一:Ctrl+B進入BOOT模式
設備下電重啟后,當看到Ctrl+B提示,連續按Ctrl+B,進入boot界面。
示例如下:
Press Ctrl+B to enter Boot Menu, Press Ctrl+C to enter Rboot 0
Entering simple UI....
====== BootLoader Menu("Ctrl+Z" to upper level) ======
TOP menu items.
************************************************
0. XModem utilities.
1. Run main.
2. Run rboot.
3. Scattered utilities.
************************************************
Press a key to run the command: 3 //選擇3,進入Scattered utilities菜單
步驟二:進入Scattered utilities菜單
====== BootLoader Menu("Ctrl+Z" to upper level) ======
Scattered utilities.
************************************************
0. Show the bootloader version.
1. Reload system.
2. Set baudrate.
3. Set default environment.
4. Set debug mode.
5. Run main without enable password.
************************************************
Press a key to run the command: 5 //選擇5,無密碼啟動主程序
步驟三:確定無密碼啟動主程序
The system will start immediately without enable password.
Confirm? [Y/N]: Y //選擇Y后,設備自動重啟,重啟后可無密碼登錄設備,配置不會丟失!!!
ubi0: attaching mtd2
ubi0: scanning is finished
ubi0: attached mtd2 (name "mtd=10", size 500 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 4000, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 18/14, WL threshold: 4096, image sequence number: 1159041294
ubi0: available PEBs: 0, total reserved PEBs: 4000, PEBs reserved for bad PEB handling: 160
Loading file '/boot/kernel.img' to addr 0x64000000...
Done
Loading file '/boot/initrd.img' to addr 0x64300000...
Done
Loading file '/boot/fdt.img' to addr 0x64a00000...
Done
... ...
Press RETURN to get started //看到此信息,可無密碼登錄設備
步驟四:無密碼進入系統后,可查看原用戶名和密碼;若原密碼加密,可選擇修改新用戶名和密碼

步驟五:功能驗證
如果管理員忘記登陸密碼,無法進入到配置模式進行配置,那么此時需要使用配置線進入CTRL層進行密碼恢復,需要保留之前的配置信息。
注意:
1、此方式下只是提供首次無密碼登錄設備,設備原配置不會丟失;
2、若首次無密碼登錄設備后,未修改密碼情況下退出登錄設備,仍會要求使用密碼登錄。
操作步驟
1、手動對設備進行下電重啟,出現Ctrl+C 提示時在鍵盤上同時按下CTRL鍵和C鍵,進入以下菜單。
====== Rboot Menu(Ctrl+Z to upper level) ======
Scattered utilities.
************************************************
0. Tftp utilities.
1. X/Y/ZModem utilities.
2. Run main.
3. SetMac utilities.
4. Scattered utilities.
************************************************
Press a key to run the command: 4 ---------選擇4
====== Rboot Menu(Ctrl+Z to upper level) ======
Scattered utilities.
************************************************
0. Show Version.
1. Reload System.
2. Set Baudrate.
3. Format Flash.
4. Exit menu.
************************************************
Press a key to run the command: 4 ----------選擇4
2、data # cd /mnt/data 進入data的目錄
3、data #vi config.text 進入config.text文件
4、用鍵盤的上下左右鍵移動光標,找到對應的密碼的配置,連續按兩次dd,刪除整行命令,最后按esc,輸入:wq,退出保存文件,然后直接reboot就行。
5、如果刪錯了配置,按esc,輸入:q! 強制退出文檔,之后再vi config.text進入文檔