Commit Graph

515 Commits

Author SHA1 Message Date
he 1b9747a00f Fix an overlooked addition of an empty md_post_extract(). 2006-04-06 17:18:11 +00:00
garbled cd8efba238 Small KNF fix 2006-04-05 17:01:21 +00:00
garbled 85af130714 Rather big update to sysinst, in order to get it working on the prep port.
1) Add an md_post_extract() function.  This function is called after
extracting the sets, and allows the arch to do something at that time.
In the case of prep, it is much easier to install the bootcode after all
the sets are extracted, so we do it in md_post_extract().  Added empty
md_post_extract() functions to all other arches so they compile.

2) Add md_mbr_use_wholedisk() and md_check_mbr().  In edit_mbr() I have
split off the code that uses the whole disk for NetBSD, into the
mbr_use_wholedisk() function.  On most ports that use mbr.c, I made
md_mbr_use_wholedisk() just call that and return.  On prep we create the
magical prep boot partition here.  The md_check_mbr() function allows the
arch to add additional checks after the user had manually edited the MBR
to make sure the choices he made allow NetBSD to function.  Added a dummy
routine to all mbr.c using arches.

3) Added code to bsdlabel.c to create a partition of type boot if
PART_BOOT is defined, but BOOT_SIZE is not defined.  Also added two more
globals "bootsize" and "bootstart" which must be seeded in order to do
so.  This is done on prep in md_check_mbr().

4) Added MBR_PTYPE_PREP to the list of MBR partitions.

5) Made the prep port actually install sanely.  It now creates a prep
boot partition, labels it correctly, installs all the sets, and then runs
mkbootimage and dd's the bootimage into the prep partition.  The result
is a prep installer that creates a bootable NetBSD installation
automatically.

6) Edited the prep menus and messages files to add new labels.  In the
case of the translated files, I just added the words in english for
someone to translate later.

I tried to xcompile a few arches to make sure I didn't break anything,
but I could have missed something.  Please let me know if I have broken
your arch in any way.  I'll watch the autobuilds for the next few days
too. For all ports other than prep there should be no functional changes
at all.
2006-04-05 16:55:01 +00:00
shige a6d74476ad Added evbmips instkernel and sysinst. 2006-03-30 15:45:42 +00:00
tsutsui f5040e78bb - Create an independent "boot" partition for bootloader rather than
marking a raw partition as "boot".
- Adjust default partition size for /usr so that extracted files
  won't flood on the default full installation.
2006-03-21 06:18:29 +00:00
tsutsui f543e0f10e Some KNF adn ANSIfy. 2006-03-21 02:06:31 +00:00
tsutsui dc8b8e8df8 Some KNF. 2006-03-21 02:05:33 +00:00
tsutsui ec2e473d63 8 -> MAXPARTITIONS 2006-03-21 01:33:49 +00:00
tsutsui bbcd8e938f Invoke MI installboot(8) directly rather than via a wrap script. 2006-03-21 01:32:19 +00:00
dsl b051d89585 Make floppy install messages less confusing (maybe).
Make floppy file system type settable - it depends on the system you are
using to write the split sets, not the target.
2006-02-26 10:25:52 +00:00
dsl b68f172f6d Delete a load of messages that aren't used in the current code, and that
I don't suppose will be used soon.
2006-02-24 22:13:16 +00:00
dsl aab3fb05a5 Minor message change 2006-01-15 20:37:57 +00:00
dsl e5231f4b40 Warp the cursor to the baud-rate entry after a com<n> entry is selected.
Allow a baud rate of 0 to be selected - uses speed set by bios.
2006-01-15 20:37:01 +00:00
dsl 9fc0a7f722 Rework the installation loop so that it is possible to change the source
of the sets after an error.
A side effect is that it now does fetch-install-fetch-install..., not
fetch-...-fetch-install-...install.
The set selection code now uses a byte per set (not a bit-pattern) removing
the restriction of 32 sets, and allowing a per set status display (TBC).
Also TBC is deleting sets from /usr/INSTALL.
However I believe it works...
2006-01-12 22:02:44 +00:00
tsutsui 756481fd55 First cut at sysinst support for ews4800mips. 2006-01-09 10:03:51 +00:00
tsutsui 751d67ef2a Fix pasto in comments. 2006-01-08 18:48:25 +00:00
rjs 1276ee68fc Fix kernel names. 2005-12-30 11:41:43 +00:00
rjs 447c4d25c9 Initial import of md files for hpcarm. Copied from hpcmips. 2005-12-30 11:40:23 +00:00
xtraeme fff95ff31d Misc grammar and typos fixes. 2005-10-06 06:46:03 +00:00
shige 18dc3d6415 Break infinite-loop at md_check_partitions. 2005-10-02 22:42:09 +00:00
jdarrow 95cef3f6e6 Change default countdown time to 5 seconds to match i386 bootblock
defaults in sys/arch/i386/stand/lib/boot_params.S

