Commit Graph

1775 Commits

Author SHA1 Message Date
skrll
247d96dca1 Add the tests sets by default. Tweak the usage output. 2013-01-30 07:40:34 +00:00
skrll
b93243363a Move mdnsd to beagleboard only. RPI doesn't like it at the moment. 2013-01-28 09:06:19 +00:00
skrll
959d9b34bf cmdline needs to be a line! hi jak. 2013-01-23 22:20:06 +00:00
skrll
9a42078a69 Size for 512 byte sectors and base ffs partition size on totalsize minus
others.
2013-01-23 21:59:37 +00:00
jakllsch
05b3b9d385 Specify the root device in cmdline.txt, also, it's 'Pi', not 'PI'. 2013-01-21 17:14:23 +00:00
skrll
bc399b5b4e kernel.img is for rpi only 2013-01-21 16:59:23 +00:00
skrll
a4ac7e4aff More usage updates 2013-01-21 16:49:49 +00:00
skrll
33441e3917 Update usage output a little 2013-01-21 16:47:23 +00:00
christos
b0de292a79 - Add support for xsets
- Factor out common evbarm code
2013-01-16 23:27:34 +00:00
christos
ca6f14109b tidy up some more by factoring out the sizing code. 2013-01-16 15:58:19 +00:00
christos
095a11f03d Make autosizing really work:
- Use newfs to compute the actual filesystem required size.
    - Fix the computation of set sizes to account for blocks and fragments.
This results into a 95% full filesystem for my test (Total 566MB, 24MB free)
from which 8MB is my requested overhead. Not perfect, but good enough.
2013-01-15 21:04:41 +00:00
christos
7a6821a937 now that we compute sizes correctly, reduce the extra to how much free space
we want.
2013-01-15 20:55:00 +00:00
christos
a58843234c make autosizing work (kind of) 2013-01-15 03:56:20 +00:00
christos
db11691a33 first step at autosizing, still does not work. 2013-01-15 03:26:27 +00:00
jmcneill
72bcdf0815 set kerneldir= to the path used by build.sh 2013-01-15 02:51:10 +00:00
jmcneill
7889ef773d expand set name to path when checking to see if the tgz exists 2013-01-15 02:50:08 +00:00
jmcneill
e83fa335b8 move 'trap' after command args are parsed 2013-01-14 12:12:19 +00:00
jmcneill
715c501991 add mkimage config for generating beagleboard images 2013-01-14 11:32:40 +00:00
christos
284486f905 append to rc.conf, don't overwrite 2013-01-13 22:08:43 +00:00
christos
8629ccb3a8 add the comp set 2013-01-13 21:52:42 +00:00
christos
855d500be1 honor ${TMPDIR} 2013-01-13 21:51:47 +00:00
christos
363bebcb93 use variables for the fdisk command too 2013-01-13 21:46:03 +00:00
christos
e49597500d Autosize label 2013-01-13 21:38:45 +00:00
christos
04c5a03c2c complain on unknown options 2013-01-13 20:59:22 +00:00
christos
8066385b56 move configuration to new place. 2013-01-13 20:58:38 +00:00
christos
df3192c082 Adjust mkimage to handle RPI. From skrll@ 2013-01-13 20:57:18 +00:00
jakllsch
b0b33b9313 Don't enable WAPBL by default. It's far too dangerous. 2012-11-20 20:17:43 +00:00
tsutsui
81281427af Don't show a disk which is mounted as root partition
in the "Available disks" list during sysinst procedure
to prevent users from shooting their foot in case of
installation using install-image on a USB stick.
Per suggestion in PR/47195.
2012-11-17 20:34:24 +00:00
tsutsui
ce1f27f16c Define HAVE_UFS2_BOOT to enable UFS2 root in sysinst.
UFS2 support for secondary boot was added on March 2012:
http://mail-index.netbsd.org/source-changes/2012/03/20/msg033042.html
Note prinary boot_ufs has supported UFS2 since 2003:
http://mail-index.netbsd.org/source-changes/2003/04/09/0036.html
2012-11-17 19:35:55 +00:00
christos
4622fbd2a2 add missing include file. 2012-11-05 01:25:25 +00:00
tsutsui
536aa927d4 Remove unused non-en translation messages.
(src/distrib/x68k/floppies/ramdisk/Makefile specifies list.sysinst.en)
2012-11-03 15:40:58 +00:00
tsutsui
213ea85b98 Make the default choice of "Install from" menu to use the sets
in the default file system (assuming which come with the CD/USB image)
and skip distmedium menu if the root file system is not md(4).
Also change "CD-ROM / DVD" menu option accordingly on ports which
have install images.  PR/47038

