From owner-svn-src-head@FreeBSD.ORG Mon Mar 12 01:15:59 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E8B0106564A; Mon, 12 Mar 2012 01:15:59 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 596DC8FC0A; Mon, 12 Mar 2012 01:15:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q2C1FxDR035392; Mon, 12 Mar 2012 01:15:59 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q2C1FxcO035389; Mon, 12 Mar 2012 01:15:59 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201203120115.q2C1FxcO035389@svn.freebsd.org> From: Adrian Chadd Date: Mon, 12 Mar 2012 01:15:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232845 - head/sys/mips/conf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2012 01:15:59 -0000 Author: adrian Date: Mon Mar 12 01:15:58 2012 New Revision: 232845 URL: http://svn.freebsd.org/changeset/base/232845 Log: Begin modifying the PB92 config file to actually generate a flashable, bootable image. The kernel has to fit inside an 896KiB area in a 4MB SPI flash. So a bunch of stuff can't be included (and more is to come), including (unfortunately) IPv6. TODO: * GPIO modules need to be created * Shrink the image a bit more by removing some of the CAM layer debugging strings. Modified: head/sys/mips/conf/PB92 Modified: head/sys/mips/conf/PB92 ============================================================================== --- head/sys/mips/conf/PB92 Mon Mar 12 01:06:29 2012 (r232844) +++ head/sys/mips/conf/PB92 Mon Mar 12 01:15:58 2012 (r232845) @@ -13,6 +13,17 @@ options HZ=1000 # The PB92 has 32mb of RAM; hard-code that options AR71XX_REALMEM=32*1024*1024 +# It's UBOOT, not Redboot - without this, things will hang at startup +options AR71XX_ENV_UBOOT + +# We have to build most things as modules rather than in the kernel. +# The PB92 has 4MB of SPI flash and the default kernel "partition" +# is only 892KiB. In order to try and squeeze into that (so people +# who already are using it without modifying the default flash layout) +# we need to cut down on a lot of things. + +makeoptions MODULES_OVERRIDE="ath ath_pci ath_ahb bridgestp if_bridge if_gif if_gre random wlan wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt wlan_tkip wlan_wep wlan_xauth usb ar71xx" + hints "PB92.hints" include "../atheros/std.ar71xx" @@ -24,7 +35,8 @@ options KDB options SCHED_4BSD #4BSD scheduler options INET #InterNETworking -options INET6 +# Can't do IPv6 - it just doesn't fit. +# options INET6 # options NFSCL #Network Filesystem Client options PSEUDOFS #Pseudo-filesystem framework options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions @@ -41,11 +53,10 @@ options FFS #options UFS_ACL #Support for access control lists #options UFS_DIRHASH #Improve performance on big directories -options MD_ROOT -options MD_ROOT_SIZE=5120 -device geom_uzip -options GEOM_UZIP -options ROOTDEVNAME=\"ufs:/dev/md0.uzip\" +# Support uncompress lzma rootfs +device geom_uncompress +options GEOM_UNCOMPRESS +options ROOTDEVNAME=\"ufs:/dev/map/rootfs.uncompress\" # PCI bus device pci @@ -58,49 +69,50 @@ device nvram2env options IEEE80211_DEBUG options IEEE80211_SUPPORT_MESH options IEEE80211_SUPPORT_TDMA -device wlan # 802.11 support -device wlan_wep # 802.11 WEP support -device wlan_ccmp # 802.11 CCMP support -device wlan_tkip # 802.11 TKIP support -device wlan_xauth # 802.11 hostap support +options IEEE80211_ALQ +#device wlan # 802.11 support +#device wlan_wep # 802.11 WEP support +#device wlan_ccmp # 802.11 CCMP support +#device wlan_tkip # 802.11 TKIP support +#device wlan_xauth # 802.11 hostap support -device ath # Atheros pci/cardbus NIC's -device ath_pci # PCI/PCIe bus glue +#device ath # Atheros pci/cardbus NIC's +#device ath_pci # PCI/PCIe bus glue options ATH_DEBUG options ATH_ENABLE_11N options ATH_DIAGAPI -device ath_hal +# device ath_hal options AH_SUPPORT_AR5416 options AH_DEBUG options AH_DEBUG_ALQ -device ath_rate_sample +# device ath_rate_sample device mii device arge # USB devices - PB92 has EHCI only -device usb +#device usb options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order options USB_DEBUG options USB_HOST_ALIGN=32 -device ehci +#device ehci # Mass storage -device scbus -device umass -device da +#device scbus +#device umass +#device da # Read MSDOS formatted disks options GEOM_PART_BSD options GEOM_PART_MBR -options MSDOSFS +# options MSDOSFS # GPIO Bus -device gpio -device gpioled +#device gpio +#device gpioled # SPI and flash device spibus @@ -118,7 +130,7 @@ device uart # Network twiddling device loop device ether -device md -device bpf -device random -device if_bridge +#device md +#device bpf +#device random +#device if_bridge