1 2005-09-09 Andrew Dyer <adyer@righthandtech.com>
3 * src/load.c: add calls to redboot_getc_terminate before exiting
4 load_elf_image() in various error scenarios, change the final call
5 to redboot_getc_terminate to have the error flag set. This will
6 cause a tftp nak and close down the connection since for ELF files
7 we don't read the whole content but end the connection when the
10 * src/net/tftp_client.c: add tftp_error() to send an error back to
11 the server. define tftp_stream_terminate() and pass it into the
14 2005-09-08 Gary Thomas <gary@mlbassoc.com>
19 * cdl/redboot.cdl: Add support for ANSI keyboard cursor keys
20 such as HOME/END/Arrows
22 2005-09-08 Stefan Sommerfeld <sommerfeld@mikrom.com>
23 * src/flash.c: Fix usage of "fis create", more arguments are optional
24 Set mem_base to mem_addr instead of flash_addr for a loaded image
26 2005-09-03 Andrew Lunn <andrew.lunn@ascom.ch>
28 * cdl/redboot.cdl: White space changes to aid readability.
30 2005-09-03 Isaac Claymore <iclaymore@gmail.com>
32 * src/flash.c (fis_create): Print an error if the FIS directory is
33 full when we try to create a new entry.
35 2005-08-17 David Vrabel <dvrabel@arcom.com>
37 * cdl/redboot.cdl (CYGNUM_REDBOOT_DEFAULT_NETWORK_DEVICE): Removed
38 since isn't used anywhere.
39 * cdl/redboot.cdl (CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE): New option
40 to specify the name of the default network device.
42 * src/net/net_io.c: Use CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE as
43 the default to the net_device config option.
45 2005-07-06 Isaac Claymore <iclaymore@gmail.com>
47 * src/fconfig.c: (get_config): Verify the length of the script is
48 less than MAX_SCRIPT_LENGTH.
50 2005-06-29 Andrew Lunn <andrew.lunn@ascom.ch>
52 * doc/redboot_cmds.sgml:
53 * src/dump.c: Fix the usage for dump and x command.
55 2005-06-29 Peter Korsgaard <jacmet@sunsite.dk>
57 * src/flash.c (find_free): Maintain sort order when splitting
60 2005-06-27 Andrew Lunn <andrew.lunn@ascom.ch>
62 * src/net/enet.c (ntohs): Return type is a short.
64 2005-06-22 Peter Korsgaard <jacmet@sunsite.dk>
66 * src/flash.c (fis_list, fis_free, fis_create):
67 * src/iomem.c (do_iopeek): Fixed compiler warnings about formats
68 strings for diag_printf.
70 2005-06-09 David Vrabel <dvrabel@arcom.com>
72 * src/xyzModem.c: Use the Ymodem length field by #define'ing
74 (xyzModem_stream_read): Only discard runs of ^Z's if we're using
75 Xmodem or the Ymodem length field is 0. This allows binary files
76 with runs of ^Z's to be transferred.
78 2005-06-07 Andrew Lunn <andrew.lunn@ascom.ch>
80 * src/flash.c (_flash_info): Fixed a warning about a diag_printf
83 2005-05-27 David Vrabel <dvrabel@arcom.com>
85 * src/main.c (cyg_start): Expand aliases even if
86 CYGSEM_REDBOOT_FLASH_ALIASES is not enabled since there are some
87 hardcoded aliases (e.g., FREEMEMLO).
89 2005-05-04 David Vrabel <dvrabel@arcom.com>
91 * src/alias.c (lookup_alias): The expansion of FREEMEMLO and
92 FREEMEMHI needs a leading '0x' so they're recognized as hex.
94 2005-04-21 Ian Campbell <icampbell@arcom.com>
96 * src/net/net_io.c (net_init): Don't initialize the network if we
97 don't have an IP address.
99 * src/net/net_io.c (do_ip_addr): Add a '-b' option to obtain IP
100 address using BOOTP/DHCP.
102 * doc/redboot_cmds.sgml: Document the new '-b' option to the
103 'ip_address' command.
105 * src/decompress.c (zcfree): Remove unnecessary variable
109 2005-04-17 Andrew Lunn <andrew.lunn@ascom.ch>
111 * src/alias.c (lookup_alias): Fix compiler warnings about formats
112 * src/cksum.c (do_cksum): Ditto
113 * src/dump.c (do_dump): Ditto
115 2005-04-07 Peter Korsgaard <jacmet@sunsite.dk>
117 * cdl/redboot.cdl, doc/redboot_cmds.sgml, src/gunzip.c: Added
118 gunzip command to uncompress GZIP compressed data.
120 2005-04-11 Peter Korsgaard <jacmet@sunsite.dk>
122 * src/flash.c (find_free): Correctly split chunks in two when
125 2005-03-07 Alexander Neundorf <alexander.neundorf@jenoptik.com>
127 * src/net/arp.c: use correct sizeof(rt->enet_addr) in
130 2005-01-22 Andrew Lunn <andrew.lunn@ascom.ch>
132 * src/main.c (cyg_start): Fix compiler warning with
133 HAL_THREAD_INIT_CONTEXT and the worspace end address.
134 * src/fs/disk.c (find_dos_partitions): Removed unused variable.
136 2005-01-05 David Vrabel <dvrabel@arcom.com>
138 * src/fs/fileio.c (do_ls): Remove useless "getcwd" message.
139 * src/net/bootp.c (__bootp_find_local_ip): Only print the
140 "waiting for BOOTP" message when after first retry.
142 2004-12-01 Andrea Michelotti <amichelotti@atmel.com>
146 * mcmp.c : Changes required for use with GCC v4 - cast as lvalue
147 is no longer supported.
149 2004-11-09 Ian Campbell <icampbell@arcom.com>
151 * cdl/redboot.cdl, doc/redboot_cmds.sgml, src/iomem.c: Add support
152 for iopeek and iopoke commands to allow access to the I/O regions.
154 2004-11-09 David Vrabel <dvrabel@arcom.com>
156 * cdl/redboot.cdl (CYGBLD_REDBOOT_MIN_IMAGE_SIZE): Correct the
157 description to match what the option is actually used for.
159 * src/flash.c (find_free, fis_free, fis_find_free): Don't ignore
160 an extra CYGBLD_REDBOOT_MIN_IMAGE_SIZE amount from the start.
161 This fixes the case where nothing uses the start of flash.
163 2004-11-04 Peter Korsgaard <jacmet@sunsite.dk>
165 * src/fconfig.c (flash_write_config): Removed compiler warning
166 when building redboot with combined FIS and config.
168 2004-10-10 Iztok Zupet <iz@elsis.si>
170 * cdl/redboot.cdl: added CYGSEM_REDBOOT_DISK_IDE_VMWARE option.
171 * src/fs/ide.c : skip reset IDE commands if running under VMware.
173 2004-10-08 Andrew Lunn <andrew.lunn@ascom.ch>
175 * doc/redboot_installing.sgml: Added links to the tools for the
176 Atmel AT91 JTST board.
178 2004-09-27 Mark Salter <msalter@redhat.com>
180 * src/fs/ide.c (ide_presence_detect): New function.
181 * src/fs/disk.c (u32_unaligned): New function to read unaligned words.
182 (find_dos_partitions): Use u32_unaligned instead of memcpy.
184 2004-9-25 Andrew Lunn <andrew.lunn@ascom.ch>
186 * doc/redboot_install.sgml: Added installation information for the
187 Atmel AT91 JTST board provided by Andrea Michelotti
189 2004-9-23 Bob Koninckx <bob.koninckx@o-3s.com>
191 * src/net/tc.c: Removed unneccesary call to MS_TICKS_DELAY
193 2004-09-19 Mark Salter <msalter@redhat.com>
195 * cdl/redboot.cdl: Add CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE
196 * src/net/net_io.c (net_init): Initialize only one network
197 device if CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE defined.
199 2004-09-19 Andrew Lunn <andrew.lunn@ascom.ch>
201 * src/load.c (do_load): Removed compiler warning when building
202 reboot without networking.
204 2004-09-05 Mark Salter <msalter@redhat.com>
206 * doc/redboot_installing.sgml: Add mb93091 and mb93093.
208 2004-09-02 Mark Salter <msalter@redhat.com>
210 * doc/redboot_cmds.sgml: Add -x option to exec command.
212 2004-09-01 Mark Salter <msalter@redhat.com>
214 * cdl/redboot.cdl (CYGOPT_REDBOOT_FLASH_BYTEORDER): New option.
215 * include/redboot.h: Define FLASH_{READ,PROGRAM} macros.
216 Define REDBOOT_FLASH_REVERSE_BYTEORDER if appropriate.
217 * src/flash.c: Add support for CYGOPT_REDBOOT_FLASH_BYTEORDER.
218 Use FLASH_{READ,PROGRAM} macros instead of flash driver api.
219 * src/fconfig.c: Ditto.
221 * src/main.c (do_version): Update copyright message.
223 2004-08-31 Jonathan Larmour <jifl@eCosCentric.com>
225 * src/flash.c (fis_init): Avoid potentially unnecessary erase
226 attempt at end of flash.
228 2004-08-27 Peter Korsgaard <jacmet@sunsite.dk>
230 * doc/redboot_cmds.sgml: Fixed a minor typo with fis list
232 2004-08-17 Andrew Lunn <andrew.lunn@ascom.ch>
235 * src/net/net_io.c: added CDL to allow the default server to
236 be configured. Also respect the CYGSEM_REDBOOT_DEFAULT_NO_BOOTP
239 2004-08-16 Andrew Lunn <andrew.lunn@ascom.ch>
242 * src/load.c: Added cdl to control the size of the buffer used
243 by getc. The size can have significant affect on load speed
244 when loading from a filesystem.
246 2004-08-13 Jani Monoses <jani@iv.ro>
248 * src/net/http_client.c: Fix off-by-one error in checking
249 the HTTP response header, so the ending CRLF-CRLF is detected
250 even if it's the last 4 bytes in the buffer.
252 2004-08-10 Andrew Lunn <andrew.lunn@ascom.ch>
255 * src/load.c (load_elf_image): Added a CDL option to configure
256 if the physical or virtual address in the headers should be used
257 when loading the image.
259 2004-08-09 Andrew Lunn <andrew.lunn@ascom.ch>
262 * src/fs/fileio.c (do_ls) Added an ls command so we can see what
263 is inside the mounted filesystem.
265 2004-06-25 Andrew Lunn <andrew.lunn@ascom.ch>
267 * src/flash.c (find_free): fix endless loop when removing a
268 collapsed chunk from chunk table. Found by Laurent Gonzalez
269 (fis_load): Fixed a compiler warning.
271 2004-05-31 Jani Monoses <jani@iv.ro>
274 * include/redboot.h: Get rid of unused workspace_size.
276 2004-05-16 Andrew Dyer <adyer@righthandtech.com>
277 2004-05-27 Jonathan Larmour <jifl@eCosCentric.com>
279 * src/fs/ide.c: make sure IDE_STAT_BSY is 0 before checking other
280 bits in the status register
282 2004-05-21 Ian Campbell <icampbell@arcom.com>
284 * src/main.c: Make it build without CYGSEM_REDBOOT_FLASH_ALIASES.
286 2004-05-05 Gary Thomas <gary@mlbassoc.com>
288 * src/flash.c (fis_load): CRC check on load was broken (the CDL
289 option changed names)
291 2004-04-29 Jonathan Larmour <jifl@eCosCentric.com>
293 * doc/redboot_epilogue.sgml: Comment out </part> to reflect change
296 2004-04-23 Gary Thomas <gary@mlbassoc.com>
303 * include/redboot.h: Add asserts to check that option arrays
304 are not overrun (when used with variable number of options).
306 2004-04-23 Gary Parnes <garyp@logicpd.com>
308 * src/net/tftp_client.c: The port, if specified by the user,
309 is now corrected for endianness issues.
311 2004-04-19 Gary Thomas <gary@mlbassoc.com>
313 * src/fs/fileio.c: Can't test for CYGPKG_IO_FLASH_BLOCK_DEVICE without
314 first testing for CYGPKG_IO_FLASH and including it's pkgconf file.
316 2004-04-19 John Dallaway <jld@ecoscentric.com>
318 * doc/makefile, doc/redboot_main.sgml: New files to build the RedBoot
319 User's Guide as a self-contained document.
321 * doc/redboot.sgml: Eliminate <part> tag to build the RedBoot User's
322 Guide as a self-contained document.
324 2004-03-30 Mark Salter <msalter@redhat.com>
326 * src/net/udp.c (__udp_recvfrom_handler): Protect against back-to-back
329 2004-03-17 Thomas Koeller <thomas.koeller@baslerweb.com>
331 * src/fs/fileio.c: Only include IO package headers if required.
333 2004-03-02 Andrew Dyer <adyer@righthandtech.com>
335 * src/load.c: add -p option to help string and only print it and -h if
336 CYGPKG_REDBOOT_NETWORKING is enabled. Add a CR to the end of the
337 SHORT_DATA message string
339 2004-02-27 Jani Monoses <jani@iv.ro>
341 * src/net/http_client.c: Close connection with abort instead of
342 friendly close since for ELF files we don't read the whole content
343 but end the connection when the runnable parts are in. The server
344 interprets close as it has nothing more to receive, but it still wants
345 to send the rest of the file and does that until it times out.
347 2004-02-26 Jani Monoses <jani@iv.ro>
350 * src/net/http_client.c: Allow overriding the default HTTP port.
352 2004-02-25 Gratian Crisan <nelu@iv.ro>
354 * src/xyzModem.c: Do not read an information header for XModem
355 in xyzModem_stream_open(). XModem does not have a file information
356 header and this caused in the previous implementation a retransmission
357 of the first data block (it was read and ignored in the open function).
359 2004-02-24 Gary Thomas <gary@mlbassoc.com>
361 * cdl/redboot.cdl: net_io needs to be in libextras to enable network
362 support (failed if network debug was disabled)
364 2004-02-23 Uwe Kindler <uwe_kindler@web.de>
376 * src/net/ping.c: Minor cleanups to remove warnings.
378 2004-02-20 Jonathan Larmour <jifl@eCosCentric.com>
380 * doc/redboot.sgml: Document lowering security level for TFTP to
381 work on more recent Red Hat Linux.
383 2004-02-19 Jani Monoses <jani@iv.ro>
385 * src/xyzModem.c: Start with sending a 'C', do not wait until the
386 first packet from the sender.This allows download to start quicker.
388 2004-02-16 Andrew Dyer <adyer@righthandtech.com>
390 * src/main.c: add 'go' options to help string
392 2004-02-11 Jonathan Larmour <jifl@eCosCentric.com>
394 * cdl/redboot.cdl: Bring CYGNUM_REDBOOT_LOAD_ZLIB_BUFFER under
395 CYGBLD_BUILD_REDBOOT_WITH_ZLIB. Add CYGPRI_REDBOOT_ZLIB_FLASH to
396 control whether decompression can be used with flash images.
397 * src/flash.c: Use CYGPRI_REDBOOT_ZLIB_FLASH instead of
398 CYGPKG_COMPRESS_ZLIB.
399 * src/load.c: Use CYGBLD_BUILD_REDBOOT_WITH_ZLIB in place of
400 CYGPKG_COMPRESS_ZLIB.
401 * src/main.c: only set fis_zlib_common_buffer if
402 CYGPRI_REDBOOT_ZLIB_FLASH.
404 * src/main.c (set_comm_baud_rate): Get current rate with GETBAUD
407 2004-02-04 Gary Thomas <gary@mlbassoc.com>
409 * cdl/redboot.cdl: Do not build with "common" interrupt stack
410 support. This can cause problems when running programs (via
411 the "go" command) as interrupts will corrupt RedBoot's stack.
413 2004-01-18 Gary Thomas <gary@mlbassoc.com>
415 * src/main.c: Fix build problem if GDB stubs are not included.
416 Minor warning cleanup (cast on NO_MEMORY).
418 2003-12-21 Gary Thomas <gary@mlbassoc.com>
420 * src/net/tcp.c (tcp_send): Add [restore] delay into TCP write
421 path. Sadly, there seems to be some issue where some ACK packets
422 get lost unless this is present (at least on some hardware).
423 n.b. a small delay here is definitely preferable to the horrendous
424 delays imposed by TCP retries if this condition occurs.
427 * include/flash_config.h: New functions for get/set/enumerate
428 config data which can be used via virtual vector interface.
430 2003-12-12 Jani Monoses <jani@iv.ro>
432 * src/net/tcp.c: Cancel retransmission timer when SYN is acked
433 otherwise an open active connection which doesn't send data
434 eventually resends the SYN resulting in reset from the peer.
436 2003-12-08 Gary Thomas <gary@mlbassoc.com>
438 * cdl/redboot.cdl: Better handling of GDB stubs support. This
439 should be automatically included if the platform supports GDB.
440 Disabling CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS (in the common HAL)
441 will fully disable GDB support.
443 2003-12-05 Gary Thomas <gary@mlbassoc.com>
445 * src/decompress.c (gzip_init): Memory pool initialization should
446 only be done in _zlib_init().
448 2003-12-05 Ian Campbell <icampbell@arcom.com>
450 * src/decompress.c: Ensure that free'd blocks are returned to the
451 free pool and that adjacent free blocks are merged. Initialise the
452 pool in _zlib_init() so that things are initialised even when
453 gzip_init hasn't been called.
455 2003-12-05 Gary Thomas <gary@mlbassoc.com>
457 * src/io.c (_rb_gets_preloaded): ^A could have moved the cursor to
458 the wrong location on the screen if ^F/^B had been used.
460 2003-12-03 David Vrabel <dvrabel@arcom.com>
462 * src/time_date.cxx (do_time_date): Use YYYY/MM/DD HH:MM:SS format
463 throughout (instead of the American specific format). Expand
464 range of valid years to 1970 - 2034 (instead of 2000 - 2034).
466 2003-11-27 David Woodhouse <dwmw2@redhat.com>
468 * cdl/redboot.cdl, fs/fileio.c, include/fs/fileio.h, src/load.c:
469 Support for mounting and loading files from fileio file systems
472 2003-11-25 John Dallaway <jld@ecoscentric.com>
474 * src/fconfig.c (load_flash_config):
475 Fix typo in output string.
477 2003-11-24 Gary Thomas <gary@mlbassoc.com>
479 * src/net/bootp.c (__bootp_find_local_ip):
480 Suppress diagnostic message that DNS info found.
482 2002-11-24 Jani Monoses <jani@iv.ro>
484 * src/flash.c: Remove references to FLASH_MIN_WORKSPACE.
486 2003-11-21 David Vrabel <dvrabel@arcom.com>
488 * src/net/bootp.c (bootp_handler): Scan for DHCP Message Type tag
489 as it isn't always the first tag.
491 * include/net/bootp.h: New #define's for DHCP message types
492 (DHCP_MESSAGE_TYPE_DISCOVER etc.).
494 2002-11-20 Jani Monoses <jani@iv.ro>
496 * src/flash.c: flash_init() no longer takes three args.
498 2003-11-19 David Woodhouse <dwmw2@redhat.com>
500 * src/main.c: Restore correct old baud rate if changing fails.
502 2003-11-13 Gary Thomas <gary@mlbassoc.com>
504 * src/main.c (do_go): Need to stop catching exceptions when running a
505 user program, otherwise GDB will never run when the program fails, gets
506 a ^C interrupt, etc. Also, clean up [remove] some cache debug code.
508 2003-11-12 Gary Thomas <gary@mlbassoc.com>
510 * misc/redboot_XXX.ecm: Removed - since it was only a source of confusion.
512 2003-11-07 Gary Thomas <gary@mlbassoc.com>
516 * include/net/net.h: Use DNS server address from DHCP if provided.
517 Inspired by John Newlin <jnewlin@rawbw.com>
519 * src/flash.c (fis_init): Take out misleading warning - since the
520 new [default] behaviour of "fis free" means free space need not
521 be necessarily erased on the device.
523 2003-11-04 Gary Thomas <gary@mlbassoc.com>
525 * src/flash.c (find_free): Better handling of end address - otherwise
526 list of free blocks could be incorrect. Thanks to Chris Garry.
528 2003-11-01 Gary Thomas <gary@mlbassoc.com>
530 * cdl/redboot.cdl: Reorg to allow disk operations on other than
533 2003-10-23 Gary Thomas <gary@mlbassoc.com>
535 * src/main.c (cyg_start): Try to catch illegal memory accesses and
536 other abort conditions during command execution.
538 2003-10-17 Gary Thomas <gary@mlbassoc.com>
540 * src/load.c: Only examine loadable segments when scanning to determine
541 lowest loadable address (only used when -b XXX option used). Otherwise,
542 an offset into space could be chosen.
544 2003-10-16 Jonathan Larmour <jifl@eCosCentric.com>
546 * doc/redboot_installing.sgml: Fix eb40 flash install instructions.
548 2003-10-15 Gary Thomas <gary@mlbassoc.com>
551 * src/fconfig.c: Better handling of layout of fconfig and fis
552 data within the FLASH. Should work for even flash devices with
553 very smal block sizes.
555 * include/redboot.h (RedBoot_INIT_SECOND):
556 Finer initialization control.
558 * cdl/redboot.cdl: Combine FIS directory and FCONFIG database
559 by default. This results in better FLASH utilization. Also define
560 number of FIS directory slots. This will allow support for FLASH
561 devices with very small block sizes.
563 2003-10-12 Gary Thomas <gary@mlbassoc.com>
565 * src/flash.c (fis_create): Verify that any hard FLASH addresses
566 (given via -f XXX) are known to be free.
568 2003-10-11 Gary Thomas <gary@mlbassoc.com>
571 * cdl/redboot.cdl: Change 'fis free' to use the directory structure
572 to determine what space is free in the FLASH. This is controlled
573 by the CDL option CYGDAT_REDBOOT_FIS_MAX_FREE_CHUNKS so the old
574 behaviour can still be defined if desired.
576 2003-10-09 Gary Thomas <gary@mlbassoc.com>
578 * src/flash.c (fis_create): Check whole length of image, not just
579 effective size, when validating addresses.
581 * src/net/net_io.c (net_init):
582 * include/net/net.h: Rework handling of multiple network devices. All
583 devices will now be initialized, with either the first or the default
584 device actually used for I/O.
586 2003-10-06 Gary Thomas <gary@mlbassoc.com>
589 * src/net/bootp.c: Fix some compile problems if GATEWAY support is disabled.
591 * src/flash.c (fis_list): Display FIS directory entries in FLASH
592 address (sorted) order.
594 2003-10-03 Gary Thomas <gary@mlbassoc.com>
596 * src/flash.c (fis_delete): 'fconfig' data only shows up in FIS if
597 the data is stored in FLASH - account for this. Also, make sure
598 FLASH gets initialized if built without 'fconfig' enabled.
600 2003-10-02 Gary Thomas <gary@mlbassoc.com>
603 * cdl/redboot.cdl: Allow platforms to provide a function to validate
604 ethernet station addresses.
606 2003-09-30 Gary Thomas <gary@mlbassoc.com>
608 * src/fconfig.c (do_flash_config): Fix typo in error message.
610 2003-09-30 David Vrabel <dvrabel@arcom.com>
612 * src/net/tcp.c: Include missing <cyg/infra/diag.h>.
614 * include/redboot.h, src/parse.c (init_opts, scan_opts): Remove
615 the excessive level of indirection in the handling of option
618 2003-09-29 Gary Thomas <gary@mlbassoc.com>
620 * src/load.c (load_elf_image): Use LMA (loader memory address), instead
621 of VMA (virtual memory address) to load code. If LMA != VMA, it's up
622 to the loaded program to figure it out.
623 Inspired by Artur Lipowski <LAL@pro.onet.pl>
625 2003-09-26 Nick Garnett <nickg@balti.calivar.com>
627 * doc/redboot_installing.sgml: Fixed bogus memory sizes in AT91
630 2003-09-26 Gary Thomas <gary@mlbassoc.com>
632 * src/flash.c (fis_free, fis_find_free):
633 Fix some problems introduced with the new FLASH interfaces (used by
636 * src/fconfig.c: Honor FLASH/FIS configury.
639 * src/fs/ide.c: Clean up some compiler warnings.
641 2003-09-25 Gary Thomas <gary@mlbassoc.com>
643 * src/net/bootp.c: Rework DHCP process to handle really stubborn
646 2003-09-24 Gary Thomas <gary@mlbassoc.com>
648 * src/net/bootp.c (__bootp_find_local_ip): Forgot to unregister
649 UDP handler - could cause serious problems later! Also, fix
650 problem with retries after DHCP discovery phase.
652 2003-09-23 Gary Thomas <gary@mlbassoc.com>
654 * src/net/bootp.c (__bootp_find_local_ip): Handle retries on DHCP
657 2003-09-22 Gary Thomas <gary@mlbassoc.com>
659 * cdl/redboot.cdl: Fix compile error for systems with no FLASH.
661 2003-09-21 Gary Thomas <gary@mlbassoc.com>
663 * cdl/redboot.cdl: Make DNS truly optional (remove from template).
666 2003-09-20 Gary Thomas <gary@mlbassoc.com>
668 * src/fs/ide.c: Improve IDE handling by having init function return
669 actual number of controllers detected. This avoids really long times
670 for startup if the controller is missing.
672 * src/net/bootp.c: Rework to use full DHCP protocol. Previously,
673 once an offer came in, RedBoot was happy, without actually making
674 the address reservation and waiting for the final acknowledgement.
675 Also, added CDL to enable/disable DHCP. BUG #1000053
677 2003-09-20 Chris Garry <cgarry@sweeneydesign.co.uk>
679 * src/main.c: Modified the way multiple "RAM" segments are reported.
681 * src/fconfig.c: Variables 'stat' and '*err_addr' in function
682 flash_write_config() are now defined regardless of whether
683 CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG is defined of not.
685 2003-09-19 Gary Thomas <gary@mlbassoc.com>
687 * src/net/timers.c (__timer_poll): Need to call MS_TICKS_DELAY() or
688 else time will never progress. This can cause a missed TCP packet
689 to cause the stack to freeze. BUG #23006
691 * src/net/tftp_client.c: Make timeout on very first transaction really
692 long - again since some servers are just slow/ill mannered.
694 * src/net/net_io.c: Allow default server IP to be always enabled, thus
695 it can override what is provided by BOOTP/DHCP (since some DHCP servers
696 don't provide this properly).
698 * src/time_date.cxx: New file - support "date" command for platforms
699 with battery backed up clocks.
701 * src/fconfig.c: New file - split out from flash.c
708 * cdl/redboot.cdl: Support multiple "RAM" segments (known writable
709 memory). Also rearrange FLASH & FCONFIG, separating them as much
710 as possible and supporting FCONFIG data stored in some other sort
711 of device, like EEPROM.
713 2003-09-09 Gary Thomas <gary@mlbassoc.com>
715 * src/flash.c (flash_config_insert_value): Default value was
718 2003-09-08 David Vrabel <dvrabel@arcom.com>
720 * src/net/bootp.c (__bootp_find_local_ip): Adds Option 55 Parameter
721 Request List) to the DHCP request (requests: Subnet Mask; Router;
724 2003-08-19 Gary Thomas <gary@mlbassoc.com>
726 * src/net/udp.c (__udp_recvfrom): Rework loop so delay only happens
727 if no packet is immediately available - improves network throughput.
730 * cdl/redboot.cdl: Add control over granularity of timers used
731 by RedBoot and the network stack.
733 2003-08-05 Jonathan Larmour <jifl@eCosCentric.com>
735 * doc/redboot_installing.sgml: Fix brain fart in last change to
736 AT91 instructions. Also clarify instructions a bit, including
737 documenting better for windows users.
739 2003-07-23 Patrick Doyle <wpd@dtccom.com>
741 * src/flash.c (fis_find_free)
742 * src/flash.c (fis_free): Do not search areas reserved for RedBoot
743 when scanning for free space.
745 2003-07-16 Gary Thomas <gary@mlbassoc.com>
748 * src/net/bootp.c: Allow ^C to abort.
751 * include/redboot.h: New function _rb_break() used to test for ^C
752 on the console. Used to break out of long operations like BOOTP.
754 2003-07-15 Gary Thomas <gary@mlbassoc.com>
756 * src/net/bootp.c: Use correct options for DHCP discover. This has
757 the added bonus that when BOOTP & GATEWAY options are enabled, then
758 RedBoot can get it's address via normal DHCP. Of course, DHCP leases
759 will be ignored by RedBoot, so some caution is warranted.
762 * src/net/arp.c (__arp_request): Allow ARP of self - used during
763 initialization to "broadcast" that an IP address is in use.
765 * src/net/net_io.c (net_init): When using a static IP, send an
766 initial ARP to see if any other node is using this address.
767 Also, some minor cosmetic cleanups to remove warnings.
769 2003-07-15 Jonathan Larmour <jifl@eCosCentric.com>
771 * doc/redboot_installing.sgml (AT91): Tell users to switch JP1
772 (or SW1 for EB40) when installing, and warn them in no
773 uncertain terms the consequences of failing to do so.
775 2003-07-01 Mark Salter <msalter@redhat.com>
777 * cdl/redboot.cdl (CYGBLD_BUILD_REDBOOT_WITH_MCOPY): New option.
778 * src/mcopy.c: New file adding mcopy command.
779 * doc/redboot_cmds.sgml: Add mcopy.
781 2003-06-26 Jonathan Larmour <jifl@eCosCentric.com>
783 * doc/redboot_installing.sgml: Clarify use of correct cables with
784 serial ports with AT91 boards.
786 2003-06-24 Jonathan Larmour <jifl@eCosCentric.com>
788 * doc/redboot_cmds.sgml (IP): Clarify last change a bit and fix typos
791 2003-05-20 David Vrabel <dvrabel@arcom.com>
792 2003-05-20 Ian Campbell <icampbell@arcom.com>
794 * src/net/net_io.c: Add the ability to specify a netmask length to
795 the ip_address command
796 * doc/redboot_cmds.sgml: Document the above.
798 2003-06-24 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
799 2003-06-24 Jonathan Larmour <jifl@eCosCentric.com>
801 * src/net/tftp_client.c: Define tftp_stream.last_good_block to
802 permit downloads > 32MB.
803 (tftp_ack): Allow last_good_block to wrap.
804 (tftp_stream_read): Ditto.
806 * src/net/bootp.c: Use correct DHCP message type for DHCPREQUEST.
808 2003-05-20 Mark Salter <msalter@redhat.com>
810 * cdl/redboot.cdl (CYGBLD_REDBOOT_CMD_LINE_HISTORY): New option.
811 * src/io.c: Support history command and history expansion.
812 * doc/redboot.sgml: Document command history support.
814 2003-05-14 Mark Salter <msalter@redhat.com>
816 * src/flash.c (flash_get_config): Add CONFIG_NETPORT case.
818 2003-05-13 Nick Garnett <nickg@balti.calivar.com>
820 * doc/redboot_installing.sgml: Added installation instructions for
821 Atmel EB40A, EB42 and EB55 boards.
823 2003-05-06 Mark Salter <msalter@redhat.com>
825 * src/main.c (cyg_start): Clear gdb_active when returning from stub.
827 2003-05-06 Pierre Habraken <Pierre.Habraken@imag.fr>
829 * cdl/redboot.cdl: Added option
830 CYGOPT_REDBOOT_BSP_SYSCALLS_EXIT_WITHOUT_TRAP for enabling (possibly
831 single shot) programs to exit and return a termination status as
832 their normal behavior (i.e. without raising a SIGTRAP).
833 * src/syscall.c (__do_syscall): Added conditionally compiled code
834 to SYS_exit for returning to RedBoot main loop without raising a
835 SIGTRAP, even when the calling program is not being debugged.
836 * src/main.c (cyg_start): Added code (following Jonathan Larmour's
837 and Mark Salter's suggestions) to RedBoot main loop: a (context)
838 savepoint is created before the thread of control is transferred to
839 gdb stubs (through a trampoline procedure). This savepoint enables
840 the stubs to return control back to the main loop by calling the
841 return_to_redboot procedure (macro CYGACC_CALL_IF_MONITOR_RETURN).
842 Procedure go_trampoline and variables go_saved_context and
843 go_return_status have been respectively renamed to trampoline,
844 saved_context and return_status.
846 2003-04-23 Chris Garry <cgarry@sweeneydesign.co.uk>
848 * src/flash.c: Only perform RAM check in fis load command when
849 CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS = 1
851 2003-04-18 Gary Thomas <gary@mlbassoc.com>
853 * src/net/tftp_client.c: Arrange to ACK last good packet when closing.
854 Without this, the host can be left tryint to send that packet forever.
856 2003-04-14 Jani Monoses <jani@iv.ro>
859 Change #else if to #elif so it compiles when TFTP is disabled.
861 2003-04-08 Jonathan Larmour <jifl@eCosCentric.com>
863 * src/main.c (do_go): Silence unused variable warning when no net.
865 2003-04-04 Mark Salter <msalter@redhat.com>
867 * src/main.c (do_go): Add -n switch to optionally stop network
868 device. Mask interrupts on all comm channels.
869 Don't scan for -n unless ethernet configured in.
870 * doc/redboot_cmds.sgml: Update go command info.
872 2003-04-03 Gary Thomas <gary@mlbassoc.com>
874 * src/load.c: Better handling of default download mode. Also
875 display information when I/O errors occor (was silent).
876 (do_load): Handle case when X-modem protocol is disabled.
878 * src/net/http_client.c:
879 * include/net/http.h: Improve parsing of HTTP responses for errors.
881 2003-03-28 Gary Thomas <gary@mlbassoc.com> inspired by
882 2003-03-28 Jani Monoses <jani@iv.ro>
885 * cdl/redboot.cdl: Make TFTP download protocol optional.
887 2003-03-20 Mark Salter <msalter@redhat.com>
889 * include/flash_config.h (CONFIG_NETPORT): New config option.
890 * src/flash.c: Support CONFIG_NETPORT.
891 * cdl/redboot.cdl: New option to select default ethernet device.
892 * src/net/net_io.c: Support multiple ethernet devices.
893 * include/net/net.h: Add externs for net_devname and net_devindex.
895 2002-03-19 John Dallaway <jld@ecoscentric.com>
897 * doc/redboot_installing.sgml: Update Atmel AT91EB40 RedBoot
898 installation instructions.
900 2003-03-18 Mark Salter <msalter@redhat.com>
902 * doc/redboot_installing.sgml: Add XScale IXDP425 and GRG.
904 2003-03-05 Jonathan Larmour <jifl@eCosCentric.com>
906 * src/main.c (do_version): Test for CYGPKG_REDBOOT_FLASH as
907 CYGPKG_IO_FLASH can be loaded with no underlying hardware drivers!
909 2003-03-03 Gary Thomas <gary@mlbassoc.com>
911 * src/main.c (set_console_baud_rate): Avoid "unused" warning.
913 2003-03-03 Knud Woehler <knud.woehler@microplex.de>
915 * src/flash.c: fis_work_block was not initialized in do_flash_init()
916 thus fis_lookup() does not work if called via the virtual vector table.
918 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
920 * doc/redboot.sgml: De-vendorise a little.
921 Fix extraneous <para>.
923 * cdl/redboot.cdl: Add doc links.
925 2003-02-14 Jonathan Larmour <jifl@eCosCentric.com>
927 * cdl/redboot.cdl: Put virtually all options inside
928 CYGBLD_BUILD_REDBOOT. And indent accordingly.
930 2003-02-04 Gary Thomas <gary@mind.be>
932 * src/fs/ide.c: Print more info if failed to identify IDE device.
934 * src/fs/e2fs.c: Improved debug output.
936 2003-02-04 Mark Salter <msalter@redhat.com>
937 2003-02-04 Brian Murphy <brian@murphy.dk>
939 * src/main.c (return_to_redboot): Add CYGARC_HAL_RESTORE_GP.
941 2003-01-31 Mark Salter <msalter@redhat.com>
943 * src/main.c: Add support to allow programs started by go to
946 * src/syscall.c (__do_syscall): Return to monitor on program exit
948 (sys_timer_isr): Return CYG_ISR_HANDLED.
950 2003-01-10 Patrick Doyle <wpd@delcomsys.com>
952 * src/load.c (do_load): Don't abort and complain about overwriting
953 the end of RAM when loading raw data files and we already asked
954 the user if it was ok to write outside what we believe to be RAM.
956 2002-12-31 Patrick Doyle <wpd@delcomsys.com>
958 * src/decompress.c (gzip_close): Don't complain that decompression
959 didn't complete when the stream reaches its end.
961 2002-12-18 David Mazur <david@mind.be>
962 2002-12-18 Mark Salter <msalter@redhat.com>
964 * src/fs/e2fs.c (e2fs_get_gdesc): Fixed handling of group descriptor
967 2002-12-03 Gary Thomas <gthomas@ecoscentric.com>
969 * src/main.c: Export version string via virtual vector table.
971 2002-11-05 Jonathan Larmour <jifl@eCosCentric.com>
973 * src/io.c (_rb_gets_preloaded): Null terminate when buffer full.
975 2002-10-24 Gary Thomas <gthomas@ecoscentric.com> (inspired by)
976 2002-10-24 Jay Foster <jay@systech.com>
978 * include/net/bootp.h (BP_MIN_VEND_SIZE):
979 * src/net/bootp.c (__bootp_find_local_ip): Require a minimum vendor
980 area to always be sent (to keep some servers happy).
982 * src/flash.c: Fix typo for "FIS DELETE"
984 2002-09-16 Mark Salter <msalter@redhat.com>
986 * src/main.c (set_console_baud_rate): Handle CYGPKG_REDBOOT_ANY_CONSOLE.
987 (set_comm_baud_rate): New function.
989 2002-09-13 Mark Salter <msalter@redhat.com>
991 * src/decompress.c: Move error handling back into gzip_close to
994 2002-09-12 Mark Salter <msalter@redhat.com>
996 * src/decompress.c (gzip_inflate): Fix error return so that upper
997 doesn't quit on Z_STREAM_END.
998 (gzip_close): Move error handling into gzip_inflate.
1000 * src/load.c (do_load): Fix printing of address range for raw loads.
1002 2002-09-11 Mark Salter <msalter@redhat.com>
1004 * src/main.c (do_go): Turn on line flushes before jumping to function.
1005 * src/net/net_io.c (net_io_control): Support flushes at end of lines.
1007 2002-09-03 Yoshinori Sato <qzb04471@nifty.ne.jp>
1008 2002-09-03 Mark Salter <msalter@redhat.com>
1010 * include/fs/disk.h (__SWAB32): Fix incorrect masking.
1011 * src/fs/e2fs.c (e2fs_inode_block): Fix endianess of block numbers.
1013 2002-08-29 Mark Salter <msalter@redhat.com>
1015 * src/net/net_io.c (net_init): Initialize dns before showing addresses.
1017 2002-08-26 Thomas Koeller <thomas@koeller.dyndns.org>
1019 * src/flash.c: Do not warn about overwriting image data if
1020 -n option is used with 'fis create'. For 'fis load',
1021 perform load size check based on actual data length, not
1024 2002-08-22 Mark Salter <msalter@redhat.com>
1026 * src/net/net_io.c (net_io_putc): Don't flush on every \n.
1027 * src/syscall.c (__do_syscall): Allow fileio support to fall back
1028 to non-fileio behavior if program is not being run by gdb.
1030 2002-08-20 Thomas Koeller <thomas@koeller.dyndns.org>
1033 * include/redboot.h:
1036 * src/decompress.c: Use a common buffer for FIS directory
1037 manipulation and zlib workspace to conserve RAM.
1039 2002-08-20 Thomas Koeller <thomas@koeller.dyndns.org>
1042 * include/fis.h: Allow control of FIS descriptor padding.
1044 2002-08-16 Jani Monoses <jani@iv.ro>
1046 * src/io.c: Do not add empty lines to command history.
1047 * src/net/http_client.c: Read all data when in CLOSE_WAIT
1048 otherwise if the server closes quickly enough nothing is
1051 2002-08-09 Andrew Lunn <andrew.lunn@ascom.ch>
1053 * src/crc.c: Removed. Replaced with the CRC package.
1054 * src/cksum.c: Removed the posix_crc function.
1055 * src/flash.c: Use the crc package crc functions.
1056 * src/xyzModem.c: Ditto
1057 * include/redboot.h: Use the crc package include file.
1058 * cdl/redboot.cdl: removed crc.c
1060 2002-08-09 Jani Monoses <jani@iv.ro>
1062 * src/net/http_client.c: use standard HTTP GET request ('/'
1063 instead of ' ' in HTTP/1.0) to work with all servers
1065 2002-08-08 Jani Monoses <jani@iv.ro>
1067 * src/flash.c: fis delete should mark the slot as reusable
1068 not just delete the area of flash used by the file.
1070 2002-08-08 Gary Thomas <gthomas@ecoscentric.com>
1071 2002-08-08 Motoya Kurotsu <kurotsu@allied-telesis.co.jp>
1073 * src/load.c (do_load): Make sure 'io_tab' is set before using it.
1075 2002-08-07 Gary Thomas <gary@chez-thomas.org>
1077 * src/net/tftp_client.c:
1078 * include/net/tftp.h: Make block numbers unsigned to handle files
1081 2002-08-06 Gary Thomas <gary@chez-thomas.org>
1083 * src/crc.c: POSIX crc code is now separate.
1089 * src/caches.c: New (split out) file(s).
1092 * cdl/redboot.cdl: Split major CLI functionality to separate
1093 files, more easily controlled by CDL - inspired by Andrew.
1095 2002-08-06 Andrew Lunn <Andrew.Lunn@ascom.ch>
1097 * src/io.c: Fix the parsing of boot scripts to allow the use
1098 of aliases. This was broken when the ability to do startup
1099 type specific scripting was added.
1101 2002-08-05 Andrew Lunn <Andrew.Lunn@ascom.ch>
1103 * src/main.c: Made more of the commands conditionally compilable
1104 * cdl/redboot.cdl: CDL code to control the compilation.
1106 2002-07-30 Gary Thomas <gary@chez-thomas.org>
1108 * src/net/net_io.c: Handle broadcast/mask setup better (failed if
1109 not found in FLASH). Also print on network info line.
1111 2002-07-18 Gary Thomas <gary@chez-thomas.org>
1113 * src/net/tftp_client.c:
1114 * src/net/http_client.c:
1118 * include/redboot.h: Rework load/mode information tables so that
1119 load I/O methods can detect actual mode (e.g. X-modem vs Y-modem)
1121 2002-07-16 Hendrik Ruijter <Hendrik.Ruijter@axis.com>
1122 2002-07-16 Mark Salter <msalter@redhat.com>
1124 * include/net/net.h: Add __tcp_abort prototype.
1126 * src/net/icmp.c: The default handler can be replaced by a
1127 user defined handler which handles all ICMP segments.
1130 (handle_icmp): Only ICMP Echo Reply segments must be counted and
1131 ICMP Echo Requests are handled in the user defined handler.
1134 (do_abort, __tcp_abort): Send an RST flag in order to abort a
1135 connection. May use a delay to send the flag.
1137 2002-07-15 Mark Salter <msalter@redhat.com>
1139 * src/net/net_io.c: Increase size of out_buf to 1024 bytes.
1141 2002-07-11 Gary Thomas <gary@chez-thomas.org>
1143 * src/io.c (mon_read_char_with_timeout): Ensure interrupts are
1144 disabled on all I/O channels, except for the current console.
1145 This is done when selecting a console, as this process causes
1146 the interrupt state to be inherited from the current console.
1148 2002-07-09 Gary Thomas <gary@chez-thomas.org>
1149 2002-07-09 Grant Edwards <grante@visi.com>
1156 * include/net/net.h:
1157 * include/net/bootp.h:
1158 * cdl/redboot.cdl: Add basic support for non-local networking
1159 using a single gateway. Based on contribution from Grant Edwards.
1161 2002-07-01 Gary Thomas <gary@chez-thomas.org>
1163 * src/net/tftp_client.c:
1164 * src/net/http_client.c:
1169 * include/net/tftp_support.h:
1170 * include/net/http.h:
1171 * include/redboot.h:
1172 * cdl/redboot.cdl: Make 'load' command stream I/O table driven.
1174 2002-05-31 Jesper Skov <jskov@redhat.com>
1176 * doc/redboot_installing.sgml: Updated the remaining installation
1177 instructions (well, the top mode details anyway).
1179 2002-05-29 Jesper Skov <jskov@redhat.com>
1181 * doc/redboot_cmds.sgml: Changed format of fis commands.
1183 * doc/redboot_installing.sgml: Updated installation instructions
1184 for all targets up to PowerPC.
1186 2002-05-28 Gary Thomas <gthomas@redhat.com>
1188 * src/load.c (load_elf_image): Improve loading of ELF files with
1189 multiple physical segments.
1191 2002-05-27 Jesper Skov <jskov@redhat.com>
1193 * doc/redboot_rebuilding.sgml: Added some guimenu tags.
1195 * doc/redboot_installing.sgml: Updating more board instructions.
1196 More updates. Changing most programlisting keywords to screen.
1197 Converted remaining rebuild instructions. More mode descriptions
1198 updated. iPAQ converted as well.
1200 2002-05-24 Gary Thomas <gthomas@redhat.com>
1202 * src/load.c (load_elf_image): Improve loading where ELF image
1203 actually overlaps headers [old COFF style files].
1205 2002-05-24 Jesper Skov <jskov@redhat.com>
1207 * doc/redboot_installing.sgml: Updated another 3 boards'
1210 * doc/redboot.sgml: Changes due to comments from Jifl.
1211 * doc/redboot_rebuilding.sgml: Same.
1213 * doc/redboot.sgml: Fix wording.
1215 * doc/redboot_installing.sgml: Reordered the platform sections
1216 according to CPU architecture/variant and board manufacturer.
1218 2002-05-23 Jonathan Larmour <jlarmour@redhat.com>
1220 * src/net/dns.c (store_hent): New function. DNS package now requires
1221 this instead of the cyg_thread_get_data calls.
1222 (free_stored_hent): New function. Ditto.
1224 2002-05-23 Gary Thomas <gthomas@redhat.com>
1226 * doc/redboot_cmds.sgml: Document new HTTP download mode.
1228 * src/net/tcp.c: Improve some interfaces. Add support for
1229 outgoing (__tcp_open) connections.
1231 * src/net/net_io.c (net_io_flush): Use improved TCP interfaces.
1233 * src/main.c (_mon_write_char): Map '\n' => '\r\n'. This used
1234 to be done by diag_printf(), but that was the wrong place for it.
1236 * include/net/net.h: Add support for TCP outgoing connections.
1238 * src/net/http_client.c:
1239 * include/net/http.h: New file(s) - HTTP client support.
1242 * cdl/redboot.cdl: Support HTTP download mode.
1244 2002-05-23 Jesper Skov <jskov@redhat.com>
1246 * doc/redboot.sgml: Moved the editing and resource sections to
1247 this document. Added new section on RedBoot (startup) modes.
1248 * doc/redboot_cmds.sgml: Removed the editing and resource
1250 * doc/redboot_installing.sgml: Changed a couple of platform
1252 * doc/redboot_rebuilding.sgml: Make use of mode/config
1253 consistent. Removed mode section.
1255 2002-05-22 Jesper Skov <jskov@redhat.com>
1257 * doc/redboot_rebuilding.sgml: Added a note about redboot growing
1258 beyond its slot limits.
1259 Rewrote the RedBoot rebuilding documentation.
1261 * src/flash.c (fis_create): Clarify error message. Get rid of bool
1262 flag slot_found that only duplicated fis variable state.
1264 2002-05-21 Gary Thomas <gthomas@redhat.com>
1268 * src/load.c: Purge mention of Z-modem until it's implemented.
1270 2002-05-21 Jesper Skov <jskov@redhat.com>
1272 * src/flash.c (fis_create): Removed one of the three questions to
1274 * doc/redboot_rebuilding.sgml: Removed the query lines from the
1277 * doc/redboot_installing.sgml: Removed all the free RAM related
1278 resource descriptions. Left in a few timer resource descriptions.
1279 * doc/redboot_cmds.sgml: Refer to platform sections for additional
1280 platform-specific resource usage.
1282 * doc/redboot_installing.sgml: Removed all platform specific
1283 references to the updating section which told the user to use
1284 specific flash paramemters. All this is now handled
1287 * src/alias.c (lookup_alias): FREEMEMHI is just the high address
1288 masked to 1KB alignment.
1290 * doc/redboot_cmds.sgml: Added load disk example.
1291 Added section on RedBoot resources.
1293 2002-05-18 Gary Thomas <gthomas@redhat.com>
1295 * src/main.c (do_baud_rate): Improve safety by asking for verification
1296 after actually changing the rate, before updating fconfig data. This
1297 reduces the chance of making a "brick" by setting a bad baud rate.
1299 * src/flash.c (load_flash_config): Fix set_console_baud_rate prototype.
1301 * src/io.c (verify_action_with_timeout):
1302 * include/redboot.h: New function verify_action_with_timeout().
1303 Returns false if no response within XX ms (or ^C).
1305 2002-05-17 Gary Thomas <gthomas@redhat.com>
1307 * src/main.c (do_help):
1309 * include/redboot.h: Support nested command structures, like "fis",
1312 2002-05-17 Jesper Skov <jskov@redhat.com>
1314 * doc/redboot_rebuilding.sgml: Rewrote update procedure to become
1315 truly generic. Some minor tweaks.
1317 * doc/redboot_cmds.sgml: Added id to cksum command.
1319 * src/shex.c (load_shex_image): Set entry address to be base
1321 * src/load.c (do_load): Same.
1323 * src/flash.c (fis_create): Infer correct exec and entry
1326 * src/load.c (load_elf_image): Save load_address/end.
1328 * src/flash.c: Made fis lock/unlock support optional image name
1329 instead of addresses. Made a few places of the code use fis_lookup
1330 instead of scanning the table by steam.
1331 (do_flash_config): Update flash after configuration has been
1334 2002-05-16 Jesper Skov <jskov@redhat.com>
1336 * doc/redboot_cmds.sgml: Updated text on cksum to show the new
1339 * src/xyzModem.c (xyzModem_stream_read): Fix build breakage.
1341 * doc/redboot.sgml: Some minor tweaks.
1343 * src/alias.c (lookup_alias): Renamed freemem aliases.
1345 2002-05-15 Jesper Skov <jskov@redhat.com>
1347 * src/io.c (verify_action): Replaced 'are you sure' with
1349 * doc/redboot.sgml: Same.
1351 * src/xyzModem.c: Let Y-modem load correct length. Don't remove
1352 assumed padding bytes since they may well be actual data. Don't
1353 read anything after the EOF package is received.
1354 Disabled the Y-modem header stuff again; it still needs the
1355 padding culling code. So in the end, only the EOF-package read
1358 * src/main.c: Tweak cksum output.
1360 * src/flash.c (fis_create): language tweaks.
1362 * src/main.c: Always call expand_aliases - leave it to that
1363 function to look for flash aliases when appropriate.
1365 * src/flash.c: Moved basic alias expansion into separate file.
1366 * src/alias.c: New file. Always provide FREE_LOW & FREE_HIGH
1367 aliases, but also call flash_lookup_alias when defined.
1369 * include/redboot.h: Added declarations for alias functions. Added
1370 getc_t and terminate_t types.
1372 * src/load.c: Use getc_t/terminate_t types. Made raw load abort if
1373 user tries to load a file too big for memory.
1375 * cdl/redboot.cdl: Compile alias.c.
1377 2002-05-14 Jonathan Larmour <jlarmour@redhat.com>
1379 * src/version.c: Clarify comments.
1381 2002-05-14 Gary Thomas <gthomas@redhat.com>
1383 * include/redboot.h:
1385 * src/net/dns.c: Merge generic "ip" command with "dns" for
1386 more homogenous interface.
1388 2002-05-13 Gary Thomas <gthomas@redhat.com>
1390 * cdl/redboot.cdl: Disable CYGOPT_REDBOOT_FIS_REDBOOT_BACKUP
1391 by default, since its use is currently unclear.
1393 * src/flash.c (load_flash_config): Check for adequate FIS space
1394 was incorrect [when FIS directory and FCONFIG are combined].
1395 (fis_lookup): Image name lookup is case insensitive.
1397 2002-05-10 Gary Thomas <gthomas@redhat.com>
1399 * src/flash.c: Lots of restructuring in support of combined
1400 FIS and FCONFIG data.
1403 Add new option CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG
1404 to allow FIS directory and FCONFIG data to share the same
1405 physical FLASH block.
1407 2002-05-03 Gary Thomas <gthomas@redhat.com>
1409 * src/flash.c (load_flash_config): Adjust fconfig database
1410 address - necessary if FLASH blocks are very small.
1412 2002-05-02 Gary Thomas <gthomas@redhat.com>
1414 * src/load.c: Rework how decompression is done (with changes
1415 noted below). Now turning on decompression works by pushing
1416 the decompress code into the stream I/O.
1418 * src/flash.c (fis_load):
1419 * src/decompress.c (gzip_inflate):
1420 * include/redboot.h: Make decompression code more generalized.
1422 2002-05-01 Gary Thomas <gthomas@redhat.com>
1424 * include/elf.h: New file.
1427 * src/load.c (load_elf_image): Support [simple] ELF images.
1429 2002-04-24 Yoshinori Sato <qzb04471@nifty.ne.jp>
1431 * src/xyzModem.c (xyzModem_stream_terminate): Increase time for
1432 cleanup from 100ms to 250ms.
1434 2002-04-23 Jonathan Larmour <jlarmour@redhat.com>
1436 * src/syscall.c (__do_syscall): Rename EIO to NEWLIB_EIO to
1437 pre-empt any potential conflict. Add definition of
1438 NEWLIB_ENOSYS and use it in place of ENOSYS.
1440 2002-04-22 Jonathan Larmour <jlarmour@redhat.com>
1442 * doc/redboot.sgml: Document iq80321 switch settings.
1444 * include/redboot.h: Add gettimeofday, rename, isatty and system
1447 * src/syscall.c (__do_syscall): Handle above new syscalls in a
1449 Take new extra signal argument.
1450 When required, handle file I/O syscalls, by passing into HAL.
1452 2002-04-21 Paul Fine <pfine@delcomsys.com>
1454 * src/flash.c (flash_get_config, load_flash_config): Save a
1455 pointer to the configuration structure in FLASH. If
1456 flash_get_config fails to find a config item, check to make sure
1457 that the config structure in RAM has not been trashed. If it has
1458 been trashed, set the pointer to the "readonly" version in FLASH
1459 and try to read the config item again.
1461 * cdl/redboot.cdl (CYGSEM_REDBOOT_FLASH_CONFIG_READONLY_FALLBACK):
1462 Added this flash config option to control the readonly fallback in
1465 2002-04-16 Yoshinori Sato <qzb04471@nifty.ne.jp>
1466 2002-04-16 Jonathan Larmour <jlarmour@redhat.com>
1468 * src/xyzModem.c: Don't return ACKs too early.
1470 2002-04-16 Gary Thomas <gthomas@redhat.com>
1472 * src/net/bootp.c: Readjust timeouts - more, shorter. Better response.
1474 2002-04-12 Gary Thomas <gthomas@redhat.com>
1476 * src/net/bootp.c: Increase timeouts for slower networks.
1478 2002-04-11 Nick Garnett <nickg@redhat.com>
1480 * doc/redboot.sgml: Changed some misplaced <term>s into
1483 2002-04-08 Nick Garnett <nickg@redhat.com>
1485 * doc/redboot.sgml: Added full LED code desription, revised memory
1486 layout and miscellaneous other fixes for 80321.
1488 2002-04-03 Gary Thomas <gthomas@redhat.com>
1490 * src/main.c (do_mfill):
1491 (do_mcmp): New routines for fill/compare random buffers.
1493 * cdl/redboot.cdl: CDL to control mfill, mcmp, cksum commands.
1495 * src/net/net_io.c (do_ip_addr):
1496 * doc/redboot.sgml: Add new command 'ip_addr', used to set/show the
1497 local and host [server] addresses.
1499 2002-04-02 Jesper Skov <jskov@redhat.com>
1501 * redboot.sgml: excalibur: Updated memory map details, added
1502 information about REDBOOT startup mode.
1504 2002-03-07 Mark Salter <msalter@redhat.com>
1506 * src/net/tcp.c: Fix missing acks of resent segments pointed out
1509 2002-03-06 Nick Garnett <nickg@redhat.com>
1511 * doc/redboot.sgml: Added Integrator details.
1513 2002-03-06 Mark Salter <msalter@redhat.com>
1515 * src/net/tcp.c (__tcp_handler): Slight rework of Hendrik Ruijter's
1516 fix for FIN_WAIT_1 to TIME_WAIT transition.
1518 2002-03-06 Jesper Skov <jskov@redhat.com>
1520 * doc/redboot.sgml: Updated iq80310 details.
1521 Updated iq80321 details.
1522 Updated e7t details.
1524 2002-03-05 Jesper Skov <jskov@redhat.com>
1526 * doc/redboot.sgml: Updated ebsa285 details.
1527 Updated ipaq details.
1528 Updated edb7312 details.
1530 2002-03-05 Gary Thomas <gthomas@redhat.com>
1531 2002-02-25 Hendrik Ruijter <Hendrik.Ruijter@axis.com>
1533 * include/net/net.h: Add 'reuse' flag.
1536 (tcp_send): Adjust socket close time to allow for faster re-use.
1537 (__tcp_handler): Statetransitions to TIME_WAIT on active close
1538 when FIN,ACK receivedsimultaneously.
1539 (__tcp_so_reuseaddr): New function - select fast re-use.
1541 2002-03-05 Jesper Skov <jskov@redhat.com>
1543 * doc/redboot.sgml: Add something about updating RedBoot on
1544 platforms using ROMRAM-startup type RedBoot. Also mention that fis
1545 create can get some of its information from the fis directory.
1546 Updated assabet details.
1548 2002-03-01 Mark Salter <msalter@redhat.com>
1550 * redboot.sgml: Add diag docs and switch setting info for 80321.
1552 2002-02-28 Hugo Tyson <hmt@redhat.com>
1554 * src/flash.c (do_flash_config): Add "-d" to the help info.
1556 * doc/redboot.sgml: Docuement the "-d" option for dumb terminals
1557 with fconfig - so you're not forced to use line editing.
1559 2002-02-28 Jesper Skov <jskov@redhat.com>
1561 * src/syscall.c: Moved SYS_ value definitions to the header file.
1562 * include/redboot.h: Same.
1564 2002-02-27 David Howells <dhowells@redhat.com>
1566 * sgml/redboot.sgml: Removed extraneous </para>.
1568 2002-02-26 David Howells <dhowells@redhat.com>
1570 * doc/redboot.sgml: Updated the ASB2305 notes to be more complete
1571 with respect to having two flash chips.
1573 2002-02-19 Mark Salter <msalter@redhat.com>
1575 * src/net/net_io.c (net_io_init): Remove ISR installation. This
1576 was wrong way to fix problem.
1578 2002-02-15 Mark Salter <msalter@redhat.com>
1580 * src/net/net_io.c (net_io_init): Install default ISR for ethernet.
1582 2002-02-14 Patrick Doyle <wpd@delcomsys.com>
1584 * src/fs/disk.c (disk_stream_read): Modified to return the number
1585 of bytes read instead of -1 when such number is less than was
1588 2002-02-06 Mark Salter <msalter@redhat.com>
1590 * src/syscall.c (sys_write): Call __flush after last __putc.
1591 (__flush): New function to flush console output.
1593 2002-02-05 Jonathan Larmour <jlarmour@redhat.com>
1595 * src/net/net_io.c (net_init): Set use_bootp and net_debug defaults
1598 2002-01-31 Gary Thomas <gthomas@redhat.com>
1600 * src/fs/ide.c (ide_packet_read_sectors): Pass errors on read.
1601 (ide_init): Ignore ATAPI devices that are not CDROM (like ZIP).
1603 2002-01-30 Hugo Tyson <hmt@redhat.com>
1605 * src/net/net_io.c (start_console): Pick up config items to choose
1606 a console for special debug messages. If it's not set, select
1607 channel 0 regardless, like it used to.
1608 (info_console_force, info_console_number): New fconfig options to
1609 control this channel *plus* forcing application special debug out
1610 to a particular serial. This is crucial for debugging debugging
1611 itself, or debugging a networked app over the network when you're
1612 liable to get such messages popping out from the app as well as
1615 * cdl/redboot.cdl (CYGDBG_REDBOOT_NET_DEBUG_CONSOLE_NUMBER):
1616 Option deleted, because this is now controlled by fconfig items.
1618 2002-01-25 Hugo Tyson <hmt@redhat.com>
1620 * src/syscall.c (sys_profile_reset): New routine - doesn't do
1621 much, just NULLs the callback. Useful placeholder in case more is
1622 needed in future, eg. reset the clock also.
1623 (__do_syscall): Calls the reset on syscall 2003.
1625 2002-01-21 Hugo Tyson <hmt@redhat.com>
1627 * src/flash.c (do_flash_config): Enable a "dumb terminal" mode for
1628 fconfig, which does not pre-fill the buffer for editing, but
1629 merely prompts for a new value (or RET for old, for non-string
1630 values). This is because telnet/kermit-like network terminal apps
1631 are not by default configured to pass all characters through.
1633 2002-01-18 Hugo Tyson <hmt@redhat.com>
1635 * src/syscall.c (sys_timer_ticks): Change this to a cyg_uint64 to
1636 give better range for times() sanity in case we run the hardware
1637 clock ticking at a faster rate, or want to last > 8 days.
1639 2002-01-16 Hugo Tyson <hmt@redhat.com>
1641 * src/syscall.c (sys_profile_frequency): Change frequency that is
1642 passed around to signed, so that we can enquire using -ve values.
1643 Re-order the logic a little so as to permit enquiries which do not
1644 modify what's set up in the hardware. Adjust the times() counter
1645 when its HZ rate changes so it tells the truth.
1647 2002-01-15 David Woodhouse <dwmw2@cambridge.redhat.com>
1649 * src/flash.c: Better default for 'fis cr' - if we're programming
1650 an existing flash image, take img_size from the last-loaded image
1651 but length from the one that's already on the flash.
1653 2002-01-14 David Woodhouse <dwmw2@cambridge.redhat.com>
1655 * src/main.c: Useful defaults for cksum command.
1656 * src/flash.c: Useful defaults for fis create command.
1657 * src/load.c: Slight cleanup of file type detection.
1659 2002-01-14 Jesper Skov <jskov@redhat.com>
1661 * src/net/cksum.c: Added volatile keyword to union members to
1662 prevent compiler optimization messing things up.
1664 2002-01-10 Hugo Tyson <hmt@redhat.com>
1666 * src/syscall.c (sys_timer_isr): Add CYGARC_HAL_SAVE_GP(); and
1667 CYGARC_HAL_RESTORE_GP(); around the callback invocation to protect
1668 ourselves from whatever the app routine might do along those lines.
1670 2002-01-10 Hugo Tyson <hmt@redhat.com>
1672 * src/syscall.c (sys_timer_ticks): Explicitly initialize this.
1673 (sys_timer_isr): Call periodic callback function, with PC and SP
1674 of interrupted context, if set.
1675 (sys_profile_call_back): New routine to support
1676 gprof profiling of GNUPro/newlib apps via BSP_SYSCALLS. Sets the
1677 periodic callback function, returning the old value.
1678 (sys_profile_frequency): Ditto, sets the frequency of the call, if
1679 possible, or zero => a mere inquiry.
1680 (sys_timer_init, sys_times): Be prepared for a dynamic non-default
1682 (__do_syscall): Handle new case arms.
1684 * cdl/redboot.cdl (CYGSEM_REDBOOT_BSP_SYSCALLS): Changed to a
1685 component; want to add stuff in here later.
1686 (CYGSEM_REDBOOT_BSP_SYSCALLS_GPROF): New option
1687 to control inclusion of histogram profiling callback syscalls.
1689 2002-01-10 Jesper Skov <jskov@redhat.com>
1691 * src/main.c (do_version): Added year 2002.
1693 2002-01-07 Gary Thomas <gthomas@redhat.com>
1695 * src/flash.c (lookup_alias): Remove warning.
1697 2002-01-03 Gary Thomas <gthomas@redhat.com>
1699 * src/xyzModem.c (xyzModem_stream_read): BUG 57497
1700 Try and detect (and remove) ^Z characters placed at end of stream.
1701 This data confuses higher processing, like the zlib decompression
1704 2001-12-16 Mark Salter <msalter@redhat.com>
1706 * src/fs/ide.c: Add ATAPI support.
1707 * include/fs/ide.h: Add ATAPI defines.
1708 * src/fs/disk.c (disk_stream_open): Fix support for IDE CDROMs.
1709 (disk_parse_filename): Ditto.
1711 2001-12-12 Hugo Tyson <hmt@redhat.com>
1713 * cdl/redboot.cdl (CYGDBG_REDBOOT_NET_DEBUG_CONSOLE_NUMBER): New
1714 option to control the console number for network debug messages.
1715 For platforms where serial0 is supported (due to common variant
1716 HAL code) but not connected; serial1 is all you get, say.
1718 * src/net/net_io.c (start_console): Use it.
1720 2001-12-10 Nick Garnett <nickg@redhat.com>
1722 * src/net/cksum.c (__pseudo_sum): Fixed method of adding protocol
1723 field to checksum. Some compilers optimize some of this away to
1724 give a bogus result.
1726 2001-12-06 Jesper Skov <jskov@redhat.com>
1728 * src/load.c (do_load): Fix warning.
1729 * src/main.c: Added support for dumping memory in 16 and 32 bit
1730 units. Based on patch from Warren Jasper <warrenj@bops.com>.
1732 2001-12-05 Hugo Tyson <hmt@redhat.com>
1734 * src/flash.c (get_config): If we are editing an IP address, and
1735 it is 0.0.0.0 (as you get at "fco -i" time) suppress using that as
1736 the initial value of the string, it is unhelpful as a starting
1737 point for line editing.
1739 If we were given a value on the CLI eg. "fco bootp false" because
1740 the new value was copied into the holding string, it was not
1741 recognized as a change, so the flash was not updated. Bug! The
1742 fix is to change the order of the strcpy()s so that holdline is
1745 If the input line for a new value is completely blank, and the
1746 type is not string, take this to mean don't change the value.
1747 Otherwise typing in an empty line to an IP address goes off and
1748 tries to DNS resolve it there and then, looks like a hang.
1750 (do_flash_config): If we print the message "** invalid entry" do
1751 not just loop; set onevalue = NULL so that the user is prompted
1752 for a good value. Otherwise it loops forever trying the same
1753 value if you typed "fco bootp goat" (goat being a bad boolean).
1755 * src/parse.c (parse_bool): Check for (partial) rest of the word
1756 either "true" or "false" and nothing extra. Thus we reject
1757 "truefalse" as is all to easy to type in by accident. "TRU" "T"
1758 "tRuE" are all OK of course.
1760 * src/net/inet_addr.c (inet_aton): Do not accept terminating the
1761 dot-quad address with a final dot. Else typing on the end of a
1762 provided-for-editing string is accepted. Also reject units > 255.
1763 Allow typing in either exactly one (large) number or 4 small ones;
1764 reject intermediates. Thus we reject "10.16.19.1110.16.19.33" and
1765 "0.0.0.010.16.19.11" as are all to easy to type in by accident,
1766 and things like 10.0.0xffff which used to be accepted. 0x0a00ffff
1767 is OK though. This change also prevents the pointer s running off
1768 the end of the string if you just entered eg. "1".
1770 2001-12-04 Richard Sandiford <rsandifo@redhat.com>
1772 * include/net/net.h (ETH_MAX_PKTLEN): Increase to match definition
1775 2001-12-04 Richard Sandiford <rsandifo@redhat.com>
1777 * src/net/tcp.c (__tcp_poll): Call MS_TICKS_DELAY before __timer_poll.
1778 * src/net/net_io.c (net_io_getc): Remove MS_TICKS_DELAY from here...
1779 (net_io_getc_nonblock): ...and from here.
1781 2001-11-30 Jesper Skov <jskov@redhat.com>
1783 * src/net/net_io.c (net_init): Print ESA for device even if bootp
1786 2001-11-29 Jonathan Larmour <jlarmour@redhat.com>
1788 * src/net/dns.c: Rename index -> ptdindex to avoid conflict with BSD
1791 2001-11-29 Jesper Skov <jskov@redhat.com>
1793 * src/net/tftp_client.c (tftp_stream_open): Clear from_addr's
1794 sin_port so multiple loads are possible.
1796 2001-11-26 Jesper Skov <jskov@redhat.com>
1798 * misc/redboot_XXX.ecm: Added. Replaced the _RAM, _ROM, and
1801 * misc/redboot_ROM.ecm: Added configuration with all packages
1802 relevant for a full RedBoot configuration. Whenever new (optional)
1803 RedBoot peer packages are added, they should be added to these
1804 files and not the RedBoot template.
1805 * misc/redboot_ROMRAM.ecm: Same.
1806 * misc/redboot_RAM.ecm: Same.
1808 2001-11-15 Jesper Skov <jskov@redhat.com>
1810 * include/redboot.h: Added load_address and load_address_end
1811 variables to hold bounds of a loaded image.
1812 * src/load.c: Fill load_address and load_address_end after srec
1814 * src/flash.c: Same.
1815 * src/main.c (do_go): removed unneeded cast.
1817 2001-11-14 Gary Thomas <gthomas@redhat.com>
1819 * src/io.c (_rb_gets_preloaded): More correct timeout handling.
1820 n.b. in practice, this changes nothing, but it is more "correct".
1822 2001-11-05 Gary Thomas <gthomas@redhat.com>
1824 * src/load.c: Minor typo in help string.
1826 * src/io.c (_rb_gets_preloaded): Clear buffer if ^C.
1828 2001-11-02 Jesper Skov <jskov@redhat.com>
1830 * src/flash.c (fis_init): Fix warning.
1832 2001-11-01 Jesper Skov <jskov@redhat.com>
1834 * src/flash.c (fis_init): tweaks to the SIB protection code.
1836 2001-11-01 Gary Thomas <gthomas@redhat.com>
1838 * src/flash.c (fis_init): Need to init block fully, otherwise old
1839 images can persist after init.
1841 2001-10-31 Jesper Skov <jskov@redhat.com>
1843 * include/sib.h: Contains information about ARM Boot Monitor flash
1846 * cdl/redboot.cdl: Added CYGOPT_REDBOOT_FIS_DIRECTORY_ARM_SIB_ID
1849 * src/flash.c (fis_init): Added code to add ARM Boot Monitor
1850 footer on FIS block.
1852 2001-10-30 Jonathan Larmour <jlarmour@redhat.com>
1854 * src/flash.c (fis_delete): Prototype arm_fis_delete in correct place.
1855 (fis_list): Fix compilation problem - this isn't C++!
1857 2001-10-30 Philippe Robin <Philippe.Robin@arm.com>
1858 2001-10-30 Jonathan Larmour <jlarmour@redhat.com>
1860 * cdl/redboot.cdl: Add CYGINT_REDBOOT_ARM_FLASH_SIB_SUPPORTED and
1861 CYGHWR_REDBOOT_ARM_FLASH_SIB to indicate support for, and a request
1862 to provide ARM flash block structure support.
1864 * src/flash.c (fis_list): Call out to driver for ARM block FIS listing.
1865 (fis_delete): Call out to driver for ARM block FIS deletion.
1867 2001-10-29 Gary Thomas <gthomas@redhat.com>
1869 * src/main.c (cyg_start): New pseudo-commands, useful for scripts.
1870 '# anything' - treated like a comment.
1871 '= anything' - comment, but prints command line on console.
1873 * src/flash.c (expand_aliases): Don't expand aliases which are
1874 quoted, but only on the command line. This allows aliases to
1875 expand into other aliases which are within quoted strings.
1877 * include/redboot.h:
1878 * src/io.c (_rb_gets_preloaded): New function which allows for a
1879 buffer to be displayed and edited in place. This is extremely
1880 useful for 'fconfig', now that better line editing functions are
1883 * src/flash.c (get_config): Using new function _rb_gets_preloaded(),
1884 which supports edit-in-place for data items.
1886 2001-10-28 Gary Thomas <gthomas@redhat.com>
1888 * src/main.c (cyg_start):
1889 * src/io.c (_rb_gets):
1890 * include/redboot.h: Add new global control 'cmd_history' which is
1891 used to enable/disable command history collection. This keeps the
1892 history from being cluttered with things like 'y' (answers to simple
1895 2001-10-26 Gary Thomas <gthomas@redhat.com>
1897 * src/io.c (_rb_gets): Fix ^A editing - was timing out, thus erasing
1900 2001-10-25 Gary Thomas <gthomas@redhat.com>
1903 * cdl/redboot.cdl: Add command line history and edit functions.
1904 Controlled by CYGNUM_REDBOOT_CMD_LINE_EDITING option which defines
1905 the depth of the history buffer.
1907 2001-10-22 Jonathan Larmour <jlarmour@redhat.com>
1909 * include/redboot.h: Declare net_debug here.
1911 2001-10-18 Jonathan Larmour <jlarmour@redhat.com>
1913 * src/net/net_io.c (net_init): Set cyg_io_eth_net_debug from net_debug.
1914 * include/net/net.h: Declare cyg_io_eth_net_debug.
1916 2001-10-18 David Howells <dhowells@redhat.com>
1918 * src/syscall.c: Added support for the times() syscall and marked
1919 the utime() syscall as being implemented incorrectly.
1921 2001-10-18 Gary Thomas <gthomas@redhat.com>
1923 * src/io.c (_rb_gets): Fix parsing of \" in strings.
1925 2001-10-16 Jesper Skov <jskov@zoftcorp.adsl.dk>
1927 * cdl/redboot.cdl: Require ISOINFA.
1929 2001-10-16 Jesper Skov <jskov@redhat.com>
1931 * src/net/dns.c (send_recv): Clear from_addr before passing it to
1932 __udp_recvfrom. Fixed return value.
1934 2001-10-16 Gary Thomas <gthomas@redhat.com>
1936 * src/flash.c (_do_flash_init):
1937 Add wrapper function for do_flash_init() to avoid compiler warning.
1939 * src/io.c (_rb_gets):
1940 Use sub-timeouts when calling mon_read_char_with_timeout() as it
1941 was intended that this routine should timeout quickly to allow
1942 for other processing to take place if no data is available. In
1943 practice this won't make any difference unless the global "idle"
1944 timeout value is changed to be something quite large.
1946 * src/decompress.c: Improve memory allocators. Also use 'init'
1947 style function so that this is the only file that knows anything
1948 of the details of the decompression process or packaging.
1951 * include/redboot.h:
1952 * cdl/redboot.cdl: Rework decompression to be totally encapsulated.
1953 This keeps the details of this functionality in a single file, rather
1954 than scattered throughout RedBoot.
1956 2001-10-15 David Howells <dhowells@redhat.com>
1958 * src/xyzModem.c: put semicolon between goto-label and close curly.
1960 2001-10-15 Gary Thomas <gthomas@redhat.com>
1962 * src/flash.c (_expand_aliases): Change around some ambiguous code.
1966 * include/redboot.h:
1967 * cdl/redboot.cdl: Provide RedBoot specific memory allocators
1968 for ZLIB. Allows much finer control over memory map.
1970 * src/main.c (do_dump): Add option "-s" to dump data as S-records.
1972 2001-10-11 Gary Thomas <gthomas@redhat.com>
1974 * src/net/enet.c (__enet_poll): Suppress warning messages.
1976 2001-10-10 Jonathan Larmour <jlarmour@redhat.com>
1978 * src/flash.c (do_flash_init): Only set __flash_init when init is
1981 2001-10-04 Jesper Skov <jskov@redhat.com>
1983 * src/fs/disk.c: Fix ISO9660 build error.
1985 * src/main.c: Added x as an alias for the dump command.
1987 * src/net/dns.c: Fixed some messages (DNS -> DNS server).
1989 2001-10-02 Gary Thomas <gthomas@redhat.com>
1992 * src/xyzModem.c (xyzModem_stream_open):
1993 * src/load.c (do_load): Add new option "-c <N>" to let the user
1994 specify the I/O channel to use - xyModem only.
1996 2001-10-01 Gary Thomas <gthomas@redhat.com>
1998 * src/net/udp.c (__udp_recvfrom): Don't change server address (returned
1999 by this function) until a packet has been received with no timeout.
2001 2001-09-28 Jonathan Larmour <jlarmour@redhat.com>
2003 * src/flash.c (fis_create): if not copying, still update directory.
2005 2001-09-28 Gary Thomas <gthomas@redhat.com>
2007 * src/flash.c (_expand_aliases): Properly null terminate expanded
2008 string - failed if alias was at end of line.
2010 2001-09-27 Jesper Skov <jskov@redhat.com>
2012 * src/net/dns.c: Include tracing header.
2014 2001-09-26 Jesper Skov <jskov@redhat.com>
2016 * src/net/dns.c: Removed errno hacks.
2017 Reduce size of string buffers. Make sure they suffice (or fail).
2019 * include/redboot.h: Added DNS h_errno definitions.
2021 * include/redboot.h: Fix for building on targets wo network.
2023 * src/load.c (do_load): Make sure host can be reached - and print
2024 appropriate error message if not.
2026 * src/net/net_io.c (net_init): Call DNS init when appropriate.
2028 * src/net/inet_addr.c (inet_aton): Made s argument const.
2030 * src/net/dns.c: Added UDP driven DNS support.
2032 * src/net/bootp.c: Fixed warnings.
2034 * src/flash.c: Replaced inet_aton with _gethostbyname.
2036 * src/net/ping.c: Same.
2038 * include/net/net.h: Fix warning.
2040 * include/redboot.h: Added DNS stuff, including some string
2043 * cdl/redboot.cdl: Added DNS support options.
2045 2001-09-14 Jonathan Larmour <jlarmour@redhat.com>
2047 * src/version.c: Simplify _CERTIFICATE handling.
2049 2001-09-13 Fabrice Gautier <Fabrice_Gautier@sdesigns.com>
2051 * cdl/redboot.cdl: Added configuration options to deactivate BOOTP and
2053 * src/net/net_io.c (net_init): Use them.
2055 2001-09-13 Gary Thomas <gthomas@redhat.com>
2057 * src/flash.c: Cleanups - removing some redundant code.
2059 2001-09-12 Jonathan Larmour <jlarmour@redhat.com>
2061 * src/flash.c (do_flash_init): Only allocate fis block when
2062 CYGOPT_REDBOOT_FIS enabled.
2063 Conditionalize fis_work_block and fisdir_size.
2065 2001-09-12 Gary Thomas <gthomas@redhat.com>
2067 * src/flash.c (load_flash_config): Use additional space in the
2068 FLASH work area (at end of RAM) for 'fconfig' data. This reduces
2069 overall stack requirements as there is no need for 'fconfig' data
2070 to be held on the stack anymore.
2073 * include/fis.h: Define flash addresses using CYG_ADDRESS which
2074 is more portable than (unsigned long).
2076 2001-09-11 Jonathan Larmour <jlarmour@redhat.com>
2078 * cdl/redboot.cdl (CYGPKG_REDBOOT_FLASH): Be conditional on an
2079 actual flash device, not just the generic flash layer.
2081 2001-09-11 Gary Thomas <gthomas@redhat.com>
2083 * src/version.c (_CERTIFICATE): Add information about product
2084 certification (either Red Hat certified or not).
2086 * src/flash.c (fis_delete): Deny user deleting "reserved" images.
2088 2001-09-07 Andrew Lunn <andrew.lunn@ascom.ch>
2089 * src/flash.c: Extend the alias handling to allow configuration
2090 information to be access using alias. Fixed alias expansion
2091 when the alias is bigger than the replacement.
2092 * src/parse.c: A semi colon can be used to separate multiple
2093 commands on one line.
2095 2001-09-06 Jonathan Larmour <jlarmour@redhat.com>
2097 * include/redboot.h: Include string function prototype header.
2099 2001-09-06 Jesper Skov <jskov@redhat.com>
2101 * src/fs/ide.c (ide_read_sectors): Use diag_(s)printf.
2102 * src/fs/disk.c (do_disks): Same.
2104 2001-08-27 Andrew Lunn <andrew.lunn@ascom.ch>
2105 * src/flash.c: Allow the flash blocks used for FIS directory and
2106 config information to be user configured. Generalise the fis_init
2107 function to deal with the blocks in any order.
2108 * cdl/redboot.cdl: Added the configury needed to specify which
2109 flash blocks to use.
2111 2001-08-27 Mark Salter <msalter@redhat.com>
2113 * src/syscall.c (HZ): Should be 60 for ARM, also.
2115 2001-08-24 Tim Smith <tsmith@redhat.com>
2118 Provide xyzModem_stream_terminate() function to abort/clean up
2119 XYZmodem download on normal termination or after errors.
2122 Use aforementioned function to abort downloads on SREC errors,
2123 stop load_srec_image() from injecting stuff into the XYZmodem
2124 stream and confusing things.
2126 2001-08-24 Mark Salter <msalter@redhat.com>
2128 * src/net/net_io.c: Don't close connections if there is
2129 data left to read or write.
2131 * src/syscall.c: Add support for utimes syscall.
2133 2001-08-22 Gary Thomas <gthomas@redhat.com>
2143 * src/net/inet_addr.c:
2156 * include/net/net.h:
2157 * include/redboot.h:
2158 printf() is no longer a part of RedBoot. Thus all programs
2159 must use diag_printf() and related functions instead. Also
2160 renamed the non-standard function gets() to be _rb_gets()
2161 since there was some confusion about it because of it's
2162 rather standard name.
2164 * cdl/redboot.cdl: Lots of changes based on moving all printf()
2165 functionality into "infra" and only using it as diag_XXX().
2167 2001-08-17 Gary Thomas <gthomas@redhat.com>
2169 * src/version.c: Augment version information with startup mode.
2171 * src/flash.c (fis_find_free): Fix error in size comparisons.
2172 (load_flash_config): Fix 'fconfig' alignment now that it's
2173 size is no longer fixed.
2175 2001-08-16 Jesper Skov <jskov@redhat.com>
2177 * cdl/redboot.cdl: Also behave as ROM monitor in ROMRAM
2180 * src/load.c (do_load): Fix handling of conditional options.
2182 * src/flash.c (fis_load): Fix handling of conditional options.
2183 (fis_delete): Fix behavior on failure.
2185 * src/flash.c (fis_write): Fix output.
2186 (fis_create): Only update directory when programming succeeded.
2188 2001-08-17 Jonathan Larmour <jlarmour@redhat.com>
2190 * cdl/redboot.cdl (CYGSEM_REDBOOT_VARIABLE_BAUD_RATE): Default
2191 on, but only if platform supports it.
2193 2001-08-15 Mark Salter <msalter@redhat.com>
2195 * src/io.c: Add support for "{...}" notation in boot scripts.
2197 2001-08-14 Jonathan Larmour <jlarmour@redhat.com>
2199 * src/io.c (gets): Allow $'s and +'s to be escaped.
2201 2001-08-10 Jesper Skov <jskov@redhat.com>
2203 * src/flash.c (do_flash_init): Print error message instead of
2204 error code on init failure.
2205 Don't print error codes where error messages are printed. Make
2206 failure reporting strings look consistent.
2207 CYGHWR_IO_FLASH_BLOCK_LOCKING flavor changed to booldata.
2209 2001-08-08 Jonathan Larmour <jlarmour@redhat.com>
2211 * src/io.c (gets): Match $ as indicating GDB anywhere in a line.
2213 2001-08-07 Julian Smart <julians@redhat.com>
2215 * src/version.c: added commented-out CYGDAT_REDBOOT_CUSTOM_VERSION
2216 define that can be replaced using the RedBoot release script by
2217 a specific version in a customer branch.
2219 2001-08-06 Jesper Skov <jskov@redhat.com>
2221 * src/fs/disk.c: Simple fix for DISK_IDE_CDROM partition type.
2223 * cdl/redboot.cdl: Added (unused) CYGSEM_REDBOOT_DISK_ISO9660 option.
2225 2001-08-03 David Howells <dhowells@redhat.com>
2227 * src/net/net_io.c: Show the MAC address of the ethernet device
2228 amongst the boot banners.
2230 2001-08-01 Mark Salter <msalter@redhat.com>
2232 * src/fs/ide.c (ide_reset): Check for bogus status and timeout. Add
2233 return value to indicate success.
2234 (ide_init): Check ide_reset() return value.
2236 2001-07-31 Mark Salter <msalter@redhat.com>
2238 * src/fs/disk.c (find_dos_partitions): Fix extended partitions.
2239 * src/fs/ide.c (ide_init): Rework the test for device presence.
2241 2001-07-27 Gary Thomas <gthomas@redhat.com>
2243 * src/load.c (load_srec_image, do_load):
2244 * cdl/redboot.cdl: New option CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS
2245 which can be used to disable user RAM checks in 'load' command.
2247 * src/load.c: Fix build problem if no IDE support.
2249 * src/net/tftp_client.c (tftp_stream_read): Only ACK data when it
2250 has been processed and we're ready for the next block. This fixes
2251 a race/timing issue which was exacerbated by the "spinner" in 'load'.
2253 2001-07-27 David Howells <dhowells@redhat.com>
2255 * src/xyzModem.c: Fixed an uninitialised variable warning.
2257 2001-07-27 Mark Salter <msalter@redhat.com>
2259 * cdl/redboot.cdl (CYGNUM_REDBOOT_MAX_PARTITIONS): New option.
2260 Rename CYGBLD_REDBOOT_MAX_DISKS to CYGNUM_REDBOOT_MAX_DISKS.
2262 * include/fs/disk.h: Exported functions declared "externC".
2263 Replace MAX_PARTITIONS with CYGNUM_REDBOOT_MAX_PARTITIONS.
2265 * src/fs/disk.c: Make exported functions "externC".
2266 Rename CYGBLD_REDBOOT_MAX_DISKS to CYGNUM_REDBOOT_MAX_DISKS.
2267 Replace MAX_PARTITIONS with CYGNUM_REDBOOT_MAX_PARTITIONS.
2269 * src/fs/e2fs.c: Add support for symbolic links.
2270 * include/fs/e2fs.h: Add dir filetype support.
2272 2001-07-24 Mark Salter <msalter@redhat.com>
2274 * src/load.c: Add disk load support.
2275 * src/fs/disk.c: New file. RedBoot disk management.
2276 * src/fs/ide.c: New file. IDE disk I/O.
2277 * src/fs/e2fs.c: New file. Linux ext2 filesystem support.
2278 * cdl/redboot.cdl: Add options for disk/ide/filesystem support.
2280 2001-07-23 Jonathan Larmour <jlarmour@redhat.com>
2282 * src/main.c (set_console_baud_rate): No need to query the console
2283 number if we don't care what it is.
2284 (do_baud_rate): Likewise.
2286 2001-07-23 David Howells <dhowells@redhat.com>
2288 * src/flash.c: Force block-alignment for flash addresses in write
2289 and erase functions.
2291 2001-07-20 Jonathan Larmour <jlarmour@redhat.com>
2293 * src/net/net_io.c (net_init): Don't overwrite static IP
2294 address when reading flash config if configured to not use BOOTP.
2295 Set have_net if not using BOOTP and a default static IP addr is set.
2297 2001-07-19 Gary Thomas <gthomas@redhat.com>
2299 * src/flash.c: Be more generic with 'fconfig' layout. In
2300 particular, handle case where FLASH block size is too small
2301 to hold fconfig data.
2303 * src/io.c (mon_set_read_char_timeout): Fix dangling else bug.
2305 * src/flash.c (do_flash_init): Suppress printing info - this
2306 will happen when 'version' is called. Also allow flash subsystem
2307 to be initialized when there is no 'fconfig' or 'fis' command
2308 configured in (but flash support still is present).
2310 * src/version.c: Display complete version information which
2311 reflects such information as the source release, etc.
2313 * cdl/redboot.cdl: New option CYGDAT_REDBOOT_CUSTOM_VERSION used to
2314 allow site-specific version information. Define this via the
2316 cdl_option CYGDAT_REDBOOT_CUSTOM_VERSION {
2317 user_value 1 "Special test version"
2320 2001-07-18 Gary Thomas <gthomas@redhat.com>
2322 * src/net/net_io.c (net_io_putc, net_io_isr):
2323 Need CYGARC_HAL_SAVE_GP()/CYGARC_HAL_RESTORE_GP() to support
2324 network debugging since different layers of eCos programs are
2327 2001-07-16 Gary Thomas <gthomas@redhat.com>
2329 * src/main.c (do_version): Use external function _flash_info() to
2330 display information about installed FLASH.
2332 * src/load.c (load_srec_image): Remove extra '\n' on out of range msg.
2334 * src/flash.c (_flash_info): New function - displays information
2335 about FLASH found in system. Used by 'version' command.
2337 2001-07-12 Gary Thomas <gthomas@redhat.com>
2338 2001-07-12 Fabrice Gautier <gautier@email.enst.fr>
2340 * cdl/redboot.cdl: Improve some descriptions of options.
2342 2001-07-02 Jesper Skov <jskov@redhat.com>
2344 * src/io.c (do_channel): Fox build for !CYGPKG_REDBOOT_ANY_CONSOLE
2346 2001-06-28 Jonathan Larmour <jlarmour@redhat.com>
2348 * cdl/redboot.cdl: Don't have a configured default IP address by
2349 default if we have fconfig.
2350 * src/net/ip.c: Provide a default ip addr if not defined.
2352 2001-06-28 Jesper Skov <jskov@redhat.com>
2354 * src/load.c (do_load): Don't allow verbose to be used with serial
2357 * src/main.c (do_reset): Reset via VV function.
2359 2001-06-27 Hugo Tyson <hmt@redhat.com>
2361 * src/io.c: Provide proto for do_channel() to reduce warning.
2363 2001-06-27 Jonathan Larmour <jlarmour@redhat.com>
2365 * cdl/redboot.cdl (CYGDAT_REDBOOT_DEFAULT_IP_ADDR): Provide a compiled
2366 in default IP address.
2367 * src/net/ip.c: Initialize __local_ip_addr with it.
2368 * src/net/bootp.c: Restore the previous __local_ip_addr if BOOTP fails.
2370 * include/redboot.h: Fix another VARIBLE_BAUD_RATE typo. Fun this.
2372 2001-06-26 Jonathan Larmour <jlarmour@redhat.com>
2374 * src/io.c (do_channel): New function to display/switch console
2377 * src/main.c: Move define of CYGNUM_HAL_VIRTUAL_VECTOR_NUM_CHANNELS to
2378 * include/redboot.h: ...here
2380 2001-06-26 Gary Thomas <gthomas@redhat.com>
2382 * src/flash.c (load_flash_config): Fix another VARIBLE_BAUD_RATE typo.
2384 * src/xyzModem.c (xyzModem_get_hdr): ACK on EOT was missing.
2386 2001-06-22 Gary Thomas <gthomas@redhat.com>
2388 * src/load.c (do_load): Move [static] data used by decompression
2389 code into this routine where it is used - no longer static.
2391 2001-06-14 Gary Thomas <gthomas@redhat.com>
2393 * src/xyzModem.c (xyzModem_get_hdr): More resilient header scan,
2394 improves error handling capability by avoiding "early" aborts.
2396 * src/load.c (do_load): Only check TFTP arguments if networking.
2398 * src/flash.c: Reorg to support new config option (below).
2400 * cdl/redboot.cdl: New option CYGOPT_REDBOOT_FIS used to enable
2401 FIS oriented commands. Other flash commands, e.g. 'fis write',
2402 still exist even if disabled.
2404 * src/main.c (do_dump): 'dump' with no arguments will now "continue"
2405 dumping from where the last command left off.
2407 2001-06-13 Gary Thomas <gthomas@redhat.com>
2409 * src/main.c (cyg_start):
2411 * cdl/redboot.cdl: Support RedBoot without GDB stubs. Later
2412 versions may also support alternate debug environments.
2414 2001-06-12 Gary Thomas <gthomas@redhat.com>
2416 * src/net/net_io.c (net_io_putc): Flush data on '\n'.
2418 2001-06-11 Jonathan Larmour <jlarmour@redhat.com>
2420 * doc/redboot.ebsa285: Remove, obsolete.
2421 * doc/redboot.edb7xxx: Ditto.
2422 * doc/users_guide: Ditto.
2424 2001-06-11 Gary Thomas <gthomas@redhat.com>
2426 * src/flash.c (fis_create): Remove default for "-s" - too dangerous!
2428 * include/net/tftp.h: Make sure packet size is valid (was one byte
2431 * src/net/tftp_client.c (tftp_stream_open): Fix problem when using
2432 Windows (3Com at least) servers.
2434 * src/flash.c: Remove dependency on printf() via user function
2435 in flash drivers, provided at 'init' time.
2437 2001-06-08 Gary Thomas <gthomas@redhat.com>
2439 * src/parse.c (parse): Check for 'argv[]' overruns.
2441 * src/main.c (ZLIB_COMPRESSION_OVERHEAD): Update - based on observations.
2443 * src/net/tftp_client.c:
2446 * include/redboot.h (MAX_ARGV): Minor memory reduction/tightening.
2448 2001-06-08 Jonathan Larmour <jlarmour@redhat.com>
2450 * src/main.c (do_caches): HAL_DCACHE_IS_ENABLED is not present
2451 on all arch's, so conditionalize. Ditto HAL_ICACHE_IS_ENABLED.
2453 2001-06-08 Nick Garnett <nickg@cygnus.co.uk>
2455 * src/main.c (cyg_start): Added code to disable interrupts on all
2456 comm channels before entering GDB. If this is not done then stray
2457 interrupts from an otherwise idle ethernet controller can cause
2458 mayhem in the application.
2460 * src/net/net_io.c (net_io_control): Added code to set static
2461 vector number in disable case as well as enable case.
2462 (net_io_init): Added call to net_io_control() to disable network
2463 interrupts initially. Mainly to get current disable state
2466 2001-06-07 Jonathan Larmour <jlarmour@redhat.com>
2468 * src/load.c (do_load): Ask confirmation of RAM write addr, rather
2469 than automatically denying.
2470 (load_srec_image): Ditto.
2472 * src/io.c (verify_action): Don't ask if we're executing a script.
2474 2001-06-07 Gary Thomas <gthomas@redhat.com>
2476 * src/flash.c (expand_aliases): Allow aliases/macros to be nested.
2478 * src/main.c (set_console_baud_rate):
2479 * src/flash.c (do_alias): Force 'fconfig' updates.
2481 * include/flash_config.h (flash_add_config): New signature.
2482 Parameter 'update' controls whether the Flash is updated.
2484 2001-06-07 <gthomas@redhat.com>
2486 * src/load.c (do_load): Tidy some messages.
2488 * src/flash.c (fis_load): Print image limits (memory range) when
2489 loading a compressed image.
2491 2001-06-06 Mark Salter <msalter@redhat.com>
2493 * include/net/tftp_support.h (TFTP_TIMEOUT_PERIOD): Increase to 5.
2495 * src/net/udp.c (__udp_recvfrom): Initialize server source port
2497 (__udp_recvfrom_handler): Validate server source port before
2500 2001-05-29 Jesper Skov <jskov@redhat.com>
2502 * src/flash.c (fis_load): Fix compiler warning.
2504 2001-05-25 Gary Thomas <gthomas@redhat.com>
2506 * src/main.c (set_console_baud_rate): Couldn't restore baud
2507 rate to default value!
2508 (do_baud_rate): Update baud rate in flash config database.
2510 * src/flash.c (do_flash_config): Add "-i" option to force
2511 initialization of entire configuration database.
2512 (do_alias): Improve handling of existing aliases.
2514 2001-05-24 Gary Thomas <gthomas@redhat.com>
2516 * src/flash.c (get_config):
2517 (do_alias): Be more careful about length of strings accepted.
2519 * cdl/redboot.cdl: Make 'fconfig' data space and strings larger.
2521 * src/main.c (cyg_start): Expand aliases on input commands.
2523 * src/flash.c: Add support for aliases (macros). Also update
2524 support for 'fconfig' strings.
2526 * include/flash_config.h (MAX_STRING_LENGTH): Infer from CDL.
2528 * cdl/redboot.cdl: Add options for [FLASH based] aliases.
2529 Also, 'fconfig' now supports strings.
2531 2001-05-23 Gary Thomas <gthomas@redhat.com>
2533 * src/flash.c: Fixed typo as below.
2535 2001-05-22 Jonathan Larmour <jlarmour@redhat.com>
2537 * cdl/redboot.cdl: Fix typo: CYGSEM_REDBOOT_VARIBLE_BAUD_RATE ->
2538 CYGSEM_REDBOOT_VARIABLE_BAUD_RATE
2539 * src/main.c: Ditto.
2541 2001-05-17 Jonathan Larmour <jlarmour@redhat.com>
2543 * src/net/tftp_client.c: include redboot.h for have_net.
2545 2001-05-17 Dennis Ehlin <Dennis.Ehlin@ecs.ericsson.se>
2546 (with minor mods by jlarmour@redhat.com)
2548 * cdl/redboot.cdl: Split boot script functionality into separate
2549 component. Rename some options not to be specific to FLASH.
2550 Add default boot script option.
2551 * src/main.c (cyg_start): Use default boot script if none provided
2552 in FLASH (or indeed no FLASH). Support renamed CDL options.
2553 * src/io.c (gets): Support renamed CDL options.
2554 (verify_action): Ditto.
2555 * src/flash.c: Ditto.
2556 * include/redboot.h: Ditto.
2558 2001-05-17 Gary Thomas <gthomas@redhat.com>
2560 * src/crc.c (crc32): Remove unused variable/warning.
2562 * src/main.c (set_console_baud_rate, do_baud_rate):
2564 * include/redboot.h:
2565 * cdl/redboot.cdl: Add support for variable, settable, console
2568 * src/net/tftp_client.c (tftp_stream_open): Don't try if no network.
2570 2001-05-10 Gary Thomas <gthomas@redhat.com>
2572 * cdl/redboot.cdl: Can't build RedBoot without virtual vectors.
2574 2001-05-09 Mark Salter <msalter@redhat.com>
2576 * src/main.c (cyg_start): Cast CYGACC_CALL_IF_DELAY_US argument
2577 to a cyg_int32. Needed when sizeof(int) < sizeof(cyg_int32).
2579 2001-05-07 Gary Thomas <gthomas@redhat.com>
2581 * src/net/net_io.c (net_io_isr): Interrupt acknowledgement
2582 should rightly be done by the driver 'delivery' routine, not here.
2584 2001-04-26 Gary Thomas <gthomas@redhat.com>
2586 * src/main.c (do_caches): Display cache state if no arguments.
2588 2001-04-13 Gary Thomas <gthomas@redhat.com>
2590 * src/net/ping.c (do_ping): Tidy message.
2592 2001-04-12 Robin Farine <acnrf@dial.eunet.ch>
2593 2001-04-12 Jonathan Larmour <jlarmour@redhat.com>
2595 * src/io.c (gets): Checks for buffer overflow and returns buflen
2596 if it reaches the end of the buffer.
2597 * src/main.c (cyg_start): Cope with gets() return being the
2600 2001-04-12 Mark Salter <msalter@redhat.com>
2601 2001-04-12 Robin Farine <acnrf@dial.eunet.ch>
2603 * src/net/enet.c (__eth_install_listener): Does not accept a
2604 handler for an eth_type less than 0x800.
2605 (__enet_poll): Only scan the handlers for a frame type greater
2608 2001-04-09 Mark Salter <msalter@redhat.com>
2610 * src/printf.c (_vprintf): Fixed some portability problems where
2611 sizeof(int) != sizeof(long).
2613 2001-04-09 Hugo Tyson <hmt@redhat.com>
2615 * src/main.c (do_cksum): Reduce warning absent posix_crc32().
2617 * src/main.c (cyg_start): Compare ram_end against workspace_end to
2618 see if there is *less* SDRAM than the MLT suggested, and shorten
2619 workspace et al accordingly. This is needed if some SDRAM is
2620 "stolen" for use by eg. a PCI window, and mapped far away.
2622 2001-04-03 Gary Thomas <gthomas@redhat.com>
2624 * src/load.c (do_load): Fix 'raw' loading to check for valid
2625 base address _before_ trying to load anything. Also, some
2626 reorg to make raw vs non-raw cleaner.
2628 2001-04-02 Hugo Tyson <hmt@redhat.com>
2630 * src/flash.c (get_config): Update to support some new syntax:
2631 fco -l -n ... lists showing nicknames instead of titles.
2632 fco -l -n -f ... lists showing both nicknames and titles.
2633 fco nickname ... goes straight to editing only nickname.
2634 fco nick value ... sets nickname to value.
2635 All then follow the usual flow out, including the question
2636 Update RedBoot non-volatile configuration - are you sure (y/n)
2637 as it should be if you made a change.
2639 2001-03-29 Mark Salter <msalter@redhat.com>
2641 * cdl/redboot.cdl (CYGSEM_REDBOOT_FIS_CRC_CHECK): New option to
2642 enable (default) or disable CRC checks in FIS images.
2643 * src/flash.c: Use CYGSEM_REDBOOT_FIS_CRC_CHECK to decide whether
2644 to provide CRC for flash images.
2646 2001-03-28 Mark Salter <msalter@redhat.com>
2648 * src/net/tcp.c (__tcp_handler): Don't send ACK from TIME_WAIT state
2649 unless the FIN comes in again.
2651 2000-03-27 Grant Edwards <grante@visi.com>
2653 * src/net/tcp.c (__tcp_handler): Fixed sequence number bug seen when
2654 doing an active close.
2656 2001-03-23 Gary Thomas <gthomas@redhat.com>
2658 * src/printf.c (_vprintf): Support %u (unsigned) descriptor.
2660 * src/main.c (do_cksum): New command to compute and print a POSIX
2661 checksum on a range of memory.
2663 * src/crc.c (posix_crc32): New routine - matches POSIX algorithm.
2665 2001-03-21 Gary Thomas <gthomas@redhat.com>
2667 * cdl/redboot.cdl: Back off previous change in number of packets.
2668 Also change minimum - below this, network debugging fails.
2670 * src/flash.c (fis_write): New function - support raw writes to FLASH.
2672 * src/net/enet.c (__enet_poll): Try to continue if out of packets.
2677 * include/redboot.h: Keep track of available "user" RAM.
2679 * cdl/redboot.cdl: Reduce default number of [network] packets.
2681 2001-03-20 Gary Thomas <gthomas@redhat.com>
2683 * src/net/net_io.c (net_io_test): Change for new calling convention.
2685 * src/main.c (cyg_start): Idle processing now in I/O routines.
2687 * src/io.c (gets): Move idle processing into this function.
2689 * include/net/net.h (net_io_test): Needs idle parameter.
2691 * include/redboot.h: Change 'idle' functions to take state (idle/not).
2693 2001-03-19 Jesper Skov <jskov@redhat.com>
2695 * cdl/redboot.cdl: Put version.o file in the public lib directory
2696 so other packages can get at it and link redboot.
2698 2001-03-16 Gary Thomas <gthomas@redhat.com>
2700 * src/flash.c (fis_create): Preserve memory [load/exec] address
2701 when making assumptions [rewriting existing image].
2703 2001-03-16 Mark Salter <msalter@redhat.com>
2705 * src/main.c (cyg_start): Restore console channel after returning
2708 2001-03-15 Gary Thomas <gthomas@redhat.com>
2709 2001-03-15 Grant Edwards <grante@visi.com>
2711 * src/net/bootp.c (bootp_handler): Guard against buffer overflow.
2713 2001-03-15 Hugo Tyson <hmt@redhat.com>
2715 * src/flash.c (fis_create): The code was installing a default for
2716 img_size from data_length of an extant record. That's zero, so,
2717 so whilst the flash was erased, no data was copied in!
2718 (fis_list): Added a -d to get the data length field displayed.
2720 2001-03-15 Jesper Skov <jskov@redhat.com>
2722 * src/main.c: Make use of script variable conditional on flash.
2724 * include/redboot.h: Changed type of workspace_end to silence
2727 * src/net/ping.c (do_ping): Fix warning.
2728 * src/net/pktbuf.c (__pktbuf_dump): Fix warnings.
2730 2001-03-14 Gary Thomas <gthomas@redhat.com>
2732 * src/main.c (do_go): Make timeout code consistent with other
2733 versions, e.g. script timeout. Also, allow a script to continue
2734 if it was in effect when 'go' was called and ^C was typed.
2736 * src/flash.c (fis_create): Ask for additional user verification
2737 if any [important] parameters are being assumed [left out by user].
2738 This just adds a level of safety in the presence of assumptions.
2740 2001-03-13 Gary Thomas <gthomas@redhat.com>
2742 * src/main.c: Define 'workspace' based on MLT files, rather than
2743 simply using end of RAM area.
2745 * src/flash.c: Use 'workspace' for scratch area.
2747 * include/redboot.h: Define new variables 'workspace_XXX' to specify
2748 ares used by RedBoot for scratch, etc.
2750 2001-03-12 Jesper Skov <jskov@redhat.com>
2752 * src/decompress.c: Removed Z_BAD_CRC hack. zlib does CRC checking
2755 2001-03-09 Jesper Skov <jskov@redhat.com>
2757 * src/misc_funs.c: Added strncpy.
2758 * include/redboot.h: And declaration.
2760 2001-03-08 Jesper Skov <jskov@redhat.com>
2762 * src/load.c (do_load): Added decompression support.
2763 * src/flash.c (fis_load): Same.
2765 * src/decompress.c: Added. Interfaces the zlib API.
2767 * include/redboot.h: Added some definitions used by decompression
2770 * cdl/redboot.cdl: Added option to control size of zlib bounce
2773 2001-03-05 Jesper Skov <jskov@redhat.com>
2775 * src/main.c (cyg_start): Make sure communication channels are
2778 2001-03-03 Gary Thomas <gthomas@redhat.com>
2780 * src/main.c (do_idle): New function - all 'idle' handling is here.
2782 * src/io.c (mon_read_char_with_timeout): Improve timeout handling
2783 when scanning for a console by applying the minimum possible value
2784 (1 ms) to each channel, accumulating the total value. The previous
2785 algorithm was quite poor on systems where there is no buffering,
2786 i.e. serial channels with no FIFOs, because each channel would
2787 wait for T/N (t = total timeout, N = number channels). This might
2788 possibly have been much longer than the devices could tolerate and
2789 still return valid data.
2791 2001-03-01 Gary Thomas <gthomas@redhat.com>
2793 * src/version.c: Add 'bootstrap' to banner so the world can see
2794 more of what RedBoot's all about.
2796 2001-02-28 Gary Thomas <gthomas@redhat.com>
2798 * include/redboot.h: Fix prioritization of 'init' table entries.
2800 2001-02-26 Gary Thomas <gthomas@redhat.com>
2802 * include/redboot.h (RedBoot_INIT_PRIO): Slight change - avoid
2803 arithmetic which C preprocessor doesn't handle anyway. This also
2804 fixes prioritizing init entries.
2806 * src/flash.c (fis_load): Only load actual data [length] when loading
2809 * cdl/redboot.cdl: Change build rule to always rebuild 'version.o'
2810 whenever the application is relinked. Thus the version string will
2811 always accurately reflect the actual build date/time.
2813 2001-02-22 Hugo Tyson <hmt@redhat.com>
2815 * cdl/redboot.cdl: New config options to control default creation
2816 of various FIS image files. Also opt for a reserved area at the
2817 base of flash, eg. for user's POST or other pre-RedBoot code that
2818 we must not interfere with. This isn't the same as the extant
2819 boot_offset option, so the two are made to work together.
2820 Likewise an offset for the start of a POST-cooperative RedBoot
2821 image, if any; the value is of course platform dependent, not
2822 simply after the first RedBoot image, if there is one.
2824 Clarification: a POST-cooperative RedBoot image is a ROM-start
2825 image that runs at a higher address in ROM, and which omits some
2826 of the hardware initialization because it's already done by
2827 whatever came before. Most targets do not have such a thing;
2828 those that do, it is created by a config export file, not by a new
2829 startup type. A POST Redboot can be tested from a plain ROM
2830 redboot by just calling its entrypoint once it is installed in
2831 flash; eg. by "go 0x50040044" at the RedBoot prompt.
2833 * src/flash.c (fis_init): Create additional optional entries for
2834 o (reserved) reserved area at start, for preboot or post code.
2835 o RedBoot itself now optional
2838 Also initialize their addresses, sizes, accordingly.
2839 The default behaviour is unchanged.
2840 The flash erase is moved to after the fis table init because the
2841 fis table init most conveniently calculates the high water mark of
2842 built-in default objects.
2843 (fis_create): If creating a file which already exists (most likely
2844 one of the preconfigured defaults) pick up Flash address and
2845 length (the two required parameters) from there. They're required
2846 to be the same to it's no loss of generality, and saves typing,
2847 makes the default entries far more useful and so on.
2848 (fis_delete): Skip those entries which were
2849 preconfigured; we want nobody to be able to delete these.
2850 (fis_free): Start searching for free space to list only after the
2851 reserved base area - if there is one.
2852 (fis_find_free): Start searching for free space only after the
2853 reserved base area...
2855 2001-02-22 Jesper Skov <jskov@redhat.com>
2857 * src/flash.c: Added default case to switch statement.
2859 2001-02-20 Gary Thomas <gthomas@redhat.com>
2861 * src/load.c: Remove unnecessary \r from usage message.
2863 * src/printf.c (_vprintf): Ensure CR/LF sequence, not LFCR.
2866 * src/flash.c: Better usage messages [no naked linefeeds].
2868 * src/net/ping.c: Tidy up usage message. Check for reasonable
2871 * src/load.c: Tidy up usage message.
2873 2001-02-16 Nick Garnett <nickg@cygnus.co.uk>
2875 * src/flash.c (load_flash_config): Move setting of config_ok to
2876 true to before we look for a script to run. Otherwise scripts just
2879 2001-02-14 Hugo Tyson <hmt@redhat.com>
2881 * src/load.c (do_load): Wrap the help message at < 80 cols and fix
2884 2001-02-13 Hugo Tyson <hmt@redhat.com>
2886 * src/flash.c: Fix token/string pasting thinko: ## operators are
2887 not needed and do confuse some compilers.
2889 2001-02-12 Jesper Skov <jskov@redhat.com>
2891 * src/main.c: Use CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL instead
2892 of CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL.
2894 2001-02-11 Gary Thomas <gthomas@redhat.com>
2896 * src/net/ping.c (do_ping): Accomodate new MS_TICKS scheme.
2898 2001-02-09 Grant Edwards <grante@visi.com>
2900 * include/net/net.h (MS_TICKS_DELAY): New macro, different from
2901 MS_TICKS() so that MS_TICKS() gets the current tick count, and
2902 MS_TICKS_DELAY is used in a delay loop to actually do a delay.
2904 * src/ticks.c (get_ms_ticks): New function imlementing rework of
2907 * src/net/net_io.c (net_io_getc): Use MS_TICKS_DELAY() instead of
2908 CYGACC_CALL_IF_DELAY_US() directly
2909 (net_io_getc_timeout): Likewise
2911 * src/net/udp.c (__udp_recvfrom): MS_TICKS -> MS_TICKS_DELAY
2912 * src/net/bootp.c (__bootp_find_local_ip): Likewise
2914 2001-02-09 Jonathan Larmour <jlarmour@redhat.com>
2915 2001-02-09 Grant Edwards <grante@visi.com>
2917 * src/net/net_io.c (net_io_getc_nonblock): Silence compiler warning
2919 2001-01-31 Gary Thomas <gthomas@redhat.com>
2921 * include/redboot.h:
2923 * src/flash.c: Use new CRC functions.
2925 * src/crc.c: New file - supports 16 and 32 bit CRC functions.
2927 2001-01-31 Grant Edwards <grante@visi.com>
2929 * src/net/net_io.c (net_io_test): Use new idle function to
2930 poll for incoming network connections. Removes #if requirements
2931 from the main CLI loop.
2933 * src/main.c (cyg_start):
2934 * include/redboot.h (RedBoot_idle): Add new tables to support
2935 user defined functions to be called when idle (during command input).
2937 2001-01-31 Gary Thomas <gthomas@redhat.com>
2939 * include/redboot.h:
2940 * src/main.c (cyg_start):
2941 * src/net/net_io.c (net_io_getc_nonblock): Forgo TELNET escape
2942 processing if GDB is active (requires 8-bit clean connection).
2944 2001-01-31 Nick Garnett <nickg@cygnus.co.uk>
2946 * src/syscall.c (__do_syscall):
2947 Added SYS_meminfo syscall.
2948 This is used by the MIPS3264 GNUPro runtime.
2950 * src/net/net_io.c (net_io_getc_nonblock):
2951 Telnet escape processing temporarily disabled because it does not
2954 2001-01-31 Grant Edwards <grante@visi.com>
2956 * include/net/net.h:
2957 * src/net/enet.c (__eth_install_listener, __eth_remove_listener):
2958 New functions - allow user registerable callout to handle
2959 non-standard ethernet packets.
2961 2001-01-30 Gary Thomas <gthomas@redhat.com>
2963 * src/main.c (do_reset): HAL macro name changed.
2965 * src/net/ping.c (do_ping): Remove warning.
2967 * src/main.c (do_help): Only display help for selected topic
2970 2001-01-24 Jonathan Larmour <jlarmour@redhat.com>
2972 * src/main.c (cyg_start): Rework last change to use more generic
2973 HAL_MEM_REAL_REGION_TOP macro.
2975 2001-01-24 Hugo Tyson <hmt@redhat.com>
2977 * src/main.c (cyg_start): Take notice of the hal_dram_size
2978 variable (only supported on ARMs) to set ram_end. The symbols
2979 given by the CYGMEM_REGION_ram symbols are minima or defaults.
2981 2001-01-22 Gary Thomas <gthomas@redhat.com>
2983 * src/net/inet_addr.c (inet_aton): Fix byte order on big endian
2986 * src/net/icmp.c (__icmp_install_listener):
2987 (__icmp_remove_listener): New functions.
2988 (__icmp_handler): Call listener for unhandled packets.
2990 * include/net/net.h: Add handler for ICMP [incoming] data.
2993 * src/net/ping.c: New CLI command - ping a host.
2995 2001-01-18 Gary Thomas <gthomas@redhat.com>
2997 * include/net/net.h:
2998 * src/net/pktbuf.c (__pktbuf_alloc):
2999 * src/net/tcp.c (__tcp_listen): Remove obsolete code regarding
3000 'eth_hdr' stored with packet buffer.
3002 2001-01-17 Hugo Tyson <hmt@redhat.com>
3004 * src/io.c (dump_buf_with_offset): Fix previous change so it
3005 compiles; variable names used not same as parm names in func.
3007 2001-01-16 Gary Thomas <gthomas@redhat.com>
3009 * src/xyzModem.c: Improved debug support - now allows debug
3010 trace to be kept in memory and dumped at completion.
3012 * src/io.c (vdump_buf_with_offset): New function which allows
3013 dumping via any generic "print" function.
3015 * include/redboot.h: Export new print/dump functions.
3017 2001-01-08 Gary Thomas <gthomas@redhat.com>
3019 * src/net/arp.c: Add special case handling for ARP(self).
3021 2001-01-03 Gary Thomas <gthomas@redhat.com>
3023 * src/main.c (do_version): Update copyright for 2001.
3025 * src/io.c (gets): Use timeout provided [was hardcoded to 50ms!]
3027 2000-12-21 Mark Salter <msalter@redhat.com>
3029 * src/flash.c (fis_init): Use CYGBLD_REDBOOT_FLASH_BOOT_OFFSET to
3030 decide where to create default images.
3032 * cdl/redboot.cdl (CYGBLD_REDBOOT_FLASH_BOOT_OFFSET): Use this
3033 to define offset from start of FLASH to start of boot image.
3035 2000-12-15 Gary Thomas <gthomas@redhat.com>
3037 * src/version.c: Define GDB stubs version here as well. Also
3038 add warnings and informationabout how all of this works.
3040 2000-12-13 Gary Thomas <gthomas@redhat.com>
3042 * src/version.c: New file.
3045 * cdl/redboot.cdl: Reorg - main.c is now treated like all other
3046 files. New file 'version.c' holds the special stuff used at
3047 build time to get interesting version information into the
3050 2000-12-12 Gary Thomas <gthomas@redhat.com>
3052 * src/flash.c (get_config): Increase size of input buffer used
3053 during 'fconfig' command.
3055 2000-12-11 Gary Thomas <gthomas@redhat.com>
3057 * src/main.c: Change in HAL layering - need to include proper
3058 file to get 'reset' definition.
3060 2000-12-08 Jonathan Larmour <jlarmour@redhat.com>
3062 * cdl/redboot.cdl: Tweak CYGPKG_REDBOOT_MAX_CMD_LINE description.
3064 2000-12-07 Gary Thomas <gthomas@redhat.com>
3066 * src/main.c (cyg_start): Make CLI command buffer static.
3067 (do_reset): New command - reset platform from CLI.
3069 * src/io.c (dump_buf_with_offset): Change signature for
3070 more generic export.
3072 * include/redboot.h: Export 'dump_buf_with_offset' function.
3074 * cdl/redboot.cdl: Define CLI command buffer - static with
3075 user specified length - to accomodate some environments which
3076 may want excrutiatingly long commands.
3078 2000-12-07 Jesper Skov <jskov@redhat.com>
3080 * src/misc_funs.c (strlen): NULL ptr string has length 0.
3082 * src/load.c (load_srec_image): Refuse to load data to a location
3085 * src/flash.c (fis_create): Hack around another MIPS compiler bug.
3087 2000-12-06 Jesper Skov <jskov@redhat.com>
3089 * src/load.c: Suppress verbosity when using xyz modem download.
3091 * src/main.c: Fix warnings.
3092 * src/load.c: Fix warnings.
3094 * src/parse.c (parse_num): Hack around MIPS compiler bug.
3096 2000-12-01 Gary Thomas <gthomas@redhat.com>
3099 * src/xyzModem.c (xyzModem_stream_close): New function - tidy up
3100 and print some statistics about the download. Better handling
3101 of CAN (cancel) function.
3103 * src/load.c (load_srec_image): Consume all data, not just to
3104 final record. This makes Ymodem happier. Also, call xyzModem_close().
3106 2000-11-30 Gary Thomas <gthomas@redhat.com>
3108 * src/flash.c (fis_create): Add new option '-n' which suppresses
3109 the copy from RAM to FLASH. Used to simply update the FIS directory.
3110 Also misc printf() changes - add 0x everywhere hex is used.
3112 * src/net/net_io.c (_net_io_getc_nonblock): Abstract function.
3113 (net_io_getc_nonblock): Add minimal handling of telnet escape
3114 sequences - required to properly handle ^C.
3116 * src/main.c (cyg_start): Support network connection during
3117 boot/startup script. Use new codes from 'gets()'.
3119 * src/flash.c (fis_create): Cleanup to remove warnings.
3121 * include/net/net.h (BSPLOG): Update for new start/end_console().
3124 * include/redboot.h (_GETS_xxx): Define result codes from
3127 2000-11-28 Gary Thomas <gthomas@redhat.com>
3129 * src/parse.c (parse): Support escaped quote marks inside of
3130 quoted string. "ab\"c\"" is 'ab"c"'.
3132 * src/net/tftp_client.c (tftp_stream_open): Read first datum from
3133 file during open to ensure that errors are reported.
3135 2000-11-27 Drew Moseley <dmoseley@redhat.com>
3137 * src/main.c: Switch to an application stack before running a
3138 user-downloaded app.
3140 2000-11-20 Gary Thomas <gthomas@redhat.com>
3142 * src/flash.c: Use CYGBLD_REDBOOT_MIN_IMAGE_SIZE.
3144 * cdl/redboot.cdl(CYGBLD_REDBOOT_MIN_IMAGE_SIZE): Define this to
3145 be the minimum size allowed for FIS images.
3147 * src/xyzModem.c: Tidy up debug support. Fix some synch problems
3148 so that X/Y modem protocols now work properly with Windows/Hyperterm.
3150 2000-11-20 Mark Salter <msalter@redhat.com>
3152 * src/net/net_io.c (net_io_flush): Add __tcp_drain to make sure
3153 everything is successfully sent out.
3154 (net_io_control): Call net_io_flush for __COMMCTL_FLUSH_OUTPUT.
3156 2000-11-19 Gary Thomas <gthomas@redhat.com>
3158 * src/flash.c (fis_create): Print more info when length check fails.
3160 * src/main.c: Split version display into separate command.
3162 2000-11-06 Mark Salter <msalter@redhat.com>
3164 * src/syscall.c: New file. Common handling for bsp syscalls.
3166 * cdl/redboot.cdl: Add CYGSEM_REDBOOT_BSP_SYSCALLS option to
3167 turn on BSP syscall support.
3169 2000-11-06 Jesper Skov <jskov@redhat.com>
3171 * src/net/net_io.c (net_io_flush): Clear interrupt flag before
3174 2000-10-30 Gary Thomas <gthomas@redhat.com>
3180 * include/net/net.h: Minor cleanups to remove warnings.
3182 * cdl/redboot.cdl: Support threads in all but RAM mode. Note:
3183 this should allow thread support in ROM and FLOPPY startup mode.
3185 2000-10-27 Gary Thomas <gthomas@redhat.com>
3187 * src/xyzModem.c (xyzModem_stream_open): Add extra delay during
3188 startup - to give the sender time to get started.
3190 * src/flash.c (fis_load): Add "-c" option to show checksum of
3191 image after loading.
3192 (fis_list): Add "-c" to display stored checksums.
3194 2000-10-26 Mark Salter <msalter@redhat.com>
3196 * src/load.c (do_load): Move some local variable declarations
3197 needed by xyzmodem support so they can be used when redboot
3198 networking not enabled.
3200 2000-10-26 Gary Thomas <gthomas@redhat.com>
3202 * cdl/redboot.cdl: Improve CDL so CYGSEM_HAL_ROM_MONITOR can
3203 be correctly infered (when building ROM versions).
3206 * src/load.c: Add support for xyzModem serial download.
3209 * src/xyzModem.c: New file(s).
3211 2000-10-24 Gary Thomas <gthomas@redhat.com>
3214 * cdl/redboot.cdl: Add new option which supports keeping all
3215 important RedBoot data "locked" in FLASH.
3217 2000-10-23 Gary Thomas <gthomas@redhat.com>
3219 * src/flash.c (fis_lookup): New exported function.
3220 (fis_load): Add memory load option. Also checksum data after copy.
3222 * include/fis.h: Add 'data_length' member.
3223 Prototype for 'fis_lookup()'.
3225 * src/main.c (bist): New [weak] function. Provide hook for
3226 platform specific "builtin tests". This will be overridden by
3227 platform based functions.
3230 * src/main.c (cyg_start):
3231 * src/flash.c: Script timeout now has a configurable resolution.
3233 2000-10-21 Gary Thomas <gthomas@redhat.com>
3235 * src/net/eth_drv.c: Removed obsolete file - now provided by
3236 standard IO/ETH package.
3238 2000-10-20 Gary Thomas <gthomas@redhat.com>
3240 * src/net/pktbuf.c: Diagnostc - add buffer [list] dumper.
3242 * src/net/enet.c: Diagnostic - dump when run out of buffers.
3244 * src/flash.c: Make sure RedBoot flash image size meets
3245 certain minimums - currently at least 128K.
3247 2000-10-19 Gary Thomas <gthomas@redhat.com>
3249 * cdl/redboot.cdl: Add dependency on 'vectors.o'.
3251 * include/redboot.h:
3252 * src/misc_funs.c (strcpy, memcmp):
3253 Make function signature [prototype] conform to standards.
3254 (memmove, memset): Remove.
3256 2000-10-18 Gary Thomas <gthomas@redhat.com>
3258 * cdl/redboot.cdl: Improve dependency checking in make rules.
3260 2000-10-17 Gary Thomas <gthomas@redhat.com>
3262 * src/flash.c (fis_create): Add new "-s" option to support padded
3263 images (data size not the same as image size in FLASH).
3265 * include/fis.h: New file - make structure available for export.
3267 * src/parse.c: New file.
3269 * include/redboot.h:
3271 * cdl/redboot.cdl: Split command line parsing functions to separate
3274 2000-10-05 Gary Thomas <gthomas@redhat.com>
3276 * src/net/net_io.c (net_io_revert_console):
3277 (net_io_assume_console):
3278 * src/main.c (cyg_start):
3280 * include/redboot.h: Add notion of "console_echo" so that telnet
3281 connections don't echo doubly. Note: there is no telnet negotiation
3282 at this time, so some things are still not perfect.
3284 2000-09-17 Gary Thomas <gthomas@redhat.com>
3286 * src/main.c: Display platform/cpu identification strings if available.
3288 * cdl/redboot.cdl: Improve CDL to include thread support if
3289 built in ROM mode. Also, better handling of network option.
3291 2000-09-15 Gary Thomas <gthomas@redhat.com>
3293 * src/flash.c (fis_create): Length (and flash address) must match
3294 exactly when replacing an image.
3295 Only warn of invalid memory addresses, not fail.
3297 2000-09-13 Gary Thomas <gthomas@redhat.com>
3299 * src/load.c: Better handling of bad data / checksum errors.
3301 * src/flash.c: Handle case of replacing an image, even if no flash
3304 * include/net/tftp_support.h: Modify timeouts, etc, for better response.
3306 2000-09-12 Gary Thomas <gthomas@redhat.com>
3308 * src/io.c (mon_read_char_with_timeout): Only "select" a console
3309 when real data (non-zero) arrives.
3311 2000-09-10 Gary Thomas <gthomas@redhat.com>
3314 * src/flash.c: Remove warnings if built without networking.
3316 2000-09-11 Jonathan Larmour <jlarmour@redhat.com>
3318 * include/redboot.h (_RedBoot_init): Define tables entries as structs
3319 with one member rather than just func ptrs, to enforce alignment rules
3320 * src/main.c (cyg_start): Change to use struct init_tab_entry per above
3322 2000-09-07 Andrew Lunn <andrew.lunn@ascom.ch>
3324 * src/load.c, include/redboot.h: renamed the getc functions to
3325 redboot_getc and made them global so custom boot loaders can use
3328 2000-09-06 Gary Thomas <gthomas@redhat.com>
3330 * doc/users_guide: Add info about region locking/unlocking.
3332 2000-09-04 Jonathan Larmour <jlarmour@redhat.com>
3334 * include/flash_config.h (struct config_option): Apply
3336 * include/redboot.h: Ditto for struct cmd and void_fun_ptr
3338 2000-09-01 Hugo Tyson <hmt@cygnus.co.uk>
3340 * src/flash.c: CYGHWR_IO_FLASH_BLOCK_LOCKING is an interface, so
3341 it's always defined; look for > 0 instead.
3343 2000-08-28 Gary Thomas <gthomas@redhat.com>
3345 * src/flash.c: Support block locking if available.
3347 2000-08-25 Gary Thomas <gthomas@redhat.com>
3349 * src/load.c (getc): Fix edge condition when file is an exact multiple
3350 of internal buffer size (got stuck at end of file).
3352 2000-08-24 Gary Thomas <gthomas@redhat.com>
3354 * src/load.c: Fix some prints. Also use command line parse functions
3355 instead of ad hoc code.
3357 * src/flash.c: Better configuration control.
3359 2000-08-23 Gary Thomas <gthomas@redhat.com>
3361 * src/load.c (do_load): Use paramterized command line parser.
3363 * include/redboot.h:
3364 * src/main.c (scan_opts): Better support for simple flags.
3366 * src/flash.c: Add "-l" (list only) option to 'fconfig'.
3368 * src/net/net_io.c: Add handling of ^C via network connections.
3370 * include/flash_config.h:
3372 * include/redboot.h: Fully qualify table entries (for proper
3373 sorting and order control).
3375 * cdl/redboot.cdl: Update requirements to support ^C and thread
3378 2000-08-21 Gary Thomas <gthomas@redhat.com>
3381 * src/net/pktbuf.c (MAX_PKTBUF): Add CDL configury for number
3382 of network packet buffers.
3384 * src/net/net_io.c: Change config param names to enforce
3385 layout (config fields are sorted by name).
3387 * src/load.c: Adapt to changes in 'parse_num'.
3389 * src/main.c (parse_num): Now takes additional arguments which
3390 allow a delimiter set and returning the end of number string.
3392 * include/redboot.h: Augment 'parse_num' to handle strings
3393 with more than one number, delimiters, etc.
3396 * include/flash_config.h: Add support for ethernet hardware
3399 2000-08-20 Gary Thomas <gthomas@redhat.com>
3401 * include/flash_config.h: New file - configuration data layout.
3403 * src/flash.c: Restructure config data to be 100% table driven.
3405 * include/redboot.h:
3406 * include/net/bootp.h:
3407 * include/net/net.h:
3408 * include/net/tftp.h:
3409 * include/net/tftp_support.h: New location.
3417 * src/net/inet_addr.c:
3422 * src/net/tftp_client.c:
3424 * src/net/udp.c: Include files moved.
3430 * src/net/tftp_support.h: Files moved.
3432 * cdl/redboot.cdl: Move .h files to include directory.
3434 2000-08-16 Gary Thomas <gthomas@redhat.com>
3436 * src/io.c (dump_buf_with_offset): Clean up warnings.
3438 * src/net/net_io.c: Cosmetic - clean up TCP debug code.
3440 * src/main.c (cmd_search): Search for ambiguous commands was
3441 wrong since layout change (only know the limits, don't rely
3444 2000-08-14 Gary Thomas <gthomas@redhat.com>
3446 * cdl/redboot.cdl: Support for plugin (table driven) modules.
3448 * src/flash.c: Lots of warning cleanups.
3450 * src/io.c: Fix some flash configury.
3452 * src/load.c: Make internal buffer unsigned so 'raw' mode
3453 works properly. Also, support as a plugin command.
3456 * src/redboot.h: Add support for "tableized" entries. In
3457 particular, commands and platform initializations can now
3458 be handled via anonymous tables.
3460 * src/net/net.h: Update for changes in network init setup.
3462 * src/net/net_io.c: Move network initialization here.
3464 2000-08-07 Gary Thomas <gthomas@redhat.com>
3468 * src/main.c: Cosmetic [warnings] cleanups.
3470 2000-08-03 Gary Thomas <gthomas@redhat.com>
3472 * cdl/redboot.cdl: Ethernet driver now comes from common
3475 * src/io.c (verify_action): Force normal I/O (no script)
3478 * src/main.c: Add script timeout to allow user to abort before
3479 script is run on boot.
3481 * src/printf.c: '%p' implies zero filled long format.
3484 * src/redboot.h: Add TCP socket and script timeouts.
3486 * src/net/net_io.c: TCP socket for debug is now configurable
3487 and settable in FLASH. Better handling of GDB $O packets (less
3488 latency). Additional small changes to support network debug.
3490 2000-07-30 Gary Thomas <gthomas@redhat.com>
3492 * src/flash.c: Make config data safer with a 'key'. Also, don't
3493 erase the config data when doing a full FIS initialization.
3494 Finally, ensure that the commands which erase data are not going
3495 to erase the current code!
3497 * src/io.c (gets): Treat 'delete' char like ^H.
3499 2000-07-30 Gary Thomas <gthomas@redhat.com>
3501 * cdl/redboot.cdl: Add option for FLASH based configuration data.
3503 * src/flash.c: Lots of changes to support FLASH based configuration
3504 data, including routines to read and maintain this data.
3507 * src/redboot.h: Many changes for FLASH configuration data support.
3508 Also split out table driven option/parameter parsing.
3510 * src/io.c: Allow ^C to abort input. Fix timeout stuff to
3511 work better while waiting for console to be discovered.
3512 Add support for boot-time script.
3514 * src/load.c: Use new IP/INET address functions.
3516 * src/net/bootp.c: Remove force of net_debug and result print.
3518 * src/net/inet_addr.c: IP/INET address conversion routines.
3520 * src/net/net.h: Make 'net_debug' be boolean. Add IP/INET
3521 address conversion routine prototypes.
3523 2000-07-29 Gary Thomas <gthomas@redhat.com>
3525 * src/flash.c: Misc little cleanups.
3527 * src/load.c: Print address range of loaded image/file.
3529 2000-07-29 Gary Thomas <gthomas@redhat.com>
3531 * src/flash.c: Add 'load' command which loads an image into RAM.
3533 * src/load.c: Add '-raw' switch to allow loading a file without
3534 trying to interpret it as an executable image.
3537 * src/redboot.h: Make command parsing functions public.
3539 2000-07-29 Gary Thomas <gthomas@redhat.com>
3541 * src/net/bootp.c: Turn on network debug during address discovery.
3542 (Note: this will be optional/configurable in the future).
3544 * src/net/eth_drv.c: Use 'net_debug' for diagnostic dumps.
3546 * src/redboot.h: Prototypes for new functions.
3548 * src/printf.c (vprintf): New function.
3550 * src/io.c (verify_action): New function.
3552 * cdl/redboot.cdl: Make FLASH support optional.
3554 * src/flash.c: New file - implements simple FLASH Image System.
3556 * src/misc_funs.c (memset):
3557 (strcpy): New functions.
3559 * src/main.c: Split flash functions to separate file.
3561 2000-07-28 Gary Thomas <gthomas@redhat.com>
3563 * src/load.c: Add "-v" switch to turn on a little 'spinner' while
3564 downloading to provide some feedback to the user.
3566 * src/printf.c: Use only RedBoot I/O to allow console to "float."
3568 * src/net/bootp.c: Force hardware type to be "original" ethernet.
3574 * src/net/net_io.c: Support "floating" console, chosen from
3575 available serial I/O channels.
3577 2000-07-26 Gary Thomas <gthomas@redhat.com>
3579 * src/net/tftp_support.h:
3580 * src/net/tftp_client.c: Add new stream oriented functions.
3582 * src/net/net.h: More prototypes.
3584 * src/redboot.h: Move support functions here. Update interfaces.
3586 * src/printf.c: Support %l (long) qualifier.
3588 * src/misc_funs.c: Misc cleanups. Add case insensitive routines.
3590 * src/main.c: FLASH functionality is now in it's own package.
3592 * src/net/eth_drv.c:
3593 * include/eth_drv.h: Update to new interface conventions.
3595 * cdl/redboot.cdl: Changes for new files(s).
3597 2000-07-24 Gary Thomas <gthomas@redhat.com>
3599 * src/net/inet_addr.c: New file. Support for IP address parsing.
3601 * src/load.c: New file. Split out download functionality.
3602 Restructured to support download via stream (zmodem).
3604 * src/misc_funs.c: Add case insensitive compare functions.
3606 2000-07-22 Gary Thomas <gthomas@redhat.com>
3608 * src/main.c (do_load): Add proper argument parsing.
3610 2000-07-21 Gary Thomas <gthomas@redhat.com>
3612 * src/io.c (gets): Treat "\n\r" and "\r\n" as exactluy "\n". This
3613 solves problems of simply ignoring "\n" on terminals which can only
3614 send that character while still working with telnet/TCP connections.
3616 * src/net/net_io.c: New file. Supports local I/O via a TCP channel.
3617 Additional changes to support TCP channel for GDB debug I/O.
3619 * cdl/redboot.cdl: Clean up dependencies. Extend network configuration.
3621 * src/io.c (gets): Ignore blank lines which contain only '\n'.
3622 This works fine for terminal I/O since they will have '\r' and it
3623 allows reasonable handling when connected via telnet/TCP.
3625 * src/main.c: Better support for network connections.
3626 Also some reworking of FLASH routines [will be moved later].
3627 More error checking and better error messages in download code.
3629 * src/net/net.h: Reorder 'tcp_socket' fields to enforce proper
3630 alignment of data buffer [needs to be on dword boundary].
3632 * src/net/tcp.c: Many small changes getting 'endian'-ness correct.
3634 * src/net/tftp_client.c (tftp_error): New function - returns a
3635 string representing the error code [for humans].
3637 2000-07-16 Gary Thomas <gthomas@redhat.com>
3639 * cdl/redboot.cdl: Make network support configurable/optional.
3641 * src/io.c: Add command line input function.
3643 * src/main.c: Lots of new functions, command line processing, etc.
3645 * src/misc_funs.c (strcmp, strncmp): New function(s).
3647 * src/printf.c: Add support for "%p" (pointers).
3649 * src/redboot.h: Expand, move global vars, here, etc.
3651 * src/net/eth_drv.c: Make quieter, change "no interface" string.
3653 * src/net/net.h (__LITTLE_ENDIAN__): Avoid redefining this on platforms
3654 where GCC does it for us.
3656 2000-07-12 Gary Thomas <gthomas@redhat.com>
3658 * cdl/redboot.cdl: New file(s).
3660 //===========================================================================
3661 //####ECOSGPLCOPYRIGHTBEGIN####
3662 // -------------------------------------------
3663 // This file is part of eCos, the Embedded Configurable Operating System.
3664 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
3666 // eCos is free software; you can redistribute it and/or modify it under
3667 // the terms of the GNU General Public License as published by the Free
3668 // Software Foundation; either version 2 or (at your option) any later version.
3670 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
3671 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
3672 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3673 // for more details.
3675 // You should have received a copy of the GNU General Public License along
3676 // with eCos; if not, write to the Free Software Foundation, Inc.,
3677 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
3679 // As a special exception, if other files instantiate templates or use macros
3680 // or inline functions from this file, or you compile this file and link it
3681 // with other works to produce a work based on this file, this file does not
3682 // by itself cause the resulting work to be covered by the GNU General Public
3683 // License. However the source code for this file must still be made available
3684 // in accordance with section (3) of the GNU General Public License.
3686 // This exception does not invalidate any other reasons why a work based on
3687 // this file might be covered by the GNU General Public License.
3689 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
3690 // at http://sources.redhat.com/ecos/ecos-license/
3691 // -------------------------------------------
3692 //####ECOSGPLCOPYRIGHTEND####
3693 //===========================================================================