208371 Commits

Author SHA1 Message Date
agc
d2e3329102 While the resulting image from mkimage can always be mounted with vnd,
and then modified, it is much easier to let this late, user-oriented
customisation be done automatically.  These mods let mkimage change
information based on files in a "custom" directory, which can be set
in mkimage using -c customdir.

After all other configuration, the files under custom/ will be copied
into the main image.  The files under custom/ are taken into account
when performing autosizing.

Also, generalise the sets directory to point to the current machine
architecture, although this can be overwritten from the command line
by anyone making cross-images.

An example to make a user image with an embedded read-only 100 MB
iSCSI target:

% ./mkimage -c custom
=== making a new 272 MB image in usermode.img ===
272+0 records in
272+0 records out
285212672 bytes transferred in 7.616 secs (37449142 bytes/sec)
=== mounting image via vnd vnd0 ===
/dev/rvnd0a: 272.0MB (557056 sectors) block size 8192, fragment size 1024
        using 6 cylinder groups of 45.34MB, 5803 blks, 11264 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 92880, 185728, 278576, 371424, 464272,
=== installing sets ===
base
etc
modules
=== performing customisations ===
=== making extra directories ===
=== customising /var/tmp ===
=== user customisations from files in custom ===
Filesystem    1K-blocks       Used      Avail %Cap Mounted on
/dev/vnd0a       269967     263958      -7489 102% /mnt
% ls -l -R custom
total 8
drwxr-xr-x  3 agc  agc  512 Jan 18 03:58 etc
drwxr-xr-x  2 agc  agc  512 Jan 18 04:00 iscsi

custom/etc:
total 8
drwxr-xr-x  2 agc  agc  512 Jan 18 03:58 iscsi
-rw-r--r--  1 agc  agc  564 Jan 18 03:58 rc.conf

custom/etc/iscsi:
total 6
-r--r--r--  1 agc  agc  799 Jan 18 04:27 targets

custom/iscsi:
total 102484
-rw-r--r--  1 agc  agc  104857600 Jan 18 04:00 iscsi-target0
% sudo vnconfig vnd0 usermode.img
% sudo mount /dev/vnd0a /mnt
% cat /mnt/etc/iscsi/targets
# $NetBSD: targets,v 1.2 2006/02/16 19:30:57 agc Exp $
#
# Structure of this file:
#
# + an extent is a straight (offset, length) pair of a file or device
#   it's the lowest common storage denominator
#   at least one is needed
# + a device is made up of one or more extents or other devices
#   devices can be added in a hierachical manner, to enhance resilience
# + in this example, no device definitions are necessary, as the target
#   will just use a simple extent for persistent storage
# + a target is made up of 1 or more devices
# The code does not support RAID1 recovery at present

# Simple file showing 1 extent, mapped straight into 1 target

# extent        file or device          start           length
extent0         /iscsi/iscsi-target0    0               100MB