XXX: still no responsible maintainer of non-en translations
2012-10-25 15:05:22 +00:00
tsutsui
82c859d266 Remove useless md_may_remove_boot_medium messages. PR/47039 2012-10-24 11:36:02 +00:00
christos
f6e747aed2 make libhack's syslog.c produce exactly the same symbols as libc's syslog.c,
so that in the future we can keep them synced. Avoid strong_alias since it
does not play well with symbol renaming.
2012-10-11 17:11:16 +00:00
jdf
db32c99923 Prevent sysinst from setting an fqdn in rc.conf when the user entered no domain
(i.e., sets only the hostname).  Fix for PR install/46946.
2012-09-23 17:37:51 +00:00
jdf
339b2058bc Add Spanish translations for sysinst's new configuration menu, plus adding a few
that were left previously.
Translation provided by jmmv.
2012-09-15 17:56:28 +00:00
joerg
d35d7459b7 Ensure that bakname and tempname have a defined value, even if the first
asprintf failed.
2012-07-19 06:07:21 +00:00
abs
d149c09c58 Add a check hack to ensure %m causes error message string to be shown 2012-07-14 20:32:39 +00:00
jdf
59e494188c Add translations for "Config menu" (was hardcoded before), best guesses for
French and Spanish.
Add translations for Polish config menu entries (provided by Marcin Piotr
Pawlowski).
2012-07-06 21:10:56 +00:00
wiz
670399119e From Bug Hunting:
- add `-D' argument to `usage' lines;
- sort options;
- fix argument names and / or translations thereof.
2012-07-06 09:12:16 +00:00
tsutsui
c0aba6b3c5 Use 32KB/4KB for default block/fragment size on >= 128 GB partitions
for modern AFT disks.  No particular comments against PR install/46629.
2012-06-30 15:34:01 +00:00
martin
6817543049 Do not assign to a const pointer, but set the value of the target variable
instead. Makes sysinst at least start up again.
2012-06-23 17:49:58 +00:00
christos
a9706a560c Trying to print a function pointer as a string is likely to cause tears.
While here, don't match on the unit either
2012-06-23 14:06:02 +00:00
abs
04c1553d52 - Replace the CD_NAME definition with a CD_NAMES comma separate list,
the default remains "cd0a", but i386 sets "cd0a", "mcd0a" while vax
  takes "cd0a", "racd0a"
- Add get_default_cdrom() to disks.c, which is called in init(). This
  checks the contents of hw.disknames against CD_NAMES. The first one
  found (minus partition letter) is picked, otherwise the first entry
  in CD_NAMES is used
The primary beneficiary is vax systems with an MSCP but no SCSI CD
drive, which now default to (a valid) racd0a rather than an invalid
cd0a.  The obvious example being simh-vax
2012-06-22 20:54:39 +00:00
jdf
e68bb1b900 Change name of author from Nudleman to Nudelman.
See less(1) or http://en.wikipedia.org/wiki/Less_(Unix) for reference.
Patch provided by Bug Hunting
2012-06-08 12:39:42 +00:00
tsutsui
f03261f467 Fix regression by my dumb patch in PR/45990.
sysinst fails with "floating exception" after
changing MBR partition size in MBR editor menu
if the target disk doesn't have valid MBR partition
or has a valid partition 0 whose offset is not 1MB aligned
(like 63 sectors).

read_mbr() (which calls get_ptn_alignment()) is called
before set_bios_geom(), so bhead is not initialized there
and ptn_alignment could be zero.

To workaround, explicitly call get_ptn_alignment() again
in edit_mbr() to update ptn_alignemnt per BIOS geom values.
2012-05-26 05:09:59 +00:00
jdf
cb54fe064f Changed returncodes to -1 of mount_disks in case of error (before, they were
inverted).
Add message mount_failed to be displayed when a mount fails, offering the
opportunity to go on anyway (fix for PR install/12020).
2012-05-21 22:38:25 +00:00
jdf
7b75438926 Adds a check to determine the root filesystem for determining the path of the
rc.conf. Without, the menu would fail as it tried to `chroot ""` (target_root
returns "" for / as root).
2012-05-15 15:50:58 +00:00
martin
b5e206ee7a Tweak a few grammar errors 2012-05-15 08:47:53 +00:00
nisimura
2a5eed591c Add KURO-BOX/T4 support to sysinst. Tested good with the target
machine.
2012-05-12 08:31:52 +00:00
martin
e90a004d0c Fix harmless error preventing auto-finding non-ISO9660 formatted CD
partitions (when offering sets from CD).
2012-05-08 13:51:34 +00:00
riz
89f7ad6034 Check for del_rc_conf() == 0, not !del_rc_conf(), and fix a couple of
instances where the check was wrong.  sysinst now properly saves dhcp
and host config again.
2012-05-01 18:28:47 +00:00
riz
4ca684e9f6 Don't have pkgin prompt before updating the database. 2012-04-30 19:57:52 +00:00
martin
0aeedd76fe Add missing white spaces at end of line (meaning forced line breaks) 2012-04-30 19:49:26 +00:00
martin
23b152e8d9 Translate enable_binpkg 2012-04-30 19:43:45 +00:00
riz
29b07b45cc Check if the network is up before attempting to install pkgin. If not,
configure it.
2012-04-30 19:05:29 +00:00
riz
f75e70385a Change the pkgin repository *before* running pkgin update. Spotted
by imil@.
2012-04-12 16:05:48 +00:00
jdf
ccba2c41c9 Make sysinst not store the keyboard or network configuration used while
upgrading, as issued by PR install/35538.
2012-04-09 23:18:31 +00:00
uebayasi
60ebd64731 Remove duplicate English text. Remove ^M. Fix build. 2012-04-08 03:11:14 +00:00
riz
420ca486a3 French translation of new strings, and some other fixes.
From Matthew Mondor.
2012-04-07 23:25:18 +00:00
jdf
1671538f34 Fix for PR 45816: Restructuring the error menu when the CD ROM is missing. 2012-04-07 19:02:57 +00:00
tsutsui
d1ab79a2ea Use 1MB alignment rather than the default 63 sectors for
fdisk partition boundary for >128GB disks, as fdisk(8) does.
No particular comments for my PR install/45990.
2012-04-07 03:08:33 +00:00
riz
ed2340b163 Implement a post-install configuration menu, as proposed on tech-install.
Enables the user to configure a few additional items, including using
pkgin to manage binary packages, in a post-install menu which replaces
the series of questions (Do you want to set a root password? etc).

