1 2007-08-28 Gary Thomas <gary@mlbassoc.com>
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.
7 2007-08-08 Peter Korsgaard <peter.korsgaard@barco.com>
10 * src/net/http_client.c: Add HTTP_FORBIDDEN error code for 403
13 2007-06-03 Andrew Lunn <andrew.lunn@ascom.ch>
15 * src/net/net_io.c: (do_ip_addr): Option to set domain name.
16 * doc/redboot_cmds.sgml: Document new option.
18 2007-06-03 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
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.
24 2007-06-02 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
26 * src/flash.c: (fis_list): fis list will now list an image
27 which happens to start at address 0.
29 2007-04-11 Gary Thomas <gary@mlbassoc.com>
30 2007-04-11 Jonathan Larmour <jifl@eCosCentric.com>
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.
37 2007-01-22 Peter Korsgaard <peter.korsgaard@barco.com>
39 * src/load.c (do_load): Reset entry address before load so
40 go/exec commands will fail after an incomplete upload.
42 2006-11-28 David Fernandez <dfernandez@cct.co.uk>
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.
50 * src/net/net_io.c: Modified to allow
51 CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE to be used even with no flash
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
58 2006-11-19 Andrew Lunn <lunn@laptop.lunn.ch>
60 * src/load.c: Only call valid_address() if
61 CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS is enabled.
63 2006-09-06 Andrew Lunn <andrew.lunn@ascom.ch>
65 * cdl/redboot.cdl: Fix description of CYGSEM_REDBOOT_DISK_IDE.
66 Error pointed out by Wang Cui
68 2006-08-28 Sergei Gavrikov <w3sg@SoftHome.net>
70 * src/net/tftp_client.c (tftp_error_ack): Fix compiler warnings.
72 2006-07-21 David Ho <davidkwho@gmail.com>
74 * src/flash.c (fis_start_update_directory): Fix build error when
75 redundant FIS selected and locking is not enabled/supported.
77 2006-05-24 Gary Thomas <gary@mlbassoc.com>
79 * src/net/net_io.c (do_ip_addr): Bail out if no networking.
81 2006-05-23 Gary Thomas <gary@mlbassoc.com>
83 * src/flash.c (fis_update_directory): Fix problems building on systems
84 with no FLASH locking.
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:
90 add support for redundant FIS tables, configurable via
91 CYGOPT_REDBOOT_REDUNDANT_FIS
93 2006-04-07 Grant Edwards <grante@visi.com>
95 * src/net/net_io.c (net_io_getc_nonblock):
96 Handle TELNET_WILL (reject same as TELNET_DO)
98 2006-04-03 Lars Povlsen <lpovlsen@vitesse.com>
100 * src/flash.c (fis_update_directory): Fixed flash region size when
101 CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG is enabled.
103 2006-03-27 Gary Thomas <gary@mlbassoc.com>
105 * src/net/tcp.c (__tcp_write_block): Fix calculation of actual
106 total number of bytes sent (from Wolfgang Koebler)
108 2006-02-25 Oliver Munz <munz@speag.ch>
109 Andrew Lunn <andrew.lunn@ascom.ch>
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.
120 2006-02-24 Jonathan Larmour <jifl@eCosCentric.com>
122 * src/fs/fileio.c (do_list): Use getcwd for current directory,
123 rather than "." which may not be implemented in the FS.
125 2006-02-17 Andrew Lunn <andrew.lunn@ascom.ch>
127 * src/flash.c (fis_lock & fis_unlock): Allow compilation without
129 * src/flash.c (fis_update_directory): When reading/writing flash
130 use the full size of the fis directory, not just one block.
132 2005-11-23 Peter Korsgaard <peter.korsgaard@barco.com>
134 * src/gunzip.c (do_gunzip): Fixed diag_printf format string warnings.
136 2005-10-17 Gary Thomas <gary@mlbassoc.com>
138 * src/iomem.c (do_iopeek): Correct number of options.
140 2005-09-13 Jonathan Larmour <jifl@eCosCentric.com>
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.
146 * src/main.c (cyg_start): Conditionalise use of
147 __mem_fault_handler to only be when stubs are included.
149 (error_handler): Ditto for this function.
151 2005-09-09 Andrew Dyer <adyer@righthandtech.com>
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.
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
164 2005-09-08 Gary Thomas <gary@mlbassoc.com>
169 * cdl/redboot.cdl: Add support for ANSI keyboard cursor keys
170 such as HOME/END/Arrows
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
176 2005-09-03 Andrew Lunn <andrew.lunn@ascom.ch>
178 * cdl/redboot.cdl: White space changes to aid readability.
180 2005-09-03 Isaac Claymore <iclaymore@gmail.com>
182 * src/flash.c (fis_create): Print an error if the FIS directory is
183 full when we try to create a new entry.
185 2005-08-17 David Vrabel <dvrabel@arcom.com>
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.
192 * src/net/net_io.c: Use CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE as
193 the default to the net_device config option.
195 2005-07-06 Isaac Claymore <iclaymore@gmail.com>
197 * src/fconfig.c: (get_config): Verify the length of the script is
198 less than MAX_SCRIPT_LENGTH.
200 2005-06-29 Andrew Lunn <andrew.lunn@ascom.ch>
202 * doc/redboot_cmds.sgml:
203 * src/dump.c: Fix the usage for dump and x command.
205 2005-06-29 Peter Korsgaard <jacmet@sunsite.dk>
207 * src/flash.c (find_free): Maintain sort order when splitting
210 2005-06-27 Andrew Lunn <andrew.lunn@ascom.ch>
212 * src/net/enet.c (ntohs): Return type is a short.
214 2005-06-22 Peter Korsgaard <jacmet@sunsite.dk>
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.
220 2005-06-09 David Vrabel <dvrabel@arcom.com>
222 * src/xyzModem.c: Use the Ymodem length field by #define'ing
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.
228 2005-06-07 Andrew Lunn <andrew.lunn@ascom.ch>
230 * src/flash.c (_flash_info): Fixed a warning about a diag_printf
233 2005-05-27 David Vrabel <dvrabel@arcom.com>
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).
239 2005-05-04 David Vrabel <dvrabel@arcom.com>
241 * src/alias.c (lookup_alias): The expansion of FREEMEMLO and
242 FREEMEMHI needs a leading '0x' so they're recognized as hex.
244 2005-04-21 Ian Campbell <icampbell@arcom.com>
246 * src/net/net_io.c (net_init): Don't initialize the network if we
247 don't have an IP address.
249 * src/net/net_io.c (do_ip_addr): Add a '-b' option to obtain IP
250 address using BOOTP/DHCP.
252 * doc/redboot_cmds.sgml: Document the new '-b' option to the
253 'ip_address' command.
255 * src/decompress.c (zcfree): Remove unnecessary variable
259 2005-04-17 Andrew Lunn <andrew.lunn@ascom.ch>
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
265 2005-04-07 Peter Korsgaard <jacmet@sunsite.dk>
267 * cdl/redboot.cdl, doc/redboot_cmds.sgml, src/gunzip.c: Added
268 gunzip command to uncompress GZIP compressed data.
270 2005-04-11 Peter Korsgaard <jacmet@sunsite.dk>
272 * src/flash.c (find_free): Correctly split chunks in two when
275 2005-03-07 Alexander Neundorf <alexander.neundorf@jenoptik.com>
277 * src/net/arp.c: use correct sizeof(rt->enet_addr) in
280 2005-01-26 Nick Garnett <nickg@ecoscentric.com>
282 * src/fs/fileio.c (do_mkdir, do_deldir, do_del, do_write): Added
283 some extra argument checking to these functions.
285 2005-01-22 Andrew Lunn <andrew.lunn@ascom.ch>
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.
291 2005-01-19 Jonathan Larmour <jifl@eCosCentric.com>
293 * src/fs/fileio.c (do_mount): Only support -f with "legacy" flash
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.
300 * src/decompress.c (ZLIB_COMPRESSION_OVERHEAD):
301 Increase substantially if jffs2 is present.
303 2005-01-05 David Vrabel <dvrabel@arcom.com>
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.
309 2004-12-17 Nick Garnett <nickg@ecoscentric.com>
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
316 2004-12-16 Nick Garnett <nickg@ecoscentric.com>
318 * doc/redboot_cmds.sgml: Added file mode documentation to load
321 2004-12-01 Andrea Michelotti <amichelotti@atmel.com>
325 * mcmp.c : Changes required for use with GCC v4 - cast as lvalue
326 is no longer supported.
328 2004-11-26 Nick Garnett <nickg@ecoscentric.com>
330 * doc/redboot_cmds.sgml: Added documentation of filesystem access
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.
336 2004-11-24 Nick Garnett <nickg@ecoscentric.com>
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.
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().
348 * src/main.c: Removed unnecessary delay during startup. Changed
349 diag_printf() in do_go() into err_printf().
351 * src/load.c: Changed some calls to diag_printf() to err_printf().
353 * src/net/net_io.c: Changed init priority to RedBoot_INIT_NET.
355 * include/redboot.h: Added some extra initialization
356 priorities. Added prototypes for redboot_exec() and err_printf().
358 2004-11-09 Ian Campbell <icampbell@arcom.com>
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.
363 2004-11-09 David Vrabel <dvrabel@arcom.com>
365 * cdl/redboot.cdl (CYGBLD_REDBOOT_MIN_IMAGE_SIZE): Correct the
366 description to match what the option is actually used for.
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.
372 2004-11-04 Peter Korsgaard <jacmet@sunsite.dk>
374 * src/fconfig.c (flash_write_config): Removed compiler warning
375 when building redboot with combined FIS and config.
377 2004-10-10 Iztok Zupet <iz@elsis.si>
379 * cdl/redboot.cdl: added CYGSEM_REDBOOT_DISK_IDE_VMWARE option.
380 * src/fs/ide.c : skip reset IDE commands if running under VMware.
382 2004-10-08 Andrew Lunn <andrew.lunn@ascom.ch>
384 * doc/redboot_installing.sgml: Added links to the tools for the
385 Atmel AT91 JTST board.
387 2004-09-27 Mark Salter <msalter@redhat.com>
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.
393 2004-9-25 Andrew Lunn <andrew.lunn@ascom.ch>
395 * doc/redboot_install.sgml: Added installation information for the
396 Atmel AT91 JTST board provided by Andrea Michelotti
398 2004-9-23 Bob Koninckx <bob.koninckx@o-3s.com>
400 * src/net/tc.c: Removed unneccesary call to MS_TICKS_DELAY
402 2004-09-19 Mark Salter <msalter@redhat.com>
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.
408 2004-09-19 Andrew Lunn <andrew.lunn@ascom.ch>
410 * src/load.c (do_load): Removed compiler warning when building
411 reboot without networking.
413 2004-09-05 Mark Salter <msalter@redhat.com>
415 * doc/redboot_installing.sgml: Add mb93091 and mb93093.
417 2004-09-02 Mark Salter <msalter@redhat.com>
419 * doc/redboot_cmds.sgml: Add -x option to exec command.
421 2004-09-01 Mark Salter <msalter@redhat.com>
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.
430 * src/main.c (do_version): Update copyright message.
432 2004-08-31 Jonathan Larmour <jifl@eCosCentric.com>
434 * src/flash.c (fis_init): Avoid potentially unnecessary erase
435 attempt at end of flash.
437 2004-08-27 Peter Korsgaard <jacmet@sunsite.dk>
439 * doc/redboot_cmds.sgml: Fixed a minor typo with fis list
441 2004-08-17 Andrew Lunn <andrew.lunn@ascom.ch>
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
448 2004-08-16 Andrew Lunn <andrew.lunn@ascom.ch>
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.
455 2004-08-13 Jani Monoses <jani@iv.ro>
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.
461 2004-08-10 Andrew Lunn <andrew.lunn@ascom.ch>
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.
468 2004-08-09 Andrew Lunn <andrew.lunn@ascom.ch>
471 * src/fs/fileio.c (do_ls) Added an ls command so we can see what
472 is inside the mounted filesystem.
474 2004-06-25 Andrew Lunn <andrew.lunn@ascom.ch>
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.
480 2004-05-31 Jani Monoses <jani@iv.ro>
483 * include/redboot.h: Get rid of unused workspace_size.
485 2004-05-16 Andrew Dyer <adyer@righthandtech.com>
486 2004-05-27 Jonathan Larmour <jifl@eCosCentric.com>
488 * src/fs/ide.c: make sure IDE_STAT_BSY is 0 before checking other
489 bits in the status register
491 2004-05-21 Ian Campbell <icampbell@arcom.com>
493 * src/main.c: Make it build without CYGSEM_REDBOOT_FLASH_ALIASES.
495 2004-05-05 Gary Thomas <gary@mlbassoc.com>
497 * src/flash.c (fis_load): CRC check on load was broken (the CDL
498 option changed names)
500 2004-04-29 Jonathan Larmour <jifl@eCosCentric.com>
502 * doc/redboot_epilogue.sgml: Comment out </part> to reflect change
505 2004-04-23 Gary Thomas <gary@mlbassoc.com>
512 * include/redboot.h: Add asserts to check that option arrays
513 are not overrun (when used with variable number of options).
515 2004-04-23 Gary Parnes <garyp@logicpd.com>
517 * src/net/tftp_client.c: The port, if specified by the user,
518 is now corrected for endianness issues.
520 2004-04-19 Gary Thomas <gary@mlbassoc.com>
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.
525 2004-04-19 John Dallaway <jld@ecoscentric.com>
527 * doc/makefile, doc/redboot_main.sgml: New files to build the RedBoot
528 User's Guide as a self-contained document.
530 * doc/redboot.sgml: Eliminate <part> tag to build the RedBoot User's
531 Guide as a self-contained document.
533 2004-03-30 Mark Salter <msalter@redhat.com>
535 * src/net/udp.c (__udp_recvfrom_handler): Protect against back-to-back
538 2004-03-17 Thomas Koeller <thomas.koeller@baslerweb.com>
540 * src/fs/fileio.c: Only include IO package headers if required.
542 2004-03-02 Andrew Dyer <adyer@righthandtech.com>
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
548 2004-02-27 Jani Monoses <jani@iv.ro>
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.
556 2004-02-26 Jani Monoses <jani@iv.ro>
559 * src/net/http_client.c: Allow overriding the default HTTP port.
561 2004-02-25 Gratian Crisan <nelu@iv.ro>
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).
568 2004-02-24 Gary Thomas <gary@mlbassoc.com>
570 * cdl/redboot.cdl: net_io needs to be in libextras to enable network
571 support (failed if network debug was disabled)
573 2004-02-23 Uwe Kindler <uwe_kindler@web.de>
585 * src/net/ping.c: Minor cleanups to remove warnings.
587 2004-02-20 Jonathan Larmour <jifl@eCosCentric.com>
589 * doc/redboot.sgml: Document lowering security level for TFTP to
590 work on more recent Red Hat Linux.
592 2004-02-19 Jani Monoses <jani@iv.ro>
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.
597 2004-02-16 Andrew Dyer <adyer@righthandtech.com>
599 * src/main.c: add 'go' options to help string
601 2004-02-11 Jonathan Larmour <jifl@eCosCentric.com>
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.
613 * src/main.c (set_comm_baud_rate): Get current rate with GETBAUD
616 2004-02-04 Gary Thomas <gary@mlbassoc.com>
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.
622 2004-01-18 Gary Thomas <gary@mlbassoc.com>
624 * src/main.c: Fix build problem if GDB stubs are not included.
625 Minor warning cleanup (cast on NO_MEMORY).
627 2003-12-21 Gary Thomas <gary@mlbassoc.com>
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.
636 * include/flash_config.h: New functions for get/set/enumerate
637 config data which can be used via virtual vector interface.
639 2003-12-12 Jani Monoses <jani@iv.ro>
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.
645 2003-12-08 Gary Thomas <gary@mlbassoc.com>
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.
652 2003-12-05 Gary Thomas <gary@mlbassoc.com>
654 * src/decompress.c (gzip_init): Memory pool initialization should
655 only be done in _zlib_init().
657 2003-12-05 Ian Campbell <icampbell@arcom.com>
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.
664 2003-12-05 Gary Thomas <gary@mlbassoc.com>
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.
669 2003-12-03 David Vrabel <dvrabel@arcom.com>
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).
675 2003-11-27 David Woodhouse <dwmw2@redhat.com>
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
681 2003-11-25 John Dallaway <jld@ecoscentric.com>
683 * src/fconfig.c (load_flash_config):
684 Fix typo in output string.
686 2003-11-24 Gary Thomas <gary@mlbassoc.com>
688 * src/net/bootp.c (__bootp_find_local_ip):
689 Suppress diagnostic message that DNS info found.
691 2002-11-24 Jani Monoses <jani@iv.ro>
693 * src/flash.c: Remove references to FLASH_MIN_WORKSPACE.
695 2003-11-21 David Vrabel <dvrabel@arcom.com>
697 * src/net/bootp.c (bootp_handler): Scan for DHCP Message Type tag
698 as it isn't always the first tag.
700 * include/net/bootp.h: New #define's for DHCP message types
701 (DHCP_MESSAGE_TYPE_DISCOVER etc.).
703 2002-11-20 Jani Monoses <jani@iv.ro>
705 * src/flash.c: flash_init() no longer takes three args.
707 2003-11-19 David Woodhouse <dwmw2@redhat.com>
709 * src/main.c: Restore correct old baud rate if changing fails.
711 2003-11-13 Gary Thomas <gary@mlbassoc.com>
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.
717 2003-11-12 Gary Thomas <gary@mlbassoc.com>
719 * misc/redboot_XXX.ecm: Removed - since it was only a source of confusion.
721 2003-11-07 Gary Thomas <gary@mlbassoc.com>
725 * include/net/net.h: Use DNS server address from DHCP if provided.
726 Inspired by John Newlin <jnewlin@rawbw.com>
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.
732 2003-11-04 Gary Thomas <gary@mlbassoc.com>
734 * src/flash.c (find_free): Better handling of end address - otherwise
735 list of free blocks could be incorrect. Thanks to Chris Garry.
737 2003-11-01 Gary Thomas <gary@mlbassoc.com>
739 * cdl/redboot.cdl: Reorg to allow disk operations on other than
742 2003-10-23 Gary Thomas <gary@mlbassoc.com>
744 * src/main.c (cyg_start): Try to catch illegal memory accesses and
745 other abort conditions during command execution.
747 2003-10-17 Gary Thomas <gary@mlbassoc.com>
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.
753 2003-10-16 Jonathan Larmour <jifl@eCosCentric.com>
755 * doc/redboot_installing.sgml: Fix eb40 flash install instructions.
757 2003-10-15 Gary Thomas <gary@mlbassoc.com>
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.
764 * include/redboot.h (RedBoot_INIT_SECOND):
765 Finer initialization control.
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.
772 2003-10-12 Gary Thomas <gary@mlbassoc.com>
774 * src/flash.c (fis_create): Verify that any hard FLASH addresses
775 (given via -f XXX) are known to be free.
777 2003-10-11 Gary Thomas <gary@mlbassoc.com>
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.
785 2003-10-09 Gary Thomas <gary@mlbassoc.com>
787 * src/flash.c (fis_create): Check whole length of image, not just
788 effective size, when validating addresses.
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.
795 2003-10-06 Gary Thomas <gary@mlbassoc.com>
798 * src/net/bootp.c: Fix some compile problems if GATEWAY support is disabled.
800 * src/flash.c (fis_list): Display FIS directory entries in FLASH
801 address (sorted) order.
803 2003-10-03 Gary Thomas <gary@mlbassoc.com>
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.
809 2003-10-02 Gary Thomas <gary@mlbassoc.com>
812 * cdl/redboot.cdl: Allow platforms to provide a function to validate
813 ethernet station addresses.
815 2003-09-30 Gary Thomas <gary@mlbassoc.com>
817 * src/fconfig.c (do_flash_config): Fix typo in error message.
819 2003-09-30 David Vrabel <dvrabel@arcom.com>
821 * src/net/tcp.c: Include missing <cyg/infra/diag.h>.
823 * include/redboot.h, src/parse.c (init_opts, scan_opts): Remove
824 the excessive level of indirection in the handling of option
827 2003-09-29 Gary Thomas <gary@mlbassoc.com>
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>
834 2003-09-26 Nick Garnett <nickg@balti.calivar.com>
836 * doc/redboot_installing.sgml: Fixed bogus memory sizes in AT91
839 2003-09-26 Gary Thomas <gary@mlbassoc.com>
841 * src/flash.c (fis_free, fis_find_free):
842 Fix some problems introduced with the new FLASH interfaces (used by
845 * src/fconfig.c: Honor FLASH/FIS configury.
848 * src/fs/ide.c: Clean up some compiler warnings.
850 2003-09-25 Gary Thomas <gary@mlbassoc.com>
852 * src/net/bootp.c: Rework DHCP process to handle really stubborn
855 2003-09-24 Gary Thomas <gary@mlbassoc.com>
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.
861 2003-09-23 Gary Thomas <gary@mlbassoc.com>
863 * src/net/bootp.c (__bootp_find_local_ip): Handle retries on DHCP
866 2003-09-22 Gary Thomas <gary@mlbassoc.com>
868 * cdl/redboot.cdl: Fix compile error for systems with no FLASH.
870 2003-09-21 Gary Thomas <gary@mlbassoc.com>
872 * cdl/redboot.cdl: Make DNS truly optional (remove from template).
875 2003-09-20 Gary Thomas <gary@mlbassoc.com>
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.
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
886 2003-09-20 Chris Garry <cgarry@sweeneydesign.co.uk>
888 * src/main.c: Modified the way multiple "RAM" segments are reported.
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.
894 2003-09-19 Gary Thomas <gary@mlbassoc.com>
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
900 * src/net/tftp_client.c: Make timeout on very first transaction really
901 long - again since some servers are just slow/ill mannered.
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).
907 * src/time_date.cxx: New file - support "date" command for platforms
908 with battery backed up clocks.
910 * src/fconfig.c: New file - split out from flash.c
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.
922 2003-09-09 Gary Thomas <gary@mlbassoc.com>
924 * src/flash.c (flash_config_insert_value): Default value was
927 2003-09-08 David Vrabel <dvrabel@arcom.com>
929 * src/net/bootp.c (__bootp_find_local_ip): Adds Option 55 Parameter
930 Request List) to the DHCP request (requests: Subnet Mask; Router;
933 2003-08-19 Gary Thomas <gary@mlbassoc.com>
935 * src/net/udp.c (__udp_recvfrom): Rework loop so delay only happens
936 if no packet is immediately available - improves network throughput.
939 * cdl/redboot.cdl: Add control over granularity of timers used
940 by RedBoot and the network stack.
942 2003-08-05 Jonathan Larmour <jifl@eCosCentric.com>
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.
948 2003-07-23 Patrick Doyle <wpd@dtccom.com>
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.
954 2003-07-16 Gary Thomas <gary@mlbassoc.com>
957 * src/net/bootp.c: Allow ^C to abort.
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.
963 2003-07-15 Gary Thomas <gary@mlbassoc.com>
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.
971 * src/net/arp.c (__arp_request): Allow ARP of self - used during
972 initialization to "broadcast" that an IP address is in use.
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.
978 2003-07-15 Jonathan Larmour <jifl@eCosCentric.com>
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.
984 2003-07-01 Mark Salter <msalter@redhat.com>
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.
990 2003-06-26 Jonathan Larmour <jifl@eCosCentric.com>
992 * doc/redboot_installing.sgml: Clarify use of correct cables with
993 serial ports with AT91 boards.
995 2003-06-24 Jonathan Larmour <jifl@eCosCentric.com>
997 * doc/redboot_cmds.sgml (IP): Clarify last change a bit and fix typos
1000 2003-05-20 David Vrabel <dvrabel@arcom.com>
1001 2003-05-20 Ian Campbell <icampbell@arcom.com>
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.
1007 2003-06-24 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1008 2003-06-24 Jonathan Larmour <jifl@eCosCentric.com>
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.
1015 * src/net/bootp.c: Use correct DHCP message type for DHCPREQUEST.
1017 2003-05-20 Mark Salter <msalter@redhat.com>
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.
1023 2003-05-14 Mark Salter <msalter@redhat.com>
1025 * src/flash.c (flash_get_config): Add CONFIG_NETPORT case.
1027 2003-05-13 Nick Garnett <nickg@balti.calivar.com>
1029 * doc/redboot_installing.sgml: Added installation instructions for
1030 Atmel EB40A, EB42 and EB55 boards.
1032 2003-05-06 Mark Salter <msalter@redhat.com>
1034 * src/main.c (cyg_start): Clear gdb_active when returning from stub.
1036 2003-05-06 Pierre Habraken <Pierre.Habraken@imag.fr>
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.
1055 2003-04-23 Chris Garry <cgarry@sweeneydesign.co.uk>
1057 * src/flash.c: Only perform RAM check in fis load command when
1058 CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS = 1
1060 2003-04-18 Gary Thomas <gary@mlbassoc.com>
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.
1065 2003-04-14 Jani Monoses <jani@iv.ro>
1068 Change #else if to #elif so it compiles when TFTP is disabled.
1070 2003-04-08 Jonathan Larmour <jifl@eCosCentric.com>
1072 * src/main.c (do_go): Silence unused variable warning when no net.
1074 2003-04-04 Mark Salter <msalter@redhat.com>
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.
1081 2003-04-03 Gary Thomas <gary@mlbassoc.com>
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.
1087 * src/net/http_client.c:
1088 * include/net/http.h: Improve parsing of HTTP responses for errors.
1090 2003-03-28 Gary Thomas <gary@mlbassoc.com> inspired by
1091 2003-03-28 Jani Monoses <jani@iv.ro>
1094 * cdl/redboot.cdl: Make TFTP download protocol optional.
1096 2003-03-20 Mark Salter <msalter@redhat.com>
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.
1104 2002-03-19 John Dallaway <jld@ecoscentric.com>
1106 * doc/redboot_installing.sgml: Update Atmel AT91EB40 RedBoot
1107 installation instructions.
1109 2003-03-18 Mark Salter <msalter@redhat.com>
1111 * doc/redboot_installing.sgml: Add XScale IXDP425 and GRG.
1113 2003-03-05 Jonathan Larmour <jifl@eCosCentric.com>
1115 * src/main.c (do_version): Test for CYGPKG_REDBOOT_FLASH as
1116 CYGPKG_IO_FLASH can be loaded with no underlying hardware drivers!
1118 2003-03-03 Gary Thomas <gary@mlbassoc.com>
1120 * src/main.c (set_console_baud_rate): Avoid "unused" warning.
1122 2003-03-03 Knud Woehler <knud.woehler@microplex.de>
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.
1127 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
1129 * doc/redboot.sgml: De-vendorise a little.
1130 Fix extraneous <para>.
1132 * cdl/redboot.cdl: Add doc links.
1134 2003-02-14 Jonathan Larmour <jifl@eCosCentric.com>
1136 * cdl/redboot.cdl: Put virtually all options inside
1137 CYGBLD_BUILD_REDBOOT. And indent accordingly.
1139 2003-02-04 Gary Thomas <gary@mind.be>
1141 * src/fs/ide.c: Print more info if failed to identify IDE device.
1143 * src/fs/e2fs.c: Improved debug output.
1145 2003-02-04 Mark Salter <msalter@redhat.com>
1146 2003-02-04 Brian Murphy <brian@murphy.dk>
1148 * src/main.c (return_to_redboot): Add CYGARC_HAL_RESTORE_GP.
1150 2003-01-31 Mark Salter <msalter@redhat.com>
1152 * src/main.c: Add support to allow programs started by go to
1155 * src/syscall.c (__do_syscall): Return to monitor on program exit
1157 (sys_timer_isr): Return CYG_ISR_HANDLED.
1159 2003-01-10 Patrick Doyle <wpd@delcomsys.com>
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.
1165 2002-12-31 Patrick Doyle <wpd@delcomsys.com>
1167 * src/decompress.c (gzip_close): Don't complain that decompression
1168 didn't complete when the stream reaches its end.
1170 2002-12-18 David Mazur <david@mind.be>
1171 2002-12-18 Mark Salter <msalter@redhat.com>
1173 * src/fs/e2fs.c (e2fs_get_gdesc): Fixed handling of group descriptor
1176 2002-12-03 Gary Thomas <gthomas@ecoscentric.com>
1178 * src/main.c: Export version string via virtual vector table.
1180 2002-11-05 Jonathan Larmour <jifl@eCosCentric.com>
1182 * src/io.c (_rb_gets_preloaded): Null terminate when buffer full.
1184 2002-10-24 Gary Thomas <gthomas@ecoscentric.com> (inspired by)
1185 2002-10-24 Jay Foster <jay@systech.com>
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).
1191 * src/flash.c: Fix typo for "FIS DELETE"
1193 2002-09-16 Mark Salter <msalter@redhat.com>
1195 * src/main.c (set_console_baud_rate): Handle CYGPKG_REDBOOT_ANY_CONSOLE.
1196 (set_comm_baud_rate): New function.
1198 2002-09-13 Mark Salter <msalter@redhat.com>
1200 * src/decompress.c: Move error handling back into gzip_close to
1203 2002-09-12 Mark Salter <msalter@redhat.com>
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.
1209 * src/load.c (do_load): Fix printing of address range for raw loads.
1211 2002-09-11 Mark Salter <msalter@redhat.com>
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.
1216 2002-09-03 Yoshinori Sato <qzb04471@nifty.ne.jp>
1217 2002-09-03 Mark Salter <msalter@redhat.com>
1219 * include/fs/disk.h (__SWAB32): Fix incorrect masking.
1220 * src/fs/e2fs.c (e2fs_inode_block): Fix endianess of block numbers.
1222 2002-08-29 Mark Salter <msalter@redhat.com>
1224 * src/net/net_io.c (net_init): Initialize dns before showing addresses.
1226 2002-08-26 Thomas Koeller <thomas@koeller.dyndns.org>
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
1233 2002-08-22 Mark Salter <msalter@redhat.com>
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.
1239 2002-08-20 Thomas Koeller <thomas@koeller.dyndns.org>
1242 * include/redboot.h:
1245 * src/decompress.c: Use a common buffer for FIS directory
1246 manipulation and zlib workspace to conserve RAM.
1248 2002-08-20 Thomas Koeller <thomas@koeller.dyndns.org>
1251 * include/fis.h: Allow control of FIS descriptor padding.
1253 2002-08-16 Jani Monoses <jani@iv.ro>
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
1260 2002-08-09 Andrew Lunn <andrew.lunn@ascom.ch>
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
1269 2002-08-09 Jani Monoses <jani@iv.ro>
1271 * src/net/http_client.c: use standard HTTP GET request ('/'
1272 instead of ' ' in HTTP/1.0) to work with all servers
1274 2002-08-08 Jani Monoses <jani@iv.ro>
1276 * src/flash.c: fis delete should mark the slot as reusable
1277 not just delete the area of flash used by the file.
1279 2002-08-08 Gary Thomas <gthomas@ecoscentric.com>
1280 2002-08-08 Motoya Kurotsu <kurotsu@allied-telesis.co.jp>
1282 * src/load.c (do_load): Make sure 'io_tab' is set before using it.
1284 2002-08-07 Gary Thomas <gary@chez-thomas.org>
1286 * src/net/tftp_client.c:
1287 * include/net/tftp.h: Make block numbers unsigned to handle files
1290 2002-08-06 Gary Thomas <gary@chez-thomas.org>
1292 * src/crc.c: POSIX crc code is now separate.
1298 * src/caches.c: New (split out) file(s).
1301 * cdl/redboot.cdl: Split major CLI functionality to separate
1302 files, more easily controlled by CDL - inspired by Andrew.
1304 2002-08-06 Andrew Lunn <Andrew.Lunn@ascom.ch>
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.
1310 2002-08-05 Andrew Lunn <Andrew.Lunn@ascom.ch>
1312 * src/main.c: Made more of the commands conditionally compilable
1313 * cdl/redboot.cdl: CDL code to control the compilation.
1315 2002-07-30 Gary Thomas <gary@chez-thomas.org>
1317 * src/net/net_io.c: Handle broadcast/mask setup better (failed if
1318 not found in FLASH). Also print on network info line.
1320 2002-07-18 Gary Thomas <gary@chez-thomas.org>
1322 * src/net/tftp_client.c:
1323 * src/net/http_client.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)
1330 2002-07-16 Hendrik Ruijter <Hendrik.Ruijter@axis.com>
1331 2002-07-16 Mark Salter <msalter@redhat.com>
1333 * include/net/net.h: Add __tcp_abort prototype.
1335 * src/net/icmp.c: The default handler can be replaced by a
1336 user defined handler which handles all ICMP segments.
1339 (handle_icmp): Only ICMP Echo Reply segments must be counted and
1340 ICMP Echo Requests are handled in the user defined handler.
1343 (do_abort, __tcp_abort): Send an RST flag in order to abort a
1344 connection. May use a delay to send the flag.
1346 2002-07-15 Mark Salter <msalter@redhat.com>
1348 * src/net/net_io.c: Increase size of out_buf to 1024 bytes.
1350 2002-07-11 Gary Thomas <gary@chez-thomas.org>
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.
1357 2002-07-09 Gary Thomas <gary@chez-thomas.org>
1358 2002-07-09 Grant Edwards <grante@visi.com>
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.
1370 2002-07-01 Gary Thomas <gary@chez-thomas.org>
1372 * src/net/tftp_client.c:
1373 * src/net/http_client.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.
1383 2002-05-31 Jesper Skov <jskov@redhat.com>
1385 * doc/redboot_installing.sgml: Updated the remaining installation
1386 instructions (well, the top mode details anyway).
1388 2002-05-29 Jesper Skov <jskov@redhat.com>
1390 * doc/redboot_cmds.sgml: Changed format of fis commands.
1392 * doc/redboot_installing.sgml: Updated installation instructions
1393 for all targets up to PowerPC.
1395 2002-05-28 Gary Thomas <gthomas@redhat.com>
1397 * src/load.c (load_elf_image): Improve loading of ELF files with
1398 multiple physical segments.
1400 2002-05-27 Jesper Skov <jskov@redhat.com>
1402 * doc/redboot_rebuilding.sgml: Added some guimenu tags.
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.
1409 2002-05-24 Gary Thomas <gthomas@redhat.com>
1411 * src/load.c (load_elf_image): Improve loading where ELF image
1412 actually overlaps headers [old COFF style files].
1414 2002-05-24 Jesper Skov <jskov@redhat.com>
1416 * doc/redboot_installing.sgml: Updated another 3 boards'
1419 * doc/redboot.sgml: Changes due to comments from Jifl.
1420 * doc/redboot_rebuilding.sgml: Same.
1422 * doc/redboot.sgml: Fix wording.
1424 * doc/redboot_installing.sgml: Reordered the platform sections
1425 according to CPU architecture/variant and board manufacturer.
1427 2002-05-23 Jonathan Larmour <jlarmour@redhat.com>
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.
1433 2002-05-23 Gary Thomas <gthomas@redhat.com>
1435 * doc/redboot_cmds.sgml: Document new HTTP download mode.
1437 * src/net/tcp.c: Improve some interfaces. Add support for
1438 outgoing (__tcp_open) connections.
1440 * src/net/net_io.c (net_io_flush): Use improved TCP interfaces.
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.
1445 * include/net/net.h: Add support for TCP outgoing connections.
1447 * src/net/http_client.c:
1448 * include/net/http.h: New file(s) - HTTP client support.
1451 * cdl/redboot.cdl: Support HTTP download mode.
1453 2002-05-23 Jesper Skov <jskov@redhat.com>
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
1459 * doc/redboot_installing.sgml: Changed a couple of platform
1461 * doc/redboot_rebuilding.sgml: Make use of mode/config
1462 consistent. Removed mode section.
1464 2002-05-22 Jesper Skov <jskov@redhat.com>
1466 * doc/redboot_rebuilding.sgml: Added a note about redboot growing
1467 beyond its slot limits.
1468 Rewrote the RedBoot rebuilding documentation.
1470 * src/flash.c (fis_create): Clarify error message. Get rid of bool
1471 flag slot_found that only duplicated fis variable state.
1473 2002-05-21 Gary Thomas <gthomas@redhat.com>
1477 * src/load.c: Purge mention of Z-modem until it's implemented.
1479 2002-05-21 Jesper Skov <jskov@redhat.com>
1481 * src/flash.c (fis_create): Removed one of the three questions to
1483 * doc/redboot_rebuilding.sgml: Removed the query lines from the
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.
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
1496 * src/alias.c (lookup_alias): FREEMEMHI is just the high address
1497 masked to 1KB alignment.
1499 * doc/redboot_cmds.sgml: Added load disk example.
1500 Added section on RedBoot resources.
1502 2002-05-18 Gary Thomas <gthomas@redhat.com>
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.
1508 * src/flash.c (load_flash_config): Fix set_console_baud_rate prototype.
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).
1514 2002-05-17 Gary Thomas <gthomas@redhat.com>
1516 * src/main.c (do_help):
1518 * include/redboot.h: Support nested command structures, like "fis",
1521 2002-05-17 Jesper Skov <jskov@redhat.com>
1523 * doc/redboot_rebuilding.sgml: Rewrote update procedure to become
1524 truly generic. Some minor tweaks.
1526 * doc/redboot_cmds.sgml: Added id to cksum command.
1528 * src/shex.c (load_shex_image): Set entry address to be base
1530 * src/load.c (do_load): Same.
1532 * src/flash.c (fis_create): Infer correct exec and entry
1535 * src/load.c (load_elf_image): Save load_address/end.
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
1543 2002-05-16 Jesper Skov <jskov@redhat.com>
1545 * doc/redboot_cmds.sgml: Updated text on cksum to show the new
1548 * src/xyzModem.c (xyzModem_stream_read): Fix build breakage.
1550 * doc/redboot.sgml: Some minor tweaks.
1552 * src/alias.c (lookup_alias): Renamed freemem aliases.
1554 2002-05-15 Jesper Skov <jskov@redhat.com>
1556 * src/io.c (verify_action): Replaced 'are you sure' with
1558 * doc/redboot.sgml: Same.
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
1567 * src/main.c: Tweak cksum output.
1569 * src/flash.c (fis_create): language tweaks.
1571 * src/main.c: Always call expand_aliases - leave it to that
1572 function to look for flash aliases when appropriate.
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.
1578 * include/redboot.h: Added declarations for alias functions. Added
1579 getc_t and terminate_t types.
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.
1584 * cdl/redboot.cdl: Compile alias.c.
1586 2002-05-14 Jonathan Larmour <jlarmour@redhat.com>
1588 * src/version.c: Clarify comments.
1590 2002-05-14 Gary Thomas <gthomas@redhat.com>
1592 * include/redboot.h:
1594 * src/net/dns.c: Merge generic "ip" command with "dns" for
1595 more homogenous interface.
1597 2002-05-13 Gary Thomas <gthomas@redhat.com>
1599 * cdl/redboot.cdl: Disable CYGOPT_REDBOOT_FIS_REDBOOT_BACKUP
1600 by default, since its use is currently unclear.
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.
1606 2002-05-10 Gary Thomas <gthomas@redhat.com>
1608 * src/flash.c: Lots of restructuring in support of combined
1609 FIS and FCONFIG data.
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.
1616 2002-05-03 Gary Thomas <gthomas@redhat.com>
1618 * src/flash.c (load_flash_config): Adjust fconfig database
1619 address - necessary if FLASH blocks are very small.
1621 2002-05-02 Gary Thomas <gthomas@redhat.com>
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.
1627 * src/flash.c (fis_load):
1628 * src/decompress.c (gzip_inflate):
1629 * include/redboot.h: Make decompression code more generalized.
1631 2002-05-01 Gary Thomas <gthomas@redhat.com>
1633 * include/elf.h: New file.
1636 * src/load.c (load_elf_image): Support [simple] ELF images.
1638 2002-04-24 Yoshinori Sato <qzb04471@nifty.ne.jp>
1640 * src/xyzModem.c (xyzModem_stream_terminate): Increase time for
1641 cleanup from 100ms to 250ms.
1643 2002-04-23 Jonathan Larmour <jlarmour@redhat.com>
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.
1649 2002-04-22 Jonathan Larmour <jlarmour@redhat.com>
1651 * doc/redboot.sgml: Document iq80321 switch settings.
1653 * include/redboot.h: Add gettimeofday, rename, isatty and system
1656 * src/syscall.c (__do_syscall): Handle above new syscalls in a
1658 Take new extra signal argument.
1659 When required, handle file I/O syscalls, by passing into HAL.
1661 2002-04-21 Paul Fine <pfine@delcomsys.com>
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.
1670 * cdl/redboot.cdl (CYGSEM_REDBOOT_FLASH_CONFIG_READONLY_FALLBACK):
1671 Added this flash config option to control the readonly fallback in
1674 2002-04-16 Yoshinori Sato <qzb04471@nifty.ne.jp>
1675 2002-04-16 Jonathan Larmour <jlarmour@redhat.com>
1677 * src/xyzModem.c: Don't return ACKs too early.
1679 2002-04-16 Gary Thomas <gthomas@redhat.com>
1681 * src/net/bootp.c: Readjust timeouts - more, shorter. Better response.
1683 2002-04-12 Gary Thomas <gthomas@redhat.com>
1685 * src/net/bootp.c: Increase timeouts for slower networks.
1687 2002-04-11 Nick Garnett <nickg@redhat.com>
1689 * doc/redboot.sgml: Changed some misplaced <term>s into
1692 2002-04-08 Nick Garnett <nickg@redhat.com>
1694 * doc/redboot.sgml: Added full LED code desription, revised memory
1695 layout and miscellaneous other fixes for 80321.
1697 2002-04-03 Gary Thomas <gthomas@redhat.com>
1699 * src/main.c (do_mfill):
1700 (do_mcmp): New routines for fill/compare random buffers.
1702 * cdl/redboot.cdl: CDL to control mfill, mcmp, cksum commands.
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.
1708 2002-04-02 Jesper Skov <jskov@redhat.com>
1710 * redboot.sgml: excalibur: Updated memory map details, added
1711 information about REDBOOT startup mode.
1713 2002-03-07 Mark Salter <msalter@redhat.com>
1715 * src/net/tcp.c: Fix missing acks of resent segments pointed out
1718 2002-03-06 Nick Garnett <nickg@redhat.com>
1720 * doc/redboot.sgml: Added Integrator details.
1722 2002-03-06 Mark Salter <msalter@redhat.com>
1724 * src/net/tcp.c (__tcp_handler): Slight rework of Hendrik Ruijter's
1725 fix for FIN_WAIT_1 to TIME_WAIT transition.
1727 2002-03-06 Jesper Skov <jskov@redhat.com>
1729 * doc/redboot.sgml: Updated iq80310 details.
1730 Updated iq80321 details.
1731 Updated e7t details.
1733 2002-03-05 Jesper Skov <jskov@redhat.com>
1735 * doc/redboot.sgml: Updated ebsa285 details.
1736 Updated ipaq details.
1737 Updated edb7312 details.
1739 2002-03-05 Gary Thomas <gthomas@redhat.com>
1740 2002-02-25 Hendrik Ruijter <Hendrik.Ruijter@axis.com>
1742 * include/net/net.h: Add 'reuse' flag.
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.
1750 2002-03-05 Jesper Skov <jskov@redhat.com>
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.
1757 2002-03-01 Mark Salter <msalter@redhat.com>
1759 * redboot.sgml: Add diag docs and switch setting info for 80321.
1761 2002-02-28 Hugo Tyson <hmt@redhat.com>
1763 * src/flash.c (do_flash_config): Add "-d" to the help info.
1765 * doc/redboot.sgml: Docuement the "-d" option for dumb terminals
1766 with fconfig - so you're not forced to use line editing.
1768 2002-02-28 Jesper Skov <jskov@redhat.com>
1770 * src/syscall.c: Moved SYS_ value definitions to the header file.
1771 * include/redboot.h: Same.
1773 2002-02-27 David Howells <dhowells@redhat.com>
1775 * sgml/redboot.sgml: Removed extraneous </para>.
1777 2002-02-26 David Howells <dhowells@redhat.com>
1779 * doc/redboot.sgml: Updated the ASB2305 notes to be more complete
1780 with respect to having two flash chips.
1782 2002-02-19 Mark Salter <msalter@redhat.com>
1784 * src/net/net_io.c (net_io_init): Remove ISR installation. This
1785 was wrong way to fix problem.
1787 2002-02-15 Mark Salter <msalter@redhat.com>
1789 * src/net/net_io.c (net_io_init): Install default ISR for ethernet.
1791 2002-02-14 Patrick Doyle <wpd@delcomsys.com>
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
1797 2002-02-06 Mark Salter <msalter@redhat.com>
1799 * src/syscall.c (sys_write): Call __flush after last __putc.
1800 (__flush): New function to flush console output.
1802 2002-02-05 Jonathan Larmour <jlarmour@redhat.com>
1804 * src/net/net_io.c (net_init): Set use_bootp and net_debug defaults
1807 2002-01-31 Gary Thomas <gthomas@redhat.com>
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).
1812 2002-01-30 Hugo Tyson <hmt@redhat.com>
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
1824 * cdl/redboot.cdl (CYGDBG_REDBOOT_NET_DEBUG_CONSOLE_NUMBER):
1825 Option deleted, because this is now controlled by fconfig items.
1827 2002-01-25 Hugo Tyson <hmt@redhat.com>
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.
1834 2002-01-21 Hugo Tyson <hmt@redhat.com>
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.
1842 2002-01-18 Hugo Tyson <hmt@redhat.com>
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.
1848 2002-01-16 Hugo Tyson <hmt@redhat.com>
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.
1856 2002-01-15 David Woodhouse <dwmw2@cambridge.redhat.com>
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.
1862 2002-01-14 David Woodhouse <dwmw2@cambridge.redhat.com>
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.
1868 2002-01-14 Jesper Skov <jskov@redhat.com>
1870 * src/net/cksum.c: Added volatile keyword to union members to
1871 prevent compiler optimization messing things up.
1873 2002-01-10 Hugo Tyson <hmt@redhat.com>
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.
1879 2002-01-10 Hugo Tyson <hmt@redhat.com>
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
1891 (__do_syscall): Handle new case arms.
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.
1898 2002-01-10 Jesper Skov <jskov@redhat.com>
1900 * src/main.c (do_version): Added year 2002.
1902 2002-01-07 Gary Thomas <gthomas@redhat.com>
1904 * src/flash.c (lookup_alias): Remove warning.
1906 2002-01-03 Gary Thomas <gthomas@redhat.com>
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
1913 2001-12-16 Mark Salter <msalter@redhat.com>
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.
1920 2001-12-12 Hugo Tyson <hmt@redhat.com>
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.
1927 * src/net/net_io.c (start_console): Use it.
1929 2001-12-10 Nick Garnett <nickg@redhat.com>
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.
1935 2001-12-06 Jesper Skov <jskov@redhat.com>
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>.
1941 2001-12-05 Hugo Tyson <hmt@redhat.com>
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.
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
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.
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).
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.
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".
1979 2001-12-04 Richard Sandiford <rsandifo@redhat.com>
1981 * include/net/net.h (ETH_MAX_PKTLEN): Increase to match definition
1984 2001-12-04 Richard Sandiford <rsandifo@redhat.com>
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.
1990 2001-11-30 Jesper Skov <jskov@redhat.com>
1992 * src/net/net_io.c (net_init): Print ESA for device even if bootp
1995 2001-11-29 Jonathan Larmour <jlarmour@redhat.com>
1997 * src/net/dns.c: Rename index -> ptdindex to avoid conflict with BSD
2000 2001-11-29 Jesper Skov <jskov@redhat.com>
2002 * src/net/tftp_client.c (tftp_stream_open): Clear from_addr's
2003 sin_port so multiple loads are possible.
2005 2001-11-26 Jesper Skov <jskov@redhat.com>
2007 * misc/redboot_XXX.ecm: Added. Replaced the _RAM, _ROM, and
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.
2017 2001-11-15 Jesper Skov <jskov@redhat.com>
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
2023 * src/flash.c: Same.
2024 * src/main.c (do_go): removed unneeded cast.
2026 2001-11-14 Gary Thomas <gthomas@redhat.com>
2028 * src/io.c (_rb_gets_preloaded): More correct timeout handling.
2029 n.b. in practice, this changes nothing, but it is more "correct".
2031 2001-11-05 Gary Thomas <gthomas@redhat.com>
2033 * src/load.c: Minor typo in help string.
2035 * src/io.c (_rb_gets_preloaded): Clear buffer if ^C.
2037 2001-11-02 Jesper Skov <jskov@redhat.com>
2039 * src/flash.c (fis_init): Fix warning.
2041 2001-11-01 Jesper Skov <jskov@redhat.com>
2043 * src/flash.c (fis_init): tweaks to the SIB protection code.
2045 2001-11-01 Gary Thomas <gthomas@redhat.com>
2047 * src/flash.c (fis_init): Need to init block fully, otherwise old
2048 images can persist after init.
2050 2001-10-31 Jesper Skov <jskov@redhat.com>
2052 * include/sib.h: Contains information about ARM Boot Monitor flash
2055 * cdl/redboot.cdl: Added CYGOPT_REDBOOT_FIS_DIRECTORY_ARM_SIB_ID
2058 * src/flash.c (fis_init): Added code to add ARM Boot Monitor
2059 footer on FIS block.
2061 2001-10-30 Jonathan Larmour <jlarmour@redhat.com>
2063 * src/flash.c (fis_delete): Prototype arm_fis_delete in correct place.
2064 (fis_list): Fix compilation problem - this isn't C++!
2066 2001-10-30 Philippe Robin <Philippe.Robin@arm.com>
2067 2001-10-30 Jonathan Larmour <jlarmour@redhat.com>
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.
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.
2076 2001-10-29 Gary Thomas <gthomas@redhat.com>
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.
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.
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
2092 * src/flash.c (get_config): Using new function _rb_gets_preloaded(),
2093 which supports edit-in-place for data items.
2095 2001-10-28 Gary Thomas <gthomas@redhat.com>
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
2104 2001-10-26 Gary Thomas <gthomas@redhat.com>
2106 * src/io.c (_rb_gets): Fix ^A editing - was timing out, thus erasing
2109 2001-10-25 Gary Thomas <gthomas@redhat.com>
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.
2116 2001-10-22 Jonathan Larmour <jlarmour@redhat.com>
2118 * include/redboot.h: Declare net_debug here.
2120 2001-10-18 Jonathan Larmour <jlarmour@redhat.com>
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.
2125 2001-10-18 David Howells <dhowells@redhat.com>
2127 * src/syscall.c: Added support for the times() syscall and marked
2128 the utime() syscall as being implemented incorrectly.
2130 2001-10-18 Gary Thomas <gthomas@redhat.com>
2132 * src/io.c (_rb_gets): Fix parsing of \" in strings.
2134 2001-10-16 Jesper Skov <jskov@zoftcorp.adsl.dk>
2136 * cdl/redboot.cdl: Require ISOINFA.
2138 2001-10-16 Jesper Skov <jskov@redhat.com>
2140 * src/net/dns.c (send_recv): Clear from_addr before passing it to
2141 __udp_recvfrom. Fixed return value.
2143 2001-10-16 Gary Thomas <gthomas@redhat.com>
2145 * src/flash.c (_do_flash_init):
2146 Add wrapper function for do_flash_init() to avoid compiler warning.
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.
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.
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.
2165 2001-10-15 David Howells <dhowells@redhat.com>
2167 * src/xyzModem.c: put semicolon between goto-label and close curly.
2169 2001-10-15 Gary Thomas <gthomas@redhat.com>
2171 * src/flash.c (_expand_aliases): Change around some ambiguous code.
2175 * include/redboot.h:
2176 * cdl/redboot.cdl: Provide RedBoot specific memory allocators
2177 for ZLIB. Allows much finer control over memory map.
2179 * src/main.c (do_dump): Add option "-s" to dump data as S-records.
2181 2001-10-11 Gary Thomas <gthomas@redhat.com>
2183 * src/net/enet.c (__enet_poll): Suppress warning messages.
2185 2001-10-10 Jonathan Larmour <jlarmour@redhat.com>
2187 * src/flash.c (do_flash_init): Only set __flash_init when init is
2190 2001-10-04 Jesper Skov <jskov@redhat.com>
2192 * src/fs/disk.c: Fix ISO9660 build error.
2194 * src/main.c: Added x as an alias for the dump command.
2196 * src/net/dns.c: Fixed some messages (DNS -> DNS server).
2198 2001-10-02 Gary Thomas <gthomas@redhat.com>
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.
2205 2001-10-01 Gary Thomas <gthomas@redhat.com>
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.
2210 2001-09-28 Jonathan Larmour <jlarmour@redhat.com>
2212 * src/flash.c (fis_create): if not copying, still update directory.
2214 2001-09-28 Gary Thomas <gthomas@redhat.com>
2216 * src/flash.c (_expand_aliases): Properly null terminate expanded
2217 string - failed if alias was at end of line.
2219 2001-09-27 Jesper Skov <jskov@redhat.com>
2221 * src/net/dns.c: Include tracing header.
2223 2001-09-26 Jesper Skov <jskov@redhat.com>
2225 * src/net/dns.c: Removed errno hacks.
2226 Reduce size of string buffers. Make sure they suffice (or fail).
2228 * include/redboot.h: Added DNS h_errno definitions.
2230 * include/redboot.h: Fix for building on targets wo network.
2232 * src/load.c (do_load): Make sure host can be reached - and print
2233 appropriate error message if not.
2235 * src/net/net_io.c (net_init): Call DNS init when appropriate.
2237 * src/net/inet_addr.c (inet_aton): Made s argument const.
2239 * src/net/dns.c: Added UDP driven DNS support.
2241 * src/net/bootp.c: Fixed warnings.
2243 * src/flash.c: Replaced inet_aton with _gethostbyname.
2245 * src/net/ping.c: Same.
2247 * include/net/net.h: Fix warning.
2249 * include/redboot.h: Added DNS stuff, including some string
2252 * cdl/redboot.cdl: Added DNS support options.
2254 2001-09-14 Jonathan Larmour <jlarmour@redhat.com>
2256 * src/version.c: Simplify _CERTIFICATE handling.
2258 2001-09-13 Fabrice Gautier <Fabrice_Gautier@sdesigns.com>
2260 * cdl/redboot.cdl: Added configuration options to deactivate BOOTP and
2262 * src/net/net_io.c (net_init): Use them.
2264 2001-09-13 Gary Thomas <gthomas@redhat.com>
2266 * src/flash.c: Cleanups - removing some redundant code.
2268 2001-09-12 Jonathan Larmour <jlarmour@redhat.com>
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.
2274 2001-09-12 Gary Thomas <gthomas@redhat.com>
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.
2282 * include/fis.h: Define flash addresses using CYG_ADDRESS which
2283 is more portable than (unsigned long).
2285 2001-09-11 Jonathan Larmour <jlarmour@redhat.com>
2287 * cdl/redboot.cdl (CYGPKG_REDBOOT_FLASH): Be conditional on an
2288 actual flash device, not just the generic flash layer.
2290 2001-09-11 Gary Thomas <gthomas@redhat.com>
2292 * src/version.c (_CERTIFICATE): Add information about product
2293 certification (either Red Hat certified or not).
2295 * src/flash.c (fis_delete): Deny user deleting "reserved" images.
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.
2304 2001-09-06 Jonathan Larmour <jlarmour@redhat.com>
2306 * include/redboot.h: Include string function prototype header.
2308 2001-09-06 Jesper Skov <jskov@redhat.com>
2310 * src/fs/ide.c (ide_read_sectors): Use diag_(s)printf.
2311 * src/fs/disk.c (do_disks): Same.
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.
2320 2001-08-27 Mark Salter <msalter@redhat.com>
2322 * src/syscall.c (HZ): Should be 60 for ARM, also.
2324 2001-08-24 Tim Smith <tsmith@redhat.com>
2327 Provide xyzModem_stream_terminate() function to abort/clean up
2328 XYZmodem download on normal termination or after errors.
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.
2335 2001-08-24 Mark Salter <msalter@redhat.com>
2337 * src/net/net_io.c: Don't close connections if there is
2338 data left to read or write.
2340 * src/syscall.c: Add support for utimes syscall.
2342 2001-08-22 Gary Thomas <gthomas@redhat.com>
2352 * src/net/inet_addr.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.
2373 * cdl/redboot.cdl: Lots of changes based on moving all printf()
2374 functionality into "infra" and only using it as diag_XXX().
2376 2001-08-17 Gary Thomas <gthomas@redhat.com>
2378 * src/version.c: Augment version information with startup mode.
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.
2384 2001-08-16 Jesper Skov <jskov@redhat.com>
2386 * cdl/redboot.cdl: Also behave as ROM monitor in ROMRAM
2389 * src/load.c (do_load): Fix handling of conditional options.
2391 * src/flash.c (fis_load): Fix handling of conditional options.
2392 (fis_delete): Fix behavior on failure.
2394 * src/flash.c (fis_write): Fix output.
2395 (fis_create): Only update directory when programming succeeded.
2397 2001-08-17 Jonathan Larmour <jlarmour@redhat.com>
2399 * cdl/redboot.cdl (CYGSEM_REDBOOT_VARIABLE_BAUD_RATE): Default
2400 on, but only if platform supports it.
2402 2001-08-15 Mark Salter <msalter@redhat.com>
2404 * src/io.c: Add support for "{...}" notation in boot scripts.
2406 2001-08-14 Jonathan Larmour <jlarmour@redhat.com>
2408 * src/io.c (gets): Allow $'s and +'s to be escaped.
2410 2001-08-10 Jesper Skov <jskov@redhat.com>
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.
2418 2001-08-08 Jonathan Larmour <jlarmour@redhat.com>
2420 * src/io.c (gets): Match $ as indicating GDB anywhere in a line.
2422 2001-08-07 Julian Smart <julians@redhat.com>
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.
2428 2001-08-06 Jesper Skov <jskov@redhat.com>
2430 * src/fs/disk.c: Simple fix for DISK_IDE_CDROM partition type.
2432 * cdl/redboot.cdl: Added (unused) CYGSEM_REDBOOT_DISK_ISO9660 option.
2434 2001-08-03 David Howells <dhowells@redhat.com>
2436 * src/net/net_io.c: Show the MAC address of the ethernet device
2437 amongst the boot banners.
2439 2001-08-01 Mark Salter <msalter@redhat.com>
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.
2445 2001-07-31 Mark Salter <msalter@redhat.com>
2447 * src/fs/disk.c (find_dos_partitions): Fix extended partitions.
2448 * src/fs/ide.c (ide_init): Rework the test for device presence.
2450 2001-07-27 Gary Thomas <gthomas@redhat.com>
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.
2456 * src/load.c: Fix build problem if no IDE support.
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'.
2462 2001-07-27 David Howells <dhowells@redhat.com>
2464 * src/xyzModem.c: Fixed an uninitialised variable warning.
2466 2001-07-27 Mark Salter <msalter@redhat.com>
2468 * cdl/redboot.cdl (CYGNUM_REDBOOT_MAX_PARTITIONS): New option.
2469 Rename CYGBLD_REDBOOT_MAX_DISKS to CYGNUM_REDBOOT_MAX_DISKS.
2471 * include/fs/disk.h: Exported functions declared "externC".
2472 Replace MAX_PARTITIONS with CYGNUM_REDBOOT_MAX_PARTITIONS.
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.
2478 * src/fs/e2fs.c: Add support for symbolic links.
2479 * include/fs/e2fs.h: Add dir filetype support.
2481 2001-07-24 Mark Salter <msalter@redhat.com>
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.
2489 2001-07-23 Jonathan Larmour <jlarmour@redhat.com>
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.
2495 2001-07-23 David Howells <dhowells@redhat.com>
2497 * src/flash.c: Force block-alignment for flash addresses in write
2498 and erase functions.
2500 2001-07-20 Jonathan Larmour <jlarmour@redhat.com>
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.
2506 2001-07-19 Gary Thomas <gthomas@redhat.com>
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.
2512 * src/io.c (mon_set_read_char_timeout): Fix dangling else bug.
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).
2519 * src/version.c: Display complete version information which
2520 reflects such information as the source release, etc.
2522 * cdl/redboot.cdl: New option CYGDAT_REDBOOT_CUSTOM_VERSION used to
2523 allow site-specific version information. Define this via the
2525 cdl_option CYGDAT_REDBOOT_CUSTOM_VERSION {
2526 user_value 1 "Special test version"
2529 2001-07-18 Gary Thomas <gthomas@redhat.com>
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
2536 2001-07-16 Gary Thomas <gthomas@redhat.com>
2538 * src/main.c (do_version): Use external function _flash_info() to
2539 display information about installed FLASH.
2541 * src/load.c (load_srec_image): Remove extra '\n' on out of range msg.
2543 * src/flash.c (_flash_info): New function - displays information
2544 about FLASH found in system. Used by 'version' command.
2546 2001-07-12 Gary Thomas <gthomas@redhat.com>
2547 2001-07-12 Fabrice Gautier <gautier@email.enst.fr>
2549 * cdl/redboot.cdl: Improve some descriptions of options.
2551 2001-07-02 Jesper Skov <jskov@redhat.com>
2553 * src/io.c (do_channel): Fox build for !CYGPKG_REDBOOT_ANY_CONSOLE
2555 2001-06-28 Jonathan Larmour <jlarmour@redhat.com>
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.
2561 2001-06-28 Jesper Skov <jskov@redhat.com>
2563 * src/load.c (do_load): Don't allow verbose to be used with serial
2566 * src/main.c (do_reset): Reset via VV function.
2568 2001-06-27 Hugo Tyson <hmt@redhat.com>
2570 * src/io.c: Provide proto for do_channel() to reduce warning.
2572 2001-06-27 Jonathan Larmour <jlarmour@redhat.com>
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.
2579 * include/redboot.h: Fix another VARIBLE_BAUD_RATE typo. Fun this.
2581 2001-06-26 Jonathan Larmour <jlarmour@redhat.com>
2583 * src/io.c (do_channel): New function to display/switch console
2586 * src/main.c: Move define of CYGNUM_HAL_VIRTUAL_VECTOR_NUM_CHANNELS to
2587 * include/redboot.h: ...here
2589 2001-06-26 Gary Thomas <gthomas@redhat.com>
2591 * src/flash.c (load_flash_config): Fix another VARIBLE_BAUD_RATE typo.
2593 * src/xyzModem.c (xyzModem_get_hdr): ACK on EOT was missing.
2595 2001-06-22 Gary Thomas <gthomas@redhat.com>
2597 * src/load.c (do_load): Move [static] data used by decompression
2598 code into this routine where it is used - no longer static.
2600 2001-06-14 Gary Thomas <gthomas@redhat.com>
2602 * src/xyzModem.c (xyzModem_get_hdr): More resilient header scan,
2603 improves error handling capability by avoiding "early" aborts.
2605 * src/load.c (do_load): Only check TFTP arguments if networking.
2607 * src/flash.c: Reorg to support new config option (below).
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.
2613 * src/main.c (do_dump): 'dump' with no arguments will now "continue"
2614 dumping from where the last command left off.
2616 2001-06-13 Gary Thomas <gthomas@redhat.com>
2618 * src/main.c (cyg_start):
2620 * cdl/redboot.cdl: Support RedBoot without GDB stubs. Later
2621 versions may also support alternate debug environments.
2623 2001-06-12 Gary Thomas <gthomas@redhat.com>
2625 * src/net/net_io.c (net_io_putc): Flush data on '\n'.
2627 2001-06-11 Jonathan Larmour <jlarmour@redhat.com>
2629 * doc/redboot.ebsa285: Remove, obsolete.
2630 * doc/redboot.edb7xxx: Ditto.
2631 * doc/users_guide: Ditto.
2633 2001-06-11 Gary Thomas <gthomas@redhat.com>
2635 * src/flash.c (fis_create): Remove default for "-s" - too dangerous!
2637 * include/net/tftp.h: Make sure packet size is valid (was one byte
2640 * src/net/tftp_client.c (tftp_stream_open): Fix problem when using
2641 Windows (3Com at least) servers.
2643 * src/flash.c: Remove dependency on printf() via user function
2644 in flash drivers, provided at 'init' time.
2646 2001-06-08 Gary Thomas <gthomas@redhat.com>
2648 * src/parse.c (parse): Check for 'argv[]' overruns.
2650 * src/main.c (ZLIB_COMPRESSION_OVERHEAD): Update - based on observations.
2652 * src/net/tftp_client.c:
2655 * include/redboot.h (MAX_ARGV): Minor memory reduction/tightening.
2657 2001-06-08 Jonathan Larmour <jlarmour@redhat.com>
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.
2662 2001-06-08 Nick Garnett <nickg@cygnus.co.uk>
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.
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
2675 2001-06-07 Jonathan Larmour <jlarmour@redhat.com>
2677 * src/load.c (do_load): Ask confirmation of RAM write addr, rather
2678 than automatically denying.
2679 (load_srec_image): Ditto.
2681 * src/io.c (verify_action): Don't ask if we're executing a script.
2683 2001-06-07 Gary Thomas <gthomas@redhat.com>
2685 * src/flash.c (expand_aliases): Allow aliases/macros to be nested.
2687 * src/main.c (set_console_baud_rate):
2688 * src/flash.c (do_alias): Force 'fconfig' updates.
2690 * include/flash_config.h (flash_add_config): New signature.
2691 Parameter 'update' controls whether the Flash is updated.
2693 2001-06-07 <gthomas@redhat.com>
2695 * src/load.c (do_load): Tidy some messages.
2697 * src/flash.c (fis_load): Print image limits (memory range) when
2698 loading a compressed image.
2700 2001-06-06 Mark Salter <msalter@redhat.com>
2702 * include/net/tftp_support.h (TFTP_TIMEOUT_PERIOD): Increase to 5.
2704 * src/net/udp.c (__udp_recvfrom): Initialize server source port
2706 (__udp_recvfrom_handler): Validate server source port before
2709 2001-05-29 Jesper Skov <jskov@redhat.com>
2711 * src/flash.c (fis_load): Fix compiler warning.
2713 2001-05-25 Gary Thomas <gthomas@redhat.com>
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.
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.
2723 2001-05-24 Gary Thomas <gthomas@redhat.com>
2725 * src/flash.c (get_config):
2726 (do_alias): Be more careful about length of strings accepted.
2728 * cdl/redboot.cdl: Make 'fconfig' data space and strings larger.
2730 * src/main.c (cyg_start): Expand aliases on input commands.
2732 * src/flash.c: Add support for aliases (macros). Also update
2733 support for 'fconfig' strings.
2735 * include/flash_config.h (MAX_STRING_LENGTH): Infer from CDL.
2737 * cdl/redboot.cdl: Add options for [FLASH based] aliases.
2738 Also, 'fconfig' now supports strings.
2740 2001-05-23 Gary Thomas <gthomas@redhat.com>
2742 * src/flash.c: Fixed typo as below.
2744 2001-05-22 Jonathan Larmour <jlarmour@redhat.com>
2746 * cdl/redboot.cdl: Fix typo: CYGSEM_REDBOOT_VARIBLE_BAUD_RATE ->
2747 CYGSEM_REDBOOT_VARIABLE_BAUD_RATE
2748 * src/main.c: Ditto.
2750 2001-05-17 Jonathan Larmour <jlarmour@redhat.com>
2752 * src/net/tftp_client.c: include redboot.h for have_net.
2754 2001-05-17 Dennis Ehlin <Dennis.Ehlin@ecs.ericsson.se>
2755 (with minor mods by jlarmour@redhat.com)
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.
2767 2001-05-17 Gary Thomas <gthomas@redhat.com>
2769 * src/crc.c (crc32): Remove unused variable/warning.
2771 * src/main.c (set_console_baud_rate, do_baud_rate):
2773 * include/redboot.h:
2774 * cdl/redboot.cdl: Add support for variable, settable, console
2777 * src/net/tftp_client.c (tftp_stream_open): Don't try if no network.
2779 2001-05-10 Gary Thomas <gthomas@redhat.com>
2781 * cdl/redboot.cdl: Can't build RedBoot without virtual vectors.
2783 2001-05-09 Mark Salter <msalter@redhat.com>
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).
2788 2001-05-07 Gary Thomas <gthomas@redhat.com>
2790 * src/net/net_io.c (net_io_isr): Interrupt acknowledgement
2791 should rightly be done by the driver 'delivery' routine, not here.
2793 2001-04-26 Gary Thomas <gthomas@redhat.com>
2795 * src/main.c (do_caches): Display cache state if no arguments.
2797 2001-04-13 Gary Thomas <gthomas@redhat.com>
2799 * src/net/ping.c (do_ping): Tidy message.
2801 2001-04-12 Robin Farine <acnrf@dial.eunet.ch>
2802 2001-04-12 Jonathan Larmour <jlarmour@redhat.com>
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
2809 2001-04-12 Mark Salter <msalter@redhat.com>
2810 2001-04-12 Robin Farine <acnrf@dial.eunet.ch>
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
2817 2001-04-09 Mark Salter <msalter@redhat.com>
2819 * src/printf.c (_vprintf): Fixed some portability problems where
2820 sizeof(int) != sizeof(long).
2822 2001-04-09 Hugo Tyson <hmt@redhat.com>
2824 * src/main.c (do_cksum): Reduce warning absent posix_crc32().
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.
2831 2001-04-03 Gary Thomas <gthomas@redhat.com>
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.
2837 2001-04-02 Hugo Tyson <hmt@redhat.com>
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.
2848 2001-03-29 Mark Salter <msalter@redhat.com>
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.
2855 2001-03-28 Mark Salter <msalter@redhat.com>
2857 * src/net/tcp.c (__tcp_handler): Don't send ACK from TIME_WAIT state
2858 unless the FIN comes in again.
2860 2000-03-27 Grant Edwards <grante@visi.com>
2862 * src/net/tcp.c (__tcp_handler): Fixed sequence number bug seen when
2863 doing an active close.
2865 2001-03-23 Gary Thomas <gthomas@redhat.com>
2867 * src/printf.c (_vprintf): Support %u (unsigned) descriptor.
2869 * src/main.c (do_cksum): New command to compute and print a POSIX
2870 checksum on a range of memory.
2872 * src/crc.c (posix_crc32): New routine - matches POSIX algorithm.
2874 2001-03-21 Gary Thomas <gthomas@redhat.com>
2876 * cdl/redboot.cdl: Back off previous change in number of packets.
2877 Also change minimum - below this, network debugging fails.
2879 * src/flash.c (fis_write): New function - support raw writes to FLASH.
2881 * src/net/enet.c (__enet_poll): Try to continue if out of packets.
2886 * include/redboot.h: Keep track of available "user" RAM.
2888 * cdl/redboot.cdl: Reduce default number of [network] packets.
2890 2001-03-20 Gary Thomas <gthomas@redhat.com>
2892 * src/net/net_io.c (net_io_test): Change for new calling convention.
2894 * src/main.c (cyg_start): Idle processing now in I/O routines.
2896 * src/io.c (gets): Move idle processing into this function.
2898 * include/net/net.h (net_io_test): Needs idle parameter.
2900 * include/redboot.h: Change 'idle' functions to take state (idle/not).
2902 2001-03-19 Jesper Skov <jskov@redhat.com>
2904 * cdl/redboot.cdl: Put version.o file in the public lib directory
2905 so other packages can get at it and link redboot.
2907 2001-03-16 Gary Thomas <gthomas@redhat.com>
2909 * src/flash.c (fis_create): Preserve memory [load/exec] address
2910 when making assumptions [rewriting existing image].
2912 2001-03-16 Mark Salter <msalter@redhat.com>
2914 * src/main.c (cyg_start): Restore console channel after returning
2917 2001-03-15 Gary Thomas <gthomas@redhat.com>
2918 2001-03-15 Grant Edwards <grante@visi.com>
2920 * src/net/bootp.c (bootp_handler): Guard against buffer overflow.
2922 2001-03-15 Hugo Tyson <hmt@redhat.com>
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.
2929 2001-03-15 Jesper Skov <jskov@redhat.com>
2931 * src/main.c: Make use of script variable conditional on flash.
2933 * include/redboot.h: Changed type of workspace_end to silence
2936 * src/net/ping.c (do_ping): Fix warning.
2937 * src/net/pktbuf.c (__pktbuf_dump): Fix warnings.
2939 2001-03-14 Gary Thomas <gthomas@redhat.com>
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.
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.
2949 2001-03-13 Gary Thomas <gthomas@redhat.com>
2951 * src/main.c: Define 'workspace' based on MLT files, rather than
2952 simply using end of RAM area.
2954 * src/flash.c: Use 'workspace' for scratch area.
2956 * include/redboot.h: Define new variables 'workspace_XXX' to specify
2957 ares used by RedBoot for scratch, etc.
2959 2001-03-12 Jesper Skov <jskov@redhat.com>
2961 * src/decompress.c: Removed Z_BAD_CRC hack. zlib does CRC checking
2964 2001-03-09 Jesper Skov <jskov@redhat.com>
2966 * src/misc_funs.c: Added strncpy.
2967 * include/redboot.h: And declaration.
2969 2001-03-08 Jesper Skov <jskov@redhat.com>
2971 * src/load.c (do_load): Added decompression support.
2972 * src/flash.c (fis_load): Same.
2974 * src/decompress.c: Added. Interfaces the zlib API.
2976 * include/redboot.h: Added some definitions used by decompression
2979 * cdl/redboot.cdl: Added option to control size of zlib bounce
2982 2001-03-05 Jesper Skov <jskov@redhat.com>
2984 * src/main.c (cyg_start): Make sure communication channels are
2987 2001-03-03 Gary Thomas <gthomas@redhat.com>
2989 * src/main.c (do_idle): New function - all 'idle' handling is here.
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.
3000 2001-03-01 Gary Thomas <gthomas@redhat.com>
3002 * src/version.c: Add 'bootstrap' to banner so the world can see
3003 more of what RedBoot's all about.
3005 2001-02-28 Gary Thomas <gthomas@redhat.com>
3007 * include/redboot.h: Fix prioritization of 'init' table entries.
3009 2001-02-26 Gary Thomas <gthomas@redhat.com>
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.
3015 * src/flash.c (fis_load): Only load actual data [length] when loading
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.
3022 2001-02-22 Hugo Tyson <hmt@redhat.com>
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.
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.
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
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...
3064 2001-02-22 Jesper Skov <jskov@redhat.com>
3066 * src/flash.c: Added default case to switch statement.
3068 2001-02-20 Gary Thomas <gthomas@redhat.com>
3070 * src/load.c: Remove unnecessary \r from usage message.
3072 * src/printf.c (_vprintf): Ensure CR/LF sequence, not LFCR.
3075 * src/flash.c: Better usage messages [no naked linefeeds].
3077 * src/net/ping.c: Tidy up usage message. Check for reasonable
3080 * src/load.c: Tidy up usage message.
3082 2001-02-16 Nick Garnett <nickg@cygnus.co.uk>
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
3088 2001-02-14 Hugo Tyson <hmt@redhat.com>
3090 * src/load.c (do_load): Wrap the help message at < 80 cols and fix
3093 2001-02-13 Hugo Tyson <hmt@redhat.com>
3095 * src/flash.c: Fix token/string pasting thinko: ## operators are
3096 not needed and do confuse some compilers.
3098 2001-02-12 Jesper Skov <jskov@redhat.com>
3100 * src/main.c: Use CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL instead
3101 of CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL.
3103 2001-02-11 Gary Thomas <gthomas@redhat.com>
3105 * src/net/ping.c (do_ping): Accomodate new MS_TICKS scheme.
3107 2001-02-09 Grant Edwards <grante@visi.com>
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.
3113 * src/ticks.c (get_ms_ticks): New function imlementing rework of
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
3120 * src/net/udp.c (__udp_recvfrom): MS_TICKS -> MS_TICKS_DELAY
3121 * src/net/bootp.c (__bootp_find_local_ip): Likewise
3123 2001-02-09 Jonathan Larmour <jlarmour@redhat.com>
3124 2001-02-09 Grant Edwards <grante@visi.com>
3126 * src/net/net_io.c (net_io_getc_nonblock): Silence compiler warning
3128 2001-01-31 Gary Thomas <gthomas@redhat.com>
3130 * include/redboot.h:
3132 * src/flash.c: Use new CRC functions.
3134 * src/crc.c: New file - supports 16 and 32 bit CRC functions.
3136 2001-01-31 Grant Edwards <grante@visi.com>
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.
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).
3146 2001-01-31 Gary Thomas <gthomas@redhat.com>
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).
3153 2001-01-31 Nick Garnett <nickg@cygnus.co.uk>
3155 * src/syscall.c (__do_syscall):
3156 Added SYS_meminfo syscall.
3157 This is used by the MIPS3264 GNUPro runtime.
3159 * src/net/net_io.c (net_io_getc_nonblock):
3160 Telnet escape processing temporarily disabled because it does not
3163 2001-01-31 Grant Edwards <grante@visi.com>
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.
3170 2001-01-30 Gary Thomas <gthomas@redhat.com>
3172 * src/main.c (do_reset): HAL macro name changed.
3174 * src/net/ping.c (do_ping): Remove warning.
3176 * src/main.c (do_help): Only display help for selected topic
3179 2001-01-24 Jonathan Larmour <jlarmour@redhat.com>
3181 * src/main.c (cyg_start): Rework last change to use more generic
3182 HAL_MEM_REAL_REGION_TOP macro.
3184 2001-01-24 Hugo Tyson <hmt@redhat.com>
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.
3190 2001-01-22 Gary Thomas <gthomas@redhat.com>
3192 * src/net/inet_addr.c (inet_aton): Fix byte order on big endian
3195 * src/net/icmp.c (__icmp_install_listener):
3196 (__icmp_remove_listener): New functions.
3197 (__icmp_handler): Call listener for unhandled packets.
3199 * include/net/net.h: Add handler for ICMP [incoming] data.
3202 * src/net/ping.c: New CLI command - ping a host.
3204 2001-01-18 Gary Thomas <gthomas@redhat.com>
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.
3211 2001-01-17 Hugo Tyson <hmt@redhat.com>
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.
3216 2001-01-16 Gary Thomas <gthomas@redhat.com>
3218 * src/xyzModem.c: Improved debug support - now allows debug
3219 trace to be kept in memory and dumped at completion.
3221 * src/io.c (vdump_buf_with_offset): New function which allows
3222 dumping via any generic "print" function.
3224 * include/redboot.h: Export new print/dump functions.
3226 2001-01-08 Gary Thomas <gthomas@redhat.com>
3228 * src/net/arp.c: Add special case handling for ARP(self).
3230 2001-01-03 Gary Thomas <gthomas@redhat.com>
3232 * src/main.c (do_version): Update copyright for 2001.
3234 * src/io.c (gets): Use timeout provided [was hardcoded to 50ms!]
3236 2000-12-21 Mark Salter <msalter@redhat.com>
3238 * src/flash.c (fis_init): Use CYGBLD_REDBOOT_FLASH_BOOT_OFFSET to
3239 decide where to create default images.
3241 * cdl/redboot.cdl (CYGBLD_REDBOOT_FLASH_BOOT_OFFSET): Use this
3242 to define offset from start of FLASH to start of boot image.
3244 2000-12-15 Gary Thomas <gthomas@redhat.com>
3246 * src/version.c: Define GDB stubs version here as well. Also
3247 add warnings and informationabout how all of this works.
3249 2000-12-13 Gary Thomas <gthomas@redhat.com>
3251 * src/version.c: New file.
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
3259 2000-12-12 Gary Thomas <gthomas@redhat.com>
3261 * src/flash.c (get_config): Increase size of input buffer used
3262 during 'fconfig' command.
3264 2000-12-11 Gary Thomas <gthomas@redhat.com>
3266 * src/main.c: Change in HAL layering - need to include proper
3267 file to get 'reset' definition.
3269 2000-12-08 Jonathan Larmour <jlarmour@redhat.com>
3271 * cdl/redboot.cdl: Tweak CYGPKG_REDBOOT_MAX_CMD_LINE description.
3273 2000-12-07 Gary Thomas <gthomas@redhat.com>
3275 * src/main.c (cyg_start): Make CLI command buffer static.
3276 (do_reset): New command - reset platform from CLI.
3278 * src/io.c (dump_buf_with_offset): Change signature for
3279 more generic export.
3281 * include/redboot.h: Export 'dump_buf_with_offset' function.
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.
3287 2000-12-07 Jesper Skov <jskov@redhat.com>
3289 * src/misc_funs.c (strlen): NULL ptr string has length 0.
3291 * src/load.c (load_srec_image): Refuse to load data to a location
3294 * src/flash.c (fis_create): Hack around another MIPS compiler bug.
3296 2000-12-06 Jesper Skov <jskov@redhat.com>
3298 * src/load.c: Suppress verbosity when using xyz modem download.
3300 * src/main.c: Fix warnings.
3301 * src/load.c: Fix warnings.
3303 * src/parse.c (parse_num): Hack around MIPS compiler bug.
3305 2000-12-01 Gary Thomas <gthomas@redhat.com>
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.
3312 * src/load.c (load_srec_image): Consume all data, not just to
3313 final record. This makes Ymodem happier. Also, call xyzModem_close().
3315 2000-11-30 Gary Thomas <gthomas@redhat.com>
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.
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.
3325 * src/main.c (cyg_start): Support network connection during
3326 boot/startup script. Use new codes from 'gets()'.
3328 * src/flash.c (fis_create): Cleanup to remove warnings.
3330 * include/net/net.h (BSPLOG): Update for new start/end_console().
3333 * include/redboot.h (_GETS_xxx): Define result codes from
3336 2000-11-28 Gary Thomas <gthomas@redhat.com>
3338 * src/parse.c (parse): Support escaped quote marks inside of
3339 quoted string. "ab\"c\"" is 'ab"c"'.
3341 * src/net/tftp_client.c (tftp_stream_open): Read first datum from
3342 file during open to ensure that errors are reported.
3344 2000-11-27 Drew Moseley <dmoseley@redhat.com>
3346 * src/main.c: Switch to an application stack before running a
3347 user-downloaded app.
3349 2000-11-20 Gary Thomas <gthomas@redhat.com>
3351 * src/flash.c: Use CYGBLD_REDBOOT_MIN_IMAGE_SIZE.
3353 * cdl/redboot.cdl(CYGBLD_REDBOOT_MIN_IMAGE_SIZE): Define this to
3354 be the minimum size allowed for FIS images.
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.
3359 2000-11-20 Mark Salter <msalter@redhat.com>
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.
3365 2000-11-19 Gary Thomas <gthomas@redhat.com>
3367 * src/flash.c (fis_create): Print more info when length check fails.
3369 * src/main.c: Split version display into separate command.
3371 2000-11-06 Mark Salter <msalter@redhat.com>
3373 * src/syscall.c: New file. Common handling for bsp syscalls.
3375 * cdl/redboot.cdl: Add CYGSEM_REDBOOT_BSP_SYSCALLS option to
3376 turn on BSP syscall support.
3378 2000-11-06 Jesper Skov <jskov@redhat.com>
3380 * src/net/net_io.c (net_io_flush): Clear interrupt flag before
3383 2000-10-30 Gary Thomas <gthomas@redhat.com>
3389 * include/net/net.h: Minor cleanups to remove warnings.
3391 * cdl/redboot.cdl: Support threads in all but RAM mode. Note:
3392 this should allow thread support in ROM and FLOPPY startup mode.
3394 2000-10-27 Gary Thomas <gthomas@redhat.com>
3396 * src/xyzModem.c (xyzModem_stream_open): Add extra delay during
3397 startup - to give the sender time to get started.
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.
3403 2000-10-26 Mark Salter <msalter@redhat.com>
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.
3409 2000-10-26 Gary Thomas <gthomas@redhat.com>
3411 * cdl/redboot.cdl: Improve CDL so CYGSEM_HAL_ROM_MONITOR can
3412 be correctly infered (when building ROM versions).
3415 * src/load.c: Add support for xyzModem serial download.
3418 * src/xyzModem.c: New file(s).
3420 2000-10-24 Gary Thomas <gthomas@redhat.com>
3423 * cdl/redboot.cdl: Add new option which supports keeping all
3424 important RedBoot data "locked" in FLASH.
3426 2000-10-23 Gary Thomas <gthomas@redhat.com>
3428 * src/flash.c (fis_lookup): New exported function.
3429 (fis_load): Add memory load option. Also checksum data after copy.
3431 * include/fis.h: Add 'data_length' member.
3432 Prototype for 'fis_lookup()'.
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.
3439 * src/main.c (cyg_start):
3440 * src/flash.c: Script timeout now has a configurable resolution.
3442 2000-10-21 Gary Thomas <gthomas@redhat.com>
3444 * src/net/eth_drv.c: Removed obsolete file - now provided by
3445 standard IO/ETH package.
3447 2000-10-20 Gary Thomas <gthomas@redhat.com>
3449 * src/net/pktbuf.c: Diagnostc - add buffer [list] dumper.
3451 * src/net/enet.c: Diagnostic - dump when run out of buffers.
3453 * src/flash.c: Make sure RedBoot flash image size meets
3454 certain minimums - currently at least 128K.
3456 2000-10-19 Gary Thomas <gthomas@redhat.com>
3458 * cdl/redboot.cdl: Add dependency on 'vectors.o'.
3460 * include/redboot.h:
3461 * src/misc_funs.c (strcpy, memcmp):
3462 Make function signature [prototype] conform to standards.
3463 (memmove, memset): Remove.
3465 2000-10-18 Gary Thomas <gthomas@redhat.com>
3467 * cdl/redboot.cdl: Improve dependency checking in make rules.
3469 2000-10-17 Gary Thomas <gthomas@redhat.com>
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).
3474 * include/fis.h: New file - make structure available for export.
3476 * src/parse.c: New file.
3478 * include/redboot.h:
3480 * cdl/redboot.cdl: Split command line parsing functions to separate
3483 2000-10-05 Gary Thomas <gthomas@redhat.com>
3485 * src/net/net_io.c (net_io_revert_console):
3486 (net_io_assume_console):
3487 * src/main.c (cyg_start):
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.
3493 2000-09-17 Gary Thomas <gthomas@redhat.com>
3495 * src/main.c: Display platform/cpu identification strings if available.
3497 * cdl/redboot.cdl: Improve CDL to include thread support if
3498 built in ROM mode. Also, better handling of network option.
3500 2000-09-15 Gary Thomas <gthomas@redhat.com>
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.
3506 2000-09-13 Gary Thomas <gthomas@redhat.com>
3508 * src/load.c: Better handling of bad data / checksum errors.
3510 * src/flash.c: Handle case of replacing an image, even if no flash
3513 * include/net/tftp_support.h: Modify timeouts, etc, for better response.
3515 2000-09-12 Gary Thomas <gthomas@redhat.com>
3517 * src/io.c (mon_read_char_with_timeout): Only "select" a console
3518 when real data (non-zero) arrives.
3520 2000-09-10 Gary Thomas <gthomas@redhat.com>
3523 * src/flash.c: Remove warnings if built without networking.
3525 2000-09-11 Jonathan Larmour <jlarmour@redhat.com>
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
3531 2000-09-07 Andrew Lunn <andrew.lunn@ascom.ch>
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
3537 2000-09-06 Gary Thomas <gthomas@redhat.com>
3539 * doc/users_guide: Add info about region locking/unlocking.
3541 2000-09-04 Jonathan Larmour <jlarmour@redhat.com>
3543 * include/flash_config.h (struct config_option): Apply
3545 * include/redboot.h: Ditto for struct cmd and void_fun_ptr
3547 2000-09-01 Hugo Tyson <hmt@cygnus.co.uk>
3549 * src/flash.c: CYGHWR_IO_FLASH_BLOCK_LOCKING is an interface, so
3550 it's always defined; look for > 0 instead.
3552 2000-08-28 Gary Thomas <gthomas@redhat.com>
3554 * src/flash.c: Support block locking if available.
3556 2000-08-25 Gary Thomas <gthomas@redhat.com>
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).
3561 2000-08-24 Gary Thomas <gthomas@redhat.com>
3563 * src/load.c: Fix some prints. Also use command line parse functions
3564 instead of ad hoc code.
3566 * src/flash.c: Better configuration control.
3568 2000-08-23 Gary Thomas <gthomas@redhat.com>
3570 * src/load.c (do_load): Use paramterized command line parser.
3572 * include/redboot.h:
3573 * src/main.c (scan_opts): Better support for simple flags.
3575 * src/flash.c: Add "-l" (list only) option to 'fconfig'.
3577 * src/net/net_io.c: Add handling of ^C via network connections.
3579 * include/flash_config.h:
3581 * include/redboot.h: Fully qualify table entries (for proper
3582 sorting and order control).
3584 * cdl/redboot.cdl: Update requirements to support ^C and thread
3587 2000-08-21 Gary Thomas <gthomas@redhat.com>
3590 * src/net/pktbuf.c (MAX_PKTBUF): Add CDL configury for number
3591 of network packet buffers.
3593 * src/net/net_io.c: Change config param names to enforce
3594 layout (config fields are sorted by name).
3596 * src/load.c: Adapt to changes in 'parse_num'.
3598 * src/main.c (parse_num): Now takes additional arguments which
3599 allow a delimiter set and returning the end of number string.
3601 * include/redboot.h: Augment 'parse_num' to handle strings
3602 with more than one number, delimiters, etc.
3605 * include/flash_config.h: Add support for ethernet hardware
3608 2000-08-20 Gary Thomas <gthomas@redhat.com>
3610 * include/flash_config.h: New file - configuration data layout.
3612 * src/flash.c: Restructure config data to be 100% table driven.
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.
3626 * src/net/inet_addr.c:
3631 * src/net/tftp_client.c:
3633 * src/net/udp.c: Include files moved.
3639 * src/net/tftp_support.h: Files moved.
3641 * cdl/redboot.cdl: Move .h files to include directory.
3643 2000-08-16 Gary Thomas <gthomas@redhat.com>
3645 * src/io.c (dump_buf_with_offset): Clean up warnings.
3647 * src/net/net_io.c: Cosmetic - clean up TCP debug code.
3649 * src/main.c (cmd_search): Search for ambiguous commands was
3650 wrong since layout change (only know the limits, don't rely
3653 2000-08-14 Gary Thomas <gthomas@redhat.com>
3655 * cdl/redboot.cdl: Support for plugin (table driven) modules.
3657 * src/flash.c: Lots of warning cleanups.
3659 * src/io.c: Fix some flash configury.
3661 * src/load.c: Make internal buffer unsigned so 'raw' mode
3662 works properly. Also, support as a plugin command.
3665 * src/redboot.h: Add support for "tableized" entries. In
3666 particular, commands and platform initializations can now
3667 be handled via anonymous tables.
3669 * src/net/net.h: Update for changes in network init setup.
3671 * src/net/net_io.c: Move network initialization here.
3673 2000-08-07 Gary Thomas <gthomas@redhat.com>
3677 * src/main.c: Cosmetic [warnings] cleanups.
3679 2000-08-03 Gary Thomas <gthomas@redhat.com>
3681 * cdl/redboot.cdl: Ethernet driver now comes from common
3684 * src/io.c (verify_action): Force normal I/O (no script)
3687 * src/main.c: Add script timeout to allow user to abort before
3688 script is run on boot.
3690 * src/printf.c: '%p' implies zero filled long format.
3693 * src/redboot.h: Add TCP socket and script timeouts.
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.
3699 2000-07-30 Gary Thomas <gthomas@redhat.com>
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!
3706 * src/io.c (gets): Treat 'delete' char like ^H.
3708 2000-07-30 Gary Thomas <gthomas@redhat.com>
3710 * cdl/redboot.cdl: Add option for FLASH based configuration data.
3712 * src/flash.c: Lots of changes to support FLASH based configuration
3713 data, including routines to read and maintain this data.
3716 * src/redboot.h: Many changes for FLASH configuration data support.
3717 Also split out table driven option/parameter parsing.
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.
3723 * src/load.c: Use new IP/INET address functions.
3725 * src/net/bootp.c: Remove force of net_debug and result print.
3727 * src/net/inet_addr.c: IP/INET address conversion routines.
3729 * src/net/net.h: Make 'net_debug' be boolean. Add IP/INET
3730 address conversion routine prototypes.
3732 2000-07-29 Gary Thomas <gthomas@redhat.com>
3734 * src/flash.c: Misc little cleanups.
3736 * src/load.c: Print address range of loaded image/file.
3738 2000-07-29 Gary Thomas <gthomas@redhat.com>
3740 * src/flash.c: Add 'load' command which loads an image into RAM.
3742 * src/load.c: Add '-raw' switch to allow loading a file without
3743 trying to interpret it as an executable image.
3746 * src/redboot.h: Make command parsing functions public.
3748 2000-07-29 Gary Thomas <gthomas@redhat.com>
3750 * src/net/bootp.c: Turn on network debug during address discovery.
3751 (Note: this will be optional/configurable in the future).
3753 * src/net/eth_drv.c: Use 'net_debug' for diagnostic dumps.
3755 * src/redboot.h: Prototypes for new functions.
3757 * src/printf.c (vprintf): New function.
3759 * src/io.c (verify_action): New function.
3761 * cdl/redboot.cdl: Make FLASH support optional.
3763 * src/flash.c: New file - implements simple FLASH Image System.
3765 * src/misc_funs.c (memset):
3766 (strcpy): New functions.
3768 * src/main.c: Split flash functions to separate file.
3770 2000-07-28 Gary Thomas <gthomas@redhat.com>
3772 * src/load.c: Add "-v" switch to turn on a little 'spinner' while
3773 downloading to provide some feedback to the user.
3775 * src/printf.c: Use only RedBoot I/O to allow console to "float."
3777 * src/net/bootp.c: Force hardware type to be "original" ethernet.
3783 * src/net/net_io.c: Support "floating" console, chosen from
3784 available serial I/O channels.
3786 2000-07-26 Gary Thomas <gthomas@redhat.com>
3788 * src/net/tftp_support.h:
3789 * src/net/tftp_client.c: Add new stream oriented functions.
3791 * src/net/net.h: More prototypes.
3793 * src/redboot.h: Move support functions here. Update interfaces.
3795 * src/printf.c: Support %l (long) qualifier.
3797 * src/misc_funs.c: Misc cleanups. Add case insensitive routines.
3799 * src/main.c: FLASH functionality is now in it's own package.
3801 * src/net/eth_drv.c:
3802 * include/eth_drv.h: Update to new interface conventions.
3804 * cdl/redboot.cdl: Changes for new files(s).
3806 2000-07-24 Gary Thomas <gthomas@redhat.com>
3808 * src/net/inet_addr.c: New file. Support for IP address parsing.
3810 * src/load.c: New file. Split out download functionality.
3811 Restructured to support download via stream (zmodem).
3813 * src/misc_funs.c: Add case insensitive compare functions.
3815 2000-07-22 Gary Thomas <gthomas@redhat.com>
3817 * src/main.c (do_load): Add proper argument parsing.
3819 2000-07-21 Gary Thomas <gthomas@redhat.com>
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.
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.
3828 * cdl/redboot.cdl: Clean up dependencies. Extend network configuration.
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.
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.
3838 * src/net/net.h: Reorder 'tcp_socket' fields to enforce proper
3839 alignment of data buffer [needs to be on dword boundary].
3841 * src/net/tcp.c: Many small changes getting 'endian'-ness correct.
3843 * src/net/tftp_client.c (tftp_error): New function - returns a
3844 string representing the error code [for humans].
3846 2000-07-16 Gary Thomas <gthomas@redhat.com>
3848 * cdl/redboot.cdl: Make network support configurable/optional.
3850 * src/io.c: Add command line input function.
3852 * src/main.c: Lots of new functions, command line processing, etc.
3854 * src/misc_funs.c (strcmp, strncmp): New function(s).
3856 * src/printf.c: Add support for "%p" (pointers).
3858 * src/redboot.h: Expand, move global vars, here, etc.
3860 * src/net/eth_drv.c: Make quieter, change "no interface" string.
3862 * src/net/net.h (__LITTLE_ENDIAN__): Avoid redefining this on platforms
3863 where GCC does it for us.
3865 2000-07-12 Gary Thomas <gthomas@redhat.com>
3867 * cdl/redboot.cdl: New file(s).
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.
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.
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.
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.
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.
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.
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 //===========================================================================