ryo
04dc727438
arm64_image_header->image_size must be included size of arm64_image_header.
...
with -u option, image_size should be binary (file) size (header included).
without -u option, image_size should be binary (file) size + header size.
2020-02-08 13:27:00 +00:00
martin
c309bf7aef
Avoid mixing signed/unsigned arguments to the ? operator.
2020-01-01 11:48:36 +00:00
skrll
514a9e5836
Adjust image size appropriately when using update_image
...
OK jmcneill
2020-01-01 10:35:10 +00:00
wiz
cb84b950e7
Sync usage with man page, merge single letter options.
...
Limit program usage line length.
2019-12-07 12:34:17 +00:00
jmcneill
7c7ebd9b6b
Fix signed/unsigned comparison
2019-12-04 14:09:47 +00:00
jmcneill
bd2672724f
Add -u flag for updating headers in place.
2019-12-04 11:21:34 +00:00
jmcneill
95031fc0dd
Fix tools build
2018-02-04 17:33:34 +00:00
jmcneill
4c511e4691
Add support for writing "AArch64 Linux kernel image" format images.
...
These images begin with a 64-byte header that includes a load offset,
image size, some flags, and a small (2 word) area at the start for
executable code.
These images are compatible with U-Boot's "booti" command, and can be
used to make U-Boot relocate our kernel to a 2MB aligned base address.
After relocation, U-Boot will jump to the code at the beginning of the
header, where we encode a relative branch forward instruction to branch
to the beginning of the kernel at offset +0x40.
2018-02-04 15:44:51 +00:00
jmcneill
53aff4d5c0
add missing break after -m case
2017-11-05 11:07:32 +00:00
jmcneill
28b7028865
add sh arch
2017-09-29 21:18:28 +00:00
wiz
edd62e729c
Remove unnecessary macros. Use standard headers.
2017-07-15 12:10:31 +00:00
jmcneill
c3934401dc
Add support for "kernel_noload" image types. This type is the same as the
...
"kernel" type, except it can run from any load address.
2017-07-15 11:13:08 +00:00
jmcneill
dfe9578fbd
Load address is not required for "ramdisk" images.
2017-07-05 01:09:17 +00:00
wiz
0c19eea1b0
Use An in AUTHORS section.
2014-09-30 10:30:35 +00:00
msaitoh
4dc6aff1b8
Bump date.
2014-09-30 10:23:16 +00:00
msaitoh
1d272d4ec2
Support arm64, i386 and or1k.
2014-09-30 10:21:50 +00:00
jmcneill
733016fbe5
add missing prototype for crc32v
2012-12-29 16:18:08 +00:00
jmcneill
6412da29f7
add support for generating boot.scr scripts with -T script
2012-12-29 15:11:56 +00:00
reed
ed8d05eebe
install the mkubootimage(1) manual
2012-12-02 02:21:28 +00:00
wiz
1221f3d89d
More markup.
2012-12-01 08:16:25 +00:00
matt
555aa92b83
Change ULONG_MAX to UINT32_MAX
2012-12-01 05:26:16 +00:00
wiz
f6a7e95e09
Sort SYNOPSIS. Remove unnecessary Ns. Punctuation nit.
2012-11-30 08:25:35 +00:00
reed
9557060a47
Add a manual for mkubootimage(1). It was missing.
...
It had one review on netbsd-docs@.
I didn't add the manual to the Makefile nor distrib set yet --
waiting for more review or improvements first.
2012-11-29 23:23:22 +00:00
matt
3dcb0b124a
Avoid signed/unsigned comparision.
2012-02-17 08:28:36 +00:00
matt
dfc6b54984
Let address/entry be 64bit if they are just sign-extended 32-bit values.
...
(change pulled up from matt-nb5-mips64).
2012-02-17 08:11:28 +00:00
joerg
08af8338c6
Sprinkle one more static and a bunch of consts.
2011-09-04 20:35:07 +00:00
joerg
81249d1a2f
static + __dead
2011-09-04 20:31:00 +00:00
wiz
9038276921
Add lzma and lzo to usage. From Elie De Brauwer in PR 45219.
2011-08-06 11:12:05 +00:00
matt
8fa5ea82ed
Add O_TRUNC to the open of the image file (in case the size decreases).
2011-08-04 04:47:59 +00:00
matt
9be0f04367
Add lzma and lzo compression types
2011-08-03 17:46:40 +00:00
matt
dfbaa6afbe
Add -E entrypoint for "byteswapped" entry-points.
2011-08-03 17:00:13 +00:00
riz
a91ba62b09
Add an -m flag to mkubootimage, for specifying an alternate magic
...
value.
2011-08-01 06:16:35 +00:00
matt
6d32ef3fed
When printing the header, convert values to names:
...
Use strlcpy to copy the name, not strncpy.
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_
header crc: 0x94ea96cf
2011-06-08 05:54:38 +00:00
joerg
a216da57a6
Default to -Wno-sign-compare -Wno-pointer-sign for clang.
...
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
phx
6a5a0ed53a
Add the -O option to set the OS type, which defaults to NetBSD when missing.
...
This is needed, because some vendors have stripped U-Boot so much that it
only accepts Linux kernel modules.
Also allow 'standalone' as module type.
2011-02-26 20:03:09 +00:00
matt
b86170a11c
Add mips/mips64 support.
2011-01-31 03:37:28 +00:00
kiyohara
ee29569a43
Change '-e' to optional. Use load addr(-a), if '-e' not specify.
...
Just like u-boot's mkimage.
2010-07-10 07:48:25 +00:00
kiyohara
3b82565500
s/mkuboot/mkubootimage/ in usage().
2010-07-09 11:36:42 +00:00
dogcow
4ed2cab9df
nbtool.h'ify; fixes cross-compilation.
2010-06-22 14:54:11 +00:00
jmcneill
f18dcb652c
add mkubootimage(1), a tool for creating u-boot compatible images
2010-06-18 18:55:48 +00:00