summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-11-10 19:55:52 -0600
committerLuiz Souza <luiz@netgate.com>2017-09-01 13:59:33 -0500
commit329ebe337b7f75b28d738bea3d817e06237ee301 (patch)
tree409586115c42e368b94fb40fad9ff4ca0aabe542
parent20d164aed9f3e19eae2608975d84d3f28d1fec2c (diff)
downloadFreeBSD-src-329ebe337b7f75b28d738bea3d817e06237ee301.zip
FreeBSD-src-329ebe337b7f75b28d738bea3d817e06237ee301.tar.gz
Break the kernel in three files to avoid the conflict of ROOTDEVNAME.
(cherry picked from commit 8fb831d1d2b3a83483acddefb99a55df0b1c38d1)
-rw-r--r--sys/arm/conf/uFW91
-rw-r--r--sys/arm/conf/uFW-base105
-rw-r--r--sys/arm/conf/uFW-netboot2
3 files changed, 111 insertions, 87 deletions
diff --git a/sys/arm/conf/uFW b/sys/arm/conf/uFW
index fd2da27..002e6db 100644
--- a/sys/arm/conf/uFW
+++ b/sys/arm/conf/uFW
@@ -1,6 +1,6 @@
#
-# uFW -- Custom configuration for the micro-firewall kit, check out
-# http://www.netgate.com
+# uFW-netboot -- Custom configuration for the micro-firewall kit with netboot
+# options, check out # http://www.netgate.com
#
# For more information on this file, please read the config(5) manual page,
# and/or the handbook section on Kernel Configuration Files:
@@ -19,20 +19,12 @@
#
# $FreeBSD$
-ident uFW
-
-include "std.armv6"
-include "../ti/am335x/std.am335x"
-
-makeoptions MODULES_EXTRA="dtb/am335x am335x_dmtpps"
+include "uFW-base"
-options INTRNG
-
-options SCHED_4BSD # 4BSD scheduler
-options PLATFORM
+ident uFW
# NFS server support
-#options NFSD
+#options NFSD
# NFS root from boopt/dhcp
#options BOOTP
@@ -43,76 +35,3 @@ options PLATFORM
# Boot device is 2nd slice on MMC/SD card
options ROOTDEVNAME=\"ufs:mmcsd0s2a\"
-
-# MMC/SD/SDIO Card slot support
-device mmc # mmc/sd bus
-device mmcsd # mmc/sd flash cards
-device sdhci # mmc/sd host controller
-
-# I2C support
-device iicbus
-device iic
-device ti_i2c
-
-# eeprom
-device icee
-
-#define am335x_dmtpps # Pulse Per Second capture driver
-
-# Console and misc
-device uart
-device uart_ns8250
-device pty
-device snp
-device md
-device random # Entropy device
-
-# GPIO
-device gpio
-#device gpioled
-
-# ADC support
-device ti_adc
-
-# Watchdog support
-# If we don't enable the watchdog driver, the system could potentially
-# reboot automatically because the boot loader might have enabled the
-# watchdog.
-device ti_wdt
-
-# Mailbox support
-device ti_mbox
-
-# PMU support (for CCNT).
-device pmu
-
-# USB support
-device usb
-options USB_HOST_ALIGN=64 # Align usb buffers to cache line size.
-device musb
-device umass
-device scbus # SCSI bus (required for ATA/SCSI)
-device da # Direct Access (disks)
-
-# USB ethernet support, requires miibus
-device miibus
-
-# Ethernet
-device loop
-device ether
-device micphy
-device cpsw
-device bpf
-
-# Netmap provides direct access to TX/RX rings on supported NICs
-#device netmap # netmap(4) support
-
-# Device mode support and USFS template
-#device usb_template # Control of the gadget
-#device usfs
-
-# Pinmux
-device fdt_pinctrl
-
-# Flattened Device Tree
-options FDT # Configure using FDT/DTB data
diff --git a/sys/arm/conf/uFW-base b/sys/arm/conf/uFW-base
new file mode 100644
index 0000000..8952698
--- /dev/null
+++ b/sys/arm/conf/uFW-base
@@ -0,0 +1,105 @@
+#
+# uFW -- Custom configuration for the microFirewall kit, check out
+# https://netgate.com/products/sg-1000.html
+#
+# For more information on this file, please read the config(5) manual page,
+# and/or the handbook section on Kernel Configuration Files:
+#
+# http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
+#
+# The handbook is also available locally in /usr/share/doc/handbook
+# if you've installed the doc distribution, otherwise always see the
+# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
+# latest information.
+#
+# An exhaustive list of options and more detailed explanations of the
+# device lines is also present in the ../../conf/NOTES and NOTES files.
+# If you are in doubt as to the purpose or necessity of a line, check first
+# in NOTES.
+#
+# $FreeBSD$
+
+ident uFW
+
+include "std.armv6"
+include "../ti/am335x/std.am335x"
+
+makeoptions MODULES_EXTRA="dtb/am335x am335x_dmtpps"
+
+options INTRNG
+
+options SCHED_4BSD # 4BSD scheduler
+options PLATFORM
+
+# MMC/SD/SDIO Card slot support
+device mmc # mmc/sd bus
+device mmcsd # mmc/sd flash cards
+device sdhci # mmc/sd host controller
+
+# I2C support
+device iicbus
+device iic
+device ti_i2c
+
+# eeprom
+device icee
+
+#define am335x_dmtpps # Pulse Per Second capture driver
+
+# Console and misc
+device uart
+device uart_ns8250
+device pty
+device snp
+device md
+device random # Entropy device
+
+# GPIO
+device gpio
+#device gpioled
+
+# ADC support
+device ti_adc
+
+# Watchdog support
+# If we don't enable the watchdog driver, the system could potentially
+# reboot automatically because the boot loader might have enabled the
+# watchdog.
+device ti_wdt
+
+# Mailbox support
+device ti_mbox
+
+# PMU support (for CCNT).
+device pmu
+
+# USB support
+device usb
+options USB_HOST_ALIGN=64 # Align usb buffers to cache line size.
+device musb
+device umass
+device scbus # SCSI bus (required for ATA/SCSI)
+device da # Direct Access (disks)
+
+# USB ethernet support, requires miibus
+device miibus
+
+# Ethernet
+device loop
+device ether
+device micphy
+device cpsw
+device bpf
+
+# Netmap provides direct access to TX/RX rings on supported NICs
+#device netmap # netmap(4) support
+
+# Device mode support and USFS template
+#device usb_template # Control of the gadget
+#device usfs
+
+# Pinmux
+device fdt_pinctrl
+
+# Flattened Device Tree
+options FDT # Configure using FDT/DTB data
diff --git a/sys/arm/conf/uFW-netboot b/sys/arm/conf/uFW-netboot
index 4b2f612..7a05d1c 100644
--- a/sys/arm/conf/uFW-netboot
+++ b/sys/arm/conf/uFW-netboot
@@ -19,7 +19,7 @@
#
# $FreeBSD$
-include "uFW"
+include "uFW-base"
ident uFW-netboot
OpenPOWER on IntegriCloud