RedBoot commands
Posted: Fri May 14, 2010 5:03 pm
RedBoot user manual is available here http://ecos.sourceware.org/docs-latest/redboot/startup-mode.html {14.05.2010}
help [ command] default: all commands
baudrate [-b rate]
channel [-1 | channel_number]
-1 Reset the console channel
channel_number Select a channel (0,1,...)
ip_address [-b] [-l local_IP_address [/netmask_length] ] [-h server_IP_address] [-d DNS_server_IP_address]
-b Boolean: Obtain an IP address using BOOTP or DHCP. default: don't use BOOTP/DHCP
ping [-v ] [-i local_IP_address] [-l length] [-n count] [-t timeout] [-r rate] {-h server_IP_address}
-v Boolean: Be verbose, displaying information about each packet sent. default:quiet
load [-v ] [-d ] [-r ] [-m trasfer_type ] [-h server_IP_address] [-f location] [-b location] [-c channel] [file_name]
-m tftp Transfer data via the network using TFTP protocol.
-m http Transfer data via the network using HTTP protocol.
-m xmodem Transfer data using X-modem protocol.
-m ymodem Transfer data using Y-modem protocol.
-m disk Transfer data from a local disk.
-m file Transfer data from a local filesystem such as JFFS2 or FAT.
cache [on | off]
cksum {-b location} {-l length}
dump {-b location} [-l length] [-s] [-1 | -2 | -4]
-b location Location in memory for start of data.
-l length Length of data default: 32
-s Format data using Motorola S-records.
-1 | -2 | -4 Access one byte (8 bits), two bytes (16 bits), or one word (32 bits) at a time. Only the least significant 8 bits of the pattern will be used. default: -1 (one byte)
iopeek [-b location] [-1 | -2 | -4]
see dump for parameter explaination
iopoke [-b location] [-1 | -2 | -4] [-v value]
see dump for parameter explaination
mcmp {-s location1} {-d location1} {-l length} [-1 | -2 | -4]
mcopy {-s source} {-d destination} {-l length} [-1 | -2 | -4]
mfill {-b location} {-l length} {-p value} [-1 | -2 | -4]
gunzip {-s source} {-d destination}
-s location1 Memory address: Location of GZIP compressed data to uncompress. default:Value set by last load or fis load command.
-d location2 Memory address: Destination to write uncompressed data to.
go [-w timeout] [-c] [-n] [ start_address]
-w timeout Number: How long to wait before starting execution. default: 0
-c Boolean: Go with caches enabled. default: caches off
-n Boolean: Go with network interface stopped. default: network enabled
start_address Number: Address in memory to begin execution. default: Value set by last load or fis load command.
exec [-w timeout] [-r ramdisk_address] [-s ramdisk_length] [-b load_address {-l load_length} ] [-c kernel_command_line] [ entry_point]
-w timeout Number: Time to wait before starting execution. default: 0
-r ramdisk_address Number: Address in memory of "initrd"-style ramdisk - passed to Linux kernel.
-s ramdisk_length Number: Length of ramdisk image - passed to Linux kernel.
-b load_address Number: Address in memory of the Linux kernel image. default:Value set by load or fis load
-l load_length Number: Length of Linux kernel image.
-c kernel_command_line String: Command line to pass to the Linux kernel.
-x Boot kernel with endianess opposite of RedBoot endianess. default: Boot kernel with same endianess as RedBoot
entry_address Number: Starting address for Linux kernel execution default: Implied by architecture
fis load [-b load address] [-c ] [-d ] [name]
-b Number: Address the image should be loaded to. Executable images normally load at the location to which the file was linked. This option allows the image to be loaded to a specific memory location, possibly overriding any assumed location. If not specified, the address associated with the image in the FIS directory will be used.
-c Compute and print the checksum of the image data after it has been loaded into memory.
-d Decompress gzipped image while copying it from flash to RAM.
name String: The name of the file, as shown in the FIS directory.