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.
This commit is contained in:
Adrian Chadd 2012-03-12 01:15:58 +00:00
parent 2dd1401878
commit f0dc1b857c

View File

@ -13,6 +13,17 @@ options HZ=1000
# The PB92 has 32mb of RAM; hard-code that # The PB92 has 32mb of RAM; hard-code that
options AR71XX_REALMEM=32*1024*1024 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" hints "PB92.hints"
include "../atheros/std.ar71xx" include "../atheros/std.ar71xx"
@ -24,7 +35,8 @@ options KDB
options SCHED_4BSD #4BSD scheduler options SCHED_4BSD #4BSD scheduler
options INET #InterNETworking options INET #InterNETworking
options INET6 # Can't do IPv6 - it just doesn't fit.
# options INET6
# options NFSCL #Network Filesystem Client # options NFSCL #Network Filesystem Client
options PSEUDOFS #Pseudo-filesystem framework options PSEUDOFS #Pseudo-filesystem framework
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions 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_ACL #Support for access control lists
#options UFS_DIRHASH #Improve performance on big directories #options UFS_DIRHASH #Improve performance on big directories
options MD_ROOT # Support uncompress lzma rootfs
options MD_ROOT_SIZE=5120 device geom_uncompress
device geom_uzip options GEOM_UNCOMPRESS
options GEOM_UZIP options ROOTDEVNAME=\"ufs:/dev/map/rootfs.uncompress\"
options ROOTDEVNAME=\"ufs:/dev/md0.uzip\"
# PCI bus # PCI bus
device pci device pci
@ -58,49 +69,50 @@ device nvram2env
options IEEE80211_DEBUG options IEEE80211_DEBUG
options IEEE80211_SUPPORT_MESH options IEEE80211_SUPPORT_MESH
options IEEE80211_SUPPORT_TDMA options IEEE80211_SUPPORT_TDMA
device wlan # 802.11 support options IEEE80211_ALQ
device wlan_wep # 802.11 WEP support #device wlan # 802.11 support
device wlan_ccmp # 802.11 CCMP support #device wlan_wep # 802.11 WEP support
device wlan_tkip # 802.11 TKIP support #device wlan_ccmp # 802.11 CCMP support
device wlan_xauth # 802.11 hostap support #device wlan_tkip # 802.11 TKIP support
#device wlan_xauth # 802.11 hostap support
device ath # Atheros pci/cardbus NIC's #device ath # Atheros pci/cardbus NIC's
device ath_pci # PCI/PCIe bus glue #device ath_pci # PCI/PCIe bus glue
options ATH_DEBUG options ATH_DEBUG
options ATH_ENABLE_11N options ATH_ENABLE_11N
options ATH_DIAGAPI options ATH_DIAGAPI
device ath_hal # device ath_hal
options AH_SUPPORT_AR5416 options AH_SUPPORT_AR5416
options AH_DEBUG options AH_DEBUG
options AH_DEBUG_ALQ options AH_DEBUG_ALQ
device ath_rate_sample # device ath_rate_sample
device mii device mii
device arge device arge
# USB devices - PB92 has EHCI only # USB devices - PB92 has EHCI only
device usb #device usb
options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order
options USB_DEBUG options USB_DEBUG
options USB_HOST_ALIGN=32 options USB_HOST_ALIGN=32
device ehci #device ehci
# Mass storage # Mass storage
device scbus #device scbus
device umass #device umass
device da #device da
# Read MSDOS formatted disks # Read MSDOS formatted disks
options GEOM_PART_BSD options GEOM_PART_BSD
options GEOM_PART_MBR options GEOM_PART_MBR
options MSDOSFS # options MSDOSFS
# GPIO Bus # GPIO Bus
device gpio #device gpio
device gpioled #device gpioled
# SPI and flash # SPI and flash
device spibus device spibus
@ -118,7 +130,7 @@ device uart
# Network twiddling # Network twiddling
device loop device loop
device ether device ether
device md #device md
device bpf #device bpf
device random #device random
device if_bridge #device if_bridge