1 .. SPDX-License-Identifier: GPL-2.0+:
16 The loady command is used to transfer a file to the device via the serial line
17 using the YMODEM protocol.
19 The number of transferred bytes is saved in environment variable filesize.
22 load address, defaults to environment variable loadaddr or if loadaddr is
23 not set to configuration variable CONFIG_SYS_LOAD_ADDR
26 baud rate for the ymodem transmission. After the transmission the baud
27 rate is reset to the original value.
32 In the example below the terminal emulation program picocom was used to
33 transfer a file to the device.
35 After entering the loady command the key sequence <CTRL-A><CTRL-S> is used to
36 let picocom prompt for the file name. Picocom invokes the program sz for the
41 => loady 80064000 115200
42 ## Ready for binary (ymodem) download to 0x80064000 at 115200 bps...
44 *** file: BOOTRISCV64.EFI
45 $ sz -b -vv BOOTRISCV64.EFI
46 Sending: BOOTRISCV64.EFI
47 Bytes Sent: 398976 BPS:7883
49 Ymodem sectors/kbytes sent: 0/ 0k
52 *** exit status: 0 ***
53 /1(CAN) packets, 4 retries
54 ## Total Size = 0x0006165f = 398943 Bytes
62 The command is only available if CONFIG_CMD_LOADB=y.
67 The return value $? is always 0 (true).