martin
95da84786f
Pull up following revision(s) (requested by ryo in ticket #690 ):
...
usr.bin/mkubootimage/mkubootimage.c: revision 1.30
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-10 19:14:03 +00:00
martin
8878b1ec1f
Pull up following revision(s) (requested by skrll in ticket #596 ):
...
usr.bin/mkubootimage/mkubootimage.c: revision 1.28
usr.bin/mkubootimage/mkubootimage.c: revision 1.29
Adjust image size appropriately when using update_image
OK jmcneill
Avoid mixing signed/unsigned arguments to the ? operator.
2020-01-02 09:47:05 +00:00
martin
725f92dd43
Pull up following revision(s) (requested by jmcneill in ticket #525 ):
...
external/cddl/osnet/dev/dtrace/aarch64/dtrace_isa.c: revision 1.1
distrib/sets/lists/modules/md.i386: revision 1.83
share/mk/bsd.own.mk: revision 1.1168
usr.bin/mkubootimage/mkubootimage.c: revision 1.25
sys/modules/dtrace/Makefile: revision 1.7
usr.bin/mkubootimage/mkubootimage.c: revision 1.26
sys/modules/dtrace/Makefile: revision 1.8
external/cddl/osnet/dist/lib/libdtrace/aarch64/dt_isadep.c: revision 1.2
distrib/sets/lists/modules/mi: revision 1.128
sys/arch/aarch64/include/frame.h: revision 1.3
sys/arch/evbarm/conf/mk.generic64: revision 1.4
external/cddl/osnet/dist/lib/libdtrace/common/dt_link.c: revision 1.12
sys/modules/cyclic/Makefile: revision 1.4
sys/arch/aarch64/conf/Makefile.aarch64: revision 1.16
external/cddl/osnet/dev/dtrace/aarch64/dtrace_subr.c: revision 1.1
sys/arch/aarch64/aarch64/start.S: revision 1.3
sys/arch/aarch64/aarch64/trap.c: revision 1.22
external/cddl/osnet/dev/fbt/aarch64/fbt_isa.c: revision 1.1
external/cddl/osnet/dev/dtrace/aarch64/dtrace_asm.S: revision 1.1
external/cddl/osnet/dev/fbt/aarch64/fbt_isa.h: revision 1.1
external/cddl/osnet/dev/dtrace/aarch64/regset.h: revision 1.1
external/cddl/osnet/lib/libdtrace/Makefile: revision 1.26
distrib/sets/lists/modules/md.amd64: revision 1.82
usr.bin/mkubootimage/mkubootimage.1: revision 1.13
distrib/sets/lists/modules/ad.arm: revision 1.14
Add KDTRACE_HOOKS support.
Define lwp_trapframe() macro
dtrace: add support for aarch64
Add syscall_linux back for other arm architectures (accidently removed
in previous)
Add -u flag for updating headers in place.
Fix alignment of .text section by changing load address to
0xffffffc000000000 and adding 64 bytes of padding before the entry point.
Update arm64 image header in place
Move dtrace_syscall_linux out of mi set list
Enable DTrace on aarch64
Fix signed/unsigned comparison
2019-12-09 15:19:30 +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
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
msaitoh
1d272d4ec2
Support arm64, i386 and or1k.
2014-09-30 10:21:50 +00:00
jmcneill
6412da29f7
add support for generating boot.scr scripts with -T script
2012-12-29 15:11:56 +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
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