This is by no means a perfect solution, nor should it discourage anyone
from working on more sweeping changes to sysinst.

Some bug fixes, and .de translation provided by Julian Fagir.

XXX .es, .fr and .pl translations still needed.  Please help!
2012-04-06 23:48:53 +00:00
wiz
3957bea1ef Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
matt
bda6ce62a2 Use C89 function definitions. 2012-03-21 05:43:55 +00:00
tsutsui
34ae6a8457 Remove trailing whitespaces where explicit line break is not necessary:
- paragraph break (two newlines)
 - list indent (leading tab)

XXX: msgc(1) lacks description about formatings.
2012-03-03 03:06:30 +00:00
tsutsui
c92748bcf3 Remove unused pasto messages. No Human68k on hp300. 2012-03-03 02:46:13 +00:00
tsutsui
e2ddea308d Remove trailing whitespaces in messages where line break is not expected. 2012-03-03 02:34:13 +00:00
tsutsui
fa87856d54 Remove (harmless) trailing tab. 2012-03-03 02:26:45 +00:00
tsutsui
e4fbe1f59d Remove trailing spaces not in message format. 2012-03-01 18:08:56 +00:00
tsutsui
9db2bcabd6 Remove trailing spaces not in message format. 2012-03-01 17:40:31 +00:00
tsutsui
a77ac84a0c Put back more spaces at EOL for line breaks. 2012-03-01 17:27:29 +00:00
mbalmer
2e5c623416 Put back spaces at EOL where needed (in a message file, a space at EOL
means a line break, a line break means a space...)
This should fix PR 46042.
2012-03-01 16:22:13 +00:00
agc
1923fda99b consolidate all of the volatile /var.* directories which are mounted as tmpfs
into a single one for /var - same as /root, /etc
2012-02-29 04:49:50 +00:00
mbalmer
b3d36785a0 Fold long lines and a little KNF. 2012-02-26 10:17:44 +00:00
ast
7964aa2984 Update the amd64 and i386 examples to use /usr/mdec/bootxx_ffsv2,
i.e. DEFAULT_UFS2 as src/distrib/utils/sysinst/bsddisklabel.c does
since post-NetBSD5.  This avoids rendering an i386 or amd64 system
unbootable if the given example is thoughtlessly cut-and-pasted on
a NetBSD6.x system (been there, done that ;-) Qualify the descriptions
of /usr/mdec/bootxx_ffsv{1,2} along those lines.

Fixed a small typo in comment of distrib/utils/sysinst/arch/amd64/md.h.

Ok by releng@
2012-02-09 18:35:44 +00:00
nisimura
1858b8306e - add MBR editing menu to sysinst.
- fix typos in timecounter names.
- make sure to drain Tx FIFO to avoid clobbering
  kernel boot messages.
- allow to have the 3rd UART.
- add missing time-of-day clock support.

Ok by releng.
2012-02-07 09:06:04 +00:00
nisimura
9aa0874ef1 Add Mini2440 entry to sysinst kernel selection. 2012-02-03 00:35:35 +00:00
phx
678263a5d4 Translate some new messages into german. 2012-02-02 22:15:04 +00:00
phx
bd07308fb4 Use sync(8) instead of echo(1) to avoid writing an RDB disklabel.
echo(1) is not part of the miniroot file system.
2012-02-02 21:58:31 +00:00
tsutsui
96d29df0a1 Select a proper kernel set (GENERIC or C700) per running INSTALL kernel name. 2012-02-02 16:00:35 +00:00
phx
2be87fafe3 Add support for RDB-partitioned disks.
When an RDB block was found on the disk we cannot change the disk layout,
and everything which has to do with MBR partitioning will be skipped.
2012-01-29 16:01:36 +00:00
tsutsui
c1e4c0e11a zaurus zboot supports UFS2. (as defined in zaurus/stand/zboot/conf.c) 2012-01-26 16:12:14 +00:00
phx
c43563e336 netboot is called altboot now 2012-01-25 19:03:35 +00:00
agc
d2e3329102 While the resulting image from mkimage can always be mounted with vnd,
and then modified, it is much easier to let this late, user-oriented
customisation be done automatically.  These mods let mkimage change
information based on files in a "custom" directory, which can be set
in mkimage using -c customdir.

After all other configuration, the files under custom/ will be copied
into the main image.  The files under custom/ are taken into account
when performing autosizing.

