From owner-svn-soc-all@FreeBSD.ORG Tue Jun 23 18:45:31 2015 Return-Path: Delivered-To: svn-soc-all@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 83E55C1D for ; Tue, 23 Jun 2015 18:45:31 +0000 (UTC) (envelope-from stefano@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D34BB2A for ; Tue, 23 Jun 2015 18:45:31 +0000 (UTC) (envelope-from stefano@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5NIjVfD096596 for ; Tue, 23 Jun 2015 18:45:31 GMT (envelope-from stefano@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.9/8.14.9/Submit) id t5NIjQZo096541 for svn-soc-all@FreeBSD.org; Tue, 23 Jun 2015 18:45:26 GMT (envelope-from stefano@FreeBSD.org) Date: Tue, 23 Jun 2015 18:45:26 GMT Message-Id: <201506231845.t5NIjQZo096541@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to stefano@FreeBSD.org using -f From: stefano@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r287496 - in soc2015/stefano/ptnetmap/head/release/picobsd/netmap: . floppy.tree floppy.tree/boot floppy.tree/etc floppy.tree/root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2015 18:45:31 -0000 Author: stefano Date: Tue Jun 23 18:45:26 2015 New Revision: 287496 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=287496 Log: [ptnetmap] add picobsd netmap configuration Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/PICOBSD soc2015/stefano/ptnetmap/head/release/picobsd/netmap/PICOBSD.hints soc2015/stefano/ptnetmap/head/release/picobsd/netmap/config soc2015/stefano/ptnetmap/head/release/picobsd/netmap/crunch.conf soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree.exclude soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/boot/ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/boot/loader.conf soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/etc/ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/etc/OLD_rc.conf soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/etc/rc.conf.defaults soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/etc/ttys soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/root/ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/root/change_mtu.sh (contents, props changed) soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/root/initialize.sh (contents, props changed) soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/root/initialize_real.sh (contents, props changed) soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/root/send_trace.sh (contents, props changed) Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/PICOBSD ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/PICOBSD Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,357 @@ +# +# GENERIC -- Generic kernel configuration file for FreeBSD/amd64 +# +# +# $FreeBSD: stable/9/sys/amd64/conf/GENERIC 249549 2013-04-16 16:09:27Z brooks $ + +# Line starting with #PicoBSD contains PicoBSD build parameters +#marker def_sz init MFS_inodes floppy_inodes +#PicoBSD 18000 init 8192 32768 +options MD_ROOT_SIZE=18000 # same as def_sz + +cpu HAMMER +ident PICOBSD + +makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols +makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support + +#options INVARIANT_SUPPORT +#options INVARIANTS # STE enable KASSERT + +options SCHED_ULE # ULE scheduler +options PREEMPTION # Enable kernel thread preemption +options INET # InterNETworking +#options INET6 # IPv6 communications protocols +options SCTP # Stream Control Transmission Protocol +options FFS # Berkeley Fast Filesystem +options SOFTUPDATES # Enable FFS soft updates support +#options UFS_ACL # Support for access control lists +#options UFS_DIRHASH # Improve performance on big directories +#options UFS_GJOURNAL # Enable gjournal-based UFS journaling +#options QUOTA # Enable disk quotas for UFS +options MD_ROOT # MD is a potential root device +#options NFSCL # New Network Filesystem Client +#options NFSD # New Network Filesystem Server +#options NFSLOCKD # Network Lock Manager +#options NFS_ROOT # NFS usable as /, requires NFSCL +#options MSDOSFS # MSDOS Filesystem +#options CD9660 # ISO 9660 Filesystem +#options PROCFS # Process filesystem (requires PSEUDOFS) +#options PSEUDOFS # Pseudo-filesystem framework +#options GEOM_PART_GPT # GUID Partition Tables. +#options GEOM_RAID # Soft RAID functionality. +#options GEOM_LABEL # Provides labelization +options COMPAT_FREEBSD32 # Compatible with i386 binaries +options COMPAT_FREEBSD4 # Compatible with FreeBSD4 +options COMPAT_FREEBSD5 # Compatible with FreeBSD5 +options COMPAT_FREEBSD6 # Compatible with FreeBSD6 +options COMPAT_FREEBSD7 # Compatible with FreeBSD7 +#options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI +options KTRACE # ktrace(1) support +options STACK # stack(9) support +options SYSVSHM # SYSV-style shared memory +options SYSVMSG # SYSV-style message queues +options SYSVSEM # SYSV-style semaphores +#options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions +options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed. +options KBD_INSTALL_CDEV # install a CDEV entry in /dev +options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) +options AUDIT # Security event auditing +options MAC # TrustedBSD MAC Framework +options KDTRACE_FRAME # Ensure frames are compiled in +options KDTRACE_HOOKS # Kernel DTrace hooks +options INCLUDE_CONFIG_FILE # Include this file in kernel +options KDB # Kernel debugger related code +options KDB_TRACE # Print a stack trace for a panic +options DDB_CTF # kernel ELF linker loads CTF data +#ste debug +options DDB +options BREAK_TO_DEBUGGER +#options KDB_UNATTENDED +# qemu +#options HZ=1000 + +# Make an SMP-capable kernel by default +options SMP # Symmetric MultiProcessor Kernel + +#options GSO +device netmap +# CPU frequency control +device cpufreq + +# Bus support. +device acpi +device pci + +# Floppy drives +device fdc + +# ATA controllers +#device ahci # AHCI-compatible SATA controllers +#device ata # Legacy ATA/SATA controllers +#options ATA_CAM # Handle legacy controllers with CAM +#options ATA_STATIC_ID # Static device numbering +#device mvs # Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA +#device siis # SiliconImage SiI3124/SiI3132/SiI3531 SATA + +# SCSI Controllers +#device ahc # AHA2940 and onboard AIC7xxx devices +#options AHC_REG_PRETTY_PRINT # Print register bitfields in debug + # output. Adds ~128k to driver. +#device ahd # AHA39320/29320 and onboard AIC79xx devices +#options AHD_REG_PRETTY_PRINT # Print register bitfields in debug + # output. Adds ~215k to driver. +#device esp # AMD Am53C974 (Tekram DC-390(T)) +#device hptiop # Highpoint RocketRaid 3xxx series +#device isp # Qlogic family +#device ispfw # Firmware for QLogic HBAs- normally a module +#device mpt # LSI-Logic MPT-Fusion +#device mps # LSI-Logic MPT-Fusion 2 +#device ncr # NCR/Symbios Logic +#device sym # NCR/Symbios Logic (newer chipsets + those of `ncr') +#device trm # Tekram DC395U/UW/F DC315U adapters + +#device adv # Advansys SCSI adapters +#device adw # Advansys wide SCSI adapters +#device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60. +#device bt # Buslogic/Mylex MultiMaster SCSI adapters +#device isci # Intel C600 SAS controller + +# ATA/SCSI peripherals +device scbus # SCSI bus (required for ATA/SCSI) +#device ch # SCSI media changers +device da # Direct Access (disks) +device sa # Sequential Access (tape etc) +#device cd # CD +#device pass # Passthrough device (direct ATA/SCSI access) +#device ses # Enclosure Services (SES and SAF-TE) +#device ctl # CAM Target Layer + +# RAID controllers interfaced to the SCSI subsystem +#device amr # AMI MegaRAID +#device arcmsr # Areca SATA II RAID +#XXX it is not 64-bit clean, -scottl +#device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID +#device ciss # Compaq Smart RAID 5* +#device dpt # DPT Smartcache III, IV - See NOTES for options +#device hptmv # Highpoint RocketRAID 182x +#device hptrr # Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx +#device hpt27xx # Highpoint RocketRAID 27xx +#device iir # Intel Integrated RAID +#device ips # IBM (Adaptec) ServeRAID +#device mly # Mylex AcceleRAID/eXtremeRAID +#device twa # 3ware 9000 series PATA/SATA RAID +#device tws # LSI 3ware 9750 SATA+SAS 6Gb/s RAID controller + +# RAID controllers +#device aac # Adaptec FSA RAID +#device aacp # SCSI passthrough for aac (requires CAM) +#device ida # Compaq Smart RAID +#device mfi # LSI MegaRAID SAS +#device mlx # Mylex DAC960 family +#XXX pointer/int warnings +#device pst # Promise Supertrak SX6000 +#device twe # 3ware ATA RAID + +# atkbdc0 controls both the keyboard and the PS/2 mouse +device atkbdc # AT keyboard controller +device atkbd # AT keyboard +#device psm # PS/2 mouse + +device kbdmux # keyboard multiplexer + +device vga # VGA video card driver +#options VESA # Add support for VESA BIOS Extensions (VBE) + +#device splash # Splash screen and screen saver support + +# syscons is the default console driver, resembling an SCO console +device sc +options SC_PIXEL_MODE # add support for the raster text mode + +device agp # support several AGP chipsets + +# PCCARD (PCMCIA) support +# PCMCIA and cardbus bridge support +#device cbb # cardbus (yenta) bridge +#device pccard # PC Card (16-bit) bus +#device cardbus # CardBus (32-bit) bus + +# Serial (COM) ports +device uart # Generic UART driver + +# Parallel port +#device ppc +#device ppbus # Parallel port bus (required) +#device lpt # Printer +#device plip # TCP/IP over parallel +#device ppi # Parallel port interface device +#device vpo # Requires scbus and da + +#device puc # Multi I/O cards and multi-channel UARTs + +# PCI Ethernet NICs. +#device bxe # Broadcom BCM57710/BCM57711/BCM57711E 10Gb Ethernet +#device de # DEC/Intel DC21x4x (``Tulip'') +device em # Intel PRO/1000 Gigabit Ethernet Family +device igb # Intel PRO/1000 PCIE Server Gigabit Family +#device ixgbe # Intel PRO/10GbE PCIE Ethernet Family +#device oce # Emulex 10 GbE (OneConnect Ethernet) +#device le # AMD Am7900 LANCE and Am79C9xx PCnet +#device ti # Alteon Networks Tigon I/II gigabit Ethernet +#device txp # 3Com 3cR990 (``Typhoon'') +#device vx # 3Com 3c590, 3c595 (``Vortex'') + +# PCI Ethernet NICs that use the common MII bus controller code. +# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! +device miibus # MII bus support +#device ae # Attansic/Atheros L2 FastEthernet +#device age # Attansic/Atheros L1 Gigabit Ethernet +#device alc # Atheros AR8131/AR8132 Ethernet +#device ale # Atheros AR8121/AR8113/AR8114 Ethernet +#device bce # Broadcom BCM5706/BCM5708 Gigabit Ethernet +#device bfe # Broadcom BCM440x 10/100 Ethernet +#device bge # Broadcom BCM570xx Gigabit Ethernet +#device cas # Sun Cassini/Cassini+ and NS DP83065 Saturn +#device dc # DEC/Intel 21143 and various workalikes +#device et # Agere ET1310 10/100/Gigabit Ethernet +#device fxp # Intel EtherExpress PRO/100B (82557, 82558) +#device gem # Sun GEM/Sun ERI/Apple GMAC +#device hme # Sun HME (Happy Meal Ethernet) +#device jme # JMicron JMC250 Gigabit/JMC260 Fast Ethernet +#device lge # Level 1 LXT1001 gigabit Ethernet +#device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet +#device nfe # nVidia nForce MCP on-board Ethernet +#device nge # NatSemi DP83820 gigabit Ethernet +#device nve # nVidia nForce MCP on-board Ethernet Networking +#device pcn # AMD Am79C97x PCI 10/100 (precedence over 'le') +device re # RealTek 8139C+/8169/8169S/8110S +device rl # RealTek 8129/8139 +#device sf # Adaptec AIC-6915 (``Starfire'') +#device sge # Silicon Integrated Systems SiS190/191 +#device sis # Silicon Integrated Systems SiS 900/SiS 7016 +#device sk # SysKonnect SK-984x & SK-982x gigabit Ethernet +#device ste # Sundance ST201 (D-Link DFE-550TX) +#device stge # Sundance/Tamarack TC9021 gigabit Ethernet +#device tl # Texas Instruments ThunderLAN +#device tx # SMC EtherPower II (83c170 ``EPIC'') +#device vge # VIA VT612x gigabit Ethernet +#device vr # VIA Rhine, Rhine II +#device wb # Winbond W89C840F +#device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') + +# ISA Ethernet NICs. pccard NICs included. +#device cs # Crystal Semiconductor CS89x0 NIC +# 'device ed' requires 'device miibus' +#device ed # NE[12]000, SMC Ultra, 3c503, DS8390 cards +#device ex # Intel EtherExpress Pro/10 and Pro/10+ +#device ep # Etherlink III based cards +#device fe # Fujitsu MB8696x based cards +#device sn # SMC's 9000 series of Ethernet chips +#device xe # Xircom pccard Ethernet + +# Wireless NIC cards +#device wlan # 802.11 support +#options IEEE80211_DEBUG # enable debug msgs +#options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's +#options IEEE80211_SUPPORT_MESH # enable 802.11s draft support +#device wlan_wep # 802.11 WEP support +#device wlan_ccmp # 802.11 CCMP support +#device wlan_tkip # 802.11 TKIP support +#device wlan_amrr # AMRR transmit rate control algorithm +#device an # Aironet 4500/4800 802.11 wireless NICs. +#device ath # Atheros NICs +#device ath_pci # Atheros pci/cardbus glue +#device ath_hal # pci/cardbus chip support +#options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors +#device ath_rate_sample # SampleRate tx rate control for ath +#device bwi # Broadcom BCM430x/BCM431x wireless NICs. +#device bwn # Broadcom BCM43xx wireless NICs. +#device ipw # Intel 2100 wireless NICs. +#device iwi # Intel 2200BG/2225BG/2915ABG wireless NICs. +#device iwn # Intel 4965/1000/5000/6000 wireless NICs. +#device malo # Marvell Libertas wireless NICs. +#device mwl # Marvell 88W8363 802.11n wireless NICs. +#device ral # Ralink Technology RT2500 wireless NICs. +#device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs. +#device wpi # Intel 3945ABG wireless NICs. + +# Pseudo devices. +device loop # Network loopback +device random # Entropy device +#options PADLOCK_RNG # VIA Padlock RNG +#options RDRAND_RNG # Intel Bull Mountain RNG +device ether # Ethernet support +device vlan # 802.1Q VLAN support +device tun # Packet tunnel. +device pty # BSD-style compatibility pseudo ttys +device md # Memory "disks" +#device gif # IPv6 and IPv4 tunneling +#device faith # IPv6-to-IPv4 relaying (translation) +device firmware # firmware assist module +#device tap + +# The `bpf' device enables the Berkeley Packet Filter. +# Be aware of the administrative consequences of enabling this! +# Note that 'bpf' is required for DHCP. +device bpf # Berkeley packet filter + +# USB support +#options USB_DEBUG # enable debug msgs +device uhci # UHCI PCI->USB interface +device ohci # OHCI PCI->USB interface +device ehci # EHCI PCI->USB interface (USB 2.0) +device xhci # XHCI PCI->USB interface (USB 3.0) +device usb # USB Bus (required) +#device udbp # USB Double Bulk Pipe devices (needs netgraph) +device uhid # "Human Interface Devices" +device ukbd # Keyboard +#device ulpt # Printer +device umass # Disks/Mass storage - Requires scbus and da +device ums # Mouse +#device urio # Diamond Rio 500 MP3 player +# USB Serial devices +#device u3g # USB-based 3G modems (Option, Huawei, Sierra) +#device uark # Technologies ARK3116 based serial adapters +#device ubsa # Belkin F5U103 and compatible serial adapters +#device uftdi # For FTDI usb serial adapters +#device uipaq # Some WinCE based devices +#device uplcom # Prolific PL-2303 serial adapters +#device uslcom # SI Labs CP2101/CP2102 serial adapters +#device uvisor # Visor and Palm devices +#device uvscom # USB serial support for DDI pocket's PHS +# USB Ethernet, requires miibus +#device aue # ADMtek USB Ethernet +#device axe # ASIX Electronics USB Ethernet +#device cdce # Generic USB over Ethernet +#device cue # CATC USB Ethernet +#device kue # Kawasaki LSI USB Ethernet +#device rue # RealTek RTL8150 USB Ethernet +#device udav # Davicom DM9601E USB +# USB Wireless +#device rum # Ralink Technology RT2501USB wireless NICs +#device run # Ralink Technology RT2700/RT2800/RT3000 NICs. +#device uath # Atheros AR5523 wireless NICs +#device upgt # Conexant/Intersil PrismGT wireless NICs. +#device ural # Ralink Technology RT2500USB wireless NICs +#device urtw # Realtek RTL8187B/L wireless NICs +#device zyd # ZyDAS zd1211/zd1211b wireless NICs + +# Sound support +#device sound # Generic sound driver (required) +#device snd_cmi # CMedia CMI8338/CMI8738 +#device snd_csa # Crystal Semiconductor CS461x/428x +#device snd_emu10kx # Creative SoundBlaster Live! and Audigy +#device snd_es137x # Ensoniq AudioPCI ES137x +#device snd_hda # Intel High Definition Audio +#device snd_ich # Intel, NVidia and other ICH AC'97 Audio +#device snd_uaudio # USB Audio +#device snd_via8233 # VIA VT8233x Audio + +# VirtIO support +device virtio # Generic VirtIO bus (required) +device virtio_pci # VirtIO PCI Interface +device vtnet # VirtIO Ethernet device +device virtio_blk # VirtIO Block device +device virtio_scsi # VirtIO SCSI device +device virtio_balloon # VirtIO Memory Balloon device Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/PICOBSD.hints ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/PICOBSD.hints Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,33 @@ +# $FreeBSD: stable/9/sys/amd64/conf/GENERIC.hints 235926 2012-05-24 19:24:31Z bz $ +hint.fdc.0.at="isa" +hint.fdc.0.port="0x3F0" +hint.fdc.0.irq="6" +hint.fdc.0.drq="2" +hint.fd.0.at="fdc0" +hint.fd.0.drive="0" +hint.fd.1.at="fdc0" +hint.fd.1.drive="1" +hint.atkbdc.0.at="isa" +hint.atkbdc.0.port="0x060" +hint.atkbd.0.at="atkbdc" +hint.atkbd.0.irq="1" +hint.psm.0.at="atkbdc" +hint.psm.0.irq="12" +hint.sc.0.at="isa" +hint.sc.0.flags="0x100" +hint.uart.0.at="isa" +hint.uart.0.port="0x3F8" +hint.uart.0.flags="0x30" +hint.uart.0.irq="4" +hint.uart.1.at="isa" +hint.uart.1.port="0x2F8" +hint.uart.1.irq="3" +hint.ppc.0.at="isa" +hint.ppc.0.irq="7" +hint.atrtc.0.at="isa" +hint.atrtc.0.port="0x70" +hint.atrtc.0.irq="8" +hint.attimer.0.at="isa" +hint.attimer.0.port="0x40" +hint.attimer.0.irq="0" +hint.wbwd.0.at="isa" Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/config ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/config Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,58 @@ +# configuration for picobsd build script. +# $FreeBSD: stable/9/release/picobsd/qemu/config 201076 2009-12-28 01:25:05Z luigi $ +# it should only contain variable definitions -- it is sourced +# by the shell much like rc.conf* files + +fd_size="12240" + +# To copy individual files you can use the function do_copyfiles_user +# as below (find_progs locates the programs and their libraries, +# then you manually copy them. +#copy_files=" +#" +do_copyfiles_user() { + local dst=$1 # the destination root + log "--- put the libraries in /usr/lib to avoid conflicts" + mkdir -p ${dst}/usr/lib + # log "-- import dropbear from its build directory --" + # find_progs -L / -P /usr/ports/security/dropbear/work/dropbear-2012.55 \ + # dbclient dropbear + # cp -p ${u_progs} ${dst}/bin + # cp -p ${u_libs} ${dst}/usr/lib + log "--- also import ssh, scp and sshd ---" + find_progs -L / /usr/bin/ssh /usr/bin/scp /usr/sbin/sshd + cp -p ${u_progs} ${dst}/bin + cp -p ${u_libs} ${dst}/usr/lib + + #find_progs -L / -P /usr/local/bin trafshow netperf netserver iperf3 + #cp -p ${u_progs} ${dst}/bin + #cp -p ${u_libs} ${dst}/usr/lib + + #find_progs -L / -P /usr/bin egrep + #cp -p ${u_progs} ${dst}/bin + #cp -p ${u_libs} ${dst}/usr/lib + + find_progs -L / -P /home/stefano/repos/passthrough/netmap/examples pkt-gen pkt-gen-b bridge vale-ctl + cp -p ${u_progs} ${dst}/bin + cp -p ${u_libs} ${dst}/usr/lib + + #find_progs -L / -P /usr/local/bin ttcp + #cp -p ${u_progs} ${dst}/bin + #cp -p ${u_libs} ${dst}/usr/lib + + #find_progs -L / -P /home/stefano/apps netsend + #cp -p ${u_progs} ${dst}/bin + #cp -p ${u_libs} ${dst}/usr/lib + + if [ ${TARGET_ARCH} = amd64 ]; then + cp -p /usr/lib/libssh.so.5 /lib/libmd.so.5 ${dst}/usr/lib + cp -p /usr/local/lib/libiperf.so.0 ${dst}/usr/local/lib + else + fi + + #STE - modules - before create picobsd image with --modules parameter + #mkdir -p ${dst}/root/modules + #cp ${BUILDDIR}/PICOBSD-${name}/modules/${SRC}/sys/modules/cc/*/*.ko ${dst}/root/modules/ + #cp ${BUILDDIR}/PICOBSD-${name}/modules/${SRC}/sys/modules/ixgbe/*.ko ${dst}/root/modules/ +} + Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/crunch.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/crunch.conf Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,227 @@ +# +# $FreeBSD: stable/9/release/picobsd/qemu/crunch.conf 210125 2010-07-15 16:32:59Z luigi $ +# +# Configuration file for "qemu" images.. +# +# Depending on your needs, you will almost surely need to +# add/remove/change programs according to your needs. +# Remember that some programs require matching kernel options to +# enable device drivers etc. +# +# To figure out how much space is used by each program, do +# +# size build_dir-bridge/crunch/*lo +# +# Remember that programs require libraries, which add up to the +# total size. The final binary is build_dir-bridge/mfs.tree/stand/crunch +# and you can check which libraries it uses with +# +# ldd build_dir-bridge/mfs.tree/stand/crunch + +# crunchgen configuration to build the crunched binary, see "man crunchgen" +# We need to specify generic build options, the places where to look +# for sources, and the list of program and libraries we want to put +# in the crunched binary. +# +# NOTE: the string "/usr/src" below will be automatically replaced with +# the path set in the 'build' script. + +# Default build options. Basically tell the Makefiles +# that to use the most compact possible version of the code. + +buildopts -DWITHOUT_PAM -DRELEASE_CRUNCH -DPPP_NO_NETGRAPH +buildopts -DTRACEROUTE_NO_IPSEC #-DNO_INET6 +buildopts -DWITHOUT_IPX +buildopts -DWITHOUT_INET6 +buildopts -DWITHOUT_CASPER +#buildopts -DWITH_INET6 -DWITH_INET6_SUPPORT + +# Directories where to look for sources of various binaries. +# @__CWD__@ is a magic keyword in the picobsd's (Makefile.conf) +# which is replaced with the directory with the picobsd configuration +# corresponding to your image. This way you can have custom sources +# in that directory overriding system programs. + +srcdirs @__CWD__@/src + +# Some programs are especially written for PicoBSD and reside in +# release/picobsd/tinyware. +# Put this entry near the head of the list to override standard binaries. + +srcdirs /usr/src/release/picobsd/tinyware + +# Other standard locations for sources. +# If a program uses its own source directory, add + +srcdirs /usr/src/bin +#srcdirs /usr/src/sbin/amd64 +srcdirs /usr/src/sbin +srcdirs /usr/src/usr.bin +srcdirs /usr/src/gnu/usr.bin +srcdirs /usr/src/usr.sbin +srcdirs /usr/src/libexec +srcdirs /usr/src/contrib + +# For programs that reside in different places, the best option +# is to use the command "special XXX srcdir YYY" where XXX is the +# program name and YYY is the directory path. +# "special XXX ..." can be used to specify more options, see again +# the crunchgen manpage. + +#--- Basic configuraton +# init is always necessary (unless you have a replacement, oinit) +progs init + +# fsck is almost always necessary, unless you have everything on the +# image and use 'tar' or something similar to read/write raw blocks +# from the floppy. + +progs fsck + +# ifconfig is needed if you want to configure interfaces. +progs ifconfig + +# You will also need a shell and a bunch of utilities. +# The standard shell is not that large, but you need many +# external programs. In fact most of them do not take much space +# as they merely issue a system call, and print the result. +# For a more compact version of shell and utilities, you could +# try busybox, however most system management commands in busybox +# will not work as they use linux-specific interfaces. + +progs sh +ln sh -sh + +# the small utilities +progs echo +progs pwd mkdir rmdir +progs chmod chown +ln chown chgrp +progs mv ln cp rm ls +progs cat tail tee cut head +progs test +ln test [ + +progs less +ln less more +progs mount +progs minigzip +ln minigzip gzip +progs kill +progs killall +progs grep awk xargs +ln grep egrep +#progs xo +progs df +libs_so -lxo +progs ps +progs ns # this is the picobsd version +#ln ns netstat +#progs netstat #ste +progs vm +progs hostname +progs login +progs getty +progs stty +progs w +progs msg +ln msg dmesg +progs reboot +progs halt + +progs sysctl +progs swapon +progs pwd_mkdb +progs umount +progs du +progs passwd + +progs route + +# If you want to run natd, remember the alias library +# progs natd +# libs_so -lalias # natd +#progs tcpdump +#special tcpdump srcdir /usr/src/usr.sbin/tcpdump/tcpdump +#libs_so -lpcap # used by tcpdump +#libs_so -lcrypto # used by tcpdump with inet6 + +# ppp is rather large. Note that as of Jan.01, RELEASE_CRUNCH +# makes ppp not use libalias, so you cannot have aliasing. +#progs ppp + +# You need an editor. ee is relatively small, though there are +# smaller ones. vi is much larger. +# The editor also usually need a curses library. +progs ee + +progs arp + +# these require libgeom +# progs bsdlabel fdisk mdconfig + +progs kldload kldunload kldstat +# progs kldxref +progs bsdgrep +libs_so -lgnuregex -lbz2 +# dhclient-script requires 'sed' +progs dhclient +progs sed +progs date +progs time +progs ping +progs ping6 +progs tar + +progs top + +#progs routed +progs ipfw +progs traceroute +progs mdmfs +ln mdmfs mount_mfs +# Various filesystem support -- remember to enable the kernel parts +# progs mount_msdosfs +#progs mount_nfs +# progs mount_cd9660 +#ln mount_nfs nfs +#ln mount_cd9660 cd9660 +#progs newfs +#ln newfs mount_mfs +# ln mount_msdosfs msdos + +# For a small ssh client/server use dropbear +# progs jail jexec jls # why not... + +progs nc + +progs vmstat +progs limits +progs uname + +progs sleep + +progs ddb + +# Now the libraries +libs_so -lc # the C library +libs_so -ll # used by sh (really ?) +libs_so -lufs # used by mount +### ee uses ncurses but as a dependency +libs_so -lncurses +libs_so -lm +libs_so -ledit -lutil +libs_so -lcrypt +libs_so -lkvm +libs_so -lz +libs_so -lbsdxml +libs_so -lsbuf +libs_so -ljail # used by ifconfig +libs_so -lipsec -lmd # used with ipv6 +libs_so -larchive -lbz2 +libs_so -llzma # added after 207840 +libs_so -lulog +libs_so -ldevstat # used by vmstat +libs_so -lmemstat # used by vmstat +libs_so -lnetgraph # used by netstat +libs_so -lpam Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree.exclude ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree.exclude Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,2 @@ +etc/snmpd.conf +etc/ppp Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/boot/loader.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/boot/loader.conf Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,5 @@ +hw.ix.num_queues="1" +boot_multicons="YES" +boot_serial="YES" +comconsole_speed="115200" +console="comconsole,vidconsole" Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/etc/OLD_rc.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/etc/OLD_rc.conf Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,23 @@ +# Sample rc.conf file for PicoBSD +# you should mostly set variables here, see rc.conf.defaults. + +case ${hostname} in +host1) + ifconfig_em0="inet 10.0.0.1 netmask 255.255.255.0" + ifconfig_re0="inet 10.0.0.1 netmask 255.255.255.0" +;; + +host2) + ifconfig_em0="inet 10.0.0.2 netmask 255.255.255.0" + ifconfig_re0="inet 10.0.0.2 netmask 255.255.255.0" +;; + +host3) + ifconfig_em0="inet 10.0.0.3 netmask 255.255.255.0" + ifconfig_re0="inet 10.0.0.3 netmask 255.255.255.0" +;; + +*) + echo "processing rc.conf for ${hostname}" + ;; +esac Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/etc/rc.conf.defaults ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/etc/rc.conf.defaults Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,188 @@ +#!/bin/sh +# $FreeBSD$ +# +# rc.conf for picobsd. This is sourced from /etc/rc1, and is supposed to +# contain only shell functions that are used later in /etc/rc1. + +# set default values for variables. Boolean values should be either +# NO or YES -- other values are not guaranteed to work. + +rc_conf_set_defaults() { +hostname="" # Should not need to set it +syslogd_enable="NO" +pccard_enable="NO" +swapfile="" # name of swapfile if aux swapfile desired. + +# Network interface configurations: ifconfig_${interface}[_aliasNN] +ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. +#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry. + +### Network daemons options: they are only run if present. +sshd_enable="YES" # if present... +inetd_enable="YES" # Run the network daemon dispatcher (or NO) +inetd_flags="" # Optional flags to inetd +snmpd_enable="NO" # Run the SNMP daemon (or NO) +snmpd_flags="-C -c /etc/snmpd.conf" # Optional flags to snmpd + +### Network routing options: ### +defaultrouter="NO" # Set to default gateway (or NO). +static_routes="" # Set to static route list (or leave empty). +gateway_enable="NO" # Set to YES if this host will be a gateway. +arpproxy_all="" # replaces obsolete kernel option ARP_PROXYALL. +default_mask="0xffffff00" + +### Other network features +firewall_enable="NO" +firewall_quiet="NO" # be quiet if set. +firewall_type="" # Standard types or absolute pathname. +tcp_extensions="NO" # Allow RFC1323 & RFC1644 extensions (or NO). + +### Overrides for some files in /etc. Leave empty if no override, +### set variable (remember to use multiple lines) to override content. + +host_conf="hosts +bind" +resolv_conf="" +} + +# Try to identify the system by using the MAC address and name of the +# first ethernet interface, made available as $main_eth $main_if +find_system_id() { + main_ether="" + for main_if in `ifconfig -l` ; do + set `ifconfig $main_if` + while [ "$1" != "" ] ; do + if [ $1 = "ether" ] ; then + main_ether=$2 + break 2 + else + shift + fi + done + done +} + +# the following lets the user specify a name and ip for his system +read_address() { +## XXX disabled + hostname=default + return # + + echo "Please enter a hostname and IP address for your system $main_ether" + read hostname the_ip + if [ "${hostname}" != "" ] ; then + echo "# $main_ether $hostname" >> /etc/hosts + echo "$the_ip $hostname" >> /etc/hosts + else + hostname=default + fi +} + +# set "ether" using $1 (interface name) as search key +get_ether() { + local key + key=$1 + ether="" + set `ifconfig ${key}` + while [ "$1" != "" ] ; do + if [ "$1" = "ether" ] ; then + ether=$2 + break + else + shift + fi + done +} + +# read content from /etc/hosts into a couple of arrays +# (needed later in fetch_hostname) +read_hosts() { + local i a b c key junk + i="" + while read a b c junk ; do + if [ "$a" = "#ethertable" ] ; then + i=0 + elif [ "$i" != "" -a "$a" = "#" -a "$b" != "" ] ; then + eval eth_${i}=$b + eval eth_host_${i}=$c + i=$(($i+1)) + fi + done < /etc/hosts +} + +# set ${hostname} using $1 (MAC address) as search key in /etc/hosts +# Returns empty value if $1 is empty +fetch_hostname() { + local i b key + hostname="" + [ "$1" = "" ] && return + key=$1 + i=0 + b="x" + [ "${eth_0}" = "" ] && read_hosts # fill cache. + while [ "$b" != "" -a "${hostname}" = "" ] ; do + eval b=\${eth_${i}} + case X${key} in + X${b} ) # so we can use wildcards + eval hostname=\${eth_host_${i}} + break + ;; + esac + i=$(($i+1)) + done + echo "fetch_hostname for <${key}> returns <${hostname}>" +} + +# sets "mask" using $1 (netmask name) as the search key in /etc/networks +fetch_mask() { + local a b key junk + key=$1 # search key, typically hostname-netmask + mask="" + while read a b junk; do # key mask otherstuff + case X${key} in + X${a} ) # The X is so we can use wildcards in ${a} + mask=$b + break + ;; + esac + done < /etc/networks + if [ "${mask}" = "" ] ; then + mask=${default_mask} + fi + echo "fetch_mask for <${key}> returns <${mask}>" +} + +# set hostname, and ifconfig_${main_if} (whose MAC is ${main_ether}) +# if not found, read from console +set_main_interface() { + if [ -z "${hostname}" ] ; then + if [ -z "${main_ether}" ] ; then + echo "No ethernets found, using localhost" + hostname=localhost + return + fi + fetch_hostname ${main_ether} + fi + + [ -z "${hostname}" -o "${hostname}" = "." ] && read_address + + fetch_mask ${hostname}-netmask + + eval ifconfig_${main_if}=\" \${hostname} netmask \${mask}\" + network_interfaces=`ifconfig -l` +} + +# set ifconfig_${interface} for all other interfaces +set_all_interfaces() { + local i ether hostname mask + + for i in `ifconfig -l` ; do + if [ "$i" != "${main_if}" ] ; then + get_ether $i + fetch_hostname ${ether} + fetch_mask ${hostname}-netmask + [ -n "${ether}" -a -n "${hostname}" ] && \ + eval ifconfig_${i}=\" \${hostname} netmask \${mask}\" + fi + done +} Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/etc/ttys ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/etc/ttys Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,36 @@ +# +# @(#)ttys 5.1 (Berkeley) 4/17/89 +# +# $FreeBSD$ +# +# name getty type status comments +# +# This entry needed for asking password when init goes to single-user mode +# If you want to be asked for password, change "secure" to "insecure" here +#console none unknown off secure +vga none xterm off secure +# +ttyu0 "/usr/libexec/getty std.9600" xterm on secure +ttyv0 "/usr/libexec/getty Pc" xterm on secure +# Virtual terminals +ttyv1 "/usr/libexec/getty Pc" xterm on secure +ttyv2 "/usr/libexec/getty Pc" xterm on secure +ttyv3 "/usr/libexec/getty Pc" xterm on secure +ttyv4 "/usr/libexec/getty Pc" xterm on secure +ttyv5 "/usr/libexec/getty Pc" xterm on secure +ttyv6 "/usr/libexec/getty Pc" xterm on secure +ttyv7 "/usr/libexec/getty Pc" xterm on secure +#ttyv8 "/usr/libexec/getty Pc" xterm on secure +#ttyv9 "/usr/libexec/getty Pc" xterm on secure +# Pseudo terminals +ttyp0 none network secure +ttyp1 none network secure +ttyp2 none network secure +ttyp3 none network secure +ttyp4 none network secure +ttyp5 none network secure +ttyp6 none network secure +ttyp7 none network secure +ttyp8 none network secure +ttyp9 none network secure + Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/root/change_mtu.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/root/change_mtu.sh Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,15 @@ +#!/bin/sh + +# usage change_mtu.sh new_MTU_value + +ip_old=$(ifconfig em0 | grep inet) +mtu_old=$(ifconfig em0 | grep mtu | cut -f 6 -d ' ') + +ifconfig em0 mtu $1 +ifconfig em0 delete +ifconfig em0 $ip_old + +mtu_new=$(ifconfig em0 | grep mtu | cut -f 6 -d ' ') + +echo "em0 mtu: $mtu_old -> $mtu_new" + Added: soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/root/initialize.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2015/stefano/ptnetmap/head/release/picobsd/netmap/floppy.tree/root/initialize.sh Tue Jun 23 18:45:26 2015 (r287496) @@ -0,0 +1,88 @@ +#!/bin/sh + +#set -x + +usage() +{ + echo -e "\nUSAGE: initialize [options]" + echo -e "\nOptions:" + echo -e " -h\t\t\tHelp" + echo -e " -csb\t\tEnable(def)/Disable CSB (dev.em.0.csb_on=[0,1])" + echo -e " -itr\t\tvalue\tSet the interrupt delay limit [usec]" + echo -e " -dack\t\tEnable(def)/Disable delayed ack (net.inet.tcp.delayed_ack=1)" + echo -e " -mtu\t\tvalue\tSet the mtu value" + echo -e " -msb\t\tvalue\tSet the maxsockbuf value (kern.ipc.maxsockbuf)" + echo -e " -maxfrags\t\tvalue\tSet the maxfragsperpacket value (net.inet.ip.maxfragsperpacket)" +} + + +CSB=1 +ITR=488 +DACK=1 + +MTU=1500 *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***