This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
[patch] RedBoot : load without -m option
- From: Motoya Kurotsu <kurotsu at allied-telesis dot co dot jp>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 8 Aug 2002 14:43:40 +0900
- Subject: [ECOS] [patch] RedBoot : load without -m option
Hi all,
On Redboot, the load without -m option causes hung up.
The patch below is suposed to fix it.
For tftp, it will be ok. For xyzmodem, info.mode is still unknown.
Anyway it avoids hung up.
Thanks,
Motoya Kurotsu
Allied Telesis K. K.
--- load.c.orig Fri Jul 19 12:02:55 2002
+++ load.c Thu Aug 8 14:29:25 2002
@@ -694,11 +694,11 @@ do_load(int argc, char *argv[])
diag_printf("Raw load requires a memory address\n");
return;
}
info.filename = filename;
info.chan = chan;
- info.mode = io_tab->mode;
+ info.mode = io_tab ? io_tab->mode : 0;
#ifdef CYGPKG_REDBOOT_NETWORKING
info.server = &host;
#endif
res = redboot_getc_init(&info, io, verbose, decompress);
if (res < 0) {
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss