summaryrefslogtreecommitdiffstats
path: root/tools/tools
Commit message (Collapse)AuthorAgeFilesLines
* Two fixes:imp2010-03-311-15/+2
| | | | | | | | | | (1) We don't need a custom install_kernel. We can install without symbols by adding INSTALL_NODEBUG (which likely should be WITHOUT_KERNEL_SYMBOLS_FILE, or something shorter) to CONF_INSTALL (2) for make buildenv stage, use NANO_MAKE_CONF_BUILD rather than the non-existant NANO_MAKE_CONF. MFC after: 7 days
* Stop hard coding i386 as the arch for the build. Instead, default to theimp2010-03-311-1/+6
| | | | | | | | | | | processor we're running on. Also, supply amd64 version of create_diskimage that's the same as i386's. # didn't fix the confusion between using the processor for this and using # the machine (which would be more appropriate). NANO_ARCH smashes the two # together right now. MFC after: 7 days
* Use gpart(8) to set the active boot partition.phk2010-03-242-2/+2
|
* Always assign WARNS using ?=uqs2010-03-027-10/+8
| | | | | | | - fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor)
* Fixed missing or broken library dependencies.ru2010-02-253-4/+5
|
* Moved mcgrab(1) into a separate directory -- our .mk infrastructureru2010-02-255-40/+55
| | | | | | | doesn't currently have support for building multiple programs in a single makefile. While here, fixed manpages and makefiles (missing dependencies).
* Fixed error checking of pthread(3) functions.ru2010-02-124-17/+17
| | | | | PR: 143807 Submitted by: pluknet (partly)
* Spell "Hz" correctly wherever it is user-visible.gavin2010-01-121-3/+3
| | | | | | | PR: bin/142566 Submitted by: N.J. Mann njm njm.me.uk Approved by: ed (mentor) MFC after: 2 weeks
* Add a new tool which attempts to check for kernel configuration options thatjhb2009-12-243-0/+367
| | | | are missing from NOTES files.
* Add disk-magic for amd64: same as i386.phk2009-12-041-2/+17
| | | | | | Pass PORTS_OPTS wherever we invoke ports makefiles Add a logfile where we can see the progress of distfile prefetching
* exit if "make distribition" failsjulian2009-11-251-1/+1
| | | | | Submitted by: patrick tracanelli MFC after: 1 week
* Add nanobsd example for the PC Engines ALIX board (serial console).mr2009-11-1918-0/+1312
|
* Collapse devinfo_state_t with device_state_t in order to avoid aattilio2009-11-151-6/+6
| | | | | | | structure replication and improve manteneability. Reviewed by: jhb, imp Tested by: Riccardo Torrini <riccardo at torrini dot org>
* Convert {small prefix}BSD to TERM=xterm as well.ed2009-11-132-23/+23
| | | | | | Clean up the ttys files shipped with PicoBSD, NanoBSD and TinyBSD. While there, it seems one of them still had references to sio(4). Make it in sync with what we do in the base system.
* Switch the default terminal emulation style to xterm for most platforms.ed2009-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now syscons(4) uses a cons25-style terminal emulator. The disadvantages of that are: - Little compatibility with embedded devices with serial interfaces. - Bad bandwidth efficiency, mainly because of the lack of scrolling regions. - A very hard transition path to support for modern character sets like UTF-8. Our terminal emulation library, libteken, has been supporting xterm-style terminal emulation for months, so flip the switch and make everyone use an xterm-style console driver. I still have to enable this on i386. Right now pc98 and i386 share the same /etc/ttys file. I'm not going to switch pc98, because it uses its own Kanji-capable cons25 emulator. IMPORTANT: What to do if things go wrong (i.e. graphical artifacts): - Run the application inside script(1), try to reduce the problem and send me the log file. - In the mean time, you can run `vidcontrol -T cons25' and `export TERM=cons25' so you can run applications the same way you did before. You can also build your kernel with `options TEKEN_CONS25' to make all virtual terminals use the cons25 emulator by default. Discussed on: current@
* Support the specification of a range of destination ports e.g.luigi2009-10-151-51/+88
| | | | | | | | | | | | | | | | | | | | | | | | netsend 127.0.0.1 6666-7777 [payloadsize] [packet_rate] [duration] This is useful to test the behaviour of systems that do some kind of flow classifications and so exhibit different behaviour depending on the number of flows that hit them. I plan to add a similar extension to sweep on a range of IP addresses, so we can issue a single command to flood (obviously, for testing purposes!) a number of different destinations. When there is only one destination, we do a preliminary connect() of the socket so we can use send() instead of sendto(). When we have multiple ports, the socket is not connect()'ed and we do a sendto() instead. There is a performance hit in this case, as the throughput on the loopback interface (with a firewall rule that blocks the transmission) goes down from 900kpps to 490kpps on my test machine. If the number of different destinations is limited, one option to explore is to have multiple connect()ed sockets. MFC after: 1 month
* A small change to avoid calling gettimeofday() too oftenluigi2009-10-151-4/+19
| | | | | | | | | | | | | | | | | (hardwired to once every 20us at most). I found out that on many machines round here, i could only get 300-400kpps with netsend even on loopback and a 'deny' rule in the firewall, while reducing the number of calls to gettimeofday() brings the value to 900kpps and more. This code is just a quick fix for the problem. Of course it could be done better, with proper getopt() parsing and the like, but since this applies to the entire program i'll postpone that to when i have more time. Reviewed by: rwatson MFC after: 1 month
* - When we run our trap cleanup handler, echo that we are running thissimon2009-09-271-1/+4
| | | | | | | | | | handler to make it more clear why we are 'suddenly' running df, umount, and mdconfig. - Remove trap handler again after we have unconfigured the memory device etc. Before we could end up running the trap handler if a later stage failed, which was a bit confusing and not really useful. MFC after: 2 weeks
* Update the includes to two more levels of subdirs.rpaulo2009-09-241-2/+2
| | | | MFC after: 1 week
* recognie invalid register namessam2009-08-271-1/+10
|
* Bugfix: all requests for creating vnets via vimage -c were alwayszec2009-08-211-4/+2
| | | | | | | | | | reported as failures, even if the actual library / system call would succeed, because error message would be reported if the return value from jail_setv() call was >= 0, and if not, then if that same value was < 0, i.e. always. The correct behavior is to abort (only) if jail_setv() returns < 0. Approved by: re (rwatson), julian (mentor)
* vimage(8) is a legacy CLI interface for managing jails associated withzec2009-08-203-175/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | network stack instances, which is provided for compatibility with older applications. This change brings it back to life in a followup to the initial conversion of vimage to use the new jail(4) userland-kernel API: - when creating vimages via "vimage -c", by default turn on a few options expected by legacy applications, such as allow operations on raw sockets, FS mounts etc, and allow jail-related parameters to be optionally configured. - introduce the "-m" modifier which allows for configuring jail parameters of existing vimages / vnet-jails. - make "vimage name command ..." actually work. - when reassigning ifnets to vnets using "vimage -i", attempt to rename the ifnet as "ethXXX" on arrival in the target vnet. Several legacy applications are known to depend heavily on such behavior. - vimage -l lists only jails associated with vnets. The output is sorted using vimage / jail names as keys. - vimage -l by default searches only the current level in the jail hierarchy. Recursive listing can be requested via -r switch. - vimage -l by default prints only jail names on each line, making such output suitable for pipelining to other commands. More verbose output can be obtained via -v switch, and even more jail specific information will be displayed if -j switch is turned on. - there's no need to build vimage as statically linked, so update the Makefile accordingly. - update the vimage.8 man page. Approved by: re (rwatson), julian (mentor) MFC after: immediately
* Update for vaps:sam2009-07-249-114/+32
| | | | | | | | | o do not force monitor mode; the wlanX ifnet must be an ahdemo mode vap o move channel change work before marking ifnet up to avoid churning the state machine o change default ifnet name to "wlan0" Approved by: re (kensmith)
* update for recent mesh additionssam2009-07-211-1/+17
| | | | Approved by: re (kib)
* Remove the interim vimage containers, struct vimage and struct procg,jamie2009-07-172-62/+94
| | | | | | and the ioctl-based interface that supported them. Approved by: re (kib), bz (mentor)
* Implementation of the upcoming Wireless Mesh standard, 802.11s, on therpaulo2009-07-1111-1/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | net80211 wireless stack. This work is based on the March 2009 D3.0 draft standard. This standard is expected to become final next year. This includes two main net80211 modules, ieee80211_mesh.c which deals with peer link management, link metric calculation, routing table control and mesh configuration and ieee80211_hwmp.c which deals with the actually routing process on the mesh network. HWMP is the mandatory routing protocol on by the mesh standard, but others, such as RA-OLSR, can be implemented. Authentication and encryption are not implemented. There are several scripts under tools/tools/net80211/scripts that can be used to test different mesh network topologies and they also teach you how to setup a mesh vap (for the impatient: ifconfig wlan0 create wlandev ... wlanmode mesh). A new build option is available: IEEE80211_SUPPORT_MESH and it's enabled by default on GENERIC kernels for i386, amd64, sparc64 and pc98. Drivers that support mesh networks right now are: ath, ral and mwl. More information at: http://wiki.freebsd.org/WifiMesh Please note that this work is experimental. Also, please note that bridging a mesh vap with another network interface is not yet supported. Many thanks to the FreeBSD Foundation for sponsoring this project and to Sam Leffler for his support. Also, I would like to thank Gateworks Corporation for sending me a Cambria board which was used during the development of this project. Reviewed by: sam Approved by: re (kensmith) Obtained from: projects/mesh11s
* - Make pprint print through fd 3, so it can be used in customisationn_hibma2009-06-251-1/+6
| | | | | | | functions to print something to the screen. - Prefix each line with the running time (bikeshed). Submitted by: Rick van der Zwet (Wireless Leiden)
* add a link named athpeek since my fingers keep typing itsam2009-06-241-0/+1
|
* read back the written value and displaysam2009-06-241-2/+1
|
* Add architecture support for TinyBSDremko2009-06-201-2/+4
| | | | | | | | PR: 135301 Submitted by: Olivier Cochard-Labbe <olivier at cochard dot me> Reviewed by: Jean Milanez Melo <jmelo at freebsdbrasil dot com dot br> (maintainer) Approved by: imp (mentor, implicit) MFC after: 1 week
* - Don't hard code _.disk.full. Use the variable.n_hibma2009-06-181-3/+2
| | | | | - _.bk should be created in MAKEOBJDIRPREFIX as well - Remove a misplaced and unnecessary message.
* Reverse some stuff I accidentally committed in the previous commit:n_hibma2009-06-181-5/+5
| | | | | | | | - creation of sparse files to speed up the build process. This was discussed with phk 2 years ago and he disagreed with this change. - handling of negative data partition sizes. Can I have the ... green pointy hat, please?
* Allow building world into a separate dir (for reuse in multiple images):n_hibma2009-06-181-63/+62
| | | | | | | | | | | | | | | | | | | - buildworld and buildkernel are built into MAKEOBJDIRPREFIX - installworld and installkernel are performed on NANO_OBJ. No change of functionality if MAKEOBJDIRPREFIX is not set. If it is sea,t clean_world deletes NANO_OBJ instead of NANO_WORLDDIR. By starting nanobsd.sh with the -b option the existing world can be reused to build a new world reducing time and disk space considerably. While there: - Fix two cases where (in comments) MAKEOBJDIRPREFIX should have been NANO_DISKIMGDIR. - Simplify an 'if (not wrong); then true; else action; fi' into 'if wrong; then action; fi'. 'if ! false; then echo hello; fi' produces hello. Note: Make sure you use NANO_OBJ were you use MAKEOBJDIRPREFIX now in your nanobsd.conf files if you want to split out.
* update usb config; the old stack is gonesam2009-06-171-11/+12
|
* When copy+paste goes wrong... Remove duplicate "expr".edwin2009-06-171-1/+1
| | | | Submitted by: danfe@
* iiin -> inedwin2009-06-161-1/+1
| | | | Submitted by: "N.J. Mann" <njm@njm.me.uk>
* Fix NanoBSD when the data partition size is defined as a negativeedwin2009-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | number. It is possible to ask nanobsd.sh to create a 'data' partition, separate from the system or configuration partitions, and furthermore, by specifying a negative value for its size to request that it use all space unused by those partitions for its own size. Because the two lines of code that calculate how much space is available for this data partition are written in perl-like syntax, the awk code that does the processing performs the calculation incorrectly. [note - this was already fixed by r174936] Furthermore, a comparison later down fails to newfs the partition when the size is negative. PR: misc/127759 Submitted by: Cyrus Rahman <crahman@gmail.com> MFC after: 1 week
* Support for 64 Mb Kodak flash device.edwin2009-06-161-0/+14
| | | | | | PR: misc/115025 Submitted by: Michael W Lucas <mwlucas@freebsd.org> MFC after: 1 week
* Add support for 256MB Hitachi CF card and 256MB Silicon Systems CF cardedwin2009-06-161-0/+18
| | | | | | | | | | | | This patch against RELENG_6 adds two more entries to src/tools/tools/nanobsd/FlashDevice.sub - one for a 256MB Hitachi CF card and one for a 256MB Silicon Systems CF card. Both entries have been verified to work with a Soekris net4801. PR: kern/101228 Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk> MFC after: 1 week
* Instead of only being able to compare two terminal definitions, nowedwin2009-06-141-21/+88
| | | | | | | | also be able to print information about... - length of the terminal capabilties - dump of one terminal definition - relationship overview for a terminal definition
* Rename since it has will have more capabilities than just comparing ofedwin2009-06-141-0/+0
| | | | two termcap entries.
* Tool to compare two (roughly similar) termcap entries (like rxvt-monoedwin2009-06-141-0/+98
| | | | | and rxvt-unicode) so see which fields should don't need to be copied if the :tc=xxx: option is used.
* pciconf(8) removes characters after an #, therefor remove them.edwin2009-06-061-8/+10
| | | | Also remove \s used to escape 's.
* When trying to see if we could update the share/misc/pci_vendors,edwin2009-06-061-79/+99
| | | | | | | | | | | | I found out that the input format of the Boemler list was different than what the code expected: The last two fields were interpreted as one. Checking the csv version of the list it showed that there was sometimes a chipset number in the column before the card description. This is a rewrite to use the CSV format of the Boemler list. The output is differently formatted: Instead of the "chip description", it is now "description (chip)"
* Add an interim userland utility for managing vimages / virtualizedzec2009-06-064-0/+347
| | | | | | | network stack infrastructure. Requested by: julian (mentor) Approved by: julian (mentor)
* tools for mwl driversam2009-06-0110-0/+1305
|
* add npe toolssam2009-05-231-0/+16
|
* add npe tools; first is npestats which reports device statisticssam2009-05-238-0/+804
|
* Added two tools to check the contents of /usr/share/misc/iso* withedwin2009-05-233-0/+264
| | | | | | the data from the sources. PR: misc/127430 and misc/misc/127428
* fix typosam2009-05-181-1/+1
|
OpenPOWER on IntegriCloud