Fixes PR install/30422 by me.
2005-09-13 23:43:22 +00:00
dsl 297a2f78a6 Fix a couple of md translations that seem to have got awry. 2005-09-11 08:39:08 +00:00
he 7f48103418 Provide translaqtion for set_kernel_3 via cut+paste from #2. 2005-09-11 08:03:05 +00:00
he b80a4384df Provide a translation for set_kernel_6 as well (cut+paste from #5). 2005-09-10 22:03:22 +00:00
he e3c135df31 Provide a translation for set_kernel_2, copied from set_kernel_1. 2005-09-10 20:00:02 +00:00
xtraeme 4674d5a41a 2nd stage of Spanish language translation (grammar fixes and typos),
I think it's enough for now.
2005-08-26 16:32:31 +00:00
xtraeme 40fa46d39d Spanish menus translation, contributed by Ivan-Benjamin Garcia Tora
with modifications by me.

Needs some review for typos maybe.
2005-08-26 15:44:43 +00:00
chris 3d4b482c1f As requested in PR port-cats/30460 add support for GENERIC.ABLE kernel to
sysinst, and also add the ABLE install kernel to the generated release
kernels.
2005-08-07 00:21:38 +00:00
xtraeme 76bb6413ee If there's bootxx_lfsv2 on the ramdisk, we could use LFS for the
root filesystem, add the missing bit for that.
2005-07-09 15:05:13 +00:00
skrll 36d83be9a6 An xserver set is created - allow sysinst to handle it. 2005-06-24 14:52:48 +00:00
chs b944888e86 install the bootloader in the root of the target fs. 2005-06-05 18:55:30 +00:00
chs 2438f5c3ad add hp700 support. 2005-05-14 14:46:21 +00:00
bouyer 3e8f0992c8 Integrate Xen to the i386 build process:
- Add xen devices to MAKEDEV
- Add Xen kernels to list of kernel to build
- Add INSTALL_XENU to the install kernels
- introduce the xbd disk devices to sysinst.

This will add 3 kernels to the i386 release:
XEN0 for use as a Xen domain0 kernel
XENU for use on a non-privileged domain
INSTALL_XENU to install NetBSD on a non-privileged domain virtual disk.
2005-03-11 20:55:10 +00:00
dsl c2abea4a9e Move definition od SRCS into global Makefile.inc (crunchgen no longer needs
to determine the list of source files).
Add -DWSKBD to amd64 (probably should go into many others as well)
2005-02-19 17:00:38 +00:00
joff 68490c8820 Add TS7200 kernel for sysinst 2004-12-28 17:56:40 +00:00
dsl 8c170ab578 Stop md_pre_disklabel falling off its bottom. 2004-11-14 18:36:11 +00:00
he 3629f91d5b Add casts to unsigned char for args to ctype functions. 2004-11-14 13:34:53 +00:00
sekiya e2b7f39b2d Bump up the volume header size to four megabytes; now it's big enough to
contain a GENERIC kernel.

With this commit, NetBSD can now be successfully installed via sysinst on the
IP12 (Personal Iris / Indigo R3k) family of workstations.
2004-11-13 11:49:08 +00:00
sekiya cc1b1e3980 Various tweaks for IP12:
* Add the IP12 kernel set to the list, and make it the default kernel selection
  if we're installing on an IP12,
* Don't install ARCS bootblocks on IP12,
* Install the ECOFF kernel to the volume header for IP12.
2004-11-13 10:26:39 +00:00
dsl f5a10817b2 need to deconst() a qouted string to compile with WARNS=3 2004-11-11 20:00:40 +00:00
he 81fc849478 For hp300, don't try to install a second-stage boot loader, as none
exists, and use the 'c' (raw) partition for boot code installation
instead of the 'a' partition (which will not work).  This should fix
the problem that newly-partitioned and newly-installed disks will not
be made bootable by sysinst.
2004-11-11 00:19:48 +00:00
martin f1ec8926e5 Changes from various people to the german translation, as discussed
in PR install/27281.
XXX - Output is not correct since sysinst does not set the proper LC_CTYPE
yet (which happens to not affect umlauts, but sharp-s (0xdf))
2004-10-21 12:14:21 +00:00
dsl 81c71a86b4 Make compile with WARNS=3 2004-10-16 13:20:10 +00:00
dsl 29306cabe7 Default to input in MB for all architectures (MB are cylinder aligned).
Move info about cylinders to the 'ask for units' menu.
  (translations need checking, done by cutting sentences)
Stop i386 always asking for units.
Use BIOS cylinders for MBR and disk cylinders for the disklabel.
  (code intended to do this, but got it wrong...)
Mark some menus as 'sub menu' or MC_SUBMENU so that the screen underneath
  is saved.
Add GENERIC.MPACPI to i386 menu.
2004-08-14 16:06:36 +00:00
dsl e0683ac0f3 Kill two more global variables, bsize (bios disk size) was never used
and bcylsize (bios cylinder size) can be calculated in the one place
it is needed.
The ask_sizemult() call will go once I decide what to to with the
(slightly useful) explanatory text about cylinder alignment.
2004-07-17 19:36:59 +00:00
dsl da414ff103 Remove the globals ramsize and rammb, the former was only ever used inside
a single function, the latter is now the return value of get_ramsize().
Changed all uses of rammb to get_ramsize().
Used the 64bit HW_PHYSMEM64 so silly things don't happen if the memory size
approaches (or even exceeds) 4GB.
2004-07-17 10:55:03 +00:00
bouyer 80ee929c70 Translate "Keyboard type" to french. 2004-06-14 21:49:15 +00:00
dsl 6ca1928243 German translation of 'keyboard type' from Martin. 2004-06-14 21:38:55 +00:00
dsl a9372a42f1 Add a menu (right at the start) to ask for the keyboard type.
Save the result in /etc/wscons.conf at the end of the install/upgrade.
Currently only builds for i386 - change arch/*/Makefile and add the
extra messages (though they could go into the msg.mi.* files).
Needs the 'Keyboard type' message translated in to German, French and polish.
Maybe the keyboard type names could be less cryptic...
2004-06-12 19:18:24 +00:00
he 0433215caf Add "extern" to a couple of array declarations. Declaring an
undimensioned array in the outer scope will produce warnings that
it's assumed to have one element, and under -Werror will fail to
compile.
2004-06-12 14:44:42 +00:00