Also, generalise the sets directory to point to the current machine
architecture, although this can be overwritten from the command line
by anyone making cross-images.

An example to make a user image with an embedded read-only 100 MB
iSCSI target:

% ./mkimage -c custom
=== making a new 272 MB image in usermode.img ===
272+0 records in
272+0 records out
285212672 bytes transferred in 7.616 secs (37449142 bytes/sec)
=== mounting image via vnd vnd0 ===
/dev/rvnd0a: 272.0MB (557056 sectors) block size 8192, fragment size 1024
        using 6 cylinder groups of 45.34MB, 5803 blks, 11264 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 92880, 185728, 278576, 371424, 464272,
=== installing sets ===
base
etc
modules
=== performing customisations ===
=== making extra directories ===
=== customising /var/tmp ===
=== user customisations from files in custom ===
Filesystem    1K-blocks       Used      Avail %Cap Mounted on
/dev/vnd0a       269967     263958      -7489 102% /mnt
% ls -l -R custom
total 8
drwxr-xr-x  3 agc  agc  512 Jan 18 03:58 etc
drwxr-xr-x  2 agc  agc  512 Jan 18 04:00 iscsi

custom/etc:
total 8
drwxr-xr-x  2 agc  agc  512 Jan 18 03:58 iscsi
-rw-r--r--  1 agc  agc  564 Jan 18 03:58 rc.conf

custom/etc/iscsi:
total 6
-r--r--r--  1 agc  agc  799 Jan 18 04:27 targets

custom/iscsi:
total 102484
-rw-r--r--  1 agc  agc  104857600 Jan 18 04:00 iscsi-target0
% sudo vnconfig vnd0 usermode.img
% sudo mount /dev/vnd0a /mnt
% cat /mnt/etc/iscsi/targets
# $NetBSD: targets,v 1.2 2006/02/16 19:30:57 agc Exp $
#
# Structure of this file:
#
# + an extent is a straight (offset, length) pair of a file or device
#   it's the lowest common storage denominator
#   at least one is needed
# + a device is made up of one or more extents or other devices
#   devices can be added in a hierachical manner, to enhance resilience
# + in this example, no device definitions are necessary, as the target
#   will just use a simple extent for persistent storage
# + a target is made up of 1 or more devices
# The code does not support RAID1 recovery at present

# Simple file showing 1 extent, mapped straight into 1 target

# extent        file or device          start           length
extent0         /iscsi/iscsi-target0    0               100MB

# target        flags   storage         netmask
target0         ro      extent0         0.0.0.0/0
% ls -l /mnt/iscsi/iscsi-target0
-rw-r--r--  1 agc  agc  104857600 Jan 18 04:00 /mnt/iscsi/iscsi-target0
% diff custom/etc/iscsi/targets /mnt/etc/iscsi/targets
%
2012-01-20 02:19:47 +00:00
agc
00c311bc00 Add 3 scripts which are useful for making images for usermode, or any
embedded platform in particular.

+ mkimage will make an autosized image in a file (using vnd) from sets
the resulting image can be mounted read-only, with tmpfs used for volatile
files on top of read-only bases

+ mkpkgs will make an autosized image in a file (using vnd) from binary
packages

+ usermode is an easy way to invoke usermode, making sure that bridging
is set up properly, and that the host syscallemu module is loaded. This
script then runs usermode with two file images (as produced by mkimage
and mkpkgs)
2012-01-15 02:01:02 +00:00
gson
f6c2d0baa7 Add support for installing source sets as discussed on tech-install,
with improved German translations from Martin Husemann and Julian
Djamil Fagir.  French, Spanish, and Polish translations are
still needed.  OK christos, riz.
2012-01-10 21:02:47 +00:00
skrll
ccf87b9e24 Error if the root partition exceeds the PDC 2GB limit. The check now
catches invalid "existing" partitions. PR/45742

Thanks to martin for the German translation. The others are all my fault.

Thanks to mrg for comments
2012-01-09 11:51:41 +00:00
riz
9dc21a478b Copy resolv.conf into target even if it was created by DHCP, since in
that case, it will be replaced on next boot anyway.
2012-01-09 02:52:50 +00:00
riz
a457d440cf Use the "doingwhat" message for the multiple disks case, not just the
single-disk case.

