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:
parent
2dd1401878
commit
f0dc1b857c
@ -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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user