From owner-svn-src-all@freebsd.org Thu Nov 12 00:26:49 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 91C32A2B1F2; Thu, 12 Nov 2015 00:26:49 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (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 538671CCF; Thu, 12 Nov 2015 00:26:49 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tAC0Qlsu004548; Thu, 12 Nov 2015 00:26:47 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tAC0Qlfm004547; Thu, 12 Nov 2015 00:26:47 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201511120026.tAC0Qlfm004547@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Thu, 12 Nov 2015 00:26:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290692 - head/sys/arm/conf X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2015 00:26:49 -0000 Author: imp Date: Thu Nov 12 00:26:47 2015 New Revision: 290692 URL: https://svnweb.freebsd.org/changeset/base/290692 Log: Revisit this old board with 64MB of RAM. Comment out usb entirely, since it isn't used for my application. Add back the md device since it's needed for NanoBSD support. Add in many of the small memory footprint options from the access points. With these changes we go from having ~8MB to having ~20MB free, though free + inactive only goes from ~35MB to ~42MB. We can also boot a nanobsd image mostly (I had to hand tweak what was built to represent the final goal). Move the FDT stuff to the top. We're almost ready to pull the trigger to moving over to FDT, but something in the MCI driver is freaking out when we do and that needs fixing first. Modified: head/sys/arm/conf/SAM9260EK Modified: head/sys/arm/conf/SAM9260EK ============================================================================== --- head/sys/arm/conf/SAM9260EK Wed Nov 11 23:52:08 2015 (r290691) +++ head/sys/arm/conf/SAM9260EK Thu Nov 12 00:26:47 2015 (r290692) @@ -24,6 +24,15 @@ ident SAM9260EK include "std.arm" include "../at91/std.sam9260ek" +# Coming soon, but not yet +#options FDT +#options FDT_DTB_STATIC +#makeoptions FDT_DTS_FILE=sam9260ek.dts + +options EARLY_PRINTF +options SOCDEV_PA=0xfc000000 +options SOCDEV_VA=0xdc000000 + # To statically compile in device wiring instead of /boot/device.hints hints "SAM9260EK.hints" @@ -92,13 +101,14 @@ options PRINTF_BUFR_SIZE=128 # Prevent #options BOOTP_NFSROOT #options BOOTP_COMPAT #options BOOTP_NFSV3 -#options BOOTP_WIRED_TO=ate0 +#options BOOTP_WIRED_TO=macb0 # alternatively, boot from a MMC/SD memory card -#options ROOTDEVNAME=\"ufs:/dev/mmcsd0s1a\" +# s1 is FAT on this platform. +options ROOTDEVNAME=\"ufs:/dev/mmcsd0s2a\" # Alternatively, boot from a USB card. -options ROOTDEVNAME=\"ufs:/dev/da0s1a\" +#options ROOTDEVNAME=\"ufs:/dev/da0s1a\" # kernel/memory size reduction options MUTEX_NOINLINE @@ -114,7 +124,7 @@ device bpf # Berkeley packet filter # Ethernet device mii # Minimal MII support -device ate # Atmel AT91 Ethernet driver +device macb # Atmel AT91 Ethernet driver # I2C device at91_twi # Atmel AT91 Two-wire Interface @@ -145,18 +155,18 @@ device random # Entropy device device ether # Ethernet support #device vlan # 802.1Q VLAN support #device tun # Packet tunnel. -#device md # Memory "disks" +device md # Memory "disks" #device gif # IPv6 and IPv4 tunneling #device firmware # firmware assist module # SCSI peripherals -device scbus # SCSI bus (required for ATA/SCSI) +#device scbus # SCSI bus (required for ATA/SCSI) #device ch # SCSI media changers -device da # Direct Access (disks) +#device da # Direct Access (disks) #device sa # Sequential Access (tape etc) -device cd # CD/DVD -device pass # Passthrough device (direct ATA/SCSI access) -device ses # Enclosure Services (SES and SAF-TE) +#device cd # CD/DVD +#device pass # Passthrough device (direct ATA/SCSI access) +#device ses # Enclosure Services (SES and SAF-TE) #device ctl # CAM Target Layer # Serial (COM) ports @@ -165,9 +175,9 @@ options ALT_BREAK_TO_DEBUGGER # USB support #options USB_DEBUG # enable debug msgs -device ohci # OHCI USB interface -device usb # USB Bus (required) -device umass # Disks/Mass storage - Requires scbus and da +#device ohci # OHCI USB interface +#device usb # USB Bus (required) +#device umass # Disks/Mass storage - Requires scbus and da # watchdog device at91_wdt # Atmel AT91 Watchdog Timer @@ -175,11 +185,18 @@ device at91_wdt # Atmel AT91 Watchdog # NAND Flash - Reference design has Samsung 256MB but others possible device nand # NAND interface on CS3 -# Coming soon, but not yet -#options FDT -#options FDT_DTB_STATIC -#makeoptions FDT_DTS_FILE=sam9260ek.dts +options NSFBUFS=128 +maxusers 32 -options EARLY_PRINTF -options SOCDEV_PA=0xfc000000 -options SOCDEV_VA=0xdc000000 +# Limit IO size +options NBUF=128 + +# Don't include the SCSI/CAM strings in the default build +options SCSI_NO_SENSE_STRINGS +options SCSI_NO_OP_STRINGS + +# .. And no sysctl strings +options NO_SYSCTL_DESCR + +# For small memory footprints +options VM_KMEM_SIZE_SCALE=1