XXX Native speakers of .fr, .es, .de, and .pl please make sure the
replacement makes sense.  Thanks!
2012-01-09 01:51:47 +00:00
riz
1bfc197123 Add defs.h to DPSRCS. 2012-01-08 21:20:40 +00:00
christos
ecad436e9c work for both X11R6 and X11R7 2012-01-08 02:32:00 +00:00
christos
56ed22796c this is only valid for X11R6; we never had a.out X11R7 2012-01-08 02:24:32 +00:00
christos
4e3ddc38b5 only deal with X11R7 now. 2012-01-07 18:54:30 +00:00
riz
924cc21636 Don't use snprintf() to format, when run_program() will do it nicely on
its own.  Suggested by joerg.
2012-01-06 20:52:43 +00:00
riz
39a56bcacc Use getfslabelname() instead of trying to access fstypenames[] directly. 2012-01-06 20:41:28 +00:00
christos
c9ef664a0f we want the label name not the fstype name. 2012-01-05 22:18:36 +00:00
christos
c4873f6cd0 eliminate logging variable from md code. 2012-01-05 21:32:35 +00:00
christos
4ea9182c55 eliminate useless booleans and use the file pointers as conditionals. 2012-01-05 21:29:24 +00:00
christos
c03a5a1e01 - add printflike and fix the broken formats
- make sure we don't exceed the number of partitions we have
2012-01-05 21:22:49 +00:00
christos
947502beba kill unused variable 2012-01-05 20:22:33 +00:00
christos
00d7813e05 use getfstypename from libutil. 2012-01-05 20:21:35 +00:00
christos
ede9eac481 - avoid dereferencing junk if fstype is out of bounds.
- kill mountnames since it is not used.
2012-01-05 19:43:59 +00:00
riz
35e4abfb48 Fix typo in comment. 2012-01-01 23:26:22 +00:00
he
abbf8bf0e6 Two more instances which need "return 0;" to fix the build. 2011-11-07 14:18:51 +00:00
he
e808022f5e Return 0 from md_pre_mount(), which is otherwise empty here, so that
this builds again.
2011-11-07 12:40:26 +00:00
martin
7a8c1b579b Add a new hook, md_pre_mount(), that is called after preparation of
the target filesystem, but before mounting it. Use this on sparc64
to install the primary boot block, but install the secondary boot
(/ofwboot) later.
This allows sysinst to run at securelevel 1 (as long as we don't do an
upgrade install on the hard disk we booted from).
2011-11-04 11:27:00 +00:00
martin
e3288b80f0 If we are not building SMALLPROG, there is no need to strip out INET6
support.
2011-11-01 09:26:37 +00:00
jakllsch
a7f0be9651 As both of the "ns-wide.wide.ad.jp" and "light.imasy.or.jp" IPv6 resolvers
now refuse my queries, replace them with "google-public-dns-a.google.com"
and "google-public-dns-b.google.com".
2011-10-30 00:30:56 +00:00
mbalmer
24e4901256 There is no doubt whether whether should have a 'h' after the 'w'. 2011-10-17 16:35:21 +00:00
joerg
6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
christos
c719768729 fix fprintfs with no format strings. 2011-09-14 12:35:19 +00:00
joerg
ef4c662073 -Wno-format-nonliteral for msg_defs.c 2011-08-25 17:39:58 +00:00
christos
d30a63af7f fix non-literal format string 2011-08-25 16:54:58 +00:00
christos
572b078924 document non-literal format string use for many md files 2011-08-25 16:47:16 +00:00
kiyohara
3137e2afff bebox not support md_post_newfs() and md_post_disklabel() now. Change null-func. 2011-08-25 15:42:33 +00:00
christos
b182f6a794 document non-literal formats 2011-08-23 10:26:07 +00:00
phx
1cc96bc3f9 The ofppc generic kernel has tmpfs, so use it. 2011-08-21 15:21:46 +00:00
phx
4875a7e930 Use PRIi64 for printing tmp_ramdisk_size, which is a daddr_t (64 bits).
This fixes the size of the ramdisk file system being 0 on big endian
systems.
2011-08-21 15:06:41 +00:00
phx
fd263523fc Unmounting /targetroot in md_post_newfs() is not needed.
Use target_prefix() instead of /mnt2 in md_post_extract().
2011-08-21 13:40:08 +00:00
wiz
3de59c619c Improve a comment. For Snader_LB. 2011-08-16 18:28:41 +00:00
wiz
e6edecb609 Fix typo in comment, from Snader_LB. 2011-08-16 13:58:21 +00:00
tsutsui
44631bea4d Some style nits. 2011-07-16 23:49:10 +00:00
tsutsui
bf2202e183 Revive NetBSD/luna68k.
Even after almost a lost decade since NetBSD/luna68k was
switched to using ELF format by default back in 2001,
actually only one fix (bus.h) is required for a GENERIC kernel itself
to get multiuser login: prompt on a real hardware.  Hurrahhh!!!

Demonstrated with a working Xorg mono server on the NetBSD booth
at Open Source Conference 2011 Kansai @ Kyoto:
 http://www.ospn.jp/osc2011-kyoto/

"Very impressed," commented by Tomoko YOSHIDA,
Program Committee Chair of the Conference,
and some other OMRON guys.

Special Thanks to Tadashi Okamura, for providing
a working SX-9100/DT "LUNA" for this mission.


Changes details:

sys/arch/luna68k/include/bus.h
 - handle stride properly even on multi and region ops for MI spc(4)
 - also fix stride handling of (currently unused) 2 and 4 byte ops

sys/arch/luna68k/conf/Makefile.luna68k
sys/arch/luna68k/conf/kern.ldscript.head
sys/arch/luna68k/conf/kern.ldscript.tail
 - build a faked a.out kernel using elf2aout(8) tool
   and a linker script derived from cats and shark
   for the LUNA firmware that loads a.out binary directly
   via network or from a UNIOS partition on a local disk

sys/arch/luna68k/dev/omrasops.c
sys/arch/luna68k/dev/omron_rfont.h
 - use the original OMRON font derived from 4.4BSD-Lite/luna68k
   rather than gallant19 which is used on Sun workstations
   (XXX omrasops.c should be rewritten to use generic wsfont(4))

