CVS log for src/usr.sbin/installboot/arch/i386.c
Up to [cvs.NetBSD.org] / src / usr.sbin / installboot / arch
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Dec 5 04:47:18 2021 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
HEAD
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3
lines
s/filesytem/filesystem/ in comment.
Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:30 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +23 -15
lines
Sync with HEAD
Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue May 7 04:35:31 2019 UTC (5 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +23 -15
lines
Use designated initializers for struct ib_mach.
Revision 1.40.26.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:26:12 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +15 -4
lines
Sync with HEAD
Revision 1.40.20.1: download - view: text, markup, annotated - select for diffs
Sun Jun 24 09:32:03 2018 UTC (6 years, 5 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +15 -4
lines
Pull up following revision(s) (requested by kamil in ticket #898):
usr.sbin/installboot/arch/i386.c: revision 1.41
Fix integer overflow in installboot(8)
Add a sanity check of the disk_buf first three bytes. The original code on
a disk with nul bytes was causing integer overflow and thus calling the
memcmp(3) functin in is_zero() with enormous length.
Verity that the 0th byte is JMP, 1th a signed byte >= 9 to prevent overflow
and 2th byte NOP.
Add a comment explaining the check.
Detected with MKSANITIZER and ASan.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Jun 23 14:15:57 2018 UTC (6 years, 5 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625
Branch point for: phil-wifi
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +15 -4
lines
Fix integer overflow in installboot(8)
Add a sanity check of the disk_buf first three bytes. The original code on
a disk with nul bytes was causing integer overflow and thus calling the
memcmp(3) functin in is_zero() with enormous length.
Verity that the 0th byte is JMP, 1th a signed byte >=9 to prevent overflow
and 2th byte NOP.
Add a comment explaining the check.
Detected with MKSANITIZER and ASan.
Revision 1.37.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:43:04 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.37.2.1: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.2.1: +3 -3
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:29:04 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +3 -3
lines
resync from head
Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Jun 14 03:54:43 2013 UTC (11 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-base,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
netbsd-8-0-RC1,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: pgoyette-compat,
netbsd-8
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
Remove trailng whitespaces.
Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:47 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +10 -5
lines
sync with head
Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Apr 6 10:10:11 2012 UTC (12 years, 7 months ago) by gson
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3
lines
When printing the list of valid console names, don't treat the consoles[]
array as NULL terminated, because it's not.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Mar 10 18:42:18 2012 UTC (12 years, 8 months ago) by dsl
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +9 -4
lines
Some FAT16 filesystems don't have 'hidden sectors' correctly set to
the offset of the filesystem on the disk.
Let '-b s1blk' be used to fix the value.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Aug 14 17:50:17 2011 UTC (13 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: yamt-pagecache
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +13 -16
lines
fix various gcc-4.5 warnings
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Jan 17 14:54:44 2010 UTC (14 years, 10 months ago) by drochner
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -4
lines
Invert the flag bits to control module loading: rename
LOADMODULES->NOMODULES and READBOOTCONF->NOBOOTCONF.
This way, the default value (0) wired into old bootxx_* and installed
to file systems remains valid and we avoid problems on partial updates.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Jan 14 17:49:32 2010 UTC (14 years, 10 months ago) by drochner
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +10 -4
lines
On i386/amd64, define two flag bits in the boot parameters which control
whether modules are loaded and whether boot.cfg is evaluated, and
set both to "off" per default in the PXE bootloader.
Extend "installboot" to toggle the bits.
This way, pxeboot works with existing dhcp server setups (and as
described in the manpage) out of the box. Also, boot.cfg reading
involves a stat() call which is horribly inefficient with the
TFTP pseudo file system.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Dec 23 09:17:41 2009 UTC (14 years, 11 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3
lines
Fix typo in comments, no code change.
Revision 1.30.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:20:24 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +10 -7
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu May 7 07:03:39 2009 UTC (15 years, 7 months ago) by lukem
Branches: MAIN
CVS tags: matt-premerge-20091211,
jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3
lines
refer to FFSv1 instead of UFSv1
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Apr 5 11:55:39 2009 UTC (15 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -5
lines
fix sign-compare issues
Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Feb 18 20:06:27 2009 UTC (15 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -3
lines
CID 4393: plug memory leak.
Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:36:19 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +2 -9
lines
sync with head.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:16 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
hpcarm-cleanup-nbase
Branch point for: jym-xensuspend
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.28.8.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:35 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +8 -5
lines
sync with head.
Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:50:06 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +8 -5
lines
sync with HEAD
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Mar 6 21:27:41 2008 UTC (16 years, 9 months ago) by dsl
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base
Branch point for: yamt-pf42
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +8 -5
lines
Add a large warning about the possible side effect of using '-f'.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Jun 23 23:18:29 2007 UTC (17 years, 5 months ago) by christos
Branches: MAIN
CVS tags: matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-base,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: matt-armv6,
keiichi-mipv6
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +6 -9
lines
Don't use __arraycount because this is a 700L, and toolz have messed up
includes.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jun 23 23:07:44 2007 UTC (17 years, 5 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -2
lines
unb0rk tools/ builds on systems that don't have __arraycount() defined.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jun 23 14:46:00 2007 UTC (17 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +37 -23
lines
PR/36527: Greg A. Woods: installboot(8) doesn't allow for the valid
consdev=auto setting
Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Feb 15 22:23:11 2007 UTC (17 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +46 -30
lines
Add a -f (force) parameter to installboot(8).
If specified then checks on the disks BPB are not done, and any existing BPB
is deleted.
This is needed soince newfs(8) doesn't overwrite the BPB - which is basically
the FAT superblock.
Update documentation and add an example of using bootxx_fat16.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jan 7 04:16:57 2007 UTC (17 years, 10 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +11 -8
lines
%d -> %ld, so that building on alpha doesn't fail. (also print more useful
errors - x bytes written, should be y.)
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Jan 6 10:21:24 2007 UTC (17 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +225 -124
lines
Support for non-512 byte media.
Automatically enable writes to the 'labelsector' if necessary.
Detect and recover from problems with the write-protected 'labelsector'
stopping writes to nearby sectors when the non-raw disk device is used.
Support the installation of 512-byte pbr boot code (eg fatboot).
Verify that there is enough reserved space in the bpb (if not all zeros) to
avoid overwriting the start of FAT filesystems.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Feb 18 10:08:07 2006 UTC (18 years, 9 months ago) by dsl
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +17 -4
lines
Move the MD definitions into the MD files, leaving machines.c with just
a list of the supported machines.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Jan 30 21:15:37 2006 UTC (18 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +10 -5
lines
Fix the detection of the bootstrap magic number when run on big-endian systems.
Correct another typo.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Jan 24 18:35:18 2006 UTC (18 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3
lines
Fix spelling mistake in message
Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Nov 11 21:09:50 2005 UTC (19 years ago) by dsl
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +173 -54
lines
Add a -e (edit) option to allow the bootstrap options of an installed
bootstrap or a file containing such a bootstrap to be changed/displayed.
In particular this will (soon) let you modify the parameters for pxeboot.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Aug 16 05:57:52 2004 UTC (20 years, 3 months ago) by yamt
Branches: MAIN
CVS tags: netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3
lines
revert a part of the previous. (uint -> u_int)
to make tools/installboot compile again.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Aug 15 22:00:12 2004 UTC (20 years, 3 months ago) by dsl
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +31 -17
lines
Add an option to set bp_consaddr (serial console IO port address)
Only complain about small patch area if we would write something non-zero there.
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 22 07:20:18 2004 UTC (20 years, 5 months ago) by tron
Branches: netbsd-2-0
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +3 -3
lines
Pull up revision 1.16 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jun 20 22:20:17 2004 UTC (20 years, 5 months ago) by jmc
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3
lines
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Mar 14 23:05:47 2004 UTC (20 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -4
lines
fix a typo in a comment, and expand the description of x86_boot_params.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Mar 13 22:51:50 2004 UTC (20 years, 8 months ago) by dsl
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -2
lines
Add a -o keymap=zyz option that will set the boot keymap.
If a character in the map is typed, it gets replaced by the one following.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Oct 27 22:29:59 2003 UTC (21 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3
lines
fix typo in comment
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Oct 27 00:12:44 2003 UTC (21 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -7
lines
Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Oct 14 09:46:43 2003 UTC (21 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +25 -15
lines
Instead of requiring that the BPB is always the FAT32 one, check the
first three bytes to determine how much of the BPB to preserve.
Supported values:
eb 3c 90 FAT16 BPB
eb 58 90 FAT32 BPB
(anything else) don't preserve any BPB
This is because the BPB is generally only the FAT16 one except in the
bootxx_msdos case, where it's the larger FAT32 one.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Oct 10 01:50:47 2003 UTC (21 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3
lines
Fix compile error on powerpc. Noted by Juergen Hannken-Illjes in private mail.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Oct 8 04:25:46 2003 UTC (21 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +72 -14
lines
Overhaul MBR handling (part 1):
<sys/bootblock.h>:
* Added definitions for the Master Boot Record (MBR) used by
a variety of systems (primarily i386), including the format
of the BIOS Parameter Block (BPB).
This information was cribbed from a variety of sources
including <sys/disklabel_mbr.h> which this is a superset of.
As part of this, some data structure elements and #defines
were renamed to be more "namespace friendly" and consistent
with other bootblocks and MBR documentation.
Update all uses of the old names to the new names.
<sys/disklabel_mbr.h>:
* Deprecated in favor of <sys/bootblock.h> (the latter is more
"host tool" friendly).
amd64 & i386:
* Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
be consistent with the naming convention of the msdosfs tools.
* Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
and it's confusing to have two functionally equivalent bootblocks,
especially given that "ufs" has multiple meanings (it could be
a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).
* Rework pbr.S (the first sector of bootxx_*):
+ Ensure that BPB (bytes 11..89) and the partition table
(bytes 446..509) do not contain code.
+ Add support for booting from FAT partitions if BOOT_FROM_FAT
is defined. (Only set for bootxx_msdos).
+ Remove "dummy" partition 3; if people want to installboot(8)
these to the start of the disk they can use fdisk(8) to
create a real MBR partition table...
+ Compile with TERSE_ERROR so it fits because of the above.
Whilst this is less user friendly, I feel it's important
to have a valid partition table and BPB in the MBR/PBR.
* Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
with other platforms.
* Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
we can boot off FAT partitions.
* Crank version of /usr/mdec/boot to 3.1, and fix some of the other
entries in the version file.
installboot(8) (i386):
* Read the existing MBR of the filesystem and retain the BIOS
Parameter Block (BPB) in bytes 11..89 and the MBR partition
table in bytes 446..509. (Previously installboot(8) would
trash those two sections of the MBR.)
mbrlabel(8):
* Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
to map the MBR partition type to the NetBSD disklabel type.
Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Oct 6 05:24:54 2003 UTC (21 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4
lines
Replace BP_* with I386_BP_FLAGS_*, for consistency with other stuff in
<sys/bootblock.h>
(CONSDEV_ should be converted as well, but that's more intrusive...)
Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jul 4 07:45:06 2003 UTC (21 years, 5 months ago) by dsl
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4
lines
Add some htole32() for host endianness independance
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu May 8 20:33:44 2003 UTC (21 years, 7 months ago) by petrov
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3
lines
Format fixes.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Apr 18 14:16:42 2003 UTC (21 years, 7 months ago) by bjh21
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3
lines
Use <md5.h> rather than <sys/md5.h>. This is what the man page tells us to
do, and is required for cross-compiling since libnbcompat doesn't provide
<sys/md5.h>.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Apr 16 01:37:41 2003 UTC (21 years, 7 months ago) by briggs
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -2
lines
Protect use of __RCSID() with a check to ensure that it's defined.
Suggested by Ian Lance Taylor on tech-userlevel@ to help cross-compilation
on Red Hat 7.3.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Apr 15 14:35:57 2003 UTC (21 years, 7 months ago) by dsl
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +8 -8
lines
Use htole32 so host endianness independant
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Apr 15 14:22:14 2003 UTC (21 years, 7 months ago) by dsl
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +54 -17
lines
Change the way -o options are parsed, now done in MI code with a check after
all the options have been processed that they are supported my the
specific system.
Add i386 MD options (console, password, speed and timeout)
(Approved by christos and lukem)
Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Apr 9 22:14:27 2003 UTC (21 years, 7 months ago) by dsl
Branches: MAIN
Add support for 'new' format i386 bootxx code
CVSweb <webmaster@jp.NetBSD.org>