Commit Graph

1745 Commits

Author SHA1 Message Date
jmcneill
af4a1cc43f actually write cpufreq changes to ${mnt}/etc/rc.local instead of /tmp/a 2015-02-12 10:59:44 +00:00
jmcneill
bc8895a810 By default, RPI firmware sets the max CPU frequency to 600MHz. This can be
overridden by setting arm_freq in config.txt, but the default freq at boot
is still 600MHz.

Add logic to rc.local to compare the current vs. max CPU frequency; if they
differ, set the target frequency to the maximum.
2015-02-06 15:15:01 +00:00
skrll
6931a97454 Fix previous so that the new generated rc.conf is picked up and that
any new new mount points (e.g. /proc and /kern) are generated.

While here increate the fs size so that postfix can actually build
/etc/mail/aliases.db
2015-01-29 14:54:06 +00:00
jmcneill
63e2bac990 add /var/shm tmpfs to fstab 2015-01-28 12:08:00 +00:00
skrll
1714369b9e PR/49596: mkimage: incorrect permissions on evbarm images
Use NetBSD.dist in our mtree specification to populate the top level
directories, etc.

For each generated file hand craft an mtree entry.

Remove specialdirs as NetBSD.dist creates /proc and /kern.
2015-01-23 15:17:58 +00:00
skrll
25fa99ca2c Use [dx]sets_p as flag for debug/X sets inclusion. xsets is the list of
sets.
2015-01-18 17:37:54 +00:00
martin
42a1d150e6 Move bogusly merged files over to new location. 2014-12-28 11:51:10 +00:00
christos
c98d156d18 fix image building:
- round up the total size of the disk image
	- fix fdisk offset for netbsd ffs images
2014-12-14 00:28:46 +00:00
jmcneill
b74092acc2 disable wapbl for evbarm images until stability issues are sorted out 2014-11-25 13:42:31 +00:00
htodd
685040dc40 Remove unused variable. 2014-11-15 19:15:51 +00:00
christos
c94539ae6b handle the "special" wc NULL case. 2014-11-15 17:49:19 +00:00
uebayasi
cd6a87a95d Fix build of crunched "route". 2014-11-07 02:57:19 +00:00
jmcneill
d7994b45da escape $ in $board so this will boot on beaglebone too 2014-09-29 17:54:13 +00:00
jmcneill
88d1b35fc5 turn on ntpd 2014-09-09 13:02:25 +00:00
christos
386021af1d Use .PATH because the newmake does not apply pattern rules to sources in
other directories. Leave the comment and the old code for now so people
are aware that this might not work.
2014-08-25 14:11:51 +00:00
matt
beb9c6d1b5 Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
2014-08-10 05:47:35 +00:00
dholland
eed67d2502 Don't descend into sysinst. 2014-07-26 19:35:10 +00:00
dholland
50dbef1a09 Move sysinst sources to usr.sbin.
This commit only physically moves the sources - there are no other
changes, to maximize the probability that this will be treated as a
rename if we ever do manage to migrate away from CVS.

Moving sysinst has been discussed on and off for years and has two
goals: making it easier to work on sysinst, and also making sysinst
available on running systems for use installing chroots and VM images
and other such things. None of the latter is possible yet, but as they
say, one thing at a time.

Doing this now was approved in an impromptu fashion by mrg, riz,
riastradh, me, and groo.
2014-07-26 19:30:39 +00:00
dholland
0736ba101a Revert version 1.111 of sysinst/disks.c, which caused sysinst to
create lfs fstab entries with fsck disabled, and instead patch
fsck_lfs to exit successfully without doing anything when given the -p
(bootup preen) option. If you really want to do fsck_lfs -p, you can
do fsck_lfs -f -p to make it go.

This has been sitting in my todo queue since February 2010 and was
ok'd by the committer at the time. The original commit was based on
this post:
   http://mail-index.netbsd.org/tech-kern/2010/02/09/msg007306.html

and I remain unconvinced that it's the right thing, but we can at
least do it properly and not ship a sysinst with -7 that creates
permanently wrong fstab files.

Note that this may cause problems for anyone who's taken -p out of the
bootup fsck flags; but doing that is wrong, so don't.
2014-07-12 16:11:27 +00:00
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