Commit Graph

1775 Commits

Author SHA1 Message Date
christos
16045db705 This is an example how to make a small program using libc. Original size
300K; final size 75K.
2017-01-12 01:58:03 +00:00
christos
d8205999e6 adjust to new zlib 2017-01-11 04:04:12 +00:00
christos
b6800095e8 PR/50729: Izumi Tsutsui: Add "small" disklabel 2016-01-31 18:56:49 +00:00
christos
d066f94a02 PR/50710: David Binderman: Fix memory leak. 2016-01-26 16:04:12 +00:00
skrll
8a25fadb3b C&P of change in rpi.conf (maybe factor out)
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-12-19 14:57:49 +00:00
jmcneill
0572689e04 Remove JETSONTK1 and NYAN-BIG kernels, add a new unified kernel named TEGRA. 2015-12-13 23:02:56 +00:00
jmcneill
719aab5470 Cubieboard2 kernel is named netbsd-CUBIEBOARD.ub not netbsd-CUBIEBOARD2.ub 2015-08-21 17:08:11 +00:00
ozaki-r
96b5a23030 Add -DCRUNCHOPS
It's required because ping6 is now rump-ified.
2015-08-07 00:37:14 +00:00
jmcneill
f9279be4bd install jetsontk1 boot script as boot.scr 2015-08-02 11:11:32 +00:00
jmcneill
c33ccff2e1 use a larger (64KB) block size, this helps SD card performance 2015-08-01 10:05:51 +00:00
jmcneill
54fb23f641 mount root partition with noatime 2015-08-01 10:04:50 +00:00
jmcneill
e3283cc16e Align partitions to 64MB for the benefit of SD cards > 32GB 2015-08-01 10:04:06 +00:00
martin
25295acf2a Properly escape the $ when trying to pass the u-boot env var $kernel.
From Rin Okuyama.
2015-07-15 11:29:16 +00:00
martin
5051ec142e Add a new endianes flag to mkimage and pass it on big endian arm builds.
From Rin Okuyama.
2015-07-15 11:27:13 +00:00
skrll
6e1c589f77 Turn resize on 2015-07-08 10:57:46 +00:00
christos
1eeb780228 double quote police 2015-05-24 17:11:18 +00:00
christos
a3d0d7425d fix mkubootimage 2015-05-24 17:08:21 +00:00
jmcneill
e37dd27486 add JETSONTK1 to armv7.img 2015-05-22 01:18:22 +00:00
christos
ae5191b56d Add small. 2015-04-28 15:14:07 +00:00
hubertf
4eeec9e6c7 More cleanup:
Instead of first overwriting the *_evbarm functions with own code,
and then calling them from the regular functions, directly put the
code into the regular functions.

No more functions from evbarm.conf are used now.
Some variables are still used!
2015-04-19 18:53:33 +00:00
hubertf
5537be8f18 Cleanup: make_filesystems is not used any longer, purge remains 2015-04-19 18:28:31 +00:00
hubertf
7141992348 Add some documentation:
Tell what this does, and what it expects from conf files
2015-04-19 17:56:57 +00:00
hubertf
607c1b1921 Properly spell X' name. From X(7):
The  X.Org  Foundation  requests  that the following names be used when
       referring to this software:

                                          X
                                   X Window System
                                    X Version 11
                             X Window System, Version 11
                                         X11
2015-04-18 22:06:48 +00:00
jmcneill
703f075e77 Rename beagleboard.img to armv7.img. The new image includes the same
kernels as beagleboard.img plus support for Raspberry Pi 2, ODROID-C1,
Cubieboard2, Cubietruck, Hummingbird A31, and Banana Pi.
2015-04-09 10:55:23 +00:00
jmcneill
89275c06a0 show resize_ffs progress bar when resizing root partition 2015-04-06 22:44:46 +00:00
jmcneill
5d40b917cc initialize resize before pulling in board config 2015-04-06 22:20:52 +00:00
jmcneill
d32faae6e2 Add support for auto-growing the root partition. Enable it for rpi.img. 2015-04-06 20:19:28 +00:00
jmcneill
8c877c0d3d resizing of ffsv2 still doesn't work well, so revert previous, and instead
explicitly set fsize=2048/bsize=16384, which gives a pretty decent boost
to resize_ffs performance on its own
2015-04-06 17:59:36 +00:00
jmcneill
422b7a467a Use FFSv2 instead of FFSv1 for the root file-system. This should fix the
"resize_ffs takes forever" issues with evbarm images -- growing a v2
file-system is much faster than v1.
2015-04-05 17:05:45 +00:00
skrll
28e709c9a3 Add RPI2 to kernels build for both earmv[67].
Use the earmv6 built kernels to create an image that can be used on both
RPI and RPI2
2015-03-06 11:11:55 +00:00
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