diff options
author | adrian <adrian@FreeBSD.org> | 2012-03-12 01:15:58 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-03-12 01:15:58 +0000 |
commit | d0a4c995f84ad543bb91b07ff1f8b3f2f2f0d107 (patch) | |
tree | 6c744fa48ebefad25bf537bec6bbc0d94405c897 /sys/mips | |
parent | ba92a7914af6234e5117742852db347066ab4ae0 (diff) | |
download | FreeBSD-src-d0a4c995f84ad543bb91b07ff1f8b3f2f2f0d107.zip FreeBSD-src-d0a4c995f84ad543bb91b07ff1f8b3f2f2f0d107.tar.gz |
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.
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/conf/PB92 | 68 |
1 files changed, 40 insertions, 28 deletions
diff --git a/sys/mips/conf/PB92 b/sys/mips/conf/PB92 index aa7f393..112aca7 100644 --- a/sys/mips/conf/PB92 +++ b/sys/mips/conf/PB92 @@ -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 #Berkeley Fast Filesystem #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 - -device ath # Atheros pci/cardbus NIC's -device ath_pci # PCI/PCIe bus glue +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 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 |