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