u-boot/cmd
Johan Jonker aacf214d0c 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>
2023-10-24 15:55:17 +08:00
..
arm cmd: exception: arm64: fix undefined, add faults 2022-03-02 13:59:29 -05:00
broadcom global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
meson cmd/arm: meson: sm: introduce efusedump command 2023-01-17 09:26:42 +01:00
mvebu cmd: mvebu/bubt: a38x: Do not hardcode SATA block size to 512 2023-04-13 11:34:47 +02:00
riscv cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
sandbox cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
ti cmd/ti: Update Kconfig logic and Makefile recursion logic 2023-10-16 10:25:02 -04:00
x86 x86: Add a little more info to cbsysinfo 2023-08-01 10:08:49 +08:00
.gitignore cmd: rework "license" command 2017-02-08 15:56:28 -05:00
2048.c cmd: Add 2048 game 2023-04-06 19:10:08 -04:00
ab_select.c android_ab: Add option to skip decrementing tries 2023-07-17 15:39:55 -04:00
abootimg.c android: boot: support boot image header version 3 and 4 2023-04-04 14:50:47 -04:00
acpi.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
adc.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
addrmap.c cmd: Add a command to display the address map 2021-03-05 10:25:43 +05:30
adtimg.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
aes.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
armffa.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
armflash.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
avb.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
axi.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
bcb.c cmd: bcb: select user(0) hwpart in __bcb_load() 2022-10-21 21:37:47 -04:00
bdinfo.c bdinfo: Show the malloc base with the bdinfo command 2023-07-17 17:12:21 +08:00
bind.c cmd: bind: Fix driver binding on a device 2021-10-12 14:19:52 +02:00
binop.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
blk_common.c cmd: blk_common: Stop using hard-coded block size for Sandbox operations 2023-10-10 16:25:48 -04:00
blkcache.c blkcache: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
blkmap.c cmd: blkmap: Make map_handlers[] and its .fn static 2023-10-10 16:25:48 -04:00
blob.c global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
bloblist.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
bmp.c cmd: bmp: Split bmp commands and functions 2023-04-24 21:37:45 +02:00
boot.c boot: Call flush() before booting 2022-09-24 11:34:38 -04:00
bootcount.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
bootdev.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
bootefi.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
bootflow.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
booti.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
bootm.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
bootmenu.c Fix incorrect return code of boot option update 2023-07-15 11:20:41 +02:00
bootmeth.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
bootstage.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
bootz.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
btrfs.c treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
button.c dm: treewide: Rename 'platdata' variables to just 'plat' 2020-12-13 16:51:08 -07:00
cache.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
cat.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
cbfs.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
cedit.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
clk.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
clone.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
cls.c video: Add a note about the broken implementation 2023-03-13 13:53:01 +01:00
config.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
conitrace.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
console.c cmd: consider multiplexing in coninfo 2023-04-08 07:50:43 +02:00
cpu.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
cramfs.c Audit <flash.h> inclusion 2022-08-04 16:18:47 -04:00
cros_ec.c Audit <flash.h> inclusion 2022-08-04 16:18:47 -04:00
cyclic.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
date.c cmd: date: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
demo.c cmd: List all uclass devices regardless of probe error 2022-10-17 21:17:12 -06:00
dfu.c cmd/dfu: Enable 'dfu list' command without DFU_OVER_USB 2022-02-11 11:29:23 -05:00
diag.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
disk.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
dm.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
echo.c cmd: change suppress newline in echo command 2021-01-25 01:15:33 +01:00
eeprom.c cmd: eeprom: don't truncate target address at 32-bit 2022-11-02 13:58:17 -04:00
efi.c efi: Support showing tables 2023-03-25 11:07:22 +01:00
efi_common.c efi: Split out table-listing code into a new file 2023-03-25 11:07:22 +01:00
eficonfig.c Fix incorrect return code of boot option update 2023-07-15 11:20:41 +02:00
eficonfig_sbkey.c eficonfig: refactor eficonfig_process_common function 2023-01-27 18:32:00 +01:00
efidebug.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
elf.c boot: Call flush() before booting 2022-09-24 11:34:38 -04:00
erofs.c fs/erofs: add filesystem commands 2022-03-15 16:19:29 -04:00
ethsw.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
event.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
exit.c cmd: exit: Fix return value propagation out of environment scripts 2023-01-11 15:02:24 -05:00
ext2.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
ext4.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
extension_board.c bootstd: Add a hunter for the extension feature 2023-01-23 18:11:41 -05:00
fastboot.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
fat.c cmd: fat: Use do_save() for fatwrite 2020-10-23 13:33:07 -04:00
fdt.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
flash.c Audit <flash.h> inclusion 2022-08-04 16:18:47 -04:00
font.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
fpga.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
fpgad.c common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
fs.c cmd: fs: document where 'size' stores its result 2023-05-31 17:23:01 -04:00
fs_uuid.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
fuse.c cmd: fuse: Add a command to read fuses to memory 2022-02-18 18:12:23 +01:00
fwu_mdata.c fwu: rename fwu_get_verified_mdata to fwu_get_mdata 2023-06-09 13:52:40 -04:00
gettime.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
gpio.c cmd: gpio: Skip output on -ENOENT 2023-10-16 15:46:18 +02:00
gpt.c cmd: gpt: fix gpt read 2023-09-11 16:34:19 -04:00
hash.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
help.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
history.c cli: Add a command to show cmdline history 2023-10-11 15:43:54 -04:00
host.c cmd: host: Print out the block size of the host device 2023-10-10 16:25:48 -04:00
i2c.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
ide.c ide: Move ide_init() into probing 2023-04-27 13:51:06 -04:00
ini.c cmd: ini: Fix build warning 2023-07-28 18:45:03 +08:00
io.c common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
iotrace.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
irq.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
itest.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
jffs2.c Audit <flash.h> inclusion 2022-08-04 16:18:47 -04:00
kaslrseed.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
Kconfig rockchip: cmd: add rkmtd command 2023-10-24 15:55:17 +08:00
led.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
legacy-mtd-utils.c cmd: sf/nand: Print and return failure when 0 length is passed 2023-06-12 13:24:31 +02:00
legacy-mtd-utils.h cmd: nand/sf: isolate legacy code 2019-12-04 17:10:51 -05:00
legacy_led.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
license.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
load.c cmd: fix loads, saves on sandbox 2023-07-20 14:10:57 -06:00
log.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
lsblk.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
lzmadec.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
Makefile rockchip: cmd: add rkmtd command 2023-10-24 15:55:17 +08:00
mbr.c cmd: mbr: Force DOS driver to be used for verify 2023-07-17 16:20:08 -04:00
md5sum.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
mdio.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
mem.c cmd: fix mtest on 64 bit systems 2023-01-27 18:31:58 +01:00
mii.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
misc.c cmd/misc: Stop using a function pointer 2022-06-22 21:29:47 -04:00
mmc.c cmd: mmc: Return CMD_RET_* from commands 2023-04-10 12:18:45 +09:00
mp.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
mtd.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
mtdparts.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
mux.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
nand.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
net.c Prepare v2023.07-rc6 2023-07-05 11:28:55 -04:00
nvedit.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
nvedit_efi.c cmd: improve string matching for hex 2023-08-08 17:41:52 -04:00
nvme.c blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
onenand.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
optee_rpmb.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
osd.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
panic.c cmd: add a panic command 2020-07-08 17:21:46 -04:00
part.c part: Allow setting the partition-table type 2023-07-17 17:12:06 +08:00
pause.c cmd: Add pause command 2022-09-02 13:40:42 -04:00
pcap.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
pci.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
pci_mps.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
pinmux.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
pmc.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
pmic.c cmd: List all uclass devices regardless of probe error 2022-10-17 21:17:12 -06:00
printf.c cmd: setexpr: fix printf_str() 2023-08-23 08:02:59 +02:00
printf.h cmd: setexpr: add format string handling 2021-07-27 14:50:47 -04:00
pstore.c pstore: Support already existing reserved-memory node 2022-02-14 13:03:49 -05:00
pvblock.c blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
pwm.c cmd: pwm: fix typo 'eisable' -> 'disable' 2022-03-04 15:20:06 -05:00
pxe.c cmd: pxe: Remove unused NEEDS_MANUAL_RELOC code bits 2023-09-14 10:42:24 -04:00
qfw.c qfw: Show the file address if available 2023-07-17 17:12:07 +08:00
read.c cmd: introduce 'write' command 2023-03-17 15:44:01 -04:00
reginfo.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
regulator.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
reiser.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
remoteproc.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
rkmtd.c rockchip: cmd: add rkmtd command 2023-10-24 15:55:17 +08:00
rng.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
rockusb.c cmd: rockusb: Use plain udevice for UDC controller interaction 2023-09-15 23:38:01 +02:00
rtc.c common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
sata.c blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
sb.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
scp03.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
scsi.c blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
seama.c cmd: Add a SEAMA image load command 2023-02-06 17:10:15 -05:00
setexpr.c setexpr: Silence some diagnostic messages 2023-08-30 17:56:21 -04:00
sf.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
sha1sum.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
sleep.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
smccc.c cmd: smccc: Print results in hex instead of dec 2023-03-09 13:15:00 +01:00
sound.c cmd: avoid endless loop in sound play command 2023-01-04 13:17:42 +01:00
source.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
spi.c cmd: spi: Judge the number of added parameters 2023-01-12 11:25:17 -05:00
spl.c arm: use CONFIG_SUPPORT_PASSING_ATAGS 2021-09-24 14:30:46 -04:00
sqfs.c fs/squashfs: add filesystem commands 2020-08-07 22:31:32 -04:00
stackprot_test.c cmd: wrong printf() code in do_test_stackprot_fail() 2022-02-11 10:52:37 -05:00
strings.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
sysboot.c net: dhcp6: pxe: Add DHCP/PXE commands for IPv6 2023-05-05 17:48:44 -04:00
temperature.c cmd: add temperature command 2022-10-11 15:40:48 -04:00
terminal.c terminal: only serial_reinit_all if available 2021-04-12 17:44:55 -04:00
test.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
thordown.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
time.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
timer.c cmd: Split out timer command from the sleep command 2020-10-23 13:33:07 -04:00
tlv_eeprom.c cmd: tlv_eeprom: enable 'dev' subcommand before 'read' 2023-05-08 10:47:13 +02:00
tpm-common.c tpm: Add 'tpm autostart' shell command 2023-06-13 08:51:07 +03:00
tpm-user-utils.h tpm: Add 'tpm autostart' shell command 2023-06-13 08:51:07 +03:00
tpm-v1.c tpm: Fix autostart for TPM1.2 devices 2023-09-09 06:12:47 +02:00
tpm-v2.c tpm: Add 'tpm autostart' shell command 2023-06-13 08:51:07 +03:00
tpm_test.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
trace.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
tsi148.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
ubi.c cmd: ubi: Fix 'ubi list' command arguments parsing 2023-08-15 07:32:13 +02:00
ubifs.c ubifs: allow loading to above 4GiB 2023-06-06 10:37:25 +02:00
ufs.c global: Use proper project name U-Boot 2023-06-12 13:24:31 +02:00
universe.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
unlz4.c lz4: Use a private header for U-Boot 2021-10-09 13:09:56 -04:00
unzip.c sandbox: Enable support for the gzip command 2021-12-26 23:02:19 +01:00
usb.c cmd: usb: Prevent reset in usb tree/info command 2023-06-21 13:08:30 +02:00
usb_gadget_sdp.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
usb_mass_storage.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
vbe.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
version.c acpi: Put the version numbers in a central place 2023-05-31 17:23:01 -04:00
video.c video: Move the console commands to cmd/ 2022-10-30 19:55:22 +01:00
virtio.c dm: treewide: Do not use the return value of simple uclass iterator 2022-10-29 07:36:33 -06:00
w1.c global: Convert simple_strtoul() with decimal to dectoul() 2021-08-02 13:32:14 -04:00
wdt.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
wol.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
ximg.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
xxd.c cmd: Convert existing long help messages to the new macro 2023-10-16 10:24:58 -04:00
yaffs2.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
zfs.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
zip.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00