distrib/luna68k/*
distrib/utils/sysinst/arch/luna68k/*
etc/etc.luna68k/MAKEDEV.conf
etc/etc.luna68k/Makefile.inc
sys/arch/luna68k/conf/INSTALL
 - build a ramdisk based INSTALL kernel with sysinst(8) for luna68k
 - also build an installation iso image for luna68k

sys/arch/luna68k/conf/GENERIC
 - enable SYSVSHM (and other SYSV*) options for Xorg server

More Xorg changes (which need some more cleanup) and
isiboot.c fixes will come soon.
2011-07-16 15:52:20 +00:00
mrg
008b45d2d8 avoid a "multi-level non-const cast" warning from GCC 4.5. 2011-07-06 01:19:45 +00:00
mrg
82112210da fix check against errstr to use the right variable. GCC 4.5 rightly
complained that err (the libc function) is always not NULL.
2011-07-06 01:18:08 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
mrg
75e42fa7da remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
tsutsui
326d8524e2 Add -DNO_PACK_SUPPORT and -DNO_XZ_SUPPORT to CPPFLAGS to omit
extra algorithm not used in installer.

XXX: should we use positive options in usr.bin/gzip/Makefile?
2011-06-19 01:25:35 +00:00
nonaka
665e83d2f3 MBR magic exists at the beginning of 'a' partition, BPB is cleared.
Avoid to detect msdosfs incorrectly at boot time.
2011-06-11 11:43:23 +00:00
joerg
56436077b3 Use proper format strings. 2011-05-30 14:20:48 +00:00
joerg
e4a1ce5cf6 Declare mmsg as string constant, not as a pointer to a string constant.
This avoids format strings warnings.
2011-05-30 14:20:19 +00:00
christos
fe1bab6e3f a little better. 2011-05-20 02:12:39 +00:00
tsutsui
aabb34a38b - WARNSfy
- KNF, ANSIfy, remove __P(), misc cosmetics
2011-05-19 22:23:12 +00:00
tsutsui
a628ef7c5c - WARNSfy
- KNF, ANSIfy, misc cosmetics
2011-05-19 22:14:15 +00:00
tsutsui
84af88e97a - WARNSfy
- KNF, ANSIfy, misc cosmetics

note: this is small shell, not secure shell.
2011-05-19 22:12:35 +00:00
martin
1f1f76a438 Add an "exitstring" to the utility menu, so translations can provide
proper strings (like: "back to main menu"). For most translations set
to plain "Exit" (like it used to be) for now - natives, please fix!
2011-04-17 12:33:42 +00:00
martin
99f3e96716 Make all curses/$TERM related failures exit with error code 4 (everything
else in here only exits successfully or with error 1), so we can react
accordingly in the surrounding script. Part of fixing PR 44738.
2011-04-08 15:53:44 +00:00
mbalmer
3d6299dc28 Remove the advertisement clause from files copyrighted by Piermont Information
Systems, with the consent of the copyright owner, Perry E. Metzger.
2011-04-04 08:30:12 +00:00
phx
2511250d06 Remove debugging output. 2011-03-26 22:16:33 +00:00
martin
02bd0cacbd German spelling rules have changed - remove some sharp-ss accordingly. 2011-03-26 16:30:20 +00:00
riz
8058e4e3ef Fix pasto/sed errors, so acorn26/acorn32/alpha/bebox
builds can complete.
2011-03-25 22:56:34 +00:00
martin
2d9a4c8a05 Split "md_hello" meesage (wich was abused on most archs to tell the user it
is safe to remove a "floppy" now) into two parts: md_hello to tell MD
specific informations (empty on most archs), and md_may_remove_boot_medium,
which is only added if md_may_remove_boot_medium() says so - by default only
say so on non local / filesystems, and never if / is on CD/DVD.

Fixes first part of PR 44738.

XXX - I'm not a linguistic genious nor semantic mind reading sed process,
please fix any fallout if you are a native speaker of an affected language
and/or user of a port I did not test. Send-pr if in doubt.
2011-03-24 22:01:13 +00:00
phx
c04d0174cc Use sysctl-node machdep.prodfamily to decide about the kernel to install and
to fix the console speed in /etc/ttys.
2011-03-20 12:43:40 +00:00
adam
561fc3a751 Added missing Polish translations 2011-03-08 11:24:28 +00:00
matt
10df5a1be5 Deal with 64 bit versions of kernels 2011-02-20 08:26:08 +00:00
joerg
3cb4a8235c Update Spanish translation. From Riastradh on IRC 2011-02-01 01:43:15 +00:00
joerg
35fb1ac585 Introduce a new option for all base sets without X11.
From jmcneill with translation help from Daniel Horecki.
2011-02-01 01:42:07 +00:00
pooka
380d30c783 make this build on non-emips again 2011-01-26 10:58:19 +00:00
pooka
5f7e80a834 Add support for the Extensible MIPS ("eMIPS") platform. The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.
2011-01-26 01:18:43 +00:00
joerg
840ff94b9f Fix the weak aliases to match the libc version and not leave unresolved
symbols around.
2011-01-12 23:34:00 +00:00
pooka
3c577ba703 Deal with crunch the standard way. 2010-12-15 11:22:41 +00:00
hannken
4d6cf788fb Make the definition of CRUNCHOPS independent of SMALLPROG_INET6 / USE_INET6.
Distrib/sparc64/instfs now builds again.
2010-12-14 17:07:08 +00:00
pooka
a74a091f67 use CRUNCHOPS for a crunched prog 2010-12-13 21:47:32 +00:00
pooka
e8de1d91d0 be a happy crunch build 2010-12-13 19:19:10 +00:00
pooka
8603230f7e Define PROG here since Makefile.inc no longer defines it. 2010-12-13 17:35:31 +00:00
jmmv
c3babaca78 Remove password cipher selection as discussed in current-users@.
Users who really really really want to change the default setting can
continue to change their cipher algorithm right after a clean install
by modifying /etc/passwd.conf and regenerating the root password if
previously set by sysinst.
2010-12-04 14:57:56 +00:00
tsutsui
1e8199a6ea Add dumb code to select an appropriate kernel set to be installed
per running INSTALL kernel name taken from sysctl kern.version.

XXX: on all arm ports, sysctl hw.cpu_model returns a processor name,
XXX: not machine model as mentioned in <sys/sysctl.h>.
2010-09-04 01:23:25 +00:00
martin
f5c8ee89a1 Re-enable LFS as /, now that booting from it works with the sysinst default
FS parameters.
2010-06-25 10:21:50 +00:00
phx
7031fa6dfc Automatically adjust the console speed to 57600 in /etc/ttys for KUROBOX
kernel.
2010-06-13 15:32:00 +00:00
phx
16b097908c Adapted sysinst and installation docs for modern NAS boxes. 2010-06-09 17:37:23 +00:00
tnozaki
068f43028d fix build breakage by multiple definition of __mb_cur_max. 2010-06-08 17:12:32 +00:00
tsutsui
3a09116b96 Sync with md.h rev 1.17:
> convert sparc64 to MULTIPROCESSOR kernel by default, and introduce
> s/MP/UP/ kernels were otherwise in place.
2010-05-11 09:46:46 +00:00
tsutsui
6ea92ed1bd Add WZERO3 kernel to MD kernel set menu for
possible newer users of these smartphones:
http://www.willcom-inc.com/ja/lineup/ws/004sh/
http://www.willcom-inc.com/ja/lineup/ws/007sh/
http://www.willcom-inc.com/ja/lineup/ws/011sh/
etc.

XXX: sysinst/util.c:init_set_status() calls md_init_set_status()
XXX: to allow MD hook choose the right kernel, but it can do nothing
XXX: because set_status[] was changed to static. Is it okay to export it?
2010-05-10 16:33:45 +00:00
tsutsui
30fe5a6c65 Remove non-English translations from ews4800mips sysinst.
I don't think there are any EWS4800 users outside Japan.
2010-05-04 13:33:13 +00:00
martin
22ccb73099 Prevent a -ve int -> uint32 underflow, noticed by joerg.
If a partition ends up 0-sized, set it to FS_UNUSED to avoid later warnings.
2010-05-03 23:04:12 +00:00
tsutsui
5b534b475e Add sysinst(8) for hpcsh.
Mostly taken from hpcsmips, but no non-English translations.

Tested on HPW-50PA.
2010-05-03 14:14:35 +00:00
tsutsui
b3d183afc6 There is no bootable floppy on hpc ports.
XXX: no translations
2010-05-02 16:35:09 +00:00
tsutsui
8fc25fb037 Remove unused messages. (mostly pulled from i386?)
XXX1: I don't think it's worth to keep bad144 for modern flash devices.
XXX2: Should we still maintain non-English translations without a maintainer
      even after we removed www translations?
2010-05-02 14:00:44 +00:00
tsutsui
d9f9bedcec hpcarm doesn't have GENERIC or TX3912.
Use IPAQ and JORNADA720 instead in messages per md.h.

XXX1: hpcarm seems to have more kernels.
XXX2: hpcarm doesn't have a common INSTALL kernel so
      choosing a kernel set during sysinst doesn't make sense.
2010-05-02 13:52:00 +00:00
tsutsui
6dda4ee2ed Fix pasto in comment. 2010-05-01 11:13:01 +00:00
martin
a08b65f1f7 Oops - last change could lead to crashes - when not asking for a geometry,
use the default one.
2010-04-19 21:12:51 +00:00
martin
0748c0df89 Do not ask for a "bios geometry" if we can not match the device to a bios
known device - it's most certainly a don't care.
2010-04-19 20:35:23 +00:00
martin
a00365f163 Fix a varargs argument type mismatch on 32bit archs - change format to
explicitly use %lu and cast the passed value accordingly.
2010-04-19 19:22:41 +00:00
martin
2a48105b23 Tune a message 2010-04-19 19:16:11 +00:00
martin
7824e94c72 The 16bit "bootmenu valid" magic is slightly week, collisions have been
seen in the wild. So, before accepting arbitrary strings from there,
validate at least slightly and ignore if the entries are not properly
0 terminated or contain controll characters.
2010-04-15 22:55:15 +00:00
nonaka
238763f6ce Added support following boards.
- AlphaNet MS104-SH4
- TAC T-SH7706LAN Ver.3
- TAC T-SH7706LSR Ver.1
2010-04-06 15:54:29 +00:00
martin
2116ace6a7 Add a NO_LFS define to force support for LFS in sysinst off, even if
the install media provides the utilities. Set this for sparc64 for now,
since the bootblocks don't deal with the default LFS parameters used
by sysinst.
2010-04-05 22:53:02 +00:00
christos
84ea502702 handle ctime returning NULL. 2010-04-02 15:34:16 +00:00
martin
9174b80259 Do not bother to ask the user for CD details (like device name or path
on the CD) if we can find CDs (i.e. media, not drives) automagically
and check the standard paths on it.

If we find multiple CDs, offer a menu to select showing the volume
name. If something goes wrong, fall back to the manual input method.

In typical installs this makes us just proceed with extracting the sets
after selecting "install from CD/DVD", w/o any further interaction.

As a side effect fixes PR 43012.
XXX new messages need translations.
2010-03-30 20:09:25 +00:00
mrg
4b35b5643b convert sparc64 to MULTIPROCESSOR kernel by default, and introduce
s/MP/UP/ kernels were otherwise in place.

in my testing on a U60, i couldn't really notice any different in
speed, but we need testing on a U1/U5/U10 systems to be sure that
GENERIC.UP isn't necessary.

for sparc64, this is some what required as USIIIi systems have the
memory controller on the CPU, and unless the CPU is spunup, a UP
kernel will not function on these systems.  (we obviously need to
join the NUMA-for-netbsd camp now, too! :-)


this should enable the installer to function on all systems that we
support, but also give the option for people to install GENERIC.UP
on their single-cpu systems if they choose.


XXX: i haven't actually tested sysinst with this, but i have built
both sparc and sparc64 release iso's successfully with this change
(sans having to comment out kern_ctf.c.)
2010-03-13 08:36:06 +00:00
abs
6c6ab6a995 Relegate edlabel to use in extremely memory constrained install
ramdisks and prefer disklabel elsewhere.
Based on discussion on affected port lists (port-sparc port-sparc64
port-sun3 port-sun2 port-atari port-mvme68k).
All listed ports plus amd64 test built after change
2010-03-10 23:13:09 +00:00
martin
fef6bd65fd Enable dynamic sizing of the default swap partition 2010-02-28 22:42:44 +00:00
wiz
95c5212343 Consistently call the file system "ext2". 2010-02-21 13:28:12 +00:00
martin
c9c80e594c Since we call /usr and /var with absolute paths, lets do that for /tmp
as well.
2010-02-18 12:21:52 +00:00
martin
7171f90002 We can now boot from FFSv2, so offer it + even use it as a default. 2010-02-17 16:11:00 +00:00
martin
c82870bc88 eeh says we should not enable fsck_lfs on lfs partitions 2010-02-17 16:09:52 +00:00
roy
98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
ahoka
291052535a Make it proper KNF as it should have been done in my previous commit. 2010-02-01 00:39:03 +00:00
ahoka
57c158572e Remove duplicate sys/sysctl.h inclusion and put includes in alpabetic
order.
2010-02-01 00:06:18 +00:00
jmmv
296908ed7b Perform in-place replacement of the cypher type instead of renaming the
passwd.conf file to passwd.conf.pre-sysinst file and creating a new one
from scratch:

- This is consistent with all other edits of configuration files performed
  by sysinst.  (E.g. in-place changes of rc.conf.)

- This eases the upgrade of the system to a newer set of files because the
  diffs presented by etcupdate are easier to read.

No objections in tech-install@.  Tested installing NetBSD/amd64.
2010-01-27 11:02:03 +00:00
wiz
7d9fce090d Only a return value below 0 denotes an error in open(2). Found by cppcheck. 2010-01-17 22:48:50 +00:00
wiz
af7d8656df Close file when finished with it. Found by cppcheck. 2010-01-17 22:47:18 +00:00
martin
faac5a2278 Avoid adding -Os to CFLAGS if DBG is set and contains -g.
This helps gdb a lot when compiling local debug versions of sysinst.
2010-01-13 07:52:38 +00:00
martin
1aca3c1cd8 Use the proper structs for ioctls to fetch network configuration.
Might fix PR 42436.
2010-01-13 07:48:57 +00:00
dsl
23ee525d3d Change most of the variables that hold disk sector number to be (at least)
uint32_t. Might make sysinst work on disks between 1TB and 2TB.
Not actually tested because I don't have a big disk.
Hopefully I haven't broken the small disk case!
Set WARNS= 4 so that comparisons of signed and unsigned block numbers
are trapped.
2010-01-02 21:16:46 +00:00
dsl
7dd4a9773c Fix another couple of signed v unsigned comparisons of disk block numbers. 2010-01-02 20:54:46 +00:00
dsl
8f503a6d66 Fix some of the sign-compare fubar. 2010-01-02 18:06:57 +00:00
dsl
6b52b2b9be Sanitise whitespace to minimise the differences between these files. 2010-01-02 17:15:07 +00:00
nonaka
5a5f67b6bf "Full installation" should install kernel. 2009-12-22 11:14:33 +00:00