mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-22 22:51:52 +00:00
xyz-modem: Show information about finished transfer
Show "## Start Addr" or "## Binary (...) download aborted" information like in Kermit "loadb" command. Signed-off-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
parent
081bd249d1
commit
c97b2557bc
1 changed files with 16 additions and 0 deletions
16
cmd/load.c
16
cmd/load.c
|
@ -474,6 +474,14 @@ static int do_load_serial_bin(struct cmd_tbl *cmdtp, int flag, int argc,
|
|||
|
||||
addr = load_serial_ymodem(offset, xyzModem_ymodem);
|
||||
|
||||
if (addr == ~0) {
|
||||
image_load_addr = 0;
|
||||
printf("## Binary (ymodem) download aborted\n");
|
||||
rcode = 1;
|
||||
} else {
|
||||
printf("## Start Addr = 0x%08lX\n", addr);
|
||||
image_load_addr = addr;
|
||||
}
|
||||
} else if (strcmp(argv[0],"loadx")==0) {
|
||||
printf("## Ready for binary (xmodem) download "
|
||||
"to 0x%08lX at %d bps...\n",
|
||||
|
@ -482,6 +490,14 @@ static int do_load_serial_bin(struct cmd_tbl *cmdtp, int flag, int argc,
|
|||
|
||||
addr = load_serial_ymodem(offset, xyzModem_xmodem);
|
||||
|
||||
if (addr == ~0) {
|
||||
image_load_addr = 0;
|
||||
printf("## Binary (xmodem) download aborted\n");
|
||||
rcode = 1;
|
||||
} else {
|
||||
printf("## Start Addr = 0x%08lX\n", addr);
|
||||
image_load_addr = addr;
|
||||
}
|
||||
} else {
|
||||
|
||||
printf("## Ready for binary (kermit) download "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue