p The arguments are as follows: l -tag -width indent t Fl A No ( arm Ns | Ns mips Ns | Ns mips64 Ns | Ns powerpc ) Defines the architecture. This is required. t Fl a Ar address Sets the image load address. This is an integer between 0 and ULONG_MAX. This is required. t Fl C No ( bz2 Ns | Ns gz Ns | Ns lzma Ns | Ns lzo Ns | Ns none ) Defines the compression. The default is .Qq none . t Fl E Ar address Define the entry point. This is an integer between 0 and ULONG_MAX. This option is the same as .Fl e but it inverts the bytes to convert the 32 bit integer from little to big endian (or vice versa). If .Fl E or .Fl e are not set, the entry point defaults to the image load address
q Fl a . t Fl e Ar address Define the entry point. This is an integer between 0 and ULONG_MAX. If .Fl E or .Fl e are not set, the entry point defaults to the image load address
q Fl a . t Fl h Display the usage and exit. t Fl m Ar magic Set the magic. This is an integer between 0 and ULONG_MAX. The default is .Qq 0x27051956 . t Fl n Ar image Defines the image name. This is required. t Fl O No ( freebsd Ns | Ns linux Ns | Ns netbsd Ns | Ns openbsd ) Defines the operating system type. The default OS name is .Qq netbsd . t Fl T No ( fs Ns | Ns kernel Ns | Ns ramdisk Ns | Ns standalone ) Defines the image type. This is required. .El
p
The required
.Ar source
argument is the filename of the kernel that is read.
The required
.Ar destination
argument is the filename of the image file that is created.
.Sh RETURN VALUES
.Nm
returns 1 on failure to read the kernel,
generate a header, or create the image.
.Sh EXAMPLES
Before the image is written, the header is displayed to standard out;
for example:
d -literal -offset 0 magic: 0x27051956
time: Tue Jun 7 15:58:41 2011
size: 2482203
load addr: 0x00020000
entry point: 0x00020000
data crc: 0x700fdf53
os: 2 (netbsd)
arch: 7 (powerpc)
type: 2 (kernel)
comp: 1 (gz)
name: NetBSD/evbppc 5.99.52 (INSTALL_PMPPC)
header crc: 0x94ea96cf
.Ed
TODO: check the name line above
.Sh FILES
.Sh SEE ALSO
.Qq Das U-Boot - the Universal Boot Loader
a http://www.denx.de/wiki/U-Boot/
.Sh STANDARDS
.Sh HISTORY
The
.Nm
command first appeared in
.Nx 6.0 .
.Sh AUTHORS
The
.Nm
utility was originally written by Jared D. McNeill.
This manual page was written by Jeremy C. Reed.
.Sh CAVEATS
.Sh BUGS
.Sh SECURITY CONSIDERATIONS