summaryrefslogtreecommitdiff
path: root/arch/arc/lib/interrupts.c
diff options
context:
space:
mode:
authorJohan Jonker <jbx6244@gmail.com>2023-10-18 16:01:40 +0200
committerKever Yang <kever.yang@rock-chips.com>2023-10-24 15:55:17 +0800
commitaacf214d0c6b7a30700f149fe2b4414700cd3c5d (patch)
tree89a5421579cef6a8d0cf9ee387f563833e1dc233 /arch/arc/lib/interrupts.c
parent81bd22e935dc9e5f38863a674d50cb3a804f0804 (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 <jbx6244@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arc/lib/interrupts.c')
0 files changed, 0 insertions, 0 deletions