diff options
| author | Johan Jonker <[email protected]> | 2023-10-18 16:01:40 +0200 |
|---|---|---|
| committer | Kever Yang <[email protected]> | 2023-10-24 15:55:17 +0800 |
| commit | aacf214d0c6b7a30700f149fe2b4414700cd3c5d (patch) | |
| tree | 89a5421579cef6a8d0cf9ee387f563833e1dc233 /cmd/Makefile | |
| parent | 81bd22e935dc9e5f38863a674d50cb3a804f0804 (diff) | |
rockchip: cmd: add rkmtd command
The command rkmtd creates a virtual block device to transfer
Rockchip boot block data to and from NAND with block orientated
tools like "ums" and "rockusb".
It uses the Rockchip MTD driver to scan for boot blocks and copies
data from the first block in a GPT formated virtual disk.
Data must be written in U-boot "idbloader.img" format and start at
partition "loader1" offset 64. The data header is parsed
for length and offset. When the last sector is received
it erases up to 5 erase blocks on NAND and writes bootblocks
in a pattern depending on the NAND ID. Data is then verified.
When a block turns out bad the block header is discarded.
Signed-off-by: Johan Jonker <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd/Makefile')
| -rw-r--r-- | cmd/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/Makefile b/cmd/Makefile index 44db5f22861..9a6790cc170 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -151,6 +151,7 @@ obj-$(CONFIG_CMD_REISER) += reiser.o obj-$(CONFIG_CMD_REMOTEPROC) += remoteproc.o obj-$(CONFIG_CMD_RNG) += rng.o obj-$(CONFIG_CMD_KASLRSEED) += kaslrseed.o +obj-$(CONFIG_CMD_RKMTD) += rkmtd.o obj-$(CONFIG_CMD_ROCKUSB) += rockusb.o obj-$(CONFIG_CMD_RTC) += rtc.o obj-$(CONFIG_SANDBOX) += host.o |
