This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim1s:development:erase-emmc [2022/08/22 23:11] hyphop [How-to check boot-loaders content] |
products:sbc:vim1s:development:erase-emmc [2022/08/24 02:00] (current) hyphop old revision restored (2022/08/23 15:37) |
||
---|---|---|---|
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. | ||
```sh | ```sh | ||
- | dd if=/ | + | dd if=/ |
``` | ``` | ||
- | ==== Get block-device names for boot-loaders ==== | + | Also need cleanup eMMC common |
+ | ```sh | ||
+ | sudo dd if=/ | ||
``` | ``` | ||
- | ls -1 / | + | |
- | ``` | + | |
<WRAP important > | <WRAP important > | ||
+ | ''/ | ||
+ | </ | ||
- | ''/ | + | ==== Universal method |
+ | ```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 > | ||
+ | ''/ | ||
</ | </ | ||
- | ==== How-to check boot-loaders content ==== | + | Get eMMC block-device name. |
- | this example display empty content for special boot-loaders areas | + | ```shell |
+ | ~$ ls -1 $(ls / | ||
+ | / | ||
+ | ``` | ||
+ | |||
+ | ==== How-to check boot loaders content ==== | ||
+ | |||
+ | This example display empty content for special boot-loaders areas. | ||
```shell | ```shell | ||
- | ~$ for m in /dev/mmcblk?boot?;do dd if=$m count=1 2>/ | + | ~$ for m in /dev/bootloader?;do echo $m; dd if=$m count=1 2>/ |
+ | |||
+ | / | ||
00000000 | 00000000 | ||
* | * | ||
00000200 | 00000200 | ||
+ | / | ||
00000000 | 00000000 | ||
* | * | ||
00000200 | 00000200 | ||
+ | |||
``` | ``` | ||
- | next example display valid boot-loader header '' | + | Display same but for other boot areas names. |
```shell | ```shell | ||
- | ~$ dd if=/dev/mmcblk2 count=1 skip=1 2>/ | + | ~$ for m in /dev/mmcblk? |
- | 00000000 | + | |
+ | / | ||
+ | 00000000 | ||
+ | * | ||
+ | 00000200 | ||
+ | / | ||
+ | 00000000 | ||
+ | * | ||
+ | 00000200 | ||
``` | ``` | ||
+ | Next example display valid boot loader header '' | ||
+ | |||
+ | ```shell | ||
+ | ~$ dd if=/ | ||
+ | 00000000 | ||
+ | ``` | ||
/* | /* |