Commit Graph

84 Commits

Author SHA1 Message Date
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
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
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
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
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
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
htodd 297d30db54 Double extra to fix image size to fix build. 2013-04-03 19:37:43 +00:00
jmcneill b40b80aea7 For ffs, set bytes per inode to 4K. Otherwise we get a density based on
the contents of the image, which aren't very useful after the file-system
has been resized -- for rpi.img, this was 22K per inode!
2013-03-28 00:20:02 +00:00
jmcneill 8dfeb61e2b turn on devpubd 2013-03-24 14:11:59 +00:00
garbled 1630987ad9 Fix an empty shell function here, per Greg Troxel. Apparently empty shell
functions are not 100% portable.
2013-03-20 14:47:20 +00:00
garbled 4daade7385 Add a new installer image for Raspberry PI to evbarm
Includes the following major changes:

1) Add new configmenu item to sysinst to allow creation of users at
post-install time.
2) Add an sshramdisk type to evbarm, which is a ramdisk with sshd
enabled, allowing users to install on a headless PI by sshing to the
device with the account "sysinst" password "netbsd" to begin the
installation. (Note, neither the account, nor the ssh setup are copied to
the finalized installation image)
3) Change mkimage to build a boot-only image, without the root filesystems.

Much of the sshramdisk code could be reused on other ports easily.
2013-03-19 22:16:52 +00:00
htodd 259801b095 Disklabel need to use sectors, not bytes. Thanks to agc. 2013-03-01 14:28:22 +00:00
hans 93170f635e Use HOST_SH to run scripts. Makes mkimage work on SunOS. 2013-02-21 15:13:10 +00:00
riz 3d6cc52bac Use "gzip -dc" instead of "zcat" - some versions of zcat don't grok
gzip.
2013-02-20 18:33:37 +00:00
jmcneill 6d1c375231 gzcat -> zcat 2013-02-17 20:49:16 +00:00
christos 1b766d2e25 don't use [ -f $i ] && cat $i, since we are using -e 2013-02-15 00:13:06 +00:00
jmcneill fcc410b7f2 add extra space to root partition 2013-02-12 12:45:12 +00:00
jmcneill fbdc5d584c create /proc and /kern 2013-02-12 12:04:39 +00:00
jmcneill bdad5df232 set -e 2013-02-11 18:11:20 +00:00
jmcneill 946e7a0ac0 set rc_configured=YES and a hostname 2013-02-10 23:37:32 +00:00
christos 84914efcd2 start with the original rc.conf 2013-02-10 23:28:19 +00:00
jmcneill 688db5d3b9 dont use echo -n 2013-02-10 21:51:53 +00:00
jmcneill f27066f7f8 set src= before pulling in host config 2013-02-10 21:51:05 +00:00
jmcneill 8d6503c8a0 no sh -x 2013-02-10 16:56:38 +00:00
jmcneill 0c9570f8f3 fix msdos mbr partition size calculation 2013-02-10 16:56:01 +00:00
christos 3a09eb2df7 don't dup -F 2013-02-10 16:13:23 +00:00
christos 5f6d18eead no objmachine by default. 2013-02-10 16:13:00 +00:00
christos c4b361419a add -F to fdisk 2013-02-10 16:12:37 +00:00
christos 5e2ed7b35e remove trailing whitespace from EOF 2013-02-10 16:06:24 +00:00
jmcneill c399bff929 make sure kernel is installed as netbsd.ub 2013-02-10 15:56:57 +00:00
christos a744bfd880 mass -N db to makefs too 2013-02-10 15:51:59 +00:00
christos c7678cc71d specify a database for mtree. 2013-02-10 15:45:33 +00:00
jmcneill d46a4c5ba4 dont call mtree directly 2013-02-10 15:35:34 +00:00
christos da71c141ee really calling disklabel with the arguments of fdisk does not work. 2013-02-10 03:09:07 +00:00
christos c4c65e1ca7 - remove dup trap
- compare size to 0 for autosizing
- remove .gz file before compressing.
2013-02-10 02:09:47 +00:00
christos 2ef0e4eae7 add compression support. 2013-02-10 01:28:42 +00:00
christos fec034cae5 handle renaming and uncompressing the kernel 2013-02-09 20:47:46 +00:00
christos 2b70ceaf90 add tool hooks. 2013-02-09 18:50:11 +00:00
jmcneill 473f858720 fix usage again -- -D specifies destdir not releasedir
include conf/${h}.conf not conf/rpi.conf
fix ./mkimage: line 110: "7" - 1 : syntax error: operand expected (error token is ""7" - 1 ")
2013-02-09 11:20:56 +00:00
jmcneill eb893c8eed keep beagleboard conf in sync with rpi 2013-02-09 11:19:55 +00:00