# target        flags   storage         netmask
target0         ro      extent0         0.0.0.0/0
% ls -l /mnt/iscsi/iscsi-target0
-rw-r--r--  1 agc  agc  104857600 Jan 18 04:00 /mnt/iscsi/iscsi-target0
% diff custom/etc/iscsi/targets /mnt/etc/iscsi/targets
%
2012-01-20 02:19:47 +00:00
matt
cd209751f3 Don't make a netbsd-sd0a 2012-01-20 01:33:05 +00:00
joerg
a4d3608fa8 CMSG_ALIGN is only for the kernel. 2012-01-20 01:17:01 +00:00
joerg
714fe69669 Don't use __cmsg_alignbytes in the kernel. Mark it as constant function
for userland as its value never changes. This allows the compiler to
optimise most invocations away.
2012-01-20 00:25:29 +00:00
matt
fed60237a0 Add cfi/nor 2012-01-19 23:37:23 +00:00
rkujawa
91aeeb8582 Don\'t forget to disable atabus* when disabling the efa driver. 2012-01-19 22:43:11 +00:00
rkujawa
f4fc0ec1f7 User reported that efa driver attached when FastATA hardware was absent, but 4x EIDE splitter was present. Disable efa in GENERIC until problem is solved and/or better probe function is written. 2012-01-19 22:11:49 +00:00
bouyer
a3e0c29742 add a missing splvm()/splx() to protect the xpq queue. 2012-01-19 22:04:05 +00:00
bouyer
c4e81427ed pmap_pte_set() is not supposed to be atomic, so only raise IPL, no need to
take pte_lock
2012-01-19 22:00:56 +00:00
christos
d853914a0a Add more SHF_ and whitespace align SHT_ 2012-01-19 21:35:11 +00:00
christos
6dff8e2e2b whitespace diffs [and comments] 2012-01-19 21:25:13 +00:00
matt
329ec0ace4 Add ALIGNBYTES32/ALIGN32 (same as ALIGNBYTES/ALIGN). 2012-01-19 20:55:38 +00:00
matt
c36dddf098 Use a ldscript to make sure boot programs are linked correctly. 2012-01-19 19:58:16 +00:00
macallan
c3dbb52aea support anti-aliased fonts in 8 bit using host blits 2012-01-19 18:35:27 +00:00
drochner
2b9ee4cb40 let one bit more through to SSE, to make FP_X_IMP work 2012-01-19 16:37:18 +00:00
drochner
40e8e4a37d also remove unnecessary "needs-flag" for firmload, from Paul Goyette 2012-01-19 16:35:24 +00:00
nonaka
3f8c49b8a7 regen 2012-01-19 14:55:21 +00:00
nonaka
0dc700b973 Added more Realtek wlan adapters. 2012-01-19 14:54:32 +00:00
nonaka
1543f5f424 regen. 2012-01-19 14:01:22 +00:00
nonaka
db12d6532f Added some Realtek wlan adapters. 2012-01-19 14:00:11 +00:00
liamjfoy
b723329891 Remove ip6f_start from ip6f struct 2012-01-19 13:19:34 +00:00
liamjfoy
301d4b230a Remove ipf_start from ipf struct 2012-01-19 13:13:48 +00:00
reinoud
1a01d66147 My fault, forgot that cpu_need_resched() is indeed already declared as a function 2012-01-19 12:14:49 +00:00
reinoud
aacc91c6de Add macro cpu_need_resched 2012-01-19 12:10:00 +00:00
wiz
642a95b35f Sort SEE ALSO. 2012-01-19 09:25:51 +00:00
manu
e146830324 Fix a race condition where the filesystem lookups a vnode that is
being recycled, producing ENOENT while the file does exist.

Approved by yamt
2012-01-19 08:14:41 +00:00
nisimura
2971588656 Change BTINFO_ROOTDEV to include boot device partition number in
its cookie field to allow a kernel to determine rootdev correctly
when kernel image is loaded from other than 'a' partition.
2012-01-19 07:38:05 +00:00
christos
09838d02ff PR/45856: Bernhard "Burnhard" Riedel: Infinite loop on   input. Sending
char 160 in the input to csh, lead it to an infinite loop, because tcsh tables
counted this as a space character, but the word logic switch does not. Change
that character tables, so that this does not count as a spacing character
anymore, by syncing the table with the one from tcsh.
2012-01-19 02:42:53 +00:00
rkujawa
4d89cd1749 Mention support for G-REX 1200 and G-REX 4000 in p5pb(4). 2012-01-19 00:41:33 +00:00
rkujawa
9c4fe41206 Update the p5pb(4) page to reflect the recent changes in this driver. 2012-01-19 00:30:31 +00:00
rkujawa
1502adf2fa Tons of enchancements to MD PCI code:
- The G-REX 4000 and G-REX 1200 are now really supported and working (still only 1st slot but the rest are a matter of time).
- Add bridge identification to p5pb, simplifies the driver and make it more user-friendly.
- Retire P5PB_GENFB and P5PB_OLD_FIRMWARE options, these are now handled automatically, depending on used hardware and firmware.
- Add PCI bus reconfiguration support to p5pb (PCI_NETBSD_CONFIGURE), allows using G-REX without boot to AmigaOS.
- Bring p5pb registers desription up to date with my knowledge.
- Add a lot of debugging code to p5pb (enabled by P5PB_DEBUG kernel option).
- Fix PCI_NETBSD_CONFIGURE in mppb (now it really works).
- Fix quirk handling in zbus.
- Update GENERIC.in and regen the kernel configs.
- Misc cleanup.
2012-01-19 00:14:08 +00:00
nonaka
bf2f9846a3 Support to read the kernel from local file system.
ex. boot path:/mnt/card/netbsd
2012-01-18 23:12:21 +00:00
drochner
977f62c445 revert previous, the assumption "all buses 1 and up must be subordinate
to pci0" doesn't even hold on i386 -- there are server-class chipsets
with multiple primary PCI buses, see arch/x86/pci/pchb.c for examples
2012-01-18 21:34:38 +00:00
bouyer
9427679519 Make parts of the quota tests useable for more than quotas:
- rename h_quota2_server to h_ffs_server, there's nothing about quotas
  in there.
- extract non-quota parts of quotas_common.sh to ffs_common.sh
2012-01-18 20:51:23 +00:00
drochner
bb133a10ef get the logics straight: CPU_UCODE requires "firmload" as a dependency 2012-01-18 20:37:20 +00:00
drochner
2d831187ff pull in rev.22050 from upstream CVS, following secadv_20120118.txt:
Fix for DTLS DoS issue introduced by fix for CVE-2011-4108 (CVE-2012-0050)
2012-01-18 20:08:49 +00:00
reinoud
20157f98bc Create an atomic switchto() that has SIGALRM and SIGIO signals blocked that
might otherwise disrupt the setting of curlwp to match the lwp context.
2012-01-18 19:17:02 +00:00
riz
e37e023b0f Setlist fix for MKDEBUGLIB=yes on amd64. Probably needs a similar
fix on sparc64.
2012-01-18 17:32:41 +00:00
joerg
bc061a2ff5 Make sure to link the MIPS assembler parser in. 2012-01-18 16:53:09 +00:00
joerg
726d8a62b9 _runetype_from_ctype is unused 2012-01-18 14:22:27 +00:00
reinoud
3dd9fb8df0 Another step towards unification of the signal handers: separate the printing
of details usefull for debugging / porting from the main code.
2012-01-18 12:39:45 +00:00
skrll
3ddf4f6f16 Support crash(8) on hppa. 2012-01-18 09:35:48 +00:00
macallan
24ca46a7e7 do some mode validation - for now reject everything above 1680x1200 until
I find out why these don't work ( 1680x1200 works but not 1920x1080 ).
Also use sync polarity info from videomode instead of guessing.
Finally, if there is no useble preferred mode, be a little smarter trying
to find the next best mode.
2012-01-18 08:04:18 +00:00
skrll
41413cdd54 thinko in comment. 2012-01-18 07:17:09 +00:00
jakllsch
8f0ea367ff wbsio(4) rescan support. 2012-01-18 00:23:30 +00:00
jakllsch
c178e583d6 Improve module dependency list. 2012-01-18 00:14:32 +00:00
jakllsch
3349f7e947 Improve module dependencies, clean up old #if 0 code. 2012-01-18 00:11:43 +00:00
njoly
761f943535 Remove bad indent keyword. 2012-01-17 22:18:54 +00:00
macallan
8660b78615 we don't access video memory directly, no need to map it 2012-01-17 21:31:46 +00:00
reinoud
141ab8a064 Do init the astpending variable. 2012-01-17 20:50:38 +00:00