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 23:37] hyphop [Cleanup all eMMC boot-loaders] |
products:sbc:vim1s:development:erase-emmc [2022/08/24 01:59] hyphop [How-to check boot loaders content] |
||
---|---|---|---|
Line 56: | Line 56: | ||
eMMC boot-loader can be stored on ''/ | eMMC boot-loader can be stored on ''/ | ||
- | ==== Cleanup | + | ==== Cleanup eMMC boot loaders ==== |
Cleanup special eMMC boot areas. | Cleanup special eMMC boot areas. | ||
```sh | ```sh | ||
- | dd if=/ | + | dd if=/ |
``` | ``` | ||
Line 71: | Line 71: | ||
<WRAP important > | <WRAP important > | ||
- | ''/ | + | ''/ |
</ | </ | ||
+ | ==== Universal method for cleanup all eMMC boot-areas ==== | ||
- | ==== Get block-device names for boot-loaders ==== | + | ```sh |
+ | sudo dd if=/ | ||
+ | sudo dd if=/ | ||
+ | |||
+ | ``` | ||
+ | |||
+ | ==== Get block device names for boot loaders ==== | ||
Get block-device names for special boot areas. | Get block-device names for special boot areas. | ||
Line 86: | Line 93: | ||
/ | / | ||
``` | ``` | ||
+ | <WRAP important > | ||
+ | ''/ | ||
+ | </ | ||
Get eMMC block-device name. | Get eMMC block-device name. | ||
Line 94: | Line 104: | ||
``` | ``` | ||
- | <WRAP important > | + | ==== How to check boot loaders content ==== |
- | ''/ | + | This example display empty content |
- | </WRAP> | + | ```shell |
+ | ~$ for m in /dev/ | ||
- | ==== How-to check boot-loaders content ==== | + | / |
+ | 00000000 | ||
+ | * | ||
+ | 00000200 | ||
+ | / | ||
+ | 00000000 | ||
+ | * | ||
+ | 00000200 | ||
- | This example display empty content | + | ``` |
+ | |||
+ | Display same but for other boot areas names. | ||
```shell | ```shell | ||
- | ~$ for m in / | + | ~$ for m in / |
+ | |||
+ | / | ||
00000000 | 00000000 | ||
* | * | ||
00000200 | 00000200 | ||
+ | / | ||
00000000 | 00000000 | ||
* | * | ||
Line 114: | Line 137: | ||
``` | ``` | ||
- | Next example display valid boot-loader header '' | + | Next example display valid boot loader header '' |
```shell | ```shell | ||
- | ~$ dd if=/dev/mmcblk2 | + | ~$ dd if=/dev/mmcblk0 |
00000000 | 00000000 | ||
``` | ``` |