Commit Graph

1726 Commits

Author SHA1 Message Date
tsutsui
b13a31e41c Apply patch in PR port-alpha/48697 (with some tweaks).
Tru64 UNIX's disklabel is the same format as BSD disklabel,
and it seems Tru64 stores incorrect geometry values in
d_nsectors (sectors/track) and d_secpercyl (sectors/cylinder).
d_secperunit seems always reliable so use it to get
dlsec (sectors/track) and dlcylsize (sectors/cylinder) values.

Should be pulled up to netbsd-6 branches.
2014-06-02 15:03:47 +00:00
martin
41671a8417 Enable swap during sysinst as early as possible 2014-05-28 11:16:03 +00:00
christos
b862878222 merge more, and add an i386 image 2014-04-04 16:45:51 +00:00
christos
9926e61998 now that fdisk has optional arguments, don't pass -1 2014-04-03 22:51:38 +00:00
ozaki-r
66441ce925 Include evbarm.conf as same as other conf files
evbarm.conf ensures ${mnt}/boot exists so that it avoids the error:
  /home/builds/ab/HEAD/src/distrib/utils/embedded/mkimage: cannot create \
  /tmp/mkimage.24444a/mnt/boot/cmdline.txt: directory nonexistent
2014-04-03 01:36:20 +00:00
christos
652c754390 remove swap; these days x86 machines don't need it. 2014-03-31 18:18:45 +00:00
christos
1ccc28a220 provide a -r rootdev option to handle the wd/sd/ld lossage. 2014-03-31 18:18:29 +00:00
christos
08207c1137 these changes produce a bootable system under qemu, but its root is trashed. 2014-03-31 17:05:03 +00:00
christos
b87f017469 Add preliminary support for creating x86 usb sticks with mkimage.
This is untested, and just a checkpoint of the work. Image looks
ok, but I have not tried if it boots.
2014-03-31 16:20:48 +00:00
martin
aad6ef8bb5 Bring back the playstation2 port - now that a toolchain for it is
available again.
2014-03-31 11:25:47 +00:00
skrll
6d3ceb1d61 Rename NetBSD/hp700 to NetBSD/hppa.
Unfortunately our VCS isn't very helpful here.
2014-02-24 07:23:38 +00:00
tsutsui
2bfe408bb8 Improve luna68k md part of sysinst.
- setup a boot UFS partition and install native bootloader
- add messages how to setup NVRAM variables for firmware to load bootloader
- enable swap on <= 32MB machines
2014-02-19 12:14:40 +00:00
tsutsui
bde3bdd586 Use msg_display(3) rather than printf(3) to print dobootblk messages.
The latter won't show any characters on the sysinst screen
and other ports have used the former.
2014-02-15 19:45:43 +00:00
christos
2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
christos
73e8f5b689 refer to our own h_errno so we don't fetch the libc one 2013-12-21 20:10:02 +00:00
martin
5a653d813b Add a tmpfs for /var/shm on machines with more than 16MB ram to the created
/etc/fstab.
2013-12-07 20:40:42 +00:00
martin
1b1205ff08 Remove duplicated line for /etc/fstab in file list 2013-12-07 19:42:36 +00:00
skrll
a47f2be0b8 Put console=fb back as autodetect is bunged up. 2013-11-28 13:39:18 +00:00
skrll
bc409d7b58 Fix /dev population of the evbarm images by using MAKEDEV -s and appending
to the mtree spec file passed to makefs.
2013-11-22 11:13:54 +00:00
christos
f55ff5e8dd vax specific gcc 4.8.1 hacks 2013-11-09 21:39:27 +00:00
christos
d0cb43a4be remove unused variable 2013-11-07 17:18:22 +00:00
christos
debabdd480 fix unitialized variable access 2013-11-04 20:07:49 +00:00
drochner
958a129dbd -recognize CF cards by the magic value in inquiry data
-kill CFG_ATAPI_MASK, didn't see anything in the specs supporting
 that it exists
2013-10-30 15:37:49 +00:00
mrg
82ccf86971 remove unused variables 2013-10-30 08:39:01 +00:00
tsutsui
65aea71825 Fix another botch of my dumb patch in PR/45990; add missing braces.
The offset of MBR partition 0 was unintentionally set to 2048 even on
small (<=128GB) disks.  Probably we should rethink the threshold,
but anyway sysinst(8) should follow fdisk(8) default.
http://nxr.NetBSD.org/xref/src/sbin/fdisk/fdisk.c?r=1.145#1199
http://cvsweb.NetBSD.org/bsdweb.cgi/src/sbin/fdisk/fdisk.c#rev1.129

The problem is pointed out and analyzed by Simon Nicolussi in PR/48304.

Should be pulled up to all netbsd-6* branches.
2013-10-13 15:32:14 +00:00
ast
d134b5afd8 After discussions with cristos regarding the previous commit, he
convinced me it was sufficient to define GZIP_CMD only in
distrib/utils/embedded/mkimage and not again in the config files
beagleboard.conf, rpi.conf, and rpi_inst.conf similar to how the
other variables $src, $release, $mnt, ... are only defined there.
2013-09-16 15:23:57 +00:00
ast
555103854f Fix build release of evbarm which had been failing in mkimage
beagleboard_smp with the elusive message:

    "gzip: can't stat: gzip: No such file or directory"

This was due to GZIP=gzip being defined in mkimage; we now use:

    GZIP_CMD=${TOOL_GZIP:-gzip} # ${GZIP} is special to gzip(1)

as distrib/sets/sets.subr already does in these files as well:

    distrib/utils/embedded/mkimage
    distrib/utils/embedded/conf/beagleboard.conf
    distrib/utils/embedded/conf/rpi.conf
    distrib/utils/embedded/conf/rpi_inst.conf
2013-09-14 12:51:27 +00:00
christos
27af00aa70 avoid copying most of libc (except gethostent_r, which unfortunately
adds a resolver dependency) by callling the internal nsswitch functions.
2013-08-27 09:53:33 +00:00
christos
5f8c91aab5 provide the symbols sethostent.c in libc is missing. 2013-08-25 08:46:34 +00:00
jmcneill
9ca21b5a2d 4th time's a charm (I hope). Make sure that we pick up the kernel path passed to
mkimage command line, and not the default.
2013-08-21 22:52:28 +00:00
christos
f5cfca3b2e modernize, comment out dead code, amend gethostbyaddr prototype. 2013-08-20 15:44:17 +00:00
jmcneill
fbfe999cbc Instead of trying to pass two kernels to beagleboard.conf, pass one and
derive the path to the second from the first.
2013-08-19 04:27:22 +00:00
jmcneill
0b185da1b6 Try to pick up the right location for BEAGLEBONE and BEAGLEBOARD kernels. 2013-08-17 13:08:16 +00:00
jmcneill
4aa709989e support beaglebone and beagleboard with the same image 2013-08-16 00:03:01 +00:00
jmcneill
dff3087daa use console auto detection, ok nick 2013-08-01 10:45:21 +00:00
joerg
ad436ff631 Fix stack overflow. 2013-07-10 08:00:29 +00:00
matt
21ab2522a4 Keep both c: and d: paritions so this can work with systems that have
RAW_PART as 2 or 3.  Addresses PR/47688.
2013-07-05 15:45:17 +00:00
matt
cf364a0187 Just split it into two strings and eliminate the newline.
This goes into .ident so the newline doesn't matter.
2013-07-03 14:29:28 +00:00
matt
741c872fa1 Use ANSI C string concatenation 2013-06-28 15:44:27 +00:00
christos
59f914cb33 SSD cards is stupid. 2013-06-27 14:51:30 +00:00
christos
63f6ce0ea2 explain -m better 2013-06-27 03:03:16 +00:00
christos
ccedefbe54 tidy up, fix usage 2013-06-27 03:00:53 +00:00
jakllsch
a78ff5d27c Use TOOL_GZIP in mkimage, and pass the TOOL_GZIP into it. 2013-06-16 13:47:42 +00:00
christos
483cb9d94d If minwrites is set:
- set noatime, nodevmtime for root
	- use tmpfs for frequently written files
	- use unix sockets instead of fifos for postfix
From:
http://rich-tbp.blogspot.com/2013/03/netbsd-on-rpi-minimizing-disk-writes.html
2013-05-20 19:28:44 +00:00
christos
1ecbd28829 - explanations for single letter flags
- flag to add debug sets
- flag to minimize writes to sd's
2013-05-20 19:27:17 +00:00
tsutsui
186ae29489 Add SET_X11_NOSERVERS for default installation sets.
Althrough landisk doesn't have any screen console (except possible udl(4)
and ukbd(4)), it's a good environment to build packages binaries for sh3el,
including dreamcast.
2013-05-14 13:41:48 +00:00
tsutsui
18d49399c6 Remove pasted but obsolete comments. 2013-05-14 13:15:55 +00:00
tsutsui
8d0fe2ad86 Use the default MD_SETS_SELECTED for ports which have Xservers. 2013-05-14 13:14:27 +00:00
tsutsui
10c998805e Use the default MD_SETS_SELECTED in util.c which includes an Xserver set.
luna68k has working Xserver so no need to specify md MD_SETS_SELECTED
with SET_X11_NOSERVERS.
2013-05-14 13:08:57 +00:00
isaki
89a2e05aa5 Enable rc_configured=YES in sysinst.
The problem that sed was not contained in ramdisk was already gone.
analized by tsutsui@.
XXX Only hp300 and mvme68k seem to have the same problem.
2013-04-21 06:24:42 +00:00