From owner-freebsd-small Mon Jun 28 10:12:14 1999 Delivered-To: freebsd-small@freebsd.org Received: from ns1.tu-graz.ac.at (ns1.tu-graz.ac.at [129.27.2.3]) by hub.freebsd.org (Postfix) with ESMTP id DE6F8152E3 for ; Mon, 28 Jun 1999 10:11:45 -0700 (PDT) (envelope-from mbretter@sbox.tu-graz.ac.at) Received: from babsi.tu-graz.ac.at (teleweb-17.vc-graz.ac.at [193.171.247.17]) by ns1.tu-graz.ac.at (8.9.3/8.8.6) with SMTP id TAA20837; Mon, 28 Jun 1999 19:11:33 +0200 (MET DST) From: Michael Bretterklieber To: freebsd-small@freebsd.org Subject: Changes to scripts for building DiskOnChip 2000 4MB images Date: Mon, 28 Jun 1999 18:52:16 +0200 X-Mailer: KMail [version 1.0.21] Content-Type: Multipart/Mixed; boundary="Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ" Cc: abial@webgiro.com MIME-Version: 1.0 Message-Id: <99062819152800.14539@babsi.tu-graz.ac.at> Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ Content-Type: text/plain Content-Transfer-Encoding: 8bit Hi, I made a few changes to some scripts from PicoBSD. It is now possible to build disk-images for M-Systems DiskOnChip2k (4MB) Flash-Disks. The changes in the "build"-script let you define the disktype (floppy or DOC2k) and the disksize (1.44 or 4 MB) and its now possible to define default-values for Type and MFS size. If anybody tries to build an image for the DOC2k then you have to exchange the entries from "fd0a" to "fla0c" in these two files: mfs.rc.en update.en It also lets you copy your own files into the mfs-tree during the population of the filesystem. Add a script called "mfs.custom" into your "custom"-dir, where have to put lines like these: ... cp /sbin/dhclient-script /mnt/stand/ chmod a+x /mnt/stand/dhclient-script touch /mnt/var/log/messages touch /mnt/var/log/ppp.log touch /mnt/var/log/wtmp touch /mnt/var/log/ipfw These two files are now expected to be in the "custom"-dir loader.rc kernel.conf Finaly the entries for /etc/disktab: doc2k4|DiskOnChip 2000 4MB Chip:\ :dt=ESDI:ty=winchester:se#512:nt#8:ns#1:nc#986:\ :pa#7888:oa#0:ba#0:fa#0:ta=4.2BSD:\ :pc#7888:oc#0:bc#0:fc#0: Bye, -- \|/ @ @ +---------------------------oOO-(_)-OOo---------------------------+ Michael Bretterklieber Office: Michael.Bretterklieber@gamed.com Privat: mbretter@sbox.tu-graz.ac.at URL: http://www.sbox.tu-graz.ac.at/home/m/mbretter/ +-----------------------------------------------------------------+ --Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ Content-Type: text/english; name="build.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="build.diff" LS0tIGJ1aWxkCU1vbiBKdW4gMjggMTg6NDA6MDMgMTk5OQorKysgYnVpbGQub3JpZwlNb24gSnVu IDI4IDE4OjE0OjAyIDE5OTkKQEAgLTExLDE2ICsxMSwxMCBAQAogIyBEZWZhdWx0IE1GUyBzaXpl cyBmb3IgZGlmZmVyZW50IHR5cGVzIG9mIHRoZSBmbG9wcHkuIEFnYWluLCBtb3N0IHBlb3BsZQog IyBzaG91bGRuJ3QgY2hhbmdlIHRoZW0gdW5sZXNzIHRoZXkga25vdyB3aGF0IHRoZXkgYXJlIGRv aW5nLgogCi1ERUZfVFlQRT1jdXN0b20KIERJQUxfREZMVF9TSVpFPTE2MDAKIFJPVVRFUl9ERkxU X1NJWkU9ODIwCiBORVRfREZMVF9TSVpFPTE3MDAKIElTUF9ERkxUX1NJWkU9MTcwMAotQ1VTX0RG TFRfU0laRT04MTkyCi0jREVGX0RJU0tfVFlQRT1mbG9wcHkKLSNERUZfRElTS19TSVpFPTE0NDAK LURFRl9ESVNLX1RZUEU9RE9DMmsKLURFRl9ESVNLX1NJWkU9Mzk0NAogCiAjIERFVkZTIGlzIGN1 cnJlbnRseSBicm9rZW4uIEFsd2F5cyBzZXQgdGhpcy4KICMKQEAgLTkxLDcgKzg1LDcgQEAKICMg QnVpbGQgdGhlIGtlcm5lbCwgaWYgbmVjZ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kJZWNobyAiSGV5ISBEb24ndCBnaXZlIHVwIHNvIHF1aWNrbHku IFF1aXR0aW5nIGZvciBub3cuLi4iCiAJCWVjaG8gIiIKQEAgLTQzMiw3ICszNzgsNyBAQAogCWVz YWMKIGRvbmUKICMgRXhwb3J0IHRoZSBwYXJhbWV0ZXJzCi1leHBvcnQgTEFOR1VBR0UgU0laRSBU WVBFIFNSQyBOT19ERVZGUyBJTklUIERJU0tfVFlQRSBESVNLX1NJWkUKK2V4cG9ydCBMQU5HVUFH RSBTSVpFIFRZUEUgU1JDIE5PX0RFVkZTIElOSVQKICMgQ2FsbCB0aGUgYnVpbGQgcHJvY2VkdXJl CiBtYWluCiAjIEluc3RhbGwgaWYgaXQncyBvay4K --Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ Content-Type: text/plain; name="populate.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="populate.diff" LS0tIHBvcHVsYXRlCUZyaSBKdW4gMjUgMTk6MTc6NDkgMTk5OQorKysgcG9wdWxhdGUub3JpZwlN b24gSnVuIDI4IDE4OjUxOjAzIDE5OTkKQEAgLTUzLDEwICs1Myw2IEBACiAJY3AgaGVscC5hIC9t bnQvaGVscC5hKQogZmkKIAotaWYgWyAtZiAuLi9tZnMuY3VzdG9tIF07IHRoZW4KLSAgICAgICAg LiAuLi9tZnMuY3VzdG9tCi1maSAgICAgICAgICAgIAotCiBlY2hvICItPiBNYWtpbmcgYW5kIGlu c3RhbGxpbmcgY3J1bmNoMS4uLiIKIGNkIC4uL2NydW5jaDEKIG1ha2UgIlNSQz0ke1NSQ30iICYm IG1ha2UgaW5zdGFsbCAyPiYxID4vZGV2L251bGwK --Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ Content-Type: text/plain; name="stage3.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="stage3.diff" LS0tIHN0YWdlMwlNb24gSnVuIDI4IDE4OjQ1OjA1IDE5OTkKKysrIHN0YWdlMy5vcm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hPSAiWDAi IF0KLSAgdGhlbgogCWVjaG8gIgctPiBFUlJPUiB3aGlsZSBsYWJlbGluZyBwaWNvYnNkLmJpbiBv biAvZGV2L3J2bjAuLi4iCiAJZWNobyAiLT4gQWJvcnRpbmcgJDAiCiAJZXhpdCAxMAotICBmaQot ICBuZXdmcyAtVCBkb2MyazQgLW0gMCAtbyBzcGFjZSAvZGV2L3J2bjBjIDI+JjEgPi9kZXYvbnVs bAogZmkKIAotaWYgWyAiJHtESVNLX1RZUEV9IiA9ICJmbG9wcHkiIF0KLXRoZW4KLSAgZWNobyAi bGFiZWxpbmcgZm9yIEZsb3BweSAuLi4iCi0gIGRpc2tsYWJlbCAtQnJ3IC1iIC9ib290L2Jvb3Qx IC1zIC9ib290L2Jvb3QyIC9kZXYvcnZuMCBmZDE0NDAgMj4mMSA+L2Rldi9udWxsCi0gIGlmIFsg IlgkPyIgIT0gIlgwIiBdCi0gIHRoZW4KLQllY2hvICIHLT4gRVJST1Igd2hpbGUgbGFiZWxpbmcg cGljb2JzZC5iaW4gb24gL2Rldi9ydm4wLi4uIgotCWVjaG8gIi0+IEFib3J0aW5nICQwIgotCWV4 aXQgMTAKLSAgZmkKLSAgbmV3ZnMgLWkgMzI3NjggLW0gMCAtcCAwIC1vIHNwYWNlIC9kZXYvcnZu MGMgMj4mMSA+L2Rldi9udWxsCi1maQorbmV3ZnMgLWkgMzI3NjggLW0gMCAtcCAwIC1vIHNwYWNl IC9kZXYvcnZuMGMgMj4mMSA+L2Rldi9udWxsCiAKIG1vdW50IC9kZXYvdm4wYyAvbW50CiAK --Boundary-=_WfAZyzAZOHsNGHcxSfUBSnsNWfUJ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message