CVS commit: src/usr.bin/mkubootimage

2010-06-18 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Fri Jun 18 18:55:48 UTC 2010

Added Files:
src/usr.bin/mkubootimage: Makefile crc32.c mkubootimage.c uboot.h

Log Message:
add mkubootimage(1), a tool for creating u-boot compatible images


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/usr.bin/mkubootimage/Makefile \
src/usr.bin/mkubootimage/crc32.c src/usr.bin/mkubootimage/mkubootimage.c \
src/usr.bin/mkubootimage/uboot.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2010-06-22 Thread Tom Spindler
Module Name:src
Committed By:   dogcow
Date:   Tue Jun 22 14:54:11 UTC 2010

Modified Files:
src/usr.bin/mkubootimage: crc32.c mkubootimage.c

Log Message:
nbtool.h'ify; fixes cross-compilation.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/mkubootimage/crc32.c \
src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2010-07-09 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Fri Jul  9 11:36:42 UTC 2010

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
s/mkuboot/mkubootimage/ in usage().


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2010-07-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sat Jul 10 07:48:25 UTC 2010

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Change '-e' to optional.  Use load addr(-a), if '-e' not specify.
Just like u-boot's mkimage.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2011-01-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Jan 31 03:37:29 UTC 2011

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c uboot.h

Log Message:
Add mips/mips64 support.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/mkubootimage/mkubootimage.c
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/mkubootimage/uboot.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2011-02-26 Thread Frank Wille
Module Name:src
Committed By:   phx
Date:   Sat Feb 26 20:03:09 UTC 2011

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c uboot.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/mkubootimage/mkubootimage.c
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/mkubootimage/uboot.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2011-06-07 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Jun  8 05:54:38 UTC 2011

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
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:   0x0002
 entry point: 0x0002
 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


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2011-07-31 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Mon Aug  1 06:16:36 UTC 2011

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Add an -m flag to mkubootimage, for specifying an alternate magic
value.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2011-08-03 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Aug  3 17:00:13 UTC 2011

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Add -E entrypoint for "byteswapped" entry-points.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2011-08-03 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Aug  3 17:46:40 UTC 2011

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c uboot.h

Log Message:
Add lzma and lzo compression types


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/mkubootimage/mkubootimage.c
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/mkubootimage/uboot.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2011-08-03 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug  4 04:47:59 UTC 2011

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Add O_TRUNC to the open of the image file (in case the size decreases).


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2011-08-06 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Aug  6 11:12:05 UTC 2011

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Add lzma and lzo to usage. From Elie De Brauwer in PR 45219.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2011-09-04 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sun Sep  4 20:31:00 UTC 2011

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2011-09-04 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sun Sep  4 20:35:07 UTC 2011

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Sprinkle one more static and a bunch of consts.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2012-02-17 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Feb 17 08:11:29 UTC 2012

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Let address/entry be 64bit if they are just sign-extended 32-bit values.
(change pulled up from matt-nb5-mips64).


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2012-02-17 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Feb 17 08:28:36 UTC 2012

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Avoid signed/unsigned comparision.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2012-11-29 Thread Jeremy C. Reed
Module Name:src
Committed By:   reed
Date:   Thu Nov 29 23:23:23 UTC 2012

Added Files:
src/usr.bin/mkubootimage: mkubootimage.1

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/usr.bin/mkubootimage/mkubootimage.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2012-11-30 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Fri Nov 30 08:25:35 UTC 2012

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1

Log Message:
Sort SYNOPSIS. Remove unnecessary Ns. Punctuation nit.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/mkubootimage/mkubootimage.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2012-11-30 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sat Dec  1 05:26:16 UTC 2012

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1

Log Message:
Change ULONG_MAX to UINT32_MAX


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/mkubootimage/mkubootimage.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2012-12-01 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Dec  1 08:16:26 UTC 2012

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1

Log Message:
More markup.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/mkubootimage/mkubootimage.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2012-12-29 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Dec 29 15:11:56 UTC 2012

Modified Files:
src/usr.bin/mkubootimage: crc32.c mkubootimage.1 mkubootimage.c uboot.h

Log Message:
add support for generating boot.scr scripts with -T script


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/mkubootimage/crc32.c
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/mkubootimage/mkubootimage.1 \
src/usr.bin/mkubootimage/uboot.h
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2012-12-29 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Dec 29 16:18:08 UTC 2012

Modified Files:
src/usr.bin/mkubootimage: crc32.c

Log Message:
add missing prototype for crc32v


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/mkubootimage/crc32.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2014-09-30 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Sep 30 10:21:50 UTC 2014

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1 mkubootimage.c uboot.h

Log Message:
Support arm64, i386 and or1k.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/mkubootimage/mkubootimage.1 \
src/usr.bin/mkubootimage/uboot.h
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2014-09-30 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Sep 30 10:23:16 UTC 2014

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1

Log Message:
Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/mkubootimage/mkubootimage.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2014-09-30 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Sep 30 10:30:35 UTC 2014

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1

Log Message:
Use An in AUTHORS section.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/mkubootimage/mkubootimage.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2017-07-04 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jul  5 01:09:17 UTC 2017

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Load address is not required for "ramdisk" images.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2017-07-15 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Jul 15 11:13:08 UTC 2017

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1 mkubootimage.c uboot.h

Log Message:
Add support for "kernel_noload" image types. This type is the same as the
"kernel" type, except it can run from any load address.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/mkubootimage/mkubootimage.1
cvs rdiff -u -r1.19 -r1.20 src/usr.bin/mkubootimage/mkubootimage.c
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/mkubootimage/uboot.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2017-07-15 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Jul 15 12:10:31 UTC 2017

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1

Log Message:
Remove unnecessary macros. Use standard headers.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/mkubootimage/mkubootimage.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2017-09-29 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Fri Sep 29 21:18:28 UTC 2017

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1 mkubootimage.c uboot.h

Log Message:
add sh arch


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/mkubootimage/mkubootimage.1
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/mkubootimage/mkubootimage.c
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/mkubootimage/uboot.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2017-11-05 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Nov  5 11:07:32 UTC 2017

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
add missing break after -m case


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2018-02-04 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Feb  4 15:44:51 UTC 2018

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1 mkubootimage.c
Added Files:
src/usr.bin/mkubootimage: arm64.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/usr.bin/mkubootimage/arm64.h
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/mkubootimage/mkubootimage.1
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2018-02-04 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Feb  4 17:33:34 UTC 2018

Modified Files:
src/usr.bin/mkubootimage: arm64.h mkubootimage.c

Log Message:
Fix tools build


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/mkubootimage/arm64.h
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2019-12-04 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Dec  4 11:21:34 UTC 2019

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1 mkubootimage.c

Log Message:
Add -u flag for updating headers in place.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/mkubootimage/mkubootimage.1
cvs rdiff -u -r1.24 -r1.25 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2019-12-04 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Dec  4 14:09:47 UTC 2019

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Fix signed/unsigned comparison


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2019-12-07 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Dec  7 12:34:17 UTC 2019

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.1 mkubootimage.c

Log Message:
Sync usage with man page, merge single letter options.

Limit program usage line length.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/mkubootimage/mkubootimage.1
cvs rdiff -u -r1.26 -r1.27 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2020-01-01 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan  1 10:35:10 UTC 2020

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Adjust image size appropriately when using update_image

OK jmcneill


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2020-01-01 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Jan  1 11:48:36 UTC 2020

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
Avoid mixing signed/unsigned arguments to the ? operator.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/mkubootimage

2020-02-08 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Sat Feb  8 13:27:01 UTC 2020

Modified Files:
src/usr.bin/mkubootimage: mkubootimage.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/mkubootimage/mkubootimage.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.