This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
products:sbc:vim1s:development:erase-emmc [2022/08/22 03:31] hyphop [VIM1S Erase eMMC bootloader] |
products:sbc:vim1s:development:erase-emmc [2022/08/24 01:59] hyphop [How-to check boot loaders content] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== VIM1S Erase eMMC bootloader ====== | ====== VIM1S Erase eMMC bootloader ====== | ||
- | We have several different ways to erase bootloader | + | We have several different ways to erase bootloader. |
=====U-Boot console====== | =====U-Boot console====== | ||
Line 52: | Line 52: | ||
- Power on your SBC again, and you'll find that all the data on the eMMC has been erased. | - Power on your SBC again, and you'll find that all the data on the eMMC has been erased. | ||
- | ===== linux command-line ===== | + | ===== Linux command-line ===== |
+ | eMMC boot-loader can be stored on ''/ | ||
+ | |||
+ | ==== Cleanup eMMC boot loaders ==== | ||
+ | |||
+ | Cleanup special eMMC boot areas. | ||
+ | |||
+ | ```sh | ||
+ | dd if=/ | ||
+ | ``` | ||
+ | |||
+ | Also need cleanup eMMC common boot area. | ||
+ | |||
+ | ```sh | ||
+ | sudo dd if=/ | ||
+ | ``` | ||
+ | |||
+ | <WRAP important > | ||
+ | ''/ | ||
+ | </ | ||
+ | |||
+ | ==== Universal method for cleanup all eMMC boot-areas ==== | ||
+ | |||
+ | ```sh | ||
+ | sudo dd if=/ | ||
+ | sudo dd if=/ | ||
+ | |||
+ | ``` | ||
+ | |||
+ | ==== Get block device names for boot loaders ==== | ||
+ | |||
+ | Get block-device names for special boot areas. | ||
+ | |||
+ | ```shell | ||
+ | ~$ ls -1 / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ``` | ||
+ | <WRAP important > | ||
+ | ''/ | ||
+ | </ | ||
+ | |||
+ | Get eMMC block-device name. | ||
+ | |||
+ | ```shell | ||
+ | ~$ ls -1 $(ls / | ||
+ | / | ||
+ | ``` | ||
+ | |||
+ | ==== How to check boot loaders content ==== | ||
+ | |||
+ | This example display empty content for special boot-loaders areas. | ||
+ | |||
+ | ```shell | ||
+ | ~$ for m in / | ||
+ | |||
+ | / | ||
+ | 00000000 | ||
+ | * | ||
+ | 00000200 | ||
+ | / | ||
+ | 00000000 | ||
+ | * | ||
+ | 00000200 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | Display same but for other boot areas names. | ||
+ | |||
+ | ```shell | ||
+ | ~$ for m in / | ||
+ | |||
+ | / | ||
+ | 00000000 | ||
+ | * | ||
+ | 00000200 | ||
+ | / | ||
+ | 00000000 | ||
+ | * | ||
+ | 00000200 | ||
+ | ``` | ||
+ | |||
+ | Next example display valid boot loader header '' | ||
+ | |||
+ | ```shell | ||
+ | ~$ dd if=/ | ||
+ | 00000000 | ||
+ | ``` | ||
+ | |||
+ | /* | ||
This erasure method is suitable for the SBC with Linux installed: | This erasure method is suitable for the SBC with Linux installed: | ||
- Power on and boot up. | - Power on and boot up. | ||
- Open a Terminal, and run '' | - Open a Terminal, and run '' | ||
+ | |||
```shell | ```shell | ||
Line 67: | Line 159: | ||
root@Khadas: | root@Khadas: | ||
``` | ``` | ||
+ | */ |