TONIDO Plug 2 Restoration

https://www.tonido.com/communitywiki/doku.php?id=advanceduses:resetrootfsplug2




How To Reset the Operating System on a Tonido Plug 2 To Factory Defaults

This guide will show you how to restore the operating system (rootfs) on the Tonido Plug 2’s internal flash (NAND) to its original factory settings. To do so, you will delete the existing operating system and replace it with a fresh install. The process is very similar to setting up a USB drive to boot the plug.

This not the same as flashing the plug with a new image and it will not change any U-boot settings.

Why is this useful?

  • If you’ve installed or updated software on the plug’s internal NAND and it is causing problems.
  • If you’ve deleted, corrupted or otherwise messed up parts of the operating system.
  • If your plug is full and nothing seems to fix it.
  • You just want that new plug smell again.

 

 

This procedure will delete everything on the internal flash including any user files and configurations. It will not affect files stored on USB or SATA drives.

 

 

This procedure must performed from a USB boot. 
If you do not have a USB stick with the Tonido OS on it, STOP now and make one.

 

 

Basic Reset

1. Check to ensure the plug is booting from a USB stick. You MUST boot from a USB stick to perform this restoration. 

Use the following command:

 

The output should be similar to this:

 

You can see that this plug is booted from a 4GB USB stick. If you see 512MB under “Size” then you are still booting off the internal flash. 

2. SSH into the Tonido Plug.

3. Attach to the internal flash (NAND) drive.

 

4. Mount the internal flash drive

 

5. Navigate to the mounted internal flash drive.

 

 

 

About the next step:
Once the rootfs is removed, the Tonido Plug will no longer boot from its internal drive until the remaining steps have been completed.

 

 

6. Remove the operating system (rootfs) and all files on the internal flash.

 

7. Get a fresh copy of the Tonido operating system image.

 

8. Make sure the checksum is correct.

 
 

9. Untar the image.

 

10. Delete the compressed rootfs image to save space.

 

11. Unmount the internal flash.

 

12. Shutdown.

 

13. Power down the Tonido Plug, remove the USB drive, power up again.

14. Wait 5 minutes for the plug to finish booting. When the red LED turns completely blue, connect to the Tonido Plug from a browser.

 

15. You can re-associate the plug your account by clicking on the “recover” link and following the prompts.


Source: http://www.tonido.com/forum/viewtopic.php?f=32&t=4200

Fixing a Corrupt NAND Partition

 

 

Mess this up and there’s a very good chance you will have a brick on your hands. There are no safety nets here and no clean or easy way to recover a from a NAND screw up if you issue a bad command - such as targeting the wrong device or volume.

 

 

Please, only start this process AFTER you have tried to rebuild the rootfs on the NAND using Basic Reset instructions above - AND failed during either the remove step (read only error) or the wget step (write error)

That being said, the process of formatting and rebuilding a moderately corrupt NAND rootfs device is fairly simple.

1. Boot from a USB or SATA drive and SSH into the Tonido Plug.

2. Run:

 

3. Get some info about the NAND. Note if these info commands do not work or do not produce the outputs shown below, STOP - you have other NAND issues that cannot be addressed here.

 

You should see four NAND mtd devices and We will ONLY work on mtd3 - the rootfs device.

4. Make sure mtd3 is detached:

 

Be careful here. Make sure you only target mtd3.

5. Format device mtd3 and rebuild the volume on it.

 

6. Mount the newly formatted NAND volume.

 

7. Proceed to step 7 of the Basic Reset.

  • TONIDO PLUG RESET, TONIDO FACTORY RESET, TONIDO NAND FLASH, TONIDO NAND RESTORE
  • 1 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

Related Articles

CLONE ODROID,Rapberry PI, Operating system SD CARD ON A MAC

Johnny Winter, a regular contributor to Envato Tuts has a simple straight forward way of...

CLONE RASPBERRY PI SD CARD

Johnny Winter, a regular contributor to Envato Tuts has a simple straight forward way of...

RASPBERRY PI CANNOT SEE WIRELESS NETWORK

Raspberry PI 3 Model b cannot see channel 12 or 13 if router wireless it set to these channels,...

OpenWRT Arduino Radio

https://en.code-bude.net/2013/11/05/radioduinowrt-a-do-it-yourself-webradio/Fantastic project