summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-03-23 23:47:59 +0000
committerimp <imp@FreeBSD.org>2007-03-23 23:47:59 +0000
commitdbeaed2a56a0fedb1ab9e069fa8b550087156640 (patch)
tree131479c368162dd9f497a2fa4b549a01f31eede3
parent8c61b1c8ef52085026e7535536ce18cb69a98af0 (diff)
downloadFreeBSD-src-dbeaed2a56a0fedb1ab9e069fa8b550087156640.zip
FreeBSD-src-dbeaed2a56a0fedb1ab9e069fa8b550087156640.tar.gz
Default to booting off the SD card. It is more useful, and a full
FreeBSD/arm installworld install is only 170MB. The smallest SD card I could find at the store today was 512MB (and it was only $10 after rebate), with a 2GB card for as low as $25.00... Now that the IIC stuff has been sorted out, include that as well. Include hints for the icee 16kb 16-bit i2c device. It should include info about the temperature sensor as well, but that driver isn't quite ready. Add bpf for dhclient happiness. MFC After: 1 week
-rw-r--r--sys/arm/conf/KB920X21
-rw-r--r--sys/arm/conf/KB920X.hints16
2 files changed, 32 insertions, 5 deletions
diff --git a/sys/arm/conf/KB920X b/sys/arm/conf/KB920X
index a865cce8..cc32300 100644
--- a/sys/arm/conf/KB920X
+++ b/sys/arm/conf/KB920X
@@ -24,6 +24,7 @@ ident KB920X
include "../at91/std.kb920x"
#To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" #Default places to look for devices.
+hints "KB920X.hints"
makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
options DDB
@@ -38,12 +39,12 @@ options FFS #Berkeley Fast Filesystem
#options UFS_DIRHASH #Improve performance on big directories
#options MD_ROOT #MD is a potential root device
#options MD_ROOT_SIZE=4096 # 3MB ram disk
-#options ROOTDEVNAME=\"ufs:md0\"
+options ROOTDEVNAME=\"ufs:/dev/mmcsd0s1a\"
options NFSCLIENT #Network Filesystem Client
#options NFSSERVER #Network Filesystem Server
-options NFS_ROOT #NFS usable as /, requires NFSCLIENT
-options BOOTP_NFSROOT
-options BOOTP
+#options NFS_ROOT #NFS usable as /, requires NFSCLIENT
+#options BOOTP_NFSROOT
+#options BOOTP
#options MSDOSFS #MSDOS Filesystem
#options CD9660 #ISO 9660 Filesystem
@@ -79,6 +80,16 @@ device lxtphy
device mem # Memory and kernel memory devices
device md
-# device at91_twi # TWI: Two Wire Interface
+device at91_twi # TWI: Two Wire Interface
device at91_spi # SPI:
device spibus
+# MMC/SD
+device at91_mci
+device mmc
+device mmcsd
+# iic
+device iic
+device iicbus
+device icee
+
+device bpf
diff --git a/sys/arm/conf/KB920X.hints b/sys/arm/conf/KB920X.hints
new file mode 100644
index 0000000..67927c3
--- /dev/null
+++ b/sys/arm/conf/KB920X.hints
@@ -0,0 +1,16 @@
+# $FreeBSD$
+#
+# Kwikbyte KB9202A description (will also work for 9202 and might work with
+# a boot loader tweak on the KB9202B). For the moment, all we list is the
+# eeprom. The temperature sensor isn't listed.
+#
+
+# boot eeprom at 'default' address of 0xa0
+hint.icee.0.at="iicbus0"
+hint.icee.0.addr=0xa0
+hint.icee.0.type=16
+hint.icee.0.size=16384
+hint.icee.0.rd_sz=256
+hint.icee.0.wr_sz=16
+
+# XXX add temperature sensor
OpenPOWER on IntegriCloud