]> git.karo-electronics.de Git - karo-tx-redboot.git/blob - packages/redboot/v2_0/ChangeLog
a041d4ce30fce79c301e6f357cc12cebc57206d6
[karo-tx-redboot.git] / packages / redboot / v2_0 / ChangeLog
1 2005-09-09  Andrew Dyer  <adyer@righthandtech.com>
2  
3         * src/load.c: add calls to redboot_getc_terminate before exiting
4         load_elf_image() in various error scenarios, change the final call
5         to redboot_getc_terminate to have the error flag set.  This will
6         cause a tftp nak and close down the connection since for ELF files
7         we don't read the whole content but end the connection when the
8         runnable parts are in.
9  
10         * src/net/tftp_client.c: add tftp_error() to send an error back to
11         the server. define tftp_stream_terminate() and pass it into the
12         redboot interface.
13  
14 2005-09-08  Gary Thomas  <gary@mlbassoc.com>
15
16         * src/io.c: 
17         * include/redboot.h: 
18         * doc/redboot.sgml: 
19         * cdl/redboot.cdl: Add support for ANSI keyboard cursor keys
20         such as HOME/END/Arrows
21
22 2005-09-08  Stefan Sommerfeld  <sommerfeld@mikrom.com>
23         * src/flash.c: Fix usage of "fis create", more arguments are optional
24         Set mem_base to mem_addr instead of flash_addr for a loaded image
25         
26 2005-09-03  Andrew Lunn  <andrew.lunn@ascom.ch>
27
28         * cdl/redboot.cdl: White space changes to aid readability. 
29
30 2005-09-03  Isaac Claymore   <iclaymore@gmail.com>
31
32         * src/flash.c (fis_create): Print an error if the FIS directory is
33         full when we try to create a new entry.
34         
35 2005-08-17  David Vrabel  <dvrabel@arcom.com>
36
37         * cdl/redboot.cdl (CYGNUM_REDBOOT_DEFAULT_NETWORK_DEVICE): Removed
38         since isn't used anywhere.
39         * cdl/redboot.cdl (CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE): New option 
40         to specify the name of the default network device.
41
42         * src/net/net_io.c: Use CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE as
43         the default to the net_device config option.
44
45 2005-07-06  Isaac Claymore <iclaymore@gmail.com>
46
47         * src/fconfig.c: (get_config): Verify the length of the script is
48         less than MAX_SCRIPT_LENGTH.
49
50 2005-06-29  Andrew Lunn  <andrew.lunn@ascom.ch>
51
52         * doc/redboot_cmds.sgml: 
53         * src/dump.c: Fix the usage for dump and x command.
54
55 2005-06-29  Peter Korsgaard  <jacmet@sunsite.dk>
56
57         * src/flash.c (find_free): Maintain sort order when splitting
58         chunks.
59
60 2005-06-27  Andrew Lunn  <andrew.lunn@ascom.ch>
61
62         * src/net/enet.c (ntohs): Return type is a short.
63
64 2005-06-22  Peter Korsgaard  <jacmet@sunsite.dk>
65
66         * src/flash.c (fis_list, fis_free, fis_create):
67         * src/iomem.c (do_iopeek): Fixed compiler warnings about formats
68         strings for diag_printf.
69
70 2005-06-09  David Vrabel  <dvrabel@arcom.com>
71
72         * src/xyzModem.c: Use the Ymodem length field by #define'ing
73         USE_YMODEM_LENGTH.
74         (xyzModem_stream_read): Only discard runs of ^Z's if we're using
75         Xmodem or the Ymodem length field is 0.  This allows binary files
76         with runs of ^Z's to be transferred.
77
78 2005-06-07  Andrew Lunn  <andrew.lunn@ascom.ch>
79
80         * src/flash.c (_flash_info): Fixed a warning about a diag_printf
81         format string.
82
83 2005-05-27  David Vrabel  <dvrabel@arcom.com>
84
85         * src/main.c (cyg_start): Expand aliases even if
86         CYGSEM_REDBOOT_FLASH_ALIASES is not enabled since there are some
87         hardcoded aliases (e.g., FREEMEMLO).
88
89 2005-05-04  David Vrabel  <dvrabel@arcom.com>
90  
91         * src/alias.c (lookup_alias): The expansion of FREEMEMLO and
92         FREEMEMHI needs a leading '0x' so they're recognized as hex.
93  
94 2005-04-21  Ian Campbell  <icampbell@arcom.com>
95
96         * src/net/net_io.c (net_init): Don't initialize the network if we
97         don't have an IP address.
98
99         * src/net/net_io.c (do_ip_addr): Add a '-b' option to obtain IP
100         address using BOOTP/DHCP.
101
102         * doc/redboot_cmds.sgml: Document the new '-b' option to the
103         'ip_address' command.
104
105         * src/decompress.c (zcfree): Remove unnecessary variable
106         reinitialisation.
107
108         
109 2005-04-17  Andrew Lunn  <andrew.lunn@ascom.ch>
110
111         * src/alias.c (lookup_alias): Fix compiler warnings about formats
112         * src/cksum.c (do_cksum): Ditto
113         * src/dump.c  (do_dump): Ditto  
114
115 2005-04-07  Peter Korsgaard  <jacmet@sunsite.dk>
116
117         * cdl/redboot.cdl, doc/redboot_cmds.sgml, src/gunzip.c: Added
118         gunzip command to uncompress GZIP compressed data.      
119
120 2005-04-11  Peter Korsgaard  <jacmet@sunsite.dk>
121
122         * src/flash.c (find_free): Correctly split chunks in two when
123         not final chunk.
124
125 2005-03-07 Alexander Neundorf <alexander.neundorf@jenoptik.com>
126
127         * src/net/arp.c: use correct sizeof(rt->enet_addr) in
128         __arp_lookup()
129         
130 2005-01-22  Andrew Lunn  <andrew.lunn@ascom.ch>
131
132         * src/main.c (cyg_start): Fix compiler warning with 
133         HAL_THREAD_INIT_CONTEXT and the worspace end address.
134         * src/fs/disk.c (find_dos_partitions): Removed unused variable.
135
136 2005-01-05  David Vrabel  <dvrabel@arcom.com>
137
138         * src/fs/fileio.c (do_ls): Remove useless "getcwd" message.
139         * src/net/bootp.c (__bootp_find_local_ip): Only print the
140         "waiting for BOOTP" message when after first retry.
141         
142 2004-12-01  Andrea Michelotti  <amichelotti@atmel.com>
143
144         * main.c :
145         * mfill.c: 
146         * mcmp.c : Changes required for use with GCC v4 - cast as lvalue
147         is no longer supported.
148
149 2004-11-09  Ian Campbell  <icampbell@arcom.com>
150
151         * cdl/redboot.cdl, doc/redboot_cmds.sgml, src/iomem.c: Add support
152         for iopeek and iopoke commands to allow access to the I/O regions.
153
154 2004-11-09  David Vrabel  <dvrabel@arcom.com>
155
156         * cdl/redboot.cdl (CYGBLD_REDBOOT_MIN_IMAGE_SIZE): Correct the
157         description to match what the option is actually used for.
158
159         * src/flash.c (find_free, fis_free, fis_find_free): Don't ignore
160         an extra CYGBLD_REDBOOT_MIN_IMAGE_SIZE amount from the start.
161         This fixes the case where nothing uses the start of flash.
162
163 2004-11-04  Peter Korsgaard  <jacmet@sunsite.dk>
164
165         * src/fconfig.c (flash_write_config): Removed compiler warning
166         when building redboot with combined FIS and config.
167
168 2004-10-10      Iztok Zupet      <iz@elsis.si>
169
170         * cdl/redboot.cdl: added CYGSEM_REDBOOT_DISK_IDE_VMWARE option.
171         * src/fs/ide.c : skip reset IDE commands if running under VMware.
172
173 2004-10-08  Andrew Lunn  <andrew.lunn@ascom.ch>
174
175         * doc/redboot_installing.sgml: Added links to the tools for the
176         Atmel AT91 JTST board.
177
178 2004-09-27  Mark Salter  <msalter@redhat.com>
179
180         * src/fs/ide.c (ide_presence_detect): New function.
181         * src/fs/disk.c (u32_unaligned): New function to read unaligned words.
182         (find_dos_partitions): Use u32_unaligned instead of memcpy.
183
184 2004-9-25   Andrew Lunn <andrew.lunn@ascom.ch>
185
186         * doc/redboot_install.sgml: Added installation information for the
187         Atmel AT91 JTST board provided by Andrea Michelotti
188         
189 2004-9-23   Bob Koninckx <bob.koninckx@o-3s.com>
190
191         * src/net/tc.c: Removed unneccesary call to MS_TICKS_DELAY
192
193 2004-09-19  Mark Salter  <msalter@redhat.com>
194
195         * cdl/redboot.cdl: Add CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE
196         * src/net/net_io.c (net_init): Initialize only one network
197         device if CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE defined.
198
199 2004-09-19  Andrew Lunn  <andrew.lunn@ascom.ch>
200
201         * src/load.c (do_load): Removed compiler warning when building
202         reboot without networking.
203
204 2004-09-05  Mark Salter  <msalter@redhat.com>
205
206         * doc/redboot_installing.sgml: Add mb93091 and mb93093.
207
208 2004-09-02  Mark Salter  <msalter@redhat.com>
209
210         * doc/redboot_cmds.sgml: Add -x option to exec command.
211
212 2004-09-01  Mark Salter  <msalter@redhat.com>
213
214         * cdl/redboot.cdl (CYGOPT_REDBOOT_FLASH_BYTEORDER): New option.
215         * include/redboot.h: Define FLASH_{READ,PROGRAM} macros.
216         Define REDBOOT_FLASH_REVERSE_BYTEORDER if appropriate.
217         * src/flash.c: Add support for CYGOPT_REDBOOT_FLASH_BYTEORDER.
218         Use FLASH_{READ,PROGRAM} macros instead of flash driver api.
219         * src/fconfig.c: Ditto.
220
221         * src/main.c (do_version): Update copyright message.
222
223 2004-08-31  Jonathan Larmour  <jifl@eCosCentric.com>
224
225         * src/flash.c (fis_init): Avoid potentially unnecessary erase
226         attempt at end of flash.
227
228 2004-08-27  Peter Korsgaard <jacmet@sunsite.dk>  
229
230         * doc/redboot_cmds.sgml: Fixed a minor typo with fis list
231
232 2004-08-17  Andrew Lunn  <andrew.lunn@ascom.ch>
233
234         * cdl/redboot.cdl:
235         * src/net/net_io.c: added CDL to allow the default server to
236         be configured. Also respect the CYGSEM_REDBOOT_DEFAULT_NO_BOOTP
237         setting.
238
239 2004-08-16  Andrew Lunn  <andrew.lunn@ascom.ch>
240
241         * cdl/redboot.cdl:
242         * src/load.c: Added cdl to control the size of the buffer used
243         by getc. The size can have significant affect on load speed
244         when loading from a filesystem.
245
246 2004-08-13  Jani Monoses <jani@iv.ro>
247
248         * src/net/http_client.c: Fix off-by-one error in checking
249         the HTTP response header, so the ending CRLF-CRLF is detected 
250         even if it's the last 4 bytes in the buffer.
251
252 2004-08-10  Andrew Lunn  <andrew.lunn@ascom.ch>
253
254         * cdl/redboot.cdl
255         * src/load.c (load_elf_image): Added a CDL option to configure
256         if the physical or virtual address in the headers should be used
257         when loading the image.
258
259 2004-08-09  Andrew Lunn  <andrew.lunn@ascom.ch>
260
261         * cdl/redboot.cdl
262         * src/fs/fileio.c (do_ls) Added an ls command so we can see what
263         is inside the mounted filesystem.
264
265 2004-06-25  Andrew Lunn  <andrew.lunn@ascom.ch>
266
267         * src/flash.c (find_free): fix endless loop when removing a
268         collapsed chunk from chunk table. Found by Laurent Gonzalez
269         (fis_load): Fixed a compiler warning.
270
271 2004-05-31  Jani Monoses <jani@iv.ro>
272
273         * src/main.c:
274         * include/redboot.h: Get rid of unused workspace_size.
275         
276 2004-05-16  Andrew Dyer  <adyer@righthandtech.com>
277 2004-05-27  Jonathan Larmour  <jifl@eCosCentric.com>
278
279         * src/fs/ide.c: make sure IDE_STAT_BSY is 0 before checking other
280         bits in the status register
281
282 2004-05-21  Ian Campbell  <icampbell@arcom.com>
283          
284         * src/main.c: Make it build without CYGSEM_REDBOOT_FLASH_ALIASES.
285         
286 2004-05-05  Gary Thomas  <gary@mlbassoc.com>
287
288         * src/flash.c (fis_load): CRC check on load was broken (the CDL
289         option changed names)
290
291 2004-04-29  Jonathan Larmour  <jifl@eCosCentric.com>
292
293         * doc/redboot_epilogue.sgml: Comment out </part> to reflect change
294         of 2004-04-19.
295
296 2004-04-23  Gary Thomas  <gary@mlbassoc.com>
297
298         * src/main.c: 
299         * src/fs/fileio.c: 
300         * src/net/net_io.c: 
301         * src/load.c: 
302         * src/flash.c: 
303         * include/redboot.h: Add asserts to check that option arrays
304         are not overrun (when used with variable number of options).
305
306 2004-04-23  Gary Parnes  <garyp@logicpd.com>
307
308         * src/net/tftp_client.c: The port, if specified by the user,
309         is now corrected for endianness issues.
310
311 2004-04-19  Gary Thomas  <gary@mlbassoc.com>
312
313         * src/fs/fileio.c: Can't test for CYGPKG_IO_FLASH_BLOCK_DEVICE without
314         first testing for CYGPKG_IO_FLASH and including it's pkgconf file.
315
316 2004-04-19  John Dallaway  <jld@ecoscentric.com>
317
318         * doc/makefile, doc/redboot_main.sgml: New files to build the RedBoot
319         User's Guide as a self-contained document.
320
321         * doc/redboot.sgml: Eliminate <part> tag to build the RedBoot User's
322         Guide as a self-contained document.
323
324 2004-03-30  Mark Salter  <msalter@redhat.com>
325
326         * src/net/udp.c (__udp_recvfrom_handler): Protect against back-to-back
327         duplicate packets.
328
329 2004-03-17  Thomas Koeller <thomas.koeller@baslerweb.com>
330
331        * src/fs/fileio.c: Only include IO package headers if required.
332
333 2004-03-02  Andrew Dyer  <adyer@righthandtech.com>
334
335         * src/load.c: add -p option to help string and only print it and -h if
336         CYGPKG_REDBOOT_NETWORKING is enabled.  Add a CR to the end of the 
337         SHORT_DATA message string
338
339 2004-02-27  Jani Monoses <jani@iv.ro>
340
341         * src/net/http_client.c: Close connection with abort instead of
342         friendly close since for ELF files we don't read the whole content
343         but end the connection when the runnable parts are in. The server
344         interprets close as it has nothing more to receive, but it still wants
345         to send the rest of the file and does that until it times out.
346         
347 2004-02-26  Jani Monoses <jani@iv.ro>
348
349         * src/load.c:
350         * src/net/http_client.c: Allow overriding the default HTTP port.
351
352 2004-02-25  Gratian Crisan <nelu@iv.ro>
353
354         * src/xyzModem.c: Do not read an information header for XModem 
355         in xyzModem_stream_open(). XModem does not have a file information
356         header and this caused in the previous implementation a retransmission
357         of the first data block (it was read and ignored in the open function).
358
359 2004-02-24  Gary Thomas  <gary@mlbassoc.com>
360
361         * cdl/redboot.cdl: net_io needs to be in libextras to enable network
362         support (failed if network debug was disabled)
363
364 2004-02-23  Uwe Kindler  <uwe_kindler@web.de>
365
366         * src/cksum.c:
367         * src/dump.c:
368         * src/fconfig.c:
369         * src/flash.c:
370         * src/load.c:
371         * src/main.c:
372         * src/mcmp.c:
373         * src/mcopy.c:
374         * src/mfill.c:
375         * src/net/net_io.c:
376         * src/net/ping.c: Minor cleanups to remove warnings.
377
378 2004-02-20  Jonathan Larmour  <jifl@eCosCentric.com>
379
380         * doc/redboot.sgml: Document lowering security level for TFTP to
381         work on more recent Red Hat Linux.
382
383 2004-02-19  Jani Monoses <jani@iv.ro>
384
385         * src/xyzModem.c: Start with sending a 'C', do not wait until the
386         first packet from the sender.This allows download to start quicker.
387         
388 2004-02-16  Andrew Dyer  <adyer@righthandtech.com>
389
390         * src/main.c: add 'go' options to help string
391
392 2004-02-11  Jonathan Larmour  <jifl@eCosCentric.com>
393
394         * cdl/redboot.cdl: Bring CYGNUM_REDBOOT_LOAD_ZLIB_BUFFER under
395         CYGBLD_BUILD_REDBOOT_WITH_ZLIB. Add CYGPRI_REDBOOT_ZLIB_FLASH to
396         control whether decompression can be used with flash images.
397         * src/flash.c: Use CYGPRI_REDBOOT_ZLIB_FLASH instead of
398         CYGPKG_COMPRESS_ZLIB.
399         * src/load.c: Use CYGBLD_BUILD_REDBOOT_WITH_ZLIB in place of
400         CYGPKG_COMPRESS_ZLIB.
401         * src/main.c: only set fis_zlib_common_buffer if
402         CYGPRI_REDBOOT_ZLIB_FLASH.
403
404         * src/main.c (set_comm_baud_rate): Get current rate with GETBAUD
405         not SETBAUD!
406
407 2004-02-04  Gary Thomas  <gary@mlbassoc.com>
408
409         * cdl/redboot.cdl: Do not build with "common" interrupt stack
410         support.  This can cause problems when running programs (via
411         the "go" command) as interrupts will corrupt RedBoot's stack.
412
413 2004-01-18  Gary Thomas  <gary@mlbassoc.com>
414
415         * src/main.c: Fix build problem if GDB stubs are not included.
416         Minor warning cleanup (cast on NO_MEMORY).
417
418 2003-12-21  Gary Thomas  <gary@mlbassoc.com>
419
420         * src/net/tcp.c (tcp_send): Add [restore] delay into TCP write
421         path.  Sadly, there seems to be some issue where some ACK packets
422         get lost unless this is present (at least on some hardware).  
423         n.b. a small delay here is definitely preferable to the horrendous
424         delays imposed by TCP retries if this condition occurs.
425
426         * src/fconfig.c: 
427         * include/flash_config.h: New functions for get/set/enumerate
428         config data which can be used via virtual vector interface.
429
430 2003-12-12  Jani Monoses <jani@iv.ro>
431
432         * src/net/tcp.c: Cancel retransmission timer when SYN is acked
433         otherwise an open active connection which doesn't send data
434         eventually resends the SYN resulting in reset from the peer.
435
436 2003-12-08  Gary Thomas  <gary@mlbassoc.com>
437
438         * cdl/redboot.cdl: Better handling of GDB stubs support.  This
439         should be automatically included if the platform supports GDB.
440         Disabling CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS (in the common HAL)
441         will fully disable GDB support.
442
443 2003-12-05  Gary Thomas  <gary@mlbassoc.com>
444
445         * src/decompress.c (gzip_init): Memory pool initialization should
446         only be done in _zlib_init().
447
448 2003-12-05  Ian Campbell  <icampbell@arcom.com>
449
450         * src/decompress.c: Ensure that free'd blocks are returned to the
451         free pool and that adjacent free blocks are merged. Initialise the
452         pool in _zlib_init() so that things are initialised even when
453         gzip_init hasn't been called.
454
455 2003-12-05  Gary Thomas  <gary@mlbassoc.com>
456
457         * src/io.c (_rb_gets_preloaded): ^A could have moved the cursor to
458         the wrong location on the screen if ^F/^B had been used.
459
460 2003-12-03  David Vrabel  <dvrabel@arcom.com>
461
462         * src/time_date.cxx (do_time_date): Use YYYY/MM/DD HH:MM:SS format
463         throughout (instead of the American specific format).  Expand
464         range of valid years to 1970 - 2034 (instead of 2000 - 2034).
465         
466 2003-11-27  David Woodhouse  <dwmw2@redhat.com>
467
468         * cdl/redboot.cdl, fs/fileio.c, include/fs/fileio.h, src/load.c: 
469         Support for mounting and loading files from fileio file systems
470         such as JFFS2.
471
472 2003-11-25  John Dallaway  <jld@ecoscentric.com>
473
474         * src/fconfig.c (load_flash_config):
475         Fix typo in output string.
476         
477 2003-11-24  Gary Thomas  <gary@mlbassoc.com>
478
479         * src/net/bootp.c (__bootp_find_local_ip): 
480         Suppress diagnostic message that DNS info found.
481
482 2002-11-24  Jani Monoses  <jani@iv.ro>
483
484         * src/flash.c: Remove references to FLASH_MIN_WORKSPACE.
485
486 2003-11-21  David Vrabel  <dvrabel@arcom.com>
487
488         * src/net/bootp.c (bootp_handler): Scan for DHCP Message Type tag
489         as it isn't always the first tag.
490
491         * include/net/bootp.h: New #define's for DHCP message types
492         (DHCP_MESSAGE_TYPE_DISCOVER etc.).
493         
494 2002-11-20  Jani Monoses  <jani@iv.ro>
495
496         * src/flash.c: flash_init() no longer takes three args.
497
498 2003-11-19  David Woodhouse  <dwmw2@redhat.com>
499  
500         * src/main.c: Restore correct old baud rate if changing fails.
501  
502 2003-11-13  Gary Thomas  <gary@mlbassoc.com>
503
504         * src/main.c (do_go): Need to stop catching exceptions when running a
505         user program, otherwise GDB will never run when the program fails, gets
506         a ^C interrupt, etc.  Also, clean up [remove] some cache debug code.
507
508 2003-11-12  Gary Thomas  <gary@mlbassoc.com>
509
510         * misc/redboot_XXX.ecm: Removed - since it was only a source of confusion.
511
512 2003-11-07  Gary Thomas  <gary@mlbassoc.com>
513
514         * src/net/dns.c: 
515         * src/net/bootp.c: 
516         * include/net/net.h: Use DNS server address from DHCP if provided.
517         Inspired by John Newlin <jnewlin@rawbw.com>
518
519         * src/flash.c (fis_init): Take out misleading warning - since the
520         new [default] behaviour of "fis free" means free space need not
521         be necessarily erased on the device.
522
523 2003-11-04  Gary Thomas  <gary@mlbassoc.com>
524
525         * src/flash.c (find_free): Better handling of end address - otherwise
526         list of free blocks could be incorrect.  Thanks to Chris Garry.
527
528 2003-11-01  Gary Thomas  <gary@mlbassoc.com>
529
530         * cdl/redboot.cdl: Reorg to allow disk operations on other than
531         IDE drives.
532
533 2003-10-23  Gary Thomas  <gary@mlbassoc.com>
534
535         * src/main.c (cyg_start): Try to catch illegal memory accesses and
536         other abort conditions during command execution.
537
538 2003-10-17  Gary Thomas  <gary@mlbassoc.com>
539
540         * src/load.c: Only examine loadable segments when scanning to determine
541         lowest loadable address (only used when -b XXX option used).  Otherwise,
542         an offset into space could be chosen.
543
544 2003-10-16  Jonathan Larmour  <jifl@eCosCentric.com>
545
546         * doc/redboot_installing.sgml: Fix eb40 flash install instructions.
547
548 2003-10-15  Gary Thomas  <gary@mlbassoc.com>
549
550         * src/flash.c: 
551         * src/fconfig.c: Better handling of layout of fconfig and fis
552         data within the FLASH.  Should work for even flash devices with
553         very smal block sizes.
554
555         * include/redboot.h (RedBoot_INIT_SECOND): 
556         Finer initialization control.
557
558         * cdl/redboot.cdl: Combine FIS directory and FCONFIG database
559         by default.  This results in better FLASH utilization. Also define
560         number of FIS directory slots.  This will allow support for FLASH
561         devices with very small block sizes.
562
563 2003-10-12  Gary Thomas  <gary@mlbassoc.com>
564
565         * src/flash.c (fis_create): Verify that any hard FLASH addresses
566         (given via -f XXX) are known to be free.
567
568 2003-10-11  Gary Thomas  <gary@mlbassoc.com>
569
570         * src/flash.c: 
571         * cdl/redboot.cdl: Change 'fis free' to use the directory structure
572         to determine what space is free in the FLASH.  This is controlled 
573         by the CDL option CYGDAT_REDBOOT_FIS_MAX_FREE_CHUNKS so the old
574         behaviour can still be defined if desired.
575
576 2003-10-09  Gary Thomas  <gary@mlbassoc.com>
577
578         * src/flash.c (fis_create): Check whole length of image, not just 
579         effective size, when validating addresses.
580
581         * src/net/net_io.c (net_init): 
582         * include/net/net.h: Rework handling of multiple network devices.  All
583         devices will now be initialized, with either the first or the default
584         device actually used for I/O.
585
586 2003-10-06  Gary Thomas  <gary@mlbassoc.com>
587
588         * src/net/net_io.c: 
589         * src/net/bootp.c: Fix some compile problems if GATEWAY support is disabled.
590
591         * src/flash.c (fis_list): Display FIS directory entries in FLASH
592         address (sorted) order.
593
594 2003-10-03  Gary Thomas  <gary@mlbassoc.com>
595
596         * src/flash.c (fis_delete): 'fconfig' data only shows up in FIS if
597         the data is stored in FLASH - account for this.  Also, make sure 
598         FLASH gets initialized if built without 'fconfig' enabled.
599
600 2003-10-02  Gary Thomas  <gary@mlbassoc.com>
601
602         * src/fconfig.c: 
603         * cdl/redboot.cdl: Allow platforms to provide a function to validate
604         ethernet station addresses.
605
606 2003-09-30  Gary Thomas  <gary@mlbassoc.com>
607
608         * src/fconfig.c (do_flash_config): Fix typo in error message.
609
610 2003-09-30  David Vrabel  <dvrabel@arcom.com>
611
612         * src/net/tcp.c: Include missing <cyg/infra/diag.h>.
613
614         * include/redboot.h, src/parse.c (init_opts, scan_opts): Remove
615         the excessive level of indirection in the handling of option
616         arguments.
617         
618 2003-09-29  Gary Thomas  <gary@mlbassoc.com>
619
620         * src/load.c (load_elf_image): Use LMA (loader memory address), instead
621         of VMA (virtual memory address) to load code.  If LMA != VMA, it's up
622         to the loaded program to figure it out.  
623         Inspired by Artur Lipowski <LAL@pro.onet.pl>
624
625 2003-09-26  Nick Garnett  <nickg@balti.calivar.com>
626
627         * doc/redboot_installing.sgml: Fixed bogus memory sizes in AT91
628         EB42/55 description.
629
630 2003-09-26  Gary Thomas  <gary@mlbassoc.com>
631
632         * src/flash.c (fis_free, fis_find_free): 
633         Fix some problems introduced with the new FLASH interfaces (used by 
634         NAND devices)
635
636         * src/fconfig.c: Honor FLASH/FIS configury.
637
638         * src/net/bootp.c: 
639         * src/fs/ide.c: Clean up some compiler warnings.
640
641 2003-09-25  Gary Thomas  <gary@mlbassoc.com>
642
643         * src/net/bootp.c: Rework DHCP process to handle really stubborn
644         servers.
645
646 2003-09-24  Gary Thomas  <gary@mlbassoc.com>
647
648         * src/net/bootp.c (__bootp_find_local_ip): Forgot to unregister
649         UDP handler - could cause serious problems later!  Also, fix
650         problem with retries after DHCP discovery phase.
651
652 2003-09-23  Gary Thomas  <gary@mlbassoc.com>
653
654         * src/net/bootp.c (__bootp_find_local_ip): Handle retries on DHCP 
655         requests better.
656
657 2003-09-22  Gary Thomas  <gary@mlbassoc.com>
658
659         * cdl/redboot.cdl: Fix compile error for systems with no FLASH.
660
661 2003-09-21  Gary Thomas  <gary@mlbassoc.com>
662
663         * cdl/redboot.cdl: Make DNS truly optional (remove from template).
664         BUG #57316
665
666 2003-09-20  Gary Thomas  <gary@mlbassoc.com>
667
668         * src/fs/ide.c: Improve IDE handling by having init function return
669         actual number of controllers detected.  This avoids really long times
670         for startup if the controller is missing.
671
672         * src/net/bootp.c: Rework to use full DHCP protocol.  Previously,
673         once an offer came in, RedBoot was happy, without actually making
674         the address reservation and waiting for the final acknowledgement.
675         Also, added CDL to enable/disable DHCP.  BUG #1000053
676
677 2003-09-20  Chris Garry  <cgarry@sweeneydesign.co.uk>
678         
679         * src/main.c: Modified the way multiple "RAM" segments are reported.
680
681         * src/fconfig.c: Variables 'stat' and '*err_addr' in function
682         flash_write_config() are now defined regardless of whether 
683         CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG is defined of not.
684
685 2003-09-19  Gary Thomas  <gary@mlbassoc.com>
686
687         * src/net/timers.c (__timer_poll): Need to call MS_TICKS_DELAY() or
688         else time will never progress.  This can cause a missed TCP packet
689         to cause the stack to freeze.  BUG #23006
690
691         * src/net/tftp_client.c: Make timeout on very first transaction really
692         long - again since some servers are just slow/ill mannered.
693
694         * src/net/net_io.c: Allow default server IP to be always enabled, thus
695         it can override what is provided by BOOTP/DHCP (since some DHCP servers
696         don't provide this properly).
697
698         * src/time_date.cxx: New file - support "date" command for platforms
699         with battery backed up clocks.
700
701         * src/fconfig.c: New file - split out from flash.c
702
703         * src/main.c: 
704         * src/load.c: 
705         * src/flash.c: 
706         * src/alias.c: 
707         * include/redboot.h: 
708         * cdl/redboot.cdl: Support multiple "RAM" segments (known writable
709         memory).  Also rearrange FLASH & FCONFIG, separating them as much
710         as possible and supporting FCONFIG data stored in some other sort
711         of device, like EEPROM.
712
713 2003-09-09  Gary Thomas  <gary@mlbassoc.com>
714
715         * src/flash.c (flash_config_insert_value): Default value was
716         wrong for ESA type.
717
718 2003-09-08  David Vrabel  <dvrabel@arcom.com>
719
720         * src/net/bootp.c (__bootp_find_local_ip): Adds Option 55 Parameter
721         Request List) to the DHCP request (requests: Subnet Mask; Router;
722         Domain Name server).
723
724 2003-08-19  Gary Thomas  <gary@mlbassoc.com>
725
726         * src/net/udp.c (__udp_recvfrom): Rework loop so delay only happens
727         if no packet is immediately available - improves network throughput.
728
729         * src/ticks.c: 
730         * cdl/redboot.cdl: Add control over granularity of timers used
731         by RedBoot and the network stack.
732
733 2003-08-05  Jonathan Larmour  <jifl@eCosCentric.com>
734
735         * doc/redboot_installing.sgml: Fix brain fart in last change to
736         AT91 instructions. Also clarify instructions a bit, including
737         documenting better for windows users.
738
739 2003-07-23  Patrick Doyle  <wpd@dtccom.com>
740
741         * src/flash.c (fis_find_free)
742         * src/flash.c (fis_free): Do not search areas reserved for RedBoot
743         when scanning for free space.
744
745 2003-07-16  Gary Thomas  <gary@mlbassoc.com>
746
747         * src/net/ping.c:
748         * src/net/bootp.c: Allow ^C to abort.
749
750         * src/io.c: 
751         * include/redboot.h: New function _rb_break() used to test for ^C
752         on the console.  Used to break out of long operations like BOOTP.
753
754 2003-07-15  Gary Thomas  <gary@mlbassoc.com>
755
756         * src/net/bootp.c: Use correct options for DHCP discover.  This has
757         the added bonus that when BOOTP & GATEWAY options are enabled, then
758         RedBoot can get it's address via normal DHCP.  Of course, DHCP leases
759         will be ignored by RedBoot, so some caution is warranted.
760
761         * include/net/net.h: 
762         * src/net/arp.c (__arp_request): Allow ARP of self - used during
763         initialization to "broadcast" that an IP address is in use.
764
765         * src/net/net_io.c (net_init): When using a static IP, send an
766         initial ARP to see if any other node is using this address.
767         Also, some minor cosmetic cleanups to remove warnings.
768
769 2003-07-15  Jonathan Larmour  <jifl@eCosCentric.com>
770
771         * doc/redboot_installing.sgml (AT91): Tell users to switch JP1
772         (or SW1 for EB40) when installing, and warn them in no
773         uncertain terms the consequences of failing to do so.
774
775 2003-07-01  Mark Salter  <msalter@redhat.com>
776
777         * cdl/redboot.cdl (CYGBLD_BUILD_REDBOOT_WITH_MCOPY): New option.
778         * src/mcopy.c: New file adding mcopy command.
779         * doc/redboot_cmds.sgml: Add mcopy.
780
781 2003-06-26  Jonathan Larmour  <jifl@eCosCentric.com>
782
783         * doc/redboot_installing.sgml: Clarify use of correct cables with
784         serial ports with AT91 boards.
785
786 2003-06-24  Jonathan Larmour  <jifl@eCosCentric.com>
787
788         * doc/redboot_cmds.sgml (IP): Clarify last change a bit and fix typos
789         and markup.
790
791 2003-05-20  David Vrabel  <dvrabel@arcom.com>
792 2003-05-20  Ian Campbell  <icampbell@arcom.com>
793  
794         * src/net/net_io.c: Add the ability to specify a netmask length to
795         the ip_address command
796         * doc/redboot_cmds.sgml: Document the above.
797
798 2003-06-24  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
799 2003-06-24  Jonathan Larmour  <jifl@eCosCentric.com>
800
801         * src/net/tftp_client.c: Define tftp_stream.last_good_block to
802         permit downloads > 32MB.
803         (tftp_ack): Allow last_good_block to wrap.
804         (tftp_stream_read): Ditto.
805
806         * src/net/bootp.c: Use correct DHCP message type for DHCPREQUEST.
807
808 2003-05-20  Mark Salter  <msalter@redhat.com>
809
810         * cdl/redboot.cdl (CYGBLD_REDBOOT_CMD_LINE_HISTORY): New option.
811         * src/io.c: Support history command and history expansion.
812         * doc/redboot.sgml: Document command history support.
813
814 2003-05-14  Mark Salter  <msalter@redhat.com>
815
816         * src/flash.c (flash_get_config): Add CONFIG_NETPORT case.
817
818 2003-05-13  Nick Garnett  <nickg@balti.calivar.com>
819
820         * doc/redboot_installing.sgml: Added installation instructions for
821         Atmel EB40A, EB42 and EB55 boards.
822
823 2003-05-06  Mark Salter  <msalter@redhat.com>
824
825         * src/main.c (cyg_start): Clear gdb_active when returning from stub.
826
827 2003-05-06  Pierre Habraken  <Pierre.Habraken@imag.fr>
828
829         * cdl/redboot.cdl: Added option
830         CYGOPT_REDBOOT_BSP_SYSCALLS_EXIT_WITHOUT_TRAP for enabling (possibly
831         single shot) programs to exit and return a termination status as
832         their normal behavior (i.e. without raising a SIGTRAP).
833         * src/syscall.c (__do_syscall): Added conditionally compiled code
834         to SYS_exit for returning to RedBoot main loop without raising a
835         SIGTRAP, even when the calling program is not being debugged.
836         * src/main.c (cyg_start): Added code (following Jonathan Larmour's
837         and Mark Salter's suggestions) to RedBoot main loop: a (context)
838         savepoint is created before the thread of control is transferred to
839         gdb stubs (through a trampoline procedure). This savepoint enables
840         the stubs to return control back to the main loop by calling the
841         return_to_redboot procedure (macro CYGACC_CALL_IF_MONITOR_RETURN).
842         Procedure go_trampoline and variables go_saved_context and
843         go_return_status have been respectively renamed to trampoline,
844         saved_context and return_status.
845
846 2003-04-23  Chris Garry <cgarry@sweeneydesign.co.uk>
847         
848         * src/flash.c: Only perform RAM check in fis load command when 
849         CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS = 1
850
851 2003-04-18  Gary Thomas  <gary@mlbassoc.com>
852
853         * src/net/tftp_client.c: Arrange to ACK last good packet when closing.
854         Without this, the host can be left tryint to send that packet forever.
855
856 2003-04-14  Jani Monoses  <jani@iv.ro>  
857         
858         * src/load.c:
859         Change #else if to #elif so it compiles when TFTP is disabled. 
860         
861 2003-04-08  Jonathan Larmour  <jifl@eCosCentric.com>
862
863         * src/main.c (do_go): Silence unused variable warning when no net.
864
865 2003-04-04  Mark Salter  <msalter@redhat.com>
866
867         * src/main.c (do_go): Add -n switch to optionally stop network
868         device. Mask interrupts on all comm channels.
869         Don't scan for -n unless ethernet configured in.
870         * doc/redboot_cmds.sgml: Update go command info.
871
872 2003-04-03  Gary Thomas  <gary@mlbassoc.com>
873
874         * src/load.c: Better handling of default download mode.  Also
875         display information when I/O errors occor (was silent).
876         (do_load): Handle case when X-modem protocol is disabled.
877
878         * src/net/http_client.c: 
879         * include/net/http.h: Improve parsing of HTTP responses for errors.
880
881 2003-03-28  Gary Thomas  <gary@mlbassoc.com>  inspired by
882 2003-03-28  Jani Monoses <jani@iv.ro>   
883
884         * src/load.c: 
885         * cdl/redboot.cdl: Make TFTP download protocol optional.
886
887 2003-03-20  Mark Salter  <msalter@redhat.com>
888
889         * include/flash_config.h (CONFIG_NETPORT): New config option.
890         * src/flash.c: Support CONFIG_NETPORT.
891         * cdl/redboot.cdl: New option to select default ethernet device.
892         * src/net/net_io.c: Support multiple ethernet devices.
893         * include/net/net.h: Add externs for net_devname and net_devindex.
894         
895 2002-03-19  John Dallaway  <jld@ecoscentric.com>
896
897         * doc/redboot_installing.sgml: Update Atmel AT91EB40 RedBoot
898         installation instructions.
899
900 2003-03-18  Mark Salter  <msalter@redhat.com>
901
902         * doc/redboot_installing.sgml: Add XScale IXDP425 and GRG.
903
904 2003-03-05  Jonathan Larmour  <jifl@eCosCentric.com>
905
906         * src/main.c (do_version): Test for CYGPKG_REDBOOT_FLASH as
907         CYGPKG_IO_FLASH can be loaded with no underlying hardware drivers!
908
909 2003-03-03  Gary Thomas  <gary@mlbassoc.com>
910
911         * src/main.c (set_console_baud_rate): Avoid "unused" warning.
912
913 2003-03-03  Knud Woehler  <knud.woehler@microplex.de>
914
915         * src/flash.c: fis_work_block was not initialized in do_flash_init()
916         thus fis_lookup() does not work if called via the virtual vector table.
917         
918 2003-02-24  Jonathan Larmour  <jifl@eCosCentric.com>
919
920         * doc/redboot.sgml: De-vendorise a little.
921         Fix extraneous <para>.
922
923         * cdl/redboot.cdl: Add doc links.
924
925 2003-02-14  Jonathan Larmour  <jifl@eCosCentric.com>
926
927         * cdl/redboot.cdl: Put virtually all options inside
928         CYGBLD_BUILD_REDBOOT. And indent accordingly.
929
930 2003-02-04  Gary Thomas  <gary@mind.be>
931
932         * src/fs/ide.c: Print more info if failed to identify IDE device.
933
934         * src/fs/e2fs.c: Improved debug output.
935
936 2003-02-04  Mark Salter  <msalter@redhat.com>
937 2003-02-04  Brian Murphy <brian@murphy.dk>
938
939         * src/main.c (return_to_redboot): Add CYGARC_HAL_RESTORE_GP.
940
941 2003-01-31  Mark Salter  <msalter@redhat.com>
942
943         * src/main.c: Add support to allow programs started by go to
944         return to RedBoot.
945
946         * src/syscall.c (__do_syscall): Return to monitor on program exit
947         if gdb not active.
948         (sys_timer_isr): Return CYG_ISR_HANDLED.
949
950 2003-01-10  Patrick Doyle  <wpd@delcomsys.com>
951
952         * src/load.c (do_load): Don't abort and complain about overwriting
953         the end of RAM when loading raw data files and we already asked
954         the user if it was ok to write outside what we believe to be RAM.
955
956 2002-12-31  Patrick Doyle  <wpd@delcomsys.com>
957
958         * src/decompress.c (gzip_close): Don't complain that decompression
959         didn't complete when the stream reaches its end.
960
961 2002-12-18  David Mazur  <david@mind.be>
962 2002-12-18  Mark Salter  <msalter@redhat.com>
963
964         * src/fs/e2fs.c (e2fs_get_gdesc): Fixed handling of group descriptor
965         cache misses.
966
967 2002-12-03  Gary Thomas  <gthomas@ecoscentric.com>
968
969         * src/main.c: Export version string via virtual vector table.
970
971 2002-11-05  Jonathan Larmour  <jifl@eCosCentric.com>
972
973         * src/io.c (_rb_gets_preloaded): Null terminate when buffer full.
974
975 2002-10-24  Gary Thomas  <gthomas@ecoscentric.com> (inspired by)
976 2002-10-24  Jay Foster <jay@systech.com>        
977
978         * include/net/bootp.h (BP_MIN_VEND_SIZE): 
979         * src/net/bootp.c (__bootp_find_local_ip): Require a minimum vendor
980         area to always be sent (to keep some servers happy).
981
982         * src/flash.c: Fix typo for "FIS DELETE"
983
984 2002-09-16  Mark Salter  <msalter@redhat.com>
985
986         * src/main.c (set_console_baud_rate): Handle CYGPKG_REDBOOT_ANY_CONSOLE.
987         (set_comm_baud_rate): New function.
988
989 2002-09-13  Mark Salter  <msalter@redhat.com>
990
991         * src/decompress.c: Move error handling back into gzip_close to
992         fix xyzmodem loads.
993
994 2002-09-12  Mark Salter  <msalter@redhat.com>
995
996         * src/decompress.c (gzip_inflate): Fix error return so that upper
997         doesn't quit on Z_STREAM_END.
998         (gzip_close): Move error handling into gzip_inflate.
999         
1000         * src/load.c (do_load): Fix printing of address range for raw loads.
1001
1002 2002-09-11  Mark Salter  <msalter@redhat.com>
1003
1004         * src/main.c (do_go): Turn on line flushes before jumping to function.
1005         * src/net/net_io.c (net_io_control): Support flushes at end of lines.
1006
1007 2002-09-03  Yoshinori Sato <qzb04471@nifty.ne.jp>
1008 2002-09-03  Mark Salter  <msalter@redhat.com>
1009
1010         * include/fs/disk.h (__SWAB32): Fix incorrect masking.
1011         * src/fs/e2fs.c (e2fs_inode_block): Fix endianess of block numbers.
1012
1013 2002-08-29  Mark Salter  <msalter@redhat.com>
1014
1015         * src/net/net_io.c (net_init): Initialize dns before showing addresses.
1016
1017 2002-08-26  Thomas Koeller <thomas@koeller.dyndns.org>
1018
1019         * src/flash.c: Do not warn about overwriting image data if
1020         -n option is used with 'fis create'. For 'fis load',
1021         perform load size check based on actual data length, not
1022         image size.
1023
1024 2002-08-22  Mark Salter  <msalter@redhat.com>
1025
1026         * src/net/net_io.c (net_io_putc): Don't flush on every \n.
1027         * src/syscall.c (__do_syscall): Allow fileio support to fall back
1028         to non-fileio behavior if program is not being run by gdb.
1029
1030 2002-08-20  Thomas Koeller  <thomas@koeller.dyndns.org>
1031
1032         * cdl/redboot.cdl:
1033         * include/redboot.h:
1034         * src/main.c:
1035         * src/flash.c:
1036         * src/decompress.c: Use a common buffer for FIS directory
1037         manipulation and zlib workspace to conserve RAM.
1038
1039 2002-08-20  Thomas Koeller  <thomas@koeller.dyndns.org>
1040  
1041         * cdl/redboot.cdl:
1042         * include/fis.h: Allow control of FIS descriptor padding.
1043
1044 2002-08-16  Jani Monoses  <jani@iv.ro>
1045
1046         * src/io.c: Do not add empty lines to command history.
1047         * src/net/http_client.c: Read all data when in CLOSE_WAIT
1048         otherwise if the server closes quickly enough nothing is 
1049         received.
1050         
1051 2002-08-09  Andrew Lunn  <andrew.lunn@ascom.ch>
1052         
1053         * src/crc.c: Removed. Replaced with the CRC package.
1054         * src/cksum.c: Removed the posix_crc function.
1055         * src/flash.c: Use the crc package crc functions.
1056         * src/xyzModem.c: Ditto
1057         * include/redboot.h: Use the crc package include file.
1058         * cdl/redboot.cdl: removed crc.c 
1059
1060 2002-08-09  Jani Monoses  <jani@iv.ro>
1061
1062         * src/net/http_client.c: use standard HTTP GET request ('/' 
1063         instead of ' ' in HTTP/1.0) to work with all servers
1064         
1065 2002-08-08  Jani Monoses  <jani@iv.ro>
1066
1067         * src/flash.c: fis delete should mark the slot as reusable
1068         not just delete the area of flash used by the file.
1069         
1070 2002-08-08  Gary Thomas  <gthomas@ecoscentric.com>
1071 2002-08-08  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>       
1072
1073         * src/load.c (do_load): Make sure 'io_tab' is set before using it.
1074
1075 2002-08-07  Gary Thomas  <gary@chez-thomas.org>
1076
1077         * src/net/tftp_client.c: 
1078         * include/net/tftp.h: Make block numbers unsigned to handle files
1079         larger than 16MB.
1080
1081 2002-08-06  Gary Thomas  <gary@chez-thomas.org>
1082
1083         * src/crc.c: POSIX crc code is now separate.
1084         
1085         * src/mfill.c: 
1086         * src/mcmp.c: 
1087         * src/dump.c: 
1088         * src/cksum.c: 
1089         * src/caches.c: New (split out) file(s).
1090
1091         * src/main.c: 
1092         * cdl/redboot.cdl: Split major CLI functionality to separate
1093         files, more easily controlled by CDL - inspired by Andrew.
1094
1095 2002-08-06  Andrew Lunn  <Andrew.Lunn@ascom.ch>
1096
1097         * src/io.c: Fix the parsing of boot scripts to allow the use
1098           of aliases. This was broken when the ability to do startup
1099           type specific scripting was added.
1100
1101 2002-08-05  Andrew Lunn  <Andrew.Lunn@ascom.ch>
1102
1103         * src/main.c: Made more of the commands conditionally compilable
1104         * cdl/redboot.cdl: CDL code to control the compilation.
1105         
1106 2002-07-30  Gary Thomas  <gary@chez-thomas.org>
1107
1108         * src/net/net_io.c: Handle broadcast/mask setup better (failed if
1109         not found in FLASH).  Also print on network info line.
1110
1111 2002-07-18  Gary Thomas  <gary@chez-thomas.org>
1112
1113         * src/net/tftp_client.c: 
1114         * src/net/http_client.c: 
1115         * src/fs/disk.c: 
1116         * src/xyzModem.c: 
1117         * src/load.c: 
1118         * include/redboot.h: Rework load/mode information tables so that
1119         load I/O methods can detect actual mode (e.g. X-modem vs Y-modem)
1120
1121 2002-07-16  Hendrik Ruijter  <Hendrik.Ruijter@axis.com>
1122 2002-07-16  Mark Salter  <msalter@redhat.com>
1123
1124         * include/net/net.h: Add __tcp_abort prototype.
1125
1126         * src/net/icmp.c: The default handler can be replaced by a
1127         user defined handler which handles all ICMP segments.
1128
1129         * src/net/ping.c
1130         (handle_icmp): Only ICMP Echo Reply segments must be counted and
1131         ICMP Echo Requests are handled in the user defined handler.
1132
1133         * src/net/tcp.c
1134         (do_abort, __tcp_abort): Send an RST flag in order to abort a
1135         connection. May use a delay to send the flag.
1136
1137 2002-07-15  Mark Salter  <msalter@redhat.com>
1138
1139         * src/net/net_io.c: Increase size of out_buf to 1024 bytes.
1140
1141 2002-07-11  Gary Thomas  <gary@chez-thomas.org>
1142
1143         * src/io.c (mon_read_char_with_timeout): Ensure interrupts are
1144         disabled on all I/O channels, except for the current console.
1145         This is done when selecting a console, as this process causes
1146         the interrupt state to be inherited from the current console.
1147
1148 2002-07-09  Gary Thomas  <gary@chez-thomas.org>
1149 2002-07-09  Grant Edwards <grante@visi.com>
1150
1151         * src/net/udp.c: 
1152         * src/net/net_io.c: 
1153         * src/net/ip.c: 
1154         * src/net/bootp.c: 
1155         * src/net/arp.c: 
1156         * include/net/net.h: 
1157         * include/net/bootp.h: 
1158         * cdl/redboot.cdl: Add basic support for non-local networking
1159         using a single gateway.  Based on contribution from Grant Edwards.
1160
1161 2002-07-01  Gary Thomas  <gary@chez-thomas.org>
1162
1163         * src/net/tftp_client.c: 
1164         * src/net/http_client.c: 
1165         * src/fs/disk.c: 
1166         * src/xyzModem.h: 
1167         * src/xyzModem.c: 
1168         * src/load.c: 
1169         * include/net/tftp_support.h: 
1170         * include/net/http.h: 
1171         * include/redboot.h: 
1172         * cdl/redboot.cdl: Make 'load' command stream I/O table driven.
1173
1174 2002-05-31  Jesper Skov  <jskov@redhat.com>
1175
1176         * doc/redboot_installing.sgml: Updated the remaining installation
1177         instructions (well, the top mode details anyway).
1178
1179 2002-05-29  Jesper Skov  <jskov@redhat.com>
1180
1181         * doc/redboot_cmds.sgml: Changed format of fis commands.
1182
1183         * doc/redboot_installing.sgml: Updated installation instructions
1184         for all targets up to PowerPC.
1185
1186 2002-05-28  Gary Thomas  <gthomas@redhat.com>
1187
1188         * src/load.c (load_elf_image): Improve loading of ELF files with
1189         multiple physical segments.
1190
1191 2002-05-27  Jesper Skov  <jskov@redhat.com>
1192
1193         * doc/redboot_rebuilding.sgml: Added some guimenu tags.
1194
1195         * doc/redboot_installing.sgml: Updating more board instructions.
1196         More updates. Changing most programlisting keywords to screen.
1197         Converted remaining rebuild instructions. More mode descriptions
1198         updated. iPAQ converted as well.
1199
1200 2002-05-24  Gary Thomas  <gthomas@redhat.com>
1201
1202         * src/load.c (load_elf_image): Improve loading where ELF image
1203         actually overlaps headers [old COFF style files].
1204
1205 2002-05-24  Jesper Skov  <jskov@redhat.com>
1206
1207         * doc/redboot_installing.sgml: Updated another 3 boards'
1208         instructions.
1209
1210         * doc/redboot.sgml: Changes due to comments from Jifl.
1211         * doc/redboot_rebuilding.sgml: Same.
1212         
1213         * doc/redboot.sgml: Fix wording.
1214
1215         * doc/redboot_installing.sgml: Reordered the platform sections
1216         according to CPU architecture/variant and board manufacturer.
1217
1218 2002-05-23  Jonathan Larmour  <jlarmour@redhat.com>
1219
1220         * src/net/dns.c (store_hent): New function. DNS package now requires
1221         this instead of the cyg_thread_get_data calls.
1222         (free_stored_hent): New function. Ditto.
1223
1224 2002-05-23  Gary Thomas  <gthomas@redhat.com>
1225
1226         * doc/redboot_cmds.sgml: Document new HTTP download mode.
1227
1228         * src/net/tcp.c: Improve some interfaces.  Add support for
1229         outgoing (__tcp_open) connections.
1230
1231         * src/net/net_io.c (net_io_flush): Use improved TCP interfaces.
1232
1233         * src/main.c (_mon_write_char): Map '\n' => '\r\n'.  This used
1234         to be done by diag_printf(), but that was the wrong place for it.
1235
1236         * include/net/net.h: Add support for TCP outgoing connections.
1237
1238         * src/net/http_client.c: 
1239         * include/net/http.h: New file(s) - HTTP client support.
1240
1241         * src/load.c: 
1242         * cdl/redboot.cdl: Support HTTP download mode.
1243
1244 2002-05-23  Jesper Skov  <jskov@redhat.com>
1245
1246         * doc/redboot.sgml: Moved the editing and resource sections to
1247         this document. Added new section on RedBoot (startup) modes.
1248         * doc/redboot_cmds.sgml: Removed the editing and resource
1249         sections.
1250         * doc/redboot_installing.sgml: Changed a couple of platform
1251         descriptions.
1252         * doc/redboot_rebuilding.sgml: Make use of mode/config
1253         consistent. Removed mode section.
1254
1255 2002-05-22  Jesper Skov  <jskov@redhat.com>
1256
1257         * doc/redboot_rebuilding.sgml: Added a note about redboot growing
1258         beyond its slot limits.
1259         Rewrote the RedBoot rebuilding documentation.
1260
1261         * src/flash.c (fis_create): Clarify error message. Get rid of bool
1262         flag slot_found that only duplicated fis variable state.
1263
1264 2002-05-21  Gary Thomas  <gthomas@redhat.com>
1265
1266         * src/xyzModem.h: 
1267         * src/xyzModem.c: 
1268         * src/load.c: Purge mention of Z-modem until it's implemented.
1269
1270 2002-05-21  Jesper Skov  <jskov@redhat.com>
1271
1272         * src/flash.c (fis_create): Removed one of the three questions to
1273         verify.
1274         * doc/redboot_rebuilding.sgml: Removed the query lines from the
1275         docs.
1276
1277         * doc/redboot_installing.sgml: Removed all the free RAM related
1278         resource descriptions. Left in a few timer resource descriptions.
1279         * doc/redboot_cmds.sgml: Refer to platform sections for additional
1280         platform-specific resource usage.
1281
1282         * doc/redboot_installing.sgml: Removed all platform specific
1283         references to the updating section which told the user to use
1284         specific flash paramemters. All this is now handled
1285         automagically.
1286
1287         * src/alias.c (lookup_alias): FREEMEMHI is just the high address
1288         masked to 1KB alignment.
1289
1290         * doc/redboot_cmds.sgml: Added load disk example.
1291         Added section on RedBoot resources.
1292
1293 2002-05-18  Gary Thomas  <gthomas@redhat.com>
1294
1295         * src/main.c (do_baud_rate): Improve safety by asking for verification
1296         after actually changing the rate, before updating fconfig data.  This
1297         reduces the chance of making a "brick" by setting a bad baud rate.
1298
1299         * src/flash.c (load_flash_config): Fix set_console_baud_rate prototype.
1300
1301         * src/io.c (verify_action_with_timeout): 
1302         * include/redboot.h: New function verify_action_with_timeout().
1303         Returns false if no response within XX ms (or ^C).
1304
1305 2002-05-17  Gary Thomas  <gthomas@redhat.com>
1306
1307         * src/main.c (do_help): 
1308         * src/flash.c: 
1309         * include/redboot.h: Support nested command structures, like "fis",
1310         better.
1311
1312 2002-05-17  Jesper Skov  <jskov@redhat.com>
1313
1314         * doc/redboot_rebuilding.sgml: Rewrote update procedure to become
1315         truly generic. Some minor tweaks.
1316
1317         * doc/redboot_cmds.sgml: Added id to cksum command.
1318
1319         * src/shex.c (load_shex_image): Set entry address to be base
1320         address.
1321         * src/load.c (do_load): Same.
1322
1323         * src/flash.c (fis_create): Infer correct exec and entry
1324         addresses.
1325
1326         * src/load.c (load_elf_image): Save load_address/end.
1327
1328         * src/flash.c: Made fis lock/unlock support optional image name
1329         instead of addresses. Made a few places of the code use fis_lookup
1330         instead of scanning the table by steam.
1331         (do_flash_config): Update flash after configuration has been
1332         initialized.
1333
1334 2002-05-16  Jesper Skov  <jskov@redhat.com>
1335
1336         * doc/redboot_cmds.sgml: Updated text on cksum to show the new
1337         output format.
1338
1339         * src/xyzModem.c (xyzModem_stream_read): Fix build breakage.
1340
1341         * doc/redboot.sgml: Some minor tweaks.
1342
1343         * src/alias.c (lookup_alias): Renamed freemem aliases.
1344
1345 2002-05-15  Jesper Skov  <jskov@redhat.com>
1346
1347         * src/io.c (verify_action): Replaced 'are you sure' with
1348         'continue'.
1349         * doc/redboot.sgml: Same.
1350
1351         * src/xyzModem.c: Let Y-modem load correct length. Don't remove
1352         assumed padding bytes since they may well be actual data. Don't
1353         read anything after the EOF package is received.
1354         Disabled the Y-modem header stuff again; it still needs the
1355         padding culling code. So in the end, only the EOF-package read
1356         was at fault.
1357
1358         * src/main.c: Tweak cksum output.
1359
1360         * src/flash.c (fis_create): language tweaks.
1361
1362         * src/main.c: Always call expand_aliases - leave it to that
1363         function to look for flash aliases when appropriate.
1364
1365         * src/flash.c: Moved basic alias expansion into separate file.
1366         * src/alias.c: New file. Always provide FREE_LOW & FREE_HIGH
1367         aliases, but also call flash_lookup_alias when defined.
1368
1369         * include/redboot.h: Added declarations for alias functions. Added
1370         getc_t and terminate_t types.
1371
1372         * src/load.c: Use getc_t/terminate_t types. Made raw load abort if
1373         user tries to load a file too big for memory.
1374
1375         * cdl/redboot.cdl: Compile alias.c.
1376
1377 2002-05-14  Jonathan Larmour  <jlarmour@redhat.com>
1378
1379         * src/version.c: Clarify comments.
1380
1381 2002-05-14  Gary Thomas  <gthomas@redhat.com>
1382
1383         * include/redboot.h: 
1384         * src/net/net_io.c: 
1385         * src/net/dns.c: Merge generic "ip" command with "dns" for
1386         more homogenous interface.
1387
1388 2002-05-13  Gary Thomas  <gthomas@redhat.com>
1389
1390         * cdl/redboot.cdl: Disable CYGOPT_REDBOOT_FIS_REDBOOT_BACKUP
1391         by default, since its use is currently unclear.
1392
1393         * src/flash.c (load_flash_config): Check for adequate FIS space
1394         was incorrect [when FIS directory and FCONFIG are combined].
1395         (fis_lookup): Image name lookup is case insensitive.
1396
1397 2002-05-10  Gary Thomas  <gthomas@redhat.com>
1398
1399         * src/flash.c: Lots of restructuring in support of combined
1400         FIS and FCONFIG data.
1401
1402         * cdl/redboot.cdl: 
1403         Add new option CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG
1404         to allow FIS directory and FCONFIG data to share the same
1405         physical FLASH block.
1406
1407 2002-05-03  Gary Thomas  <gthomas@redhat.com>
1408
1409         * src/flash.c (load_flash_config): Adjust fconfig database
1410         address - necessary if FLASH blocks are very small.
1411
1412 2002-05-02  Gary Thomas  <gthomas@redhat.com>
1413
1414         * src/load.c: Rework how decompression is done (with changes
1415         noted below).  Now turning on decompression works by pushing
1416         the decompress code into the stream I/O.
1417
1418         * src/flash.c (fis_load): 
1419         * src/decompress.c (gzip_inflate): 
1420         * include/redboot.h: Make decompression code more generalized.
1421
1422 2002-05-01  Gary Thomas  <gthomas@redhat.com>
1423
1424         * include/elf.h: New file.
1425
1426         * cdl/redboot.cdl: 
1427         * src/load.c (load_elf_image): Support [simple] ELF images.
1428
1429 2002-04-24  Yoshinori Sato  <qzb04471@nifty.ne.jp>
1430
1431         * src/xyzModem.c (xyzModem_stream_terminate): Increase time for
1432         cleanup from 100ms to 250ms.
1433
1434 2002-04-23  Jonathan Larmour  <jlarmour@redhat.com>
1435
1436         * src/syscall.c (__do_syscall): Rename EIO to NEWLIB_EIO to
1437         pre-empt any potential conflict. Add definition of 
1438         NEWLIB_ENOSYS and use it in place of ENOSYS.
1439
1440 2002-04-22  Jonathan Larmour  <jlarmour@redhat.com>
1441
1442         * doc/redboot.sgml: Document iq80321 switch settings.
1443
1444         * include/redboot.h: Add gettimeofday, rename, isatty and system
1445         syscall numbers.
1446         
1447         * src/syscall.c (__do_syscall): Handle above new syscalls in a
1448         "default" way.
1449         Take new extra signal argument.
1450         When required, handle file I/O syscalls, by passing into HAL.
1451
1452 2002-04-21  Paul Fine  <pfine@delcomsys.com>
1453
1454         * src/flash.c (flash_get_config, load_flash_config): Save a
1455         pointer to the configuration structure in FLASH.  If
1456         flash_get_config fails to find a config item, check to make sure
1457         that the config structure in RAM has not been trashed.  If it has
1458         been trashed, set the pointer to the "readonly" version in FLASH
1459         and try to read the config item again.
1460         
1461         * cdl/redboot.cdl (CYGSEM_REDBOOT_FLASH_CONFIG_READONLY_FALLBACK):
1462         Added this flash config option to control the readonly fallback in
1463         flash.c
1464
1465 2002-04-16  Yoshinori Sato  <qzb04471@nifty.ne.jp>
1466 2002-04-16  Jonathan Larmour  <jlarmour@redhat.com>
1467
1468         * src/xyzModem.c: Don't return ACKs too early.
1469
1470 2002-04-16  Gary Thomas  <gthomas@redhat.com>
1471
1472         * src/net/bootp.c: Readjust timeouts - more, shorter.  Better response.
1473
1474 2002-04-12  Gary Thomas  <gthomas@redhat.com>
1475
1476         * src/net/bootp.c: Increase timeouts for slower networks.
1477
1478 2002-04-11  Nick Garnett  <nickg@redhat.com>
1479
1480         * doc/redboot.sgml: Changed some misplaced <term>s into
1481         <literal>s.
1482
1483 2002-04-08  Nick Garnett  <nickg@redhat.com>
1484
1485         * doc/redboot.sgml: Added full LED code desription, revised memory
1486         layout and miscellaneous other fixes for 80321.
1487
1488 2002-04-03  Gary Thomas  <gthomas@redhat.com>
1489
1490         * src/main.c (do_mfill): 
1491         (do_mcmp): New routines for fill/compare random buffers.
1492
1493         * cdl/redboot.cdl: CDL to control mfill, mcmp, cksum commands.
1494
1495         * src/net/net_io.c (do_ip_addr): 
1496         * doc/redboot.sgml: Add new command 'ip_addr', used to set/show the
1497         local and host [server] addresses.
1498
1499 2002-04-02  Jesper Skov  <jskov@redhat.com>
1500
1501         * redboot.sgml: excalibur: Updated memory map details, added
1502         information about REDBOOT startup mode.
1503
1504 2002-03-07  Mark Salter  <msalter@redhat.com>
1505
1506         * src/net/tcp.c: Fix missing acks of resent segments pointed out
1507         by Hendrik Ruijter.
1508
1509 2002-03-06  Nick Garnett  <nickg@redhat.com>
1510
1511         * doc/redboot.sgml: Added Integrator details.
1512
1513 2002-03-06  Mark Salter  <msalter@redhat.com>
1514
1515         * src/net/tcp.c (__tcp_handler): Slight rework of Hendrik Ruijter's
1516         fix for FIN_WAIT_1 to TIME_WAIT transition.
1517
1518 2002-03-06  Jesper Skov  <jskov@redhat.com>
1519
1520         * doc/redboot.sgml: Updated iq80310 details.
1521         Updated iq80321 details.
1522         Updated e7t details.
1523         
1524 2002-03-05  Jesper Skov  <jskov@redhat.com>
1525
1526         * doc/redboot.sgml: Updated ebsa285 details.
1527         Updated ipaq details.
1528         Updated edb7312 details.
1529
1530 2002-03-05  Gary Thomas  <gthomas@redhat.com>
1531 2002-02-25 Hendrik Ruijter <Hendrik.Ruijter@axis.com>
1532
1533         * include/net/net.h: Add 'reuse' flag.
1534
1535         * src/net/tcp.c 
1536         (tcp_send): Adjust socket close time to allow for faster re-use.
1537         (__tcp_handler): Statetransitions to TIME_WAIT on active close 
1538         when FIN,ACK receivedsimultaneously.
1539         (__tcp_so_reuseaddr): New function - select fast re-use.
1540
1541 2002-03-05  Jesper Skov  <jskov@redhat.com>
1542
1543         * doc/redboot.sgml: Add something about updating RedBoot on
1544         platforms using ROMRAM-startup type RedBoot. Also mention that fis
1545         create can get some of its information from the fis directory.
1546         Updated assabet details.
1547
1548 2002-03-01  Mark Salter  <msalter@redhat.com>
1549
1550         * redboot.sgml: Add diag docs and switch setting info for 80321.
1551
1552 2002-02-28  Hugo Tyson  <hmt@redhat.com>
1553
1554         * src/flash.c (do_flash_config): Add "-d" to the help info.
1555
1556         * doc/redboot.sgml: Docuement the "-d" option for dumb terminals
1557         with fconfig - so you're not forced to use line editing.
1558
1559 2002-02-28  Jesper Skov  <jskov@redhat.com>
1560
1561         * src/syscall.c: Moved SYS_ value definitions to the header file.
1562         * include/redboot.h: Same.
1563
1564 2002-02-27  David Howells  <dhowells@redhat.com>
1565
1566         * sgml/redboot.sgml: Removed extraneous </para>.
1567
1568 2002-02-26  David Howells  <dhowells@redhat.com>
1569
1570         * doc/redboot.sgml: Updated the ASB2305 notes to be more complete
1571         with respect to having two flash chips.
1572
1573 2002-02-19  Mark Salter  <msalter@redhat.com>
1574
1575         * src/net/net_io.c (net_io_init): Remove ISR installation. This
1576         was wrong way to fix problem.
1577
1578 2002-02-15  Mark Salter  <msalter@redhat.com>
1579
1580         * src/net/net_io.c (net_io_init): Install default ISR for ethernet.
1581
1582 2002-02-14  Patrick Doyle  <wpd@delcomsys.com>
1583
1584         * src/fs/disk.c (disk_stream_read): Modified to return the number
1585         of bytes read instead of -1 when such number is less than was
1586         requested.
1587         
1588 2002-02-06  Mark Salter  <msalter@redhat.com>
1589
1590         * src/syscall.c (sys_write): Call __flush after last __putc.
1591         (__flush): New function to flush console output.
1592
1593 2002-02-05  Jonathan Larmour  <jlarmour@redhat.com>
1594
1595         * src/net/net_io.c (net_init): Set use_bootp and net_debug defaults
1596         properly.
1597
1598 2002-01-31  Gary Thomas  <gthomas@redhat.com>
1599
1600         * src/fs/ide.c (ide_packet_read_sectors): Pass errors on read.
1601         (ide_init): Ignore ATAPI devices that are not CDROM (like ZIP).
1602
1603 2002-01-30  Hugo Tyson  <hmt@redhat.com>
1604
1605         * src/net/net_io.c (start_console): Pick up config items to choose
1606         a console for special debug messages.  If it's not set, select
1607         channel 0 regardless, like it used to.
1608         (info_console_force, info_console_number): New fconfig options to
1609         control this channel *plus* forcing application special debug out
1610         to a particular serial.   This is crucial for debugging debugging
1611         itself, or debugging a networked app over the network when you're
1612         liable to get such messages popping out from the app as well as
1613         from RedBoot.
1614
1615         * cdl/redboot.cdl (CYGDBG_REDBOOT_NET_DEBUG_CONSOLE_NUMBER):
1616         Option deleted, because this is now controlled by fconfig items.
1617
1618 2002-01-25  Hugo Tyson  <hmt@redhat.com>
1619
1620         * src/syscall.c (sys_profile_reset): New routine - doesn't do
1621         much, just NULLs the callback.  Useful placeholder in case more is
1622         needed in future, eg. reset the clock also.
1623         (__do_syscall): Calls the reset on syscall 2003.
1624
1625 2002-01-21  Hugo Tyson  <hmt@redhat.com>
1626
1627         * src/flash.c (do_flash_config): Enable a "dumb terminal" mode for
1628         fconfig, which does not pre-fill the buffer for editing, but
1629         merely prompts for a new value (or RET for old, for non-string
1630         values).  This is because telnet/kermit-like network terminal apps
1631         are not by default configured to pass all characters through.
1632
1633 2002-01-18  Hugo Tyson  <hmt@redhat.com>
1634
1635         * src/syscall.c (sys_timer_ticks): Change this to a cyg_uint64 to
1636         give better range for times() sanity in case we run the hardware
1637         clock ticking at a faster rate, or want to last > 8 days.
1638
1639 2002-01-16  Hugo Tyson  <hmt@redhat.com>
1640
1641         * src/syscall.c (sys_profile_frequency): Change frequency that is
1642         passed around to signed, so that we can enquire using -ve values.
1643         Re-order the logic a little so as to permit enquiries which do not
1644         modify what's set up in the hardware.  Adjust the times() counter
1645         when its HZ rate changes so it tells the truth.
1646
1647 2002-01-15  David Woodhouse  <dwmw2@cambridge.redhat.com>
1648
1649         * src/flash.c: Better default for 'fis cr' - if we're programming
1650         an existing flash image, take img_size from the last-loaded image
1651         but length from the one that's already on the flash.
1652         
1653 2002-01-14  David Woodhouse  <dwmw2@cambridge.redhat.com>
1654
1655         * src/main.c: Useful defaults for cksum command.
1656         * src/flash.c: Useful defaults for fis create command.
1657         * src/load.c: Slight cleanup of file type detection.
1658         
1659 2002-01-14  Jesper Skov  <jskov@redhat.com>
1660
1661         * src/net/cksum.c: Added volatile keyword to union members to
1662         prevent compiler optimization messing things up.
1663
1664 2002-01-10  Hugo Tyson  <hmt@redhat.com>
1665
1666         * src/syscall.c (sys_timer_isr): Add CYGARC_HAL_SAVE_GP(); and
1667         CYGARC_HAL_RESTORE_GP(); around the callback invocation to protect
1668         ourselves from whatever the app routine might do along those lines.
1669
1670 2002-01-10  Hugo Tyson  <hmt@redhat.com>
1671
1672         * src/syscall.c (sys_timer_ticks): Explicitly initialize this.
1673         (sys_timer_isr): Call periodic callback function, with PC and SP
1674         of interrupted context, if set.
1675         (sys_profile_call_back): New routine to support
1676         gprof profiling of GNUPro/newlib apps via BSP_SYSCALLS.  Sets the
1677         periodic callback function, returning the old value.
1678         (sys_profile_frequency): Ditto, sets the frequency of the call, if
1679         possible, or zero => a mere inquiry.
1680         (sys_timer_init, sys_times): Be prepared for a dynamic non-default
1681         clock rate.
1682         (__do_syscall): Handle new case arms.
1683
1684         * cdl/redboot.cdl (CYGSEM_REDBOOT_BSP_SYSCALLS): Changed to a
1685         component; want to add stuff in here later.
1686         (CYGSEM_REDBOOT_BSP_SYSCALLS_GPROF): New option
1687         to control inclusion of histogram profiling callback syscalls.
1688
1689 2002-01-10  Jesper Skov  <jskov@redhat.com>
1690
1691         * src/main.c (do_version): Added year 2002.
1692
1693 2002-01-07  Gary Thomas  <gthomas@redhat.com>
1694
1695         * src/flash.c (lookup_alias): Remove warning.
1696
1697 2002-01-03  Gary Thomas  <gthomas@redhat.com>
1698
1699         * src/xyzModem.c (xyzModem_stream_read): BUG 57497
1700         Try and detect (and remove) ^Z characters placed at end of stream.  
1701         This data confuses higher processing, like the zlib decompression 
1702         routines.
1703
1704 2001-12-16  Mark Salter  <msalter@redhat.com>
1705
1706         * src/fs/ide.c: Add ATAPI support.
1707         * include/fs/ide.h: Add ATAPI defines.
1708         * src/fs/disk.c (disk_stream_open): Fix support for IDE CDROMs.
1709         (disk_parse_filename): Ditto.
1710
1711 2001-12-12  Hugo Tyson  <hmt@redhat.com>
1712
1713         * cdl/redboot.cdl (CYGDBG_REDBOOT_NET_DEBUG_CONSOLE_NUMBER): New
1714         option to control the console number for network debug messages.
1715         For platforms where serial0 is supported (due to common variant
1716         HAL code) but not connected; serial1 is all you get, say.
1717
1718         * src/net/net_io.c (start_console): Use it.
1719
1720 2001-12-10  Nick Garnett  <nickg@redhat.com>
1721
1722         * src/net/cksum.c (__pseudo_sum): Fixed method of adding protocol
1723         field to checksum. Some compilers optimize some of this away to
1724         give a bogus result.
1725
1726 2001-12-06  Jesper Skov  <jskov@redhat.com>
1727
1728         * src/load.c (do_load): Fix warning.
1729         * src/main.c: Added support for dumping memory in 16 and 32 bit
1730         units. Based on patch from Warren Jasper <warrenj@bops.com>.
1731
1732 2001-12-05  Hugo Tyson  <hmt@redhat.com>
1733
1734         * src/flash.c (get_config): If we are editing an IP address, and
1735         it is 0.0.0.0 (as you get at "fco -i" time) suppress using that as
1736         the initial value of the string, it is unhelpful as a starting
1737         point for line editing.
1738
1739         If we were given a value on the CLI eg. "fco bootp false" because
1740         the new value was copied into the holding string, it was not
1741         recognized as a change, so the flash was not updated.  Bug!  The
1742         fix is to change the order of the strcpy()s so that holdline is
1743         before line.
1744
1745         If the input line for a new value is completely blank, and the
1746         type is not string, take this to mean don't change the value.
1747         Otherwise typing in an empty line to an IP address goes off and
1748         tries to DNS resolve it there and then, looks like a hang.
1749
1750         (do_flash_config): If we print the message "** invalid entry" do
1751         not just loop; set onevalue = NULL so that the user is prompted
1752         for a good value.  Otherwise it loops forever trying the same
1753         value if you typed "fco bootp goat" (goat being a bad boolean).
1754
1755         * src/parse.c (parse_bool): Check for (partial) rest of the word
1756         either "true" or "false" and nothing extra.  Thus we reject
1757         "truefalse" as is all to easy to type in by accident.  "TRU" "T"
1758         "tRuE" are all OK of course.
1759
1760         * src/net/inet_addr.c (inet_aton): Do not accept terminating the
1761         dot-quad address with a final dot.  Else typing on the end of a
1762         provided-for-editing string is accepted.  Also reject units > 255.
1763         Allow typing in either exactly one (large) number or 4 small ones;
1764         reject intermediates.  Thus we reject "10.16.19.1110.16.19.33" and
1765         "0.0.0.010.16.19.11" as are all to easy to type in by accident,
1766         and things like 10.0.0xffff which used to be accepted.  0x0a00ffff
1767         is OK though.  This change also prevents the pointer s running off
1768         the end of the string if you just entered eg. "1".
1769
1770 2001-12-04  Richard Sandiford  <rsandifo@redhat.com>
1771
1772         * include/net/net.h (ETH_MAX_PKTLEN): Increase to match definition
1773         of MAX_ETH_MSG.
1774
1775 2001-12-04  Richard Sandiford  <rsandifo@redhat.com>
1776
1777         * src/net/tcp.c (__tcp_poll): Call MS_TICKS_DELAY before __timer_poll.
1778         * src/net/net_io.c (net_io_getc): Remove MS_TICKS_DELAY from here...
1779         (net_io_getc_nonblock): ...and from here.
1780
1781 2001-11-30  Jesper Skov  <jskov@redhat.com>
1782
1783         * src/net/net_io.c (net_init): Print ESA for device even if bootp
1784         fails.
1785
1786 2001-11-29  Jonathan Larmour  <jlarmour@redhat.com>
1787
1788         * src/net/dns.c: Rename index -> ptdindex to avoid conflict with BSD
1789         index() function.
1790
1791 2001-11-29  Jesper Skov  <jskov@redhat.com>
1792
1793         * src/net/tftp_client.c (tftp_stream_open): Clear from_addr's
1794         sin_port so multiple loads are possible.
1795
1796 2001-11-26  Jesper Skov  <jskov@redhat.com>
1797
1798         * misc/redboot_XXX.ecm: Added. Replaced the _RAM, _ROM, and
1799         _ROMRAM variants.
1800
1801         * misc/redboot_ROM.ecm: Added configuration with all packages
1802         relevant for a full RedBoot configuration. Whenever new (optional)
1803         RedBoot peer packages are added, they should be added to these
1804         files and not the RedBoot template.
1805         * misc/redboot_ROMRAM.ecm: Same.
1806         * misc/redboot_RAM.ecm: Same.
1807
1808 2001-11-15  Jesper Skov  <jskov@redhat.com>
1809
1810         * include/redboot.h: Added load_address and load_address_end
1811         variables to hold bounds of a loaded image.
1812         * src/load.c: Fill load_address and load_address_end after srec
1813         and binary loads.
1814         * src/flash.c: Same.
1815         * src/main.c (do_go): removed unneeded cast.
1816
1817 2001-11-14  Gary Thomas  <gthomas@redhat.com>
1818
1819         * src/io.c (_rb_gets_preloaded): More correct timeout handling.
1820         n.b. in practice, this changes nothing, but it is more "correct".
1821
1822 2001-11-05  Gary Thomas  <gthomas@redhat.com>
1823
1824         * src/load.c: Minor typo in help string.
1825
1826         * src/io.c (_rb_gets_preloaded): Clear buffer if ^C.
1827
1828 2001-11-02  Jesper Skov  <jskov@redhat.com>
1829
1830         * src/flash.c (fis_init): Fix warning.
1831
1832 2001-11-01  Jesper Skov  <jskov@redhat.com>
1833
1834         * src/flash.c (fis_init): tweaks to the SIB protection code.
1835
1836 2001-11-01  Gary Thomas  <gthomas@redhat.com>
1837
1838         * src/flash.c (fis_init): Need to init block fully, otherwise old
1839         images can persist after init.
1840
1841 2001-10-31  Jesper Skov  <jskov@redhat.com>
1842
1843         * include/sib.h: Contains information about ARM Boot Monitor flash
1844         block information.
1845
1846         * cdl/redboot.cdl: Added CYGOPT_REDBOOT_FIS_DIRECTORY_ARM_SIB_ID
1847         option.
1848
1849         * src/flash.c (fis_init): Added code to add ARM Boot Monitor
1850         footer on FIS block.
1851         
1852 2001-10-30  Jonathan Larmour  <jlarmour@redhat.com>
1853
1854         * src/flash.c (fis_delete): Prototype arm_fis_delete in correct place.
1855         (fis_list): Fix compilation problem - this isn't C++!
1856
1857 2001-10-30  Philippe Robin <Philippe.Robin@arm.com>
1858 2001-10-30  Jonathan Larmour  <jlarmour@redhat.com>
1859         
1860         * cdl/redboot.cdl: Add CYGINT_REDBOOT_ARM_FLASH_SIB_SUPPORTED and
1861         CYGHWR_REDBOOT_ARM_FLASH_SIB to indicate support for, and a request
1862         to provide ARM flash block structure support.
1863
1864         * src/flash.c (fis_list): Call out to driver for ARM block FIS listing.
1865         (fis_delete): Call out to driver for ARM block FIS deletion.
1866
1867 2001-10-29  Gary Thomas  <gthomas@redhat.com>
1868
1869         * src/main.c (cyg_start): New pseudo-commands, useful for scripts.
1870         '# anything' - treated like a comment.
1871         '= anything' - comment, but prints command line on console.
1872
1873         * src/flash.c (expand_aliases): Don't expand aliases which are
1874         quoted, but only on the command line.  This allows aliases to
1875         expand into other aliases which are within quoted strings.
1876
1877         * include/redboot.h: 
1878         * src/io.c (_rb_gets_preloaded): New function which allows for a
1879         buffer to be displayed and edited in place.  This is extremely
1880         useful for 'fconfig', now that better line editing functions are
1881         supported.
1882
1883         * src/flash.c (get_config): Using new function _rb_gets_preloaded(),
1884         which supports edit-in-place for data items.
1885
1886 2001-10-28  Gary Thomas  <gthomas@redhat.com>
1887
1888         * src/main.c (cyg_start): 
1889         * src/io.c (_rb_gets): 
1890         * include/redboot.h: Add new global control 'cmd_history' which is
1891         used to enable/disable command history collection.  This keeps the
1892         history from being cluttered with things like 'y' (answers to simple
1893         questions).
1894
1895 2001-10-26  Gary Thomas  <gthomas@redhat.com>
1896
1897         * src/io.c (_rb_gets): Fix ^A editing - was timing out, thus erasing
1898         buffer [silently].
1899
1900 2001-10-25  Gary Thomas  <gthomas@redhat.com>
1901
1902         * src/io.c:
1903         * cdl/redboot.cdl: Add command line history and edit functions.
1904         Controlled by CYGNUM_REDBOOT_CMD_LINE_EDITING option which defines
1905         the depth of the history buffer.
1906
1907 2001-10-22  Jonathan Larmour  <jlarmour@redhat.com>
1908
1909         * include/redboot.h: Declare net_debug here.
1910
1911 2001-10-18  Jonathan Larmour  <jlarmour@redhat.com>
1912
1913         * src/net/net_io.c (net_init): Set cyg_io_eth_net_debug from net_debug.
1914         * include/net/net.h: Declare cyg_io_eth_net_debug.
1915
1916 2001-10-18  David Howells  <dhowells@redhat.com>
1917
1918         * src/syscall.c: Added support for the times() syscall and marked
1919         the utime() syscall as being implemented incorrectly.
1920
1921 2001-10-18  Gary Thomas  <gthomas@redhat.com>
1922
1923         * src/io.c (_rb_gets): Fix parsing of \" in strings.
1924
1925 2001-10-16  Jesper Skov  <jskov@zoftcorp.adsl.dk>
1926
1927         * cdl/redboot.cdl: Require ISOINFA.
1928
1929 2001-10-16  Jesper Skov  <jskov@redhat.com>
1930
1931         * src/net/dns.c (send_recv): Clear from_addr before passing it to
1932         __udp_recvfrom. Fixed return value.
1933
1934 2001-10-16  Gary Thomas  <gthomas@redhat.com>
1935
1936         * src/flash.c (_do_flash_init): 
1937         Add wrapper function for do_flash_init() to avoid compiler warning.
1938
1939         * src/io.c (_rb_gets): 
1940         Use sub-timeouts when calling mon_read_char_with_timeout() as it
1941         was intended that this routine should timeout quickly to allow
1942         for other processing to take place if no data is available.  In
1943         practice this won't make any difference unless the global "idle"
1944         timeout value is changed to be something quite large.
1945
1946         * src/decompress.c: Improve memory allocators.  Also use 'init'
1947         style function so that this is the only file that knows anything
1948         of the details of the decompression process or packaging.
1949
1950         * src/main.c: 
1951         * include/redboot.h: 
1952         * cdl/redboot.cdl: Rework decompression to be totally encapsulated.
1953         This keeps the details of this functionality in a single file, rather
1954         than scattered throughout RedBoot.
1955
1956 2001-10-15  David Howells  <dhowells@redhat.com>
1957
1958         * src/xyzModem.c: put semicolon between goto-label and close curly.
1959
1960 2001-10-15  Gary Thomas  <gthomas@redhat.com>
1961
1962         * src/flash.c (_expand_aliases): Change around some ambiguous code.
1963
1964         * src/main.c: 
1965         * src/decompress.c: 
1966         * include/redboot.h: 
1967         * cdl/redboot.cdl: Provide RedBoot specific memory allocators
1968         for ZLIB.  Allows much finer control over memory map.
1969
1970         * src/main.c (do_dump): Add option "-s" to dump data as S-records.
1971
1972 2001-10-11  Gary Thomas  <gthomas@redhat.com>
1973
1974         * src/net/enet.c (__enet_poll): Suppress warning messages.
1975
1976 2001-10-10  Jonathan Larmour  <jlarmour@redhat.com>
1977
1978         * src/flash.c (do_flash_init): Only set __flash_init when init is
1979         successful.
1980
1981 2001-10-04  Jesper Skov  <jskov@redhat.com>
1982
1983         * src/fs/disk.c: Fix ISO9660 build error.
1984
1985         * src/main.c: Added x as an alias for the dump command.
1986
1987         * src/net/dns.c: Fixed some messages (DNS -> DNS server).
1988
1989 2001-10-02  Gary Thomas  <gthomas@redhat.com>
1990
1991         * src/xyzModem.h: 
1992         * src/xyzModem.c (xyzModem_stream_open): 
1993         * src/load.c (do_load): Add new option "-c <N>" to let the user
1994         specify the I/O channel to use - xyModem only.
1995
1996 2001-10-01  Gary Thomas  <gthomas@redhat.com>
1997
1998         * src/net/udp.c (__udp_recvfrom): Don't change server address (returned
1999         by this function) until a packet has been received with no timeout.
2000
2001 2001-09-28  Jonathan Larmour  <jlarmour@redhat.com>
2002
2003         * src/flash.c (fis_create): if not copying, still update directory.
2004
2005 2001-09-28  Gary Thomas  <gthomas@redhat.com>
2006
2007         * src/flash.c (_expand_aliases): Properly null terminate expanded 
2008         string - failed if alias was at end of line.
2009
2010 2001-09-27  Jesper Skov  <jskov@redhat.com>
2011
2012         * src/net/dns.c: Include tracing header.
2013
2014 2001-09-26  Jesper Skov  <jskov@redhat.com>
2015
2016         * src/net/dns.c: Removed errno hacks.
2017         Reduce size of string buffers. Make sure they suffice (or fail).
2018
2019         * include/redboot.h: Added DNS h_errno definitions.
2020
2021         * include/redboot.h: Fix for building on targets wo network.
2022
2023         * src/load.c (do_load): Make sure host can be reached - and print
2024         appropriate error message if not.
2025
2026         * src/net/net_io.c (net_init): Call DNS init when appropriate.
2027
2028         * src/net/inet_addr.c (inet_aton): Made s argument const.
2029
2030         * src/net/dns.c: Added UDP driven DNS support.
2031
2032         * src/net/bootp.c: Fixed warnings.
2033
2034         * src/flash.c: Replaced inet_aton with _gethostbyname.
2035         * src/load.c: Same.
2036         * src/net/ping.c: Same.
2037
2038         * include/net/net.h: Fix warning.
2039
2040         * include/redboot.h: Added DNS stuff, including some string
2041         helpers.
2042
2043         * cdl/redboot.cdl: Added DNS support options.
2044
2045 2001-09-14  Jonathan Larmour  <jlarmour@redhat.com>
2046
2047         * src/version.c: Simplify _CERTIFICATE handling.
2048
2049 2001-09-13  Fabrice Gautier <Fabrice_Gautier@sdesigns.com>
2050
2051         * cdl/redboot.cdl: Added configuration options to deactivate BOOTP and
2052         enable net debug.
2053         * src/net/net_io.c (net_init): Use them.
2054
2055 2001-09-13  Gary Thomas  <gthomas@redhat.com>
2056
2057         * src/flash.c: Cleanups - removing some redundant code.
2058
2059 2001-09-12  Jonathan Larmour  <jlarmour@redhat.com>
2060
2061         * src/flash.c (do_flash_init): Only allocate fis block when
2062         CYGOPT_REDBOOT_FIS enabled.
2063         Conditionalize fis_work_block and fisdir_size.
2064
2065 2001-09-12  Gary Thomas  <gthomas@redhat.com>
2066
2067         * src/flash.c (load_flash_config): Use additional space in the
2068         FLASH work area (at end of RAM) for 'fconfig' data.  This reduces
2069         overall stack requirements as there is no need for 'fconfig' data
2070         to be held on the stack anymore.
2071
2072         * src/flash.c: 
2073         * include/fis.h: Define flash addresses using CYG_ADDRESS which
2074         is more portable than (unsigned long).
2075
2076 2001-09-11  Jonathan Larmour  <jlarmour@redhat.com>
2077
2078         * cdl/redboot.cdl (CYGPKG_REDBOOT_FLASH): Be conditional on an
2079         actual flash device, not just the generic flash layer.
2080
2081 2001-09-11  Gary Thomas  <gthomas@redhat.com>
2082
2083         * src/version.c (_CERTIFICATE): Add information about product
2084         certification (either Red Hat certified or not).
2085
2086         * src/flash.c (fis_delete): Deny user deleting "reserved" images.
2087
2088 2001-09-07  Andrew Lunn  <andrew.lunn@ascom.ch>
2089         * src/flash.c: Extend the alias handling to allow configuration
2090         information to be access using alias. Fixed alias expansion
2091         when the alias is bigger than the replacement.
2092         * src/parse.c: A semi colon can be used to separate multiple
2093         commands on one line. 
2094         
2095 2001-09-06  Jonathan Larmour  <jlarmour@redhat.com>
2096
2097         * include/redboot.h: Include string function prototype header.
2098
2099 2001-09-06  Jesper Skov  <jskov@redhat.com>
2100
2101         * src/fs/ide.c (ide_read_sectors): Use diag_(s)printf.
2102         * src/fs/disk.c (do_disks): Same.
2103
2104 2001-08-27  Andrew Lunn  <andrew.lunn@ascom.ch>
2105         * src/flash.c: Allow the flash blocks used for FIS directory and
2106         config information to be user configured. Generalise the fis_init
2107         function to deal with the blocks in any order.
2108         * cdl/redboot.cdl: Added the configury needed to specify which
2109         flash blocks to use.
2110         
2111 2001-08-27  Mark Salter  <msalter@redhat.com>
2112
2113         * src/syscall.c (HZ): Should be 60 for ARM, also.
2114
2115 2001-08-24  Tim Smith  <tsmith@redhat.com>
2116         * src/xyzModem.c
2117         * src/xyzModem.h
2118         Provide xyzModem_stream_terminate() function to abort/clean up
2119         XYZmodem download on normal termination or after errors.
2120
2121         * src/load.c
2122         Use aforementioned function to abort downloads on SREC errors,
2123         stop load_srec_image() from injecting stuff into the XYZmodem
2124         stream and confusing things.
2125
2126 2001-08-24  Mark Salter  <msalter@redhat.com>
2127
2128         * src/net/net_io.c: Don't close connections if there is
2129         data left to read or write.
2130
2131         * src/syscall.c: Add support for utimes syscall.
2132
2133 2001-08-22  Gary Thomas  <gthomas@redhat.com>
2134
2135         * src/net/udp.c: 
2136
2137         * src/net/pktbuf.c: 
2138
2139         * src/net/ping.c: 
2140
2141         * src/net/net_io.c: 
2142
2143         * src/net/inet_addr.c: 
2144
2145         * src/net/enet.c: 
2146
2147         * src/fs/e2fs.c: 
2148
2149         * src/xyzModem.c: 
2150         * src/parse.c: 
2151         * src/misc_funs.c: 
2152         * src/main.c: 
2153         * src/load.c: 
2154         * src/io.c: 
2155         * src/flash.c: 
2156         * include/net/net.h: 
2157         * include/redboot.h: 
2158         printf() is no longer a part of RedBoot.  Thus all programs
2159         must use diag_printf() and related functions instead.  Also
2160         renamed the non-standard function gets() to be _rb_gets()
2161         since there was some confusion about it because of it's
2162         rather standard name.
2163
2164         * cdl/redboot.cdl: Lots of changes based on moving all printf()
2165         functionality into "infra" and only using it as diag_XXX().
2166
2167 2001-08-17  Gary Thomas  <gthomas@redhat.com>
2168
2169         * src/version.c: Augment version information with startup mode.
2170
2171         * src/flash.c (fis_find_free): Fix error in size comparisons.
2172         (load_flash_config): Fix 'fconfig' alignment now that it's
2173         size is no longer fixed.
2174
2175 2001-08-16  Jesper Skov  <jskov@redhat.com>
2176         [from branch]
2177         * cdl/redboot.cdl: Also behave as ROM monitor in ROMRAM
2178         configurations.
2179
2180         * src/load.c (do_load): Fix handling of conditional options.
2181
2182         * src/flash.c (fis_load): Fix handling of conditional options.
2183         (fis_delete): Fix behavior on failure.
2184
2185         * src/flash.c (fis_write): Fix output.
2186         (fis_create): Only update directory when programming succeeded.
2187
2188 2001-08-17  Jonathan Larmour  <jlarmour@redhat.com>
2189
2190         * cdl/redboot.cdl (CYGSEM_REDBOOT_VARIABLE_BAUD_RATE): Default
2191         on, but only if platform supports it.
2192
2193 2001-08-15  Mark Salter  <msalter@redhat.com>
2194
2195         * src/io.c: Add support for "{...}" notation in boot scripts.
2196
2197 2001-08-14  Jonathan Larmour  <jlarmour@redhat.com>
2198
2199         * src/io.c (gets): Allow $'s and +'s to be escaped.
2200
2201 2001-08-10  Jesper Skov  <jskov@redhat.com>
2202
2203         * src/flash.c (do_flash_init): Print error message instead of
2204         error code on init failure.
2205         Don't print error codes where error messages are printed. Make
2206         failure reporting strings look consistent.
2207         CYGHWR_IO_FLASH_BLOCK_LOCKING flavor changed to booldata.
2208
2209 2001-08-08  Jonathan Larmour  <jlarmour@redhat.com>
2210
2211         * src/io.c (gets): Match $ as indicating GDB anywhere in a line.
2212
2213 2001-08-07  Julian Smart <julians@redhat.com>
2214
2215         * src/version.c: added commented-out CYGDAT_REDBOOT_CUSTOM_VERSION
2216         define that can be replaced using the RedBoot release script by
2217         a specific version in a customer branch.
2218
2219 2001-08-06  Jesper Skov  <jskov@redhat.com>
2220
2221         * src/fs/disk.c: Simple fix for DISK_IDE_CDROM partition type.
2222
2223         * cdl/redboot.cdl: Added (unused) CYGSEM_REDBOOT_DISK_ISO9660 option.
2224
2225 2001-08-03  David Howells  <dhowells@redhat.com>
2226
2227         * src/net/net_io.c: Show the MAC address of the ethernet device
2228         amongst the boot banners.
2229
2230 2001-08-01  Mark Salter  <msalter@redhat.com>
2231
2232         * src/fs/ide.c (ide_reset): Check for bogus status and timeout. Add
2233         return value to indicate success.
2234         (ide_init): Check ide_reset() return value.
2235
2236 2001-07-31  Mark Salter  <msalter@redhat.com>
2237
2238         * src/fs/disk.c (find_dos_partitions): Fix extended partitions.
2239         * src/fs/ide.c (ide_init): Rework the test for device presence.
2240
2241 2001-07-27  Gary Thomas  <gthomas@redhat.com>
2242
2243         * src/load.c (load_srec_image, do_load): 
2244         * cdl/redboot.cdl: New option CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS
2245         which can be used to disable user RAM checks in 'load' command.
2246
2247         * src/load.c: Fix build problem if no IDE support.
2248
2249         * src/net/tftp_client.c (tftp_stream_read): Only ACK data when it
2250         has been processed and we're ready for the next block.  This fixes
2251         a race/timing issue which was exacerbated by the "spinner" in 'load'.
2252
2253 2001-07-27  David Howells  <dhowells@redhat.com>
2254
2255         * src/xyzModem.c: Fixed an uninitialised variable warning.
2256
2257 2001-07-27  Mark Salter  <msalter@redhat.com>
2258
2259         * cdl/redboot.cdl (CYGNUM_REDBOOT_MAX_PARTITIONS): New option.
2260         Rename CYGBLD_REDBOOT_MAX_DISKS to CYGNUM_REDBOOT_MAX_DISKS.
2261
2262         * include/fs/disk.h: Exported functions declared "externC".
2263         Replace MAX_PARTITIONS with CYGNUM_REDBOOT_MAX_PARTITIONS.
2264         
2265         * src/fs/disk.c: Make exported functions "externC".
2266         Rename CYGBLD_REDBOOT_MAX_DISKS to CYGNUM_REDBOOT_MAX_DISKS.
2267         Replace MAX_PARTITIONS with CYGNUM_REDBOOT_MAX_PARTITIONS.
2268
2269         * src/fs/e2fs.c: Add support for symbolic links.
2270         * include/fs/e2fs.h: Add dir filetype support.
2271
2272 2001-07-24  Mark Salter  <msalter@redhat.com>
2273
2274         * src/load.c: Add disk load support.
2275         * src/fs/disk.c: New file. RedBoot disk management.
2276         * src/fs/ide.c: New file. IDE disk I/O.
2277         * src/fs/e2fs.c: New file. Linux ext2 filesystem support.
2278         * cdl/redboot.cdl: Add options for disk/ide/filesystem support.
2279
2280 2001-07-23  Jonathan Larmour  <jlarmour@redhat.com>
2281
2282         * src/main.c (set_console_baud_rate): No need to query the console
2283         number if we don't care what it is.
2284         (do_baud_rate): Likewise.
2285
2286 2001-07-23  David Howells  <dhowells@redhat.com>
2287
2288         * src/flash.c: Force block-alignment for flash addresses in write
2289         and erase functions.
2290
2291 2001-07-20  Jonathan Larmour  <jlarmour@redhat.com>
2292
2293         * src/net/net_io.c (net_init): Don't overwrite static IP
2294         address when reading flash config if configured to not use BOOTP.
2295         Set have_net if not using BOOTP and a default static IP addr is set.
2296
2297 2001-07-19  Gary Thomas  <gthomas@redhat.com>
2298
2299         * src/flash.c: Be more generic with 'fconfig' layout.  In 
2300         particular, handle case where FLASH block size is too small
2301         to hold fconfig data.
2302
2303         * src/io.c (mon_set_read_char_timeout): Fix dangling else bug.
2304
2305         * src/flash.c (do_flash_init): Suppress printing info - this
2306         will happen when 'version' is called.  Also allow flash subsystem
2307         to be initialized when there is no 'fconfig' or 'fis' command
2308         configured in (but flash support still is present).
2309
2310         * src/version.c: Display complete version information which 
2311         reflects such information as the source release, etc.
2312
2313         * cdl/redboot.cdl: New option CYGDAT_REDBOOT_CUSTOM_VERSION used to 
2314         allow site-specific version information.  Define this via the
2315         CDL like this:
2316            cdl_option CYGDAT_REDBOOT_CUSTOM_VERSION {
2317              user_value 1 "Special test version"
2318            };
2319
2320 2001-07-18  Gary Thomas  <gthomas@redhat.com>
2321
2322         * src/net/net_io.c (net_io_putc, net_io_isr):
2323         Need CYGARC_HAL_SAVE_GP()/CYGARC_HAL_RESTORE_GP() to support
2324         network debugging since different layers of eCos programs are
2325         involved.
2326
2327 2001-07-16  Gary Thomas  <gthomas@redhat.com>
2328
2329         * src/main.c (do_version): Use external function _flash_info() to 
2330         display information about installed FLASH.
2331
2332         * src/load.c (load_srec_image): Remove extra '\n' on out of range msg.
2333
2334         * src/flash.c (_flash_info): New function - displays information
2335         about FLASH found in system.  Used by 'version' command.
2336
2337 2001-07-12  Gary Thomas  <gthomas@redhat.com>
2338 2001-07-12  Fabrice Gautier <gautier@email.enst.fr>
2339         
2340         * cdl/redboot.cdl: Improve some descriptions of options.
2341
2342 2001-07-02  Jesper Skov  <jskov@redhat.com>
2343
2344         * src/io.c (do_channel): Fox build for !CYGPKG_REDBOOT_ANY_CONSOLE
2345
2346 2001-06-28  Jonathan Larmour  <jlarmour@redhat.com>
2347
2348         * cdl/redboot.cdl: Don't have a configured default IP address by
2349         default if we have fconfig.
2350         * src/net/ip.c: Provide a default ip addr if not defined.
2351
2352 2001-06-28  Jesper Skov  <jskov@redhat.com>
2353
2354         * src/load.c (do_load): Don't allow verbose to be used with serial
2355         downloads.
2356
2357         * src/main.c (do_reset): Reset via VV function.
2358
2359 2001-06-27  Hugo Tyson  <hmt@redhat.com>
2360
2361         * src/io.c: Provide proto for do_channel() to reduce warning.
2362
2363 2001-06-27  Jonathan Larmour  <jlarmour@redhat.com>
2364
2365         * cdl/redboot.cdl (CYGDAT_REDBOOT_DEFAULT_IP_ADDR): Provide a compiled
2366         in default IP address.
2367         * src/net/ip.c: Initialize __local_ip_addr with it.
2368         * src/net/bootp.c: Restore the previous __local_ip_addr if BOOTP fails.
2369
2370         * include/redboot.h: Fix another VARIBLE_BAUD_RATE typo. Fun this.
2371
2372 2001-06-26  Jonathan Larmour  <jlarmour@redhat.com>
2373
2374         * src/io.c (do_channel): New function to display/switch console
2375         channel
2376
2377         * src/main.c: Move define of CYGNUM_HAL_VIRTUAL_VECTOR_NUM_CHANNELS to
2378         * include/redboot.h: ...here
2379
2380 2001-06-26  Gary Thomas  <gthomas@redhat.com>
2381
2382         * src/flash.c (load_flash_config): Fix another VARIBLE_BAUD_RATE typo.
2383
2384         * src/xyzModem.c (xyzModem_get_hdr): ACK on EOT was missing.
2385
2386 2001-06-22  Gary Thomas  <gthomas@redhat.com>
2387
2388         * src/load.c (do_load): Move [static] data used by decompression
2389         code into this routine where it is used - no longer static.
2390
2391 2001-06-14  Gary Thomas  <gthomas@redhat.com>
2392
2393         * src/xyzModem.c (xyzModem_get_hdr): More resilient header scan,
2394         improves error handling capability by avoiding "early" aborts.
2395
2396         * src/load.c (do_load): Only check TFTP arguments if networking.
2397
2398         * src/flash.c: Reorg to support new config option (below).
2399
2400         * cdl/redboot.cdl: New option CYGOPT_REDBOOT_FIS used to enable
2401         FIS oriented commands.  Other flash commands, e.g. 'fis write',
2402         still exist even if disabled.
2403
2404         * src/main.c (do_dump): 'dump' with no arguments will now "continue"
2405         dumping from where the last command left off.
2406
2407 2001-06-13  Gary Thomas  <gthomas@redhat.com>
2408
2409         * src/main.c (cyg_start): 
2410         * src/io.c (gets): 
2411         * cdl/redboot.cdl: Support RedBoot without GDB stubs.  Later
2412         versions may also support alternate debug environments.
2413
2414 2001-06-12  Gary Thomas  <gthomas@redhat.com>
2415
2416         * src/net/net_io.c (net_io_putc): Flush data on '\n'.
2417
2418 2001-06-11  Jonathan Larmour  <jlarmour@redhat.com>
2419
2420         * doc/redboot.ebsa285: Remove, obsolete.
2421         * doc/redboot.edb7xxx: Ditto.
2422         * doc/users_guide: Ditto.
2423
2424 2001-06-11  Gary Thomas  <gthomas@redhat.com>
2425
2426         * src/flash.c (fis_create): Remove default for "-s" - too dangerous!
2427
2428         * include/net/tftp.h: Make sure packet size is valid (was one byte
2429         too long).
2430
2431         * src/net/tftp_client.c (tftp_stream_open): Fix problem when using
2432         Windows (3Com at least) servers.
2433
2434         * src/flash.c: Remove dependency on printf() via user function
2435         in flash drivers, provided at 'init' time.
2436
2437 2001-06-08  Gary Thomas  <gthomas@redhat.com>
2438
2439         * src/parse.c (parse): Check for 'argv[]' overruns.
2440
2441         * src/main.c (ZLIB_COMPRESSION_OVERHEAD): Update - based on observations.
2442
2443         * src/net/tftp_client.c: 
2444         * src/net/net_io.c: 
2445         * src/net/enet.c: 
2446         * include/redboot.h (MAX_ARGV): Minor memory reduction/tightening.
2447
2448 2001-06-08  Jonathan Larmour  <jlarmour@redhat.com>
2449
2450         * src/main.c (do_caches): HAL_DCACHE_IS_ENABLED is not present
2451         on all arch's, so conditionalize. Ditto HAL_ICACHE_IS_ENABLED.
2452
2453 2001-06-08  Nick Garnett  <nickg@cygnus.co.uk>
2454
2455         * src/main.c (cyg_start): Added code to disable interrupts on all
2456         comm channels before entering GDB. If this is not done then stray
2457         interrupts from an otherwise idle ethernet controller can cause
2458         mayhem in the application. 
2459
2460         * src/net/net_io.c (net_io_control): Added code to set static
2461         vector number in disable case as well as enable case. 
2462         (net_io_init): Added call to net_io_control() to disable network
2463         interrupts initially. Mainly to get current disable state
2464         correctly set.
2465
2466 2001-06-07  Jonathan Larmour  <jlarmour@redhat.com>
2467
2468         * src/load.c (do_load): Ask confirmation of RAM write addr, rather
2469         than automatically denying.
2470         (load_srec_image): Ditto.
2471
2472         * src/io.c (verify_action): Don't ask if we're executing a script.
2473
2474 2001-06-07  Gary Thomas  <gthomas@redhat.com>
2475
2476         * src/flash.c (expand_aliases): Allow aliases/macros to be nested.
2477
2478         * src/main.c (set_console_baud_rate): 
2479         * src/flash.c (do_alias): Force 'fconfig' updates.
2480
2481         * include/flash_config.h (flash_add_config): New signature.
2482         Parameter 'update' controls whether the Flash is updated.
2483
2484 2001-06-07    <gthomas@redhat.com>
2485
2486         * src/load.c (do_load): Tidy some messages.
2487
2488         * src/flash.c (fis_load): Print image limits (memory range) when
2489         loading a compressed image.
2490
2491 2001-06-06  Mark Salter  <msalter@redhat.com>
2492
2493         * include/net/tftp_support.h (TFTP_TIMEOUT_PERIOD): Increase to 5.
2494
2495         * src/net/udp.c (__udp_recvfrom): Initialize server source port
2496         to zero.
2497         (__udp_recvfrom_handler): Validate server source port before
2498         accepting packet.
2499
2500 2001-05-29  Jesper Skov  <jskov@redhat.com>
2501
2502         * src/flash.c (fis_load): Fix compiler warning.
2503
2504 2001-05-25  Gary Thomas  <gthomas@redhat.com>
2505
2506         * src/main.c (set_console_baud_rate): Couldn't restore baud
2507         rate to default value!
2508         (do_baud_rate): Update baud rate in flash config database.
2509
2510         * src/flash.c (do_flash_config): Add "-i" option to force 
2511         initialization of entire configuration database.
2512         (do_alias): Improve handling of existing aliases.
2513
2514 2001-05-24  Gary Thomas  <gthomas@redhat.com>
2515
2516         * src/flash.c (get_config): 
2517         (do_alias): Be more careful about length of strings accepted.
2518
2519         * cdl/redboot.cdl: Make 'fconfig' data space and strings larger.
2520
2521         * src/main.c (cyg_start): Expand aliases on input commands.
2522
2523         * src/flash.c: Add support for aliases (macros).  Also update
2524         support for 'fconfig' strings.
2525
2526         * include/flash_config.h (MAX_STRING_LENGTH): Infer from CDL.
2527
2528         * cdl/redboot.cdl: Add options for [FLASH based] aliases.
2529         Also, 'fconfig' now supports strings.
2530
2531 2001-05-23  Gary Thomas  <gthomas@redhat.com>
2532
2533         * src/flash.c: Fixed typo as below.
2534
2535 2001-05-22  Jonathan Larmour  <jlarmour@redhat.com>
2536
2537         * cdl/redboot.cdl: Fix typo: CYGSEM_REDBOOT_VARIBLE_BAUD_RATE ->
2538         CYGSEM_REDBOOT_VARIABLE_BAUD_RATE
2539         * src/main.c: Ditto.
2540
2541 2001-05-17  Jonathan Larmour  <jlarmour@redhat.com>
2542
2543         * src/net/tftp_client.c: include redboot.h for have_net.
2544
2545 2001-05-17  Dennis Ehlin  <Dennis.Ehlin@ecs.ericsson.se>
2546         (with minor mods by jlarmour@redhat.com)
2547         
2548         * cdl/redboot.cdl: Split boot script functionality into separate
2549         component. Rename some options not to be specific to FLASH.
2550         Add default boot script option.
2551         * src/main.c (cyg_start): Use default boot script if none provided
2552         in FLASH (or indeed no FLASH). Support renamed CDL options.
2553         * src/io.c (gets): Support renamed CDL options.
2554         (verify_action): Ditto.
2555         * src/flash.c: Ditto.
2556         * include/redboot.h: Ditto.
2557
2558 2001-05-17  Gary Thomas  <gthomas@redhat.com>
2559
2560         * src/crc.c (crc32): Remove unused variable/warning.
2561
2562         * src/main.c (set_console_baud_rate, do_baud_rate): 
2563         * src/flash.c: 
2564         * include/redboot.h: 
2565         * cdl/redboot.cdl: Add support for variable, settable, console
2566         baud rate.
2567
2568         * src/net/tftp_client.c (tftp_stream_open): Don't try if no network.
2569
2570 2001-05-10  Gary Thomas  <gthomas@redhat.com>
2571
2572         * cdl/redboot.cdl: Can't build RedBoot without virtual vectors.
2573
2574 2001-05-09  Mark Salter  <msalter@redhat.com>
2575
2576         * src/main.c (cyg_start): Cast CYGACC_CALL_IF_DELAY_US argument
2577         to a cyg_int32. Needed when sizeof(int) < sizeof(cyg_int32).
2578
2579 2001-05-07  Gary Thomas  <gthomas@redhat.com>
2580
2581         * src/net/net_io.c (net_io_isr): Interrupt acknowledgement
2582         should rightly be done by the driver 'delivery' routine, not here.
2583
2584 2001-04-26  Gary Thomas  <gthomas@redhat.com>
2585
2586         * src/main.c (do_caches): Display cache state if no arguments.
2587
2588 2001-04-13  Gary Thomas  <gthomas@redhat.com>
2589
2590         * src/net/ping.c (do_ping): Tidy message.
2591
2592 2001-04-12  Robin Farine  <acnrf@dial.eunet.ch>
2593 2001-04-12  Jonathan Larmour  <jlarmour@redhat.com>
2594
2595         * src/io.c (gets): Checks for buffer overflow and returns buflen
2596         if it reaches the end of the buffer.
2597         * src/main.c (cyg_start): Cope with gets() return being the
2598         buffer length.
2599
2600 2001-04-12  Mark Salter  <msalter@redhat.com>
2601 2001-04-12  Robin Farine  <acnrf@dial.eunet.ch>
2602
2603         * src/net/enet.c (__eth_install_listener): Does not accept a
2604         handler for an eth_type less than 0x800.
2605         (__enet_poll): Only scan the handlers for a frame type greater
2606         than 0x800.
2607
2608 2001-04-09  Mark Salter  <msalter@redhat.com>
2609
2610         * src/printf.c (_vprintf): Fixed some portability problems where
2611         sizeof(int) != sizeof(long).
2612
2613 2001-04-09  Hugo Tyson  <hmt@redhat.com>
2614
2615         * src/main.c (do_cksum): Reduce warning absent posix_crc32().
2616
2617         * src/main.c (cyg_start): Compare ram_end against workspace_end to
2618         see if there is *less* SDRAM than the MLT suggested, and shorten
2619         workspace et al accordingly.  This is needed if some SDRAM is
2620         "stolen" for use by eg. a PCI window, and mapped far away.
2621
2622 2001-04-03  Gary Thomas  <gthomas@redhat.com>
2623
2624         * src/load.c (do_load): Fix 'raw' loading to check for valid
2625         base address _before_ trying to load anything.  Also, some
2626         reorg to make raw vs non-raw cleaner.
2627
2628 2001-04-02  Hugo Tyson  <hmt@redhat.com>
2629
2630         * src/flash.c (get_config): Update to support some new syntax:
2631         fco -l -n        ... lists showing nicknames instead of titles.
2632         fco -l -n -f     ... lists showing both nicknames and titles.
2633         fco nickname     ... goes straight to editing only nickname.
2634         fco nick value   ... sets nickname to value.
2635         All then follow the usual flow out, including the question
2636         Update RedBoot non-volatile configuration - are you sure (y/n)
2637         as it should be if you made a change.
2638
2639 2001-03-29  Mark Salter  <msalter@redhat.com>
2640
2641         * cdl/redboot.cdl (CYGSEM_REDBOOT_FIS_CRC_CHECK): New option to 
2642         enable (default) or disable CRC checks in FIS images.
2643         * src/flash.c: Use CYGSEM_REDBOOT_FIS_CRC_CHECK to decide whether
2644         to provide CRC for flash images.
2645
2646 2001-03-28  Mark Salter  <msalter@redhat.com>
2647
2648         * src/net/tcp.c (__tcp_handler): Don't send ACK from TIME_WAIT state
2649         unless the FIN comes in again.
2650
2651 2000-03-27  Grant Edwards <grante@visi.com>
2652
2653         * src/net/tcp.c (__tcp_handler): Fixed sequence number bug seen when
2654         doing an active close.
2655
2656 2001-03-23  Gary Thomas  <gthomas@redhat.com>
2657
2658         * src/printf.c (_vprintf): Support %u (unsigned) descriptor.
2659
2660         * src/main.c (do_cksum): New command to compute and print a POSIX
2661         checksum on a range of memory.
2662
2663         * src/crc.c (posix_crc32): New routine - matches POSIX algorithm.
2664
2665 2001-03-21  Gary Thomas  <gthomas@redhat.com>
2666
2667         * cdl/redboot.cdl: Back off previous change in number of packets.
2668         Also change minimum - below this, network debugging fails.
2669
2670         * src/flash.c (fis_write): New function - support raw writes to FLASH.
2671
2672         * src/net/enet.c (__enet_poll): Try to continue if out of packets.
2673
2674         * src/main.c: 
2675         * src/load.c: 
2676         * src/flash.c: 
2677         * include/redboot.h: Keep track of available "user" RAM.
2678
2679         * cdl/redboot.cdl: Reduce default number of [network] packets.
2680
2681 2001-03-20  Gary Thomas  <gthomas@redhat.com>
2682
2683         * src/net/net_io.c (net_io_test): Change for new calling convention.
2684
2685         * src/main.c (cyg_start): Idle processing now in I/O routines.
2686
2687         * src/io.c (gets): Move idle processing into this function.
2688
2689         * include/net/net.h (net_io_test): Needs idle parameter.
2690
2691         * include/redboot.h: Change 'idle' functions to take state (idle/not).
2692
2693 2001-03-19  Jesper Skov  <jskov@redhat.com>
2694
2695         * cdl/redboot.cdl: Put version.o file in the public lib directory
2696         so other packages can get at it and link redboot.
2697
2698 2001-03-16  Gary Thomas  <gthomas@redhat.com>
2699
2700         * src/flash.c (fis_create): Preserve memory [load/exec] address 
2701         when making assumptions [rewriting existing image].
2702
2703 2001-03-16  Mark Salter  <msalter@redhat.com>
2704
2705         * src/main.c (cyg_start): Restore console channel after returning
2706         from stub.
2707
2708 2001-03-15  Gary Thomas  <gthomas@redhat.com>
2709 2001-03-15  Grant Edwards <grante@visi.com>
2710
2711         * src/net/bootp.c (bootp_handler): Guard against buffer overflow.
2712
2713 2001-03-15  Hugo Tyson  <hmt@redhat.com>
2714
2715         * src/flash.c (fis_create): The code was installing a default for
2716         img_size from data_length of an extant record.  That's zero, so,
2717         so whilst the flash was erased, no data was copied in!
2718         (fis_list): Added a -d to get the data length field displayed.
2719
2720 2001-03-15  Jesper Skov  <jskov@redhat.com>
2721
2722         * src/main.c: Make use of script variable conditional on flash.
2723
2724         * include/redboot.h: Changed type of workspace_end to silence
2725         warning.
2726
2727         * src/net/ping.c (do_ping): Fix warning.
2728         * src/net/pktbuf.c (__pktbuf_dump): Fix warnings.
2729
2730 2001-03-14  Gary Thomas  <gthomas@redhat.com>
2731
2732         * src/main.c (do_go): Make timeout code consistent with other
2733         versions, e.g. script timeout.  Also, allow a script to continue
2734         if it was in effect when 'go' was called and ^C was typed.
2735
2736         * src/flash.c (fis_create): Ask for additional user verification
2737         if any [important] parameters are being assumed [left out by user].
2738         This just adds a level of safety in the presence of assumptions.
2739
2740 2001-03-13  Gary Thomas  <gthomas@redhat.com>
2741
2742         * src/main.c: Define 'workspace' based on MLT files, rather than
2743         simply using end of RAM area.
2744
2745         * src/flash.c: Use 'workspace' for scratch area.
2746
2747         * include/redboot.h: Define new variables 'workspace_XXX' to specify
2748         ares used by RedBoot for scratch, etc.
2749
2750 2001-03-12  Jesper Skov  <jskov@redhat.com>
2751
2752         * src/decompress.c: Removed Z_BAD_CRC hack. zlib does CRC checking
2753         now.
2754
2755 2001-03-09  Jesper Skov  <jskov@redhat.com>
2756
2757         * src/misc_funs.c: Added strncpy.
2758         * include/redboot.h: And declaration.
2759
2760 2001-03-08  Jesper Skov  <jskov@redhat.com>
2761
2762         * src/load.c (do_load): Added decompression support.
2763         * src/flash.c (fis_load): Same.
2764
2765         * src/decompress.c: Added. Interfaces the zlib API.
2766
2767         * include/redboot.h: Added some definitions used by decompression
2768         code.
2769
2770         * cdl/redboot.cdl: Added option to control size of zlib bounce
2771         buffer.
2772
2773 2001-03-05  Jesper Skov  <jskov@redhat.com>
2774
2775         * src/main.c (cyg_start): Make sure communication channels are
2776         initialized.
2777
2778 2001-03-03  Gary Thomas  <gthomas@redhat.com>
2779
2780         * src/main.c (do_idle): New function - all 'idle' handling is here.
2781
2782         * src/io.c (mon_read_char_with_timeout): Improve timeout handling
2783         when scanning for a console by applying the minimum possible value
2784         (1 ms) to each channel, accumulating the total value.  The previous
2785         algorithm was quite poor on systems where there is no buffering,
2786         i.e. serial channels with no FIFOs, because each channel would 
2787         wait for T/N (t = total timeout, N = number channels).  This might
2788         possibly have been much longer than the devices could tolerate and
2789         still return valid data.
2790
2791 2001-03-01  Gary Thomas  <gthomas@redhat.com>
2792
2793         * src/version.c: Add 'bootstrap' to banner so the world can see
2794         more of what RedBoot's all about.
2795
2796 2001-02-28  Gary Thomas  <gthomas@redhat.com>
2797
2798         * include/redboot.h: Fix prioritization of 'init' table entries.
2799
2800 2001-02-26  Gary Thomas  <gthomas@redhat.com>
2801
2802         * include/redboot.h (RedBoot_INIT_PRIO): Slight change - avoid
2803         arithmetic which C preprocessor doesn't handle anyway.  This also
2804         fixes prioritizing init entries.
2805
2806         * src/flash.c (fis_load): Only load actual data [length] when loading
2807         an image.  
2808
2809         * cdl/redboot.cdl: Change build rule to always rebuild 'version.o'
2810         whenever the application is relinked.  Thus the version string will
2811         always accurately reflect the actual build date/time.
2812
2813 2001-02-22  Hugo Tyson  <hmt@redhat.com>
2814
2815         * cdl/redboot.cdl: New config options to control default creation
2816         of various FIS image files.  Also opt for a reserved area at the
2817         base of flash, eg. for user's POST or other pre-RedBoot code that
2818         we must not interfere with.  This isn't the same as the extant
2819         boot_offset option, so the two are made to work together.
2820         Likewise an offset for the start of a POST-cooperative RedBoot
2821         image, if any; the value is of course platform dependent, not
2822         simply after the first RedBoot image, if there is one.
2823
2824         Clarification: a POST-cooperative RedBoot image is a ROM-start
2825         image that runs at a higher address in ROM, and which omits some
2826         of the hardware initialization because it's already done by
2827         whatever came before.  Most targets do not have such a thing;
2828         those that do, it is created by a config export file, not by a new
2829         startup type.  A POST Redboot can be tested from a plain ROM
2830         redboot by just calling its entrypoint once it is installed in
2831         flash; eg. by "go 0x50040044" at the RedBoot prompt.
2832
2833         * src/flash.c (fis_init): Create additional optional entries for
2834           o (reserved) reserved area at start, for preboot or post code.
2835           o RedBoot itself now optional
2836           o RedBoot[post]
2837           o RedBoot[backup]
2838         Also initialize their addresses, sizes, accordingly.
2839         The default behaviour is unchanged.
2840         The flash erase is moved to after the fis table init because the
2841         fis table init most conveniently calculates the high water mark of
2842         built-in default objects.
2843         (fis_create): If creating a file which already exists (most likely
2844         one of the preconfigured defaults) pick up Flash address and
2845         length (the two required parameters) from there.  They're required
2846         to be the same to it's no loss of generality, and saves typing,
2847         makes the default entries far more useful and so on.
2848         (fis_delete): Skip those entries which were
2849         preconfigured; we want nobody to be able to delete these.
2850         (fis_free): Start searching for free space to list only after the
2851         reserved base area - if there is one.
2852         (fis_find_free): Start searching for free space only after the
2853         reserved base area...
2854
2855 2001-02-22  Jesper Skov  <jskov@redhat.com>
2856
2857         * src/flash.c: Added default case to switch statement.
2858
2859 2001-02-20  Gary Thomas  <gthomas@redhat.com>
2860
2861         * src/load.c: Remove unnecessary \r from usage message.
2862
2863         * src/printf.c (_vprintf): Ensure CR/LF sequence, not LFCR.
2864
2865         * src/net/ping.c: 
2866         * src/flash.c: Better usage messages [no naked linefeeds].
2867
2868         * src/net/ping.c: Tidy up usage message.  Check for reasonable
2869         packet lengths.
2870
2871         * src/load.c: Tidy up usage message.
2872
2873 2001-02-16  Nick Garnett  <nickg@cygnus.co.uk>
2874
2875         * src/flash.c (load_flash_config): Move setting of config_ok to
2876         true to before we look for a script to run. Otherwise scripts just
2877         don't work.
2878
2879 2001-02-14  Hugo Tyson  <hmt@redhat.com>
2880
2881         * src/load.c (do_load): Wrap the help message at < 80 cols and fix
2882         a coupla warnings.
2883
2884 2001-02-13  Hugo Tyson  <hmt@redhat.com>
2885
2886         * src/flash.c: Fix token/string pasting thinko: ## operators are
2887         not needed and do confuse some compilers.
2888
2889 2001-02-12  Jesper Skov  <jskov@redhat.com>
2890
2891         * src/main.c: Use CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL instead
2892         of CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL.
2893
2894 2001-02-11  Gary Thomas  <gthomas@redhat.com>
2895
2896         * src/net/ping.c (do_ping): Accomodate new MS_TICKS scheme.
2897
2898 2001-02-09  Grant Edwards  <grante@visi.com>
2899
2900         * include/net/net.h (MS_TICKS_DELAY): New macro, different from
2901         MS_TICKS() so that MS_TICKS() gets the current tick count, and
2902         MS_TICKS_DELAY is used in a delay loop to actually do a delay.
2903
2904         * src/ticks.c (get_ms_ticks): New function imlementing rework of
2905         MS_TICKS
2906
2907         * src/net/net_io.c (net_io_getc): Use MS_TICKS_DELAY() instead of
2908         CYGACC_CALL_IF_DELAY_US() directly
2909         (net_io_getc_timeout): Likewise
2910
2911         * src/net/udp.c (__udp_recvfrom): MS_TICKS -> MS_TICKS_DELAY
2912         * src/net/bootp.c (__bootp_find_local_ip): Likewise
2913
2914 2001-02-09  Jonathan Larmour  <jlarmour@redhat.com>
2915 2001-02-09  Grant Edwards  <grante@visi.com>
2916
2917         * src/net/net_io.c (net_io_getc_nonblock): Silence compiler warning
2918
2919 2001-01-31  Gary Thomas  <gthomas@redhat.com>
2920
2921         * include/redboot.h: 
2922         * cdl/redboot.cdl: 
2923         * src/flash.c: Use new CRC functions.
2924
2925         * src/crc.c: New file - supports 16 and 32 bit CRC functions.
2926
2927 2001-01-31  Grant Edwards <grante@visi.com>
2928
2929         * src/net/net_io.c (net_io_test): Use new idle function to
2930         poll for incoming network connections.  Removes #if requirements
2931         from the main CLI loop.
2932
2933         * src/main.c (cyg_start): 
2934         * include/redboot.h (RedBoot_idle): Add new tables to support
2935         user defined functions to be called when idle (during command input).
2936
2937 2001-01-31  Gary Thomas  <gthomas@redhat.com>
2938
2939         * include/redboot.h: 
2940         * src/main.c (cyg_start): 
2941         * src/net/net_io.c (net_io_getc_nonblock): Forgo TELNET escape
2942         processing if GDB is active (requires 8-bit clean connection).
2943
2944 2001-01-31  Nick Garnett  <nickg@cygnus.co.uk>
2945
2946         * src/syscall.c (__do_syscall):
2947         Added SYS_meminfo syscall.
2948         This is used by the MIPS3264 GNUPro runtime.
2949
2950         * src/net/net_io.c (net_io_getc_nonblock):
2951         Telnet escape processing temporarily disabled because it does not
2952         work.
2953
2954 2001-01-31  Grant Edwards <grante@visi.com>
2955
2956         * include/net/net.h: 
2957         * src/net/enet.c (__eth_install_listener, __eth_remove_listener): 
2958         New functions - allow user registerable callout to handle 
2959         non-standard ethernet packets.
2960
2961 2001-01-30  Gary Thomas  <gthomas@redhat.com>
2962
2963         * src/main.c (do_reset): HAL macro name changed.
2964
2965         * src/net/ping.c (do_ping): Remove warning.
2966
2967         * src/main.c (do_help): Only display help for selected topic
2968         if provided.
2969
2970 2001-01-24  Jonathan Larmour  <jlarmour@redhat.com>
2971
2972         * src/main.c (cyg_start): Rework last change to use more generic
2973         HAL_MEM_REAL_REGION_TOP macro.
2974
2975 2001-01-24  Hugo Tyson  <hmt@redhat.com>
2976
2977         * src/main.c (cyg_start): Take notice of the hal_dram_size
2978         variable (only supported on ARMs) to set ram_end.  The symbols
2979         given by the CYGMEM_REGION_ram symbols are minima or defaults.
2980
2981 2001-01-22  Gary Thomas  <gthomas@redhat.com>
2982
2983         * src/net/inet_addr.c (inet_aton): Fix byte order on big endian 
2984         systems.
2985
2986         * src/net/icmp.c (__icmp_install_listener): 
2987         (__icmp_remove_listener): New functions.
2988         (__icmp_handler): Call listener for unhandled packets.
2989
2990         * include/net/net.h: Add handler for ICMP [incoming] data.
2991
2992         * cdl/redboot.cdl: 
2993         * src/net/ping.c: New CLI command - ping a host.
2994
2995 2001-01-18  Gary Thomas  <gthomas@redhat.com>
2996
2997         * include/net/net.h: 
2998         * src/net/pktbuf.c (__pktbuf_alloc): 
2999         * src/net/tcp.c (__tcp_listen): Remove obsolete code regarding
3000         'eth_hdr' stored with packet buffer.
3001
3002 2001-01-17  Hugo Tyson  <hmt@redhat.com>
3003
3004         * src/io.c (dump_buf_with_offset): Fix previous change so it
3005         compiles; variable names used not same as parm names in func.
3006
3007 2001-01-16  Gary Thomas  <gthomas@redhat.com>
3008
3009         * src/xyzModem.c: Improved debug support - now allows debug 
3010         trace to be kept in memory and dumped at completion.
3011
3012         * src/io.c (vdump_buf_with_offset): New function which allows
3013         dumping via any generic "print" function.
3014
3015         * include/redboot.h: Export new print/dump functions.
3016
3017 2001-01-08  Gary Thomas  <gthomas@redhat.com>
3018
3019         * src/net/arp.c: Add special case handling for ARP(self).
3020
3021 2001-01-03  Gary Thomas  <gthomas@redhat.com>
3022
3023         * src/main.c (do_version): Update copyright for 2001.
3024
3025         * src/io.c (gets): Use timeout provided [was hardcoded to 50ms!]
3026
3027 2000-12-21  Mark Salter  <msalter@redhat.com>
3028
3029         * src/flash.c (fis_init): Use CYGBLD_REDBOOT_FLASH_BOOT_OFFSET to
3030         decide where to create default images.
3031
3032         * cdl/redboot.cdl (CYGBLD_REDBOOT_FLASH_BOOT_OFFSET): Use this
3033         to define offset from start of FLASH to start of boot image.
3034
3035 2000-12-15  Gary Thomas  <gthomas@redhat.com>
3036
3037         * src/version.c: Define GDB stubs version here as well.  Also
3038         add warnings and informationabout how all of this works.
3039
3040 2000-12-13  Gary Thomas  <gthomas@redhat.com>
3041
3042         * src/version.c: New file.
3043
3044         * src/main.c: 
3045         * cdl/redboot.cdl: Reorg - main.c is now treated like all other
3046         files.  New file 'version.c' holds the special stuff used at
3047         build time to get interesting version information into the
3048         final product.
3049
3050 2000-12-12  Gary Thomas  <gthomas@redhat.com>
3051
3052         * src/flash.c (get_config): Increase size of input buffer used
3053         during 'fconfig' command.
3054
3055 2000-12-11  Gary Thomas  <gthomas@redhat.com>
3056
3057         * src/main.c: Change in HAL layering - need to include proper
3058         file to get 'reset' definition.
3059
3060 2000-12-08  Jonathan Larmour  <jlarmour@redhat.com>
3061
3062         * cdl/redboot.cdl: Tweak CYGPKG_REDBOOT_MAX_CMD_LINE description.
3063
3064 2000-12-07  Gary Thomas  <gthomas@redhat.com>
3065
3066         * src/main.c (cyg_start): Make CLI command buffer static.
3067         (do_reset): New command - reset platform from CLI.
3068
3069         * src/io.c (dump_buf_with_offset): Change signature for 
3070         more generic export.
3071
3072         * include/redboot.h: Export 'dump_buf_with_offset' function.
3073
3074         * cdl/redboot.cdl: Define CLI command buffer - static with
3075         user specified length - to accomodate some environments which
3076         may want excrutiatingly long commands.
3077
3078 2000-12-07  Jesper Skov  <jskov@redhat.com>
3079
3080         * src/misc_funs.c (strlen): NULL ptr string has length 0.
3081
3082         * src/load.c (load_srec_image): Refuse to load data to a location
3083         not in RAM.
3084
3085         * src/flash.c (fis_create): Hack around another MIPS compiler bug.
3086
3087 2000-12-06  Jesper Skov  <jskov@redhat.com>
3088
3089         * src/load.c: Suppress verbosity when using xyz modem download.
3090         
3091         * src/main.c: Fix warnings.
3092         * src/load.c: Fix warnings.
3093
3094         * src/parse.c (parse_num): Hack around MIPS compiler bug.
3095
3096 2000-12-01  Gary Thomas  <gthomas@redhat.com>
3097
3098         * src/xyzModem.h: 
3099         * src/xyzModem.c (xyzModem_stream_close): New function - tidy up
3100         and print some statistics about the download.  Better handling
3101         of CAN (cancel) function.
3102
3103         * src/load.c (load_srec_image): Consume all data, not just to
3104         final record.  This makes Ymodem happier.  Also, call xyzModem_close().
3105
3106 2000-11-30  Gary Thomas  <gthomas@redhat.com>
3107
3108         * src/flash.c (fis_create): Add new option '-n' which suppresses
3109         the copy from RAM to FLASH.  Used to simply update the FIS directory.
3110         Also misc printf() changes - add 0x everywhere hex is used.
3111
3112         * src/net/net_io.c (_net_io_getc_nonblock): Abstract function.
3113         (net_io_getc_nonblock): Add minimal handling of telnet escape
3114         sequences - required to properly handle ^C.
3115
3116         * src/main.c (cyg_start): Support network connection during
3117         boot/startup script.  Use new codes from 'gets()'.
3118
3119         * src/flash.c (fis_create): Cleanup to remove warnings.
3120
3121         * include/net/net.h (BSPLOG): Update for new start/end_console().
3122
3123         * src/io.c (gets): 
3124         * include/redboot.h (_GETS_xxx): Define result codes from 
3125         'gets()' function.
3126
3127 2000-11-28  Gary Thomas  <gthomas@redhat.com>
3128
3129         * src/parse.c (parse): Support escaped quote marks inside of
3130         quoted string.  "ab\"c\"" is 'ab"c"'.
3131
3132         * src/net/tftp_client.c (tftp_stream_open): Read first datum from
3133         file during open to ensure that errors are reported.
3134
3135 2000-11-27  Drew Moseley  <dmoseley@redhat.com>
3136
3137         * src/main.c: Switch to an application stack before running a
3138         user-downloaded app.
3139
3140 2000-11-20  Gary Thomas  <gthomas@redhat.com>
3141
3142         * src/flash.c: Use CYGBLD_REDBOOT_MIN_IMAGE_SIZE.
3143
3144         * cdl/redboot.cdl(CYGBLD_REDBOOT_MIN_IMAGE_SIZE): Define this to
3145         be the minimum size allowed for FIS images.
3146
3147         * src/xyzModem.c: Tidy up debug support.  Fix some synch problems 
3148         so that X/Y modem protocols now work properly with Windows/Hyperterm.
3149
3150 2000-11-20  Mark Salter  <msalter@redhat.com>
3151
3152         * src/net/net_io.c (net_io_flush): Add __tcp_drain to make sure
3153         everything is successfully sent out.
3154         (net_io_control): Call net_io_flush for __COMMCTL_FLUSH_OUTPUT.
3155
3156 2000-11-19  Gary Thomas  <gthomas@redhat.com>
3157
3158         * src/flash.c (fis_create): Print more info when length check fails.
3159
3160         * src/main.c: Split version display into separate command.
3161
3162 2000-11-06  Mark Salter  <msalter@redhat.com>
3163
3164         * src/syscall.c: New file. Common handling for bsp syscalls.
3165
3166         * cdl/redboot.cdl: Add CYGSEM_REDBOOT_BSP_SYSCALLS option to
3167         turn on BSP syscall support.
3168
3169 2000-11-06  Jesper Skov  <jskov@redhat.com>
3170
3171         * src/net/net_io.c (net_io_flush): Clear interrupt flag before
3172         setting breakpoint.
3173
3174 2000-10-30  Gary Thomas  <gthomas@redhat.com>
3175
3176         * src/net/udp.c: 
3177         * src/net/pktbuf.c: 
3178         * src/net/net_io.c: 
3179         * src/net/enet.c: 
3180         * include/net/net.h: Minor cleanups to remove warnings.
3181
3182         * cdl/redboot.cdl: Support threads in all but RAM mode.  Note:
3183         this should allow thread support in ROM and FLOPPY startup mode.
3184
3185 2000-10-27  Gary Thomas  <gthomas@redhat.com>
3186
3187         * src/xyzModem.c (xyzModem_stream_open): Add extra delay during
3188         startup - to give the sender time to get started.
3189
3190         * src/flash.c (fis_load): Add "-c" option to show checksum of
3191         image after loading.
3192         (fis_list): Add "-c" to display stored checksums.
3193
3194 2000-10-26  Mark Salter  <msalter@redhat.com>
3195
3196         * src/load.c (do_load): Move some local variable declarations
3197         needed by xyzmodem support so they can be used when redboot
3198         networking not enabled.
3199
3200 2000-10-26  Gary Thomas  <gthomas@redhat.com>
3201
3202         * cdl/redboot.cdl: Improve CDL so CYGSEM_HAL_ROM_MONITOR can
3203         be correctly infered (when building ROM versions).      
3204
3205         * cdl/redboot.cdl:
3206         * src/load.c: Add support for xyzModem serial download.
3207
3208         * src/xyzModem.h: 
3209         * src/xyzModem.c: New file(s).
3210
3211 2000-10-24  Gary Thomas  <gthomas@redhat.com>
3212
3213         * src/flash.c: 
3214         * cdl/redboot.cdl: Add new option which supports keeping all
3215         important RedBoot data "locked" in FLASH.
3216
3217 2000-10-23  Gary Thomas  <gthomas@redhat.com>
3218
3219         * src/flash.c (fis_lookup): New exported function.
3220         (fis_load): Add memory load option. Also checksum data after copy.
3221
3222         * include/fis.h: Add 'data_length' member.  
3223         Prototype for 'fis_lookup()'.
3224
3225         * src/main.c (bist): New [weak] function.  Provide hook for
3226         platform specific "builtin tests".  This will be overridden by
3227         platform based functions.
3228
3229         * cdl/redboot.cdl: 
3230         * src/main.c (cyg_start): 
3231         * src/flash.c: Script timeout now has a configurable resolution.
3232
3233 2000-10-21  Gary Thomas  <gthomas@redhat.com>
3234
3235         * src/net/eth_drv.c: Removed obsolete file - now provided by
3236         standard IO/ETH package.
3237
3238 2000-10-20  Gary Thomas  <gthomas@redhat.com>
3239
3240         * src/net/pktbuf.c: Diagnostc - add buffer [list] dumper.
3241
3242         * src/net/enet.c: Diagnostic - dump when run out of buffers.
3243
3244         * src/flash.c: Make sure RedBoot flash image size meets
3245         certain minimums - currently at least 128K.
3246
3247 2000-10-19  Gary Thomas  <gthomas@redhat.com>
3248
3249         * cdl/redboot.cdl: Add dependency on 'vectors.o'.
3250
3251         * include/redboot.h: 
3252         * src/misc_funs.c (strcpy, memcmp): 
3253         Make function signature [prototype] conform to standards.
3254         (memmove, memset): Remove.
3255
3256 2000-10-18  Gary Thomas  <gthomas@redhat.com>
3257
3258         * cdl/redboot.cdl: Improve dependency checking in make rules.
3259
3260 2000-10-17  Gary Thomas  <gthomas@redhat.com>
3261
3262         * src/flash.c (fis_create): Add new "-s" option to support padded
3263         images (data size not the same as image size in FLASH).
3264
3265         * include/fis.h: New file - make structure available for export.
3266
3267         * src/parse.c: New file.
3268
3269         * include/redboot.h: 
3270         * src/main.c: 
3271         * cdl/redboot.cdl: Split command line parsing functions to separate 
3272         file.
3273
3274 2000-10-05  Gary Thomas  <gthomas@redhat.com>
3275
3276         * src/net/net_io.c (net_io_revert_console): 
3277         (net_io_assume_console): 
3278         * src/main.c (cyg_start): 
3279         * src/io.c (gets): 
3280         * include/redboot.h: Add notion of "console_echo" so that telnet 
3281         connections don't echo doubly.  Note: there is no telnet negotiation
3282         at this time, so some things are still not perfect.
3283
3284 2000-09-17  Gary Thomas  <gthomas@redhat.com>
3285
3286         * src/main.c: Display platform/cpu identification strings if available.
3287
3288         * cdl/redboot.cdl: Improve CDL to include thread support if
3289         built in ROM mode.  Also, better handling of network option.
3290
3291 2000-09-15  Gary Thomas  <gthomas@redhat.com>
3292
3293         * src/flash.c (fis_create): Length (and flash address) must match
3294         exactly when replacing an image.
3295         Only warn of invalid memory addresses, not fail.
3296
3297 2000-09-13  Gary Thomas  <gthomas@redhat.com>
3298
3299         * src/load.c: Better handling of bad data / checksum errors.
3300
3301         * src/flash.c: Handle case of replacing an image, even if no flash
3302         address was given.
3303
3304         * include/net/tftp_support.h: Modify timeouts, etc, for better response.
3305
3306 2000-09-12  Gary Thomas  <gthomas@redhat.com>
3307
3308         * src/io.c (mon_read_char_with_timeout): Only "select" a console
3309         when real data (non-zero) arrives.
3310
3311 2000-09-10  Gary Thomas  <gthomas@redhat.com>
3312
3313         * src/load.c:
3314         * src/flash.c: Remove warnings if built without networking.
3315
3316 2000-09-11  Jonathan Larmour  <jlarmour@redhat.com>
3317
3318         * include/redboot.h (_RedBoot_init): Define tables entries as structs
3319         with one member rather than just func ptrs, to enforce alignment rules
3320         * src/main.c (cyg_start): Change to use struct init_tab_entry per above
3321
3322 2000-09-07 Andrew Lunn  <andrew.lunn@ascom.ch>
3323
3324         * src/load.c, include/redboot.h: renamed the getc functions to
3325         redboot_getc and made them global so custom boot loaders can use
3326         them.
3327
3328 2000-09-06  Gary Thomas  <gthomas@redhat.com>
3329
3330         * doc/users_guide: Add info about region locking/unlocking.
3331
3332 2000-09-04  Jonathan Larmour  <jlarmour@redhat.com>
3333
3334         * include/flash_config.h (struct config_option): Apply
3335         CYG_HAL_TABLE_TYPE
3336         * include/redboot.h: Ditto for struct cmd and void_fun_ptr      
3337
3338 2000-09-01  Hugo Tyson  <hmt@cygnus.co.uk>
3339
3340         * src/flash.c: CYGHWR_IO_FLASH_BLOCK_LOCKING is an interface, so
3341         it's always defined; look for > 0 instead.
3342
3343 2000-08-28  Gary Thomas  <gthomas@redhat.com>
3344
3345         * src/flash.c: Support block locking if available.
3346
3347 2000-08-25  Gary Thomas  <gthomas@redhat.com>
3348
3349         * src/load.c (getc): Fix edge condition when file is an exact multiple
3350         of internal buffer size (got stuck at end of file).
3351
3352 2000-08-24  Gary Thomas  <gthomas@redhat.com>
3353
3354         * src/load.c: Fix some prints.  Also use command line parse functions
3355         instead of ad hoc code.
3356
3357         * src/flash.c: Better configuration control.
3358
3359 2000-08-23  Gary Thomas  <gthomas@redhat.com>
3360
3361         * src/load.c (do_load): Use paramterized command line parser.
3362
3363         * include/redboot.h: 
3364         * src/main.c (scan_opts): Better support for simple flags.
3365
3366         * src/flash.c: Add "-l" (list only) option to 'fconfig'.
3367
3368         * src/net/net_io.c: Add handling of ^C via network connections.
3369
3370         * include/flash_config.h: 
3371
3372         * include/redboot.h: Fully qualify table entries (for proper
3373         sorting and order control).
3374
3375         * cdl/redboot.cdl: Update requirements to support ^C and thread
3376         debugging.
3377
3378 2000-08-21  Gary Thomas  <gthomas@redhat.com>
3379
3380         * cdl/redboot.cdl: 
3381         * src/net/pktbuf.c (MAX_PKTBUF): Add CDL configury for number
3382         of network packet buffers.
3383
3384         * src/net/net_io.c: Change config param names to enforce
3385         layout (config fields are sorted by name).
3386
3387         * src/load.c: Adapt to changes in 'parse_num'.
3388
3389         * src/main.c (parse_num): Now takes additional arguments which
3390         allow a delimiter set and returning the end of number string.
3391
3392         * include/redboot.h: Augment 'parse_num' to handle strings
3393         with more than one number, delimiters, etc.
3394
3395         * src/flash.c: 
3396         * include/flash_config.h: Add support for ethernet hardware
3397         addresses.
3398
3399 2000-08-20  Gary Thomas  <gthomas@redhat.com>
3400
3401         * include/flash_config.h: New file - configuration data layout.
3402
3403         * src/flash.c: Restructure config data to be 100% table driven.
3404
3405         * include/redboot.h: 
3406         * include/net/bootp.h: 
3407         * include/net/net.h: 
3408         * include/net/tftp.h: 
3409         * include/net/tftp_support.h: New location.
3410
3411         * src/printf.c: 
3412         * src/net/arp.c: 
3413         * src/net/bootp.c: 
3414         * src/net/cksum.c: 
3415         * src/net/enet.c: 
3416         * src/net/icmp.c: 
3417         * src/net/inet_addr.c: 
3418         * src/net/ip.c: 
3419         * src/net/net_io.c: 
3420         * src/net/pktbuf.c: 
3421         * src/net/tcp.c: 
3422         * src/net/tftp_client.c: 
3423         * src/net/timers.c: 
3424         * src/net/udp.c: Include files moved.
3425
3426         * src/redboot.h: 
3427         * src/net/bootp.h: 
3428         * src/net/net.h: 
3429         * src/net/tftp.h: 
3430         * src/net/tftp_support.h: Files moved.
3431         
3432         * cdl/redboot.cdl: Move .h files to include directory.
3433
3434 2000-08-16  Gary Thomas  <gthomas@redhat.com>
3435
3436         * src/io.c (dump_buf_with_offset): Clean up warnings.
3437
3438         * src/net/net_io.c: Cosmetic - clean up TCP debug code.
3439
3440         * src/main.c (cmd_search): Search for ambiguous commands was
3441         wrong since layout change (only know the limits, don't rely
3442         on "null" entry).
3443
3444 2000-08-14  Gary Thomas  <gthomas@redhat.com>
3445
3446         * cdl/redboot.cdl: Support for plugin (table driven) modules.
3447
3448         * src/flash.c: Lots of warning cleanups.
3449
3450         * src/io.c: Fix some flash configury.
3451
3452         * src/load.c: Make internal buffer unsigned so 'raw' mode
3453         works properly.  Also, support as a plugin command.
3454
3455         * src/main.c: 
3456         * src/redboot.h: Add support for "tableized" entries.  In
3457         particular, commands and platform initializations can now
3458         be handled via anonymous tables.
3459
3460         * src/net/net.h: Update for changes in network init setup.
3461
3462         * src/net/net_io.c: Move network initialization here.
3463
3464 2000-08-07  Gary Thomas  <gthomas@redhat.com>
3465
3466         * src/net/net.h: 
3467         * src/redboot.h: 
3468         * src/main.c: Cosmetic [warnings] cleanups.
3469
3470 2000-08-03  Gary Thomas  <gthomas@redhat.com>
3471
3472         * cdl/redboot.cdl: Ethernet driver now comes from common
3473         I/O package.
3474
3475         * src/io.c (verify_action): Force normal I/O (no script) 
3476         to get response.
3477
3478         * src/main.c: Add script timeout to allow user to abort before
3479         script is run on boot.
3480
3481         * src/printf.c: '%p' implies zero filled long format.
3482
3483         * src/flash.c: 
3484         * src/redboot.h: Add TCP socket and script timeouts.
3485
3486         * src/net/net_io.c: TCP socket for debug is now configurable
3487         and settable in FLASH.  Better handling of GDB $O packets (less
3488         latency).  Additional small changes to support network debug.
3489
3490 2000-07-30  Gary Thomas  <gthomas@redhat.com>
3491
3492         * src/flash.c: Make config data safer with a 'key'.  Also, don't
3493         erase the config data when doing a full FIS initialization.
3494         Finally, ensure that the commands which erase data are not going
3495         to erase the current code!
3496
3497         * src/io.c (gets): Treat 'delete' char like ^H.
3498
3499 2000-07-30  Gary Thomas  <gthomas@redhat.com>
3500
3501         * cdl/redboot.cdl: Add option for FLASH based configuration data.
3502
3503         * src/flash.c: Lots of changes to support FLASH based configuration
3504         data, including routines to read and maintain this data.
3505
3506         * src/main.c: 
3507         * src/redboot.h: Many changes for FLASH configuration data support.
3508         Also split out table driven option/parameter parsing.
3509
3510         * src/io.c: Allow ^C to abort input.  Fix timeout stuff to
3511         work better while waiting for console to be discovered.
3512         Add support for boot-time script.
3513
3514         * src/load.c: Use new IP/INET address functions.
3515
3516         * src/net/bootp.c: Remove force of net_debug and result print.
3517
3518         * src/net/inet_addr.c: IP/INET address conversion routines.
3519
3520         * src/net/net.h: Make 'net_debug' be boolean.  Add IP/INET
3521         address conversion routine prototypes.
3522
3523 2000-07-29  Gary Thomas  <gthomas@redhat.com>
3524
3525         * src/flash.c: Misc little cleanups.
3526
3527         * src/load.c: Print address range of loaded image/file.
3528
3529 2000-07-29  Gary Thomas  <gthomas@redhat.com>
3530
3531         * src/flash.c: Add 'load' command which loads an image into RAM.
3532
3533         * src/load.c: Add '-raw' switch to allow loading a file without
3534         trying to interpret it as an executable image.
3535
3536         * src/main.c: 
3537         * src/redboot.h: Make command parsing functions public.
3538
3539 2000-07-29  Gary Thomas  <gthomas@redhat.com>
3540
3541         * src/net/bootp.c: Turn on network debug during address discovery.
3542         (Note: this will be optional/configurable in the future).
3543
3544         * src/net/eth_drv.c: Use 'net_debug' for diagnostic dumps.
3545
3546         * src/redboot.h: Prototypes for new functions.
3547
3548         * src/printf.c (vprintf): New function.
3549
3550         * src/io.c (verify_action): New function.
3551
3552         * cdl/redboot.cdl: Make FLASH support optional.
3553
3554         * src/flash.c: New file - implements simple FLASH Image System.
3555
3556         * src/misc_funs.c (memset): 
3557         (strcpy): New functions.
3558
3559         * src/main.c: Split flash functions to separate file.
3560
3561 2000-07-28  Gary Thomas  <gthomas@redhat.com>
3562
3563         * src/load.c: Add "-v" switch to turn on a little 'spinner' while
3564         downloading to provide some feedback to the user.
3565
3566         * src/printf.c: Use only RedBoot I/O to allow console to "float."
3567
3568         * src/net/bootp.c: Force hardware type to be "original" ethernet.
3569
3570         * cdl/redboot.cdl: 
3571         * src/redboot.h: 
3572         * src/main.c: 
3573         * src/io.c: 
3574         * src/net/net_io.c: Support "floating" console, chosen from
3575         available serial I/O channels.
3576
3577 2000-07-26  Gary Thomas  <gthomas@redhat.com>
3578
3579         * src/net/tftp_support.h: 
3580         * src/net/tftp_client.c: Add new stream oriented functions.
3581
3582         * src/net/net.h: More prototypes.
3583
3584         * src/redboot.h: Move support functions here.  Update interfaces.
3585
3586         * src/printf.c: Support %l (long) qualifier.
3587
3588         * src/misc_funs.c: Misc cleanups.  Add case insensitive routines.
3589
3590         * src/main.c: FLASH functionality is now in it's own package.
3591
3592         * src/net/eth_drv.c: 
3593         * include/eth_drv.h: Update to new interface conventions.
3594
3595         * cdl/redboot.cdl: Changes for new files(s).
3596
3597 2000-07-24  Gary Thomas  <gthomas@redhat.com>
3598
3599         * src/net/inet_addr.c: New file.  Support for IP address parsing.
3600
3601         * src/load.c: New file.  Split out download functionality.
3602         Restructured to support download via stream (zmodem).
3603
3604         * src/misc_funs.c: Add case insensitive compare functions.
3605
3606 2000-07-22  Gary Thomas  <gthomas@redhat.com>
3607
3608         * src/main.c (do_load): Add proper argument parsing.
3609
3610 2000-07-21  Gary Thomas  <gthomas@redhat.com>
3611
3612         * src/io.c (gets): Treat "\n\r" and "\r\n" as exactluy "\n".  This
3613         solves problems of simply ignoring "\n" on terminals which can only
3614         send that character while still working with telnet/TCP connections.
3615
3616         * src/net/net_io.c: New file.  Supports local I/O via a TCP channel.
3617         Additional changes to support TCP channel for GDB debug I/O.
3618
3619         * cdl/redboot.cdl: Clean up dependencies.  Extend network configuration.
3620
3621         * src/io.c (gets): Ignore blank lines which contain only '\n'.
3622         This works fine for terminal I/O since they will have '\r' and it
3623         allows reasonable handling when connected via telnet/TCP.
3624
3625         * src/main.c: Better support for network connections.  
3626         Also some reworking of FLASH routines [will be moved later].  
3627         More error checking and better error messages in download code.
3628
3629         * src/net/net.h: Reorder 'tcp_socket' fields to enforce proper
3630         alignment of data buffer [needs to be on dword boundary].
3631
3632         * src/net/tcp.c: Many small changes getting 'endian'-ness correct.
3633
3634         * src/net/tftp_client.c (tftp_error): New function - returns a
3635         string representing the error code [for humans].
3636
3637 2000-07-16  Gary Thomas  <gthomas@redhat.com>
3638
3639         * cdl/redboot.cdl: Make network support configurable/optional.
3640
3641         * src/io.c: Add command line input function.
3642
3643         * src/main.c: Lots of new functions, command line processing, etc.
3644
3645         * src/misc_funs.c (strcmp, strncmp): New function(s).   
3646
3647         * src/printf.c: Add support for "%p" (pointers).
3648
3649         * src/redboot.h: Expand, move global vars, here, etc.
3650
3651         * src/net/eth_drv.c: Make quieter, change "no interface" string.
3652
3653         * src/net/net.h (__LITTLE_ENDIAN__): Avoid redefining this on platforms
3654         where GCC does it for us.
3655
3656 2000-07-12  Gary Thomas  <gthomas@redhat.com>
3657
3658         * cdl/redboot.cdl: New file(s).
3659
3660 //===========================================================================
3661 //####ECOSGPLCOPYRIGHTBEGIN####
3662 // -------------------------------------------
3663 // This file is part of eCos, the Embedded Configurable Operating System.
3664 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
3665 //
3666 // eCos is free software; you can redistribute it and/or modify it under
3667 // the terms of the GNU General Public License as published by the Free
3668 // Software Foundation; either version 2 or (at your option) any later version.
3669 //
3670 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
3671 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
3672 // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3673 // for more details.
3674 //
3675 // You should have received a copy of the GNU General Public License along
3676 // with eCos; if not, write to the Free Software Foundation, Inc.,
3677 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
3678 //
3679 // As a special exception, if other files instantiate templates or use macros
3680 // or inline functions from this file, or you compile this file and link it
3681 // with other works to produce a work based on this file, this file does not
3682 // by itself cause the resulting work to be covered by the GNU General Public
3683 // License. However the source code for this file must still be made available
3684 // in accordance with section (3) of the GNU General Public License.
3685 //
3686 // This exception does not invalidate any other reasons why a work based on
3687 // this file might be covered by the GNU General Public License.
3688 //
3689 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
3690 // at http://sources.redhat.com/ecos/ecos-license/
3691 // -------------------------------------------
3692 //####ECOSGPLCOPYRIGHTEND####
3693 //===========================================================================