aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/net5501
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-02-02 18:41:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-02-02 18:41:10 +0000
commit76b8adb1875baabb1c0e9699f6b465a63fc31d7a (patch)
treed8d710e0663dc193a3a250887a3ee89a145f4a7d /target/linux/x86/net5501
parentdef1af252823240f2043e88e79ea9e05d47c1cee (diff)
downloadmaster-187ad058-76b8adb1875baabb1c0e9699f6b465a63fc31d7a.tar.gz
master-187ad058-76b8adb1875baabb1c0e9699f6b465a63fc31d7a.tar.bz2
master-187ad058-76b8adb1875baabb1c0e9699f6b465a63fc31d7a.zip
[PATCH] net5501: correct net5501 h/w configuration
Bump to version 3.2. Simplify and correct kernel config (based on x86/config-3.2). Designate eth0 as wan interface, and bridge eth1/eth2/eth3. Add heartbeat LED trigger. Use correct CS5535 GPIO driver. Use correct USB drivers (OHCI not UHCI). Add MSR and HW clock support. Add GPIO mask definition. Add correct SATA drivers. Add LED triggers. [Patch from Philipp Prindeville, via http://patchwork.openwrt.org/patch/1802/] git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29994 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/x86/net5501')
-rw-r--r--target/linux/x86/net5501/base-files/etc/config/network18
-rw-r--r--target/linux/x86/net5501/base-files/etc/config/system16
-rw-r--r--target/linux/x86/net5501/base-files/etc/hotplug.d/button/50-reboot13
-rw-r--r--target/linux/x86/net5501/config-default43
-rw-r--r--target/linux/x86/net5501/target.mk32
5 files changed, 86 insertions, 36 deletions
diff --git a/target/linux/x86/net5501/base-files/etc/config/network b/target/linux/x86/net5501/base-files/etc/config/network
new file mode 100644
index 0000000000..c0b6230d58
--- /dev/null
+++ b/target/linux/x86/net5501/base-files/etc/config/network
@@ -0,0 +1,18 @@
+# Copyright (C) 2011 OpenWrt.org
+
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
+config interface lan
+ option ifname "eth1 eth2 eth3"
+ option type bridge
+ option proto static
+ option ipaddr 192.168.1.1
+ option netmask 255.255.255.0
+
+config interface wan
+ option ifname eth0
+ option proto dhcp
diff --git a/target/linux/x86/net5501/base-files/etc/config/system b/target/linux/x86/net5501/base-files/etc/config/system
new file mode 100644
index 0000000000..5db7bc2424
--- /dev/null
+++ b/target/linux/x86/net5501/base-files/etc/config/system
@@ -0,0 +1,16 @@
+config system
+ option hostname OpenWrt
+ option timezone UTC
+
+config timeserver ntp
+ list server 0.openwrt.pool.ntp.org
+ list server 1.openwrt.pool.ntp.org
+ list server 2.openwrt.pool.ntp.org
+ list server 3.openwrt.pool.ntp.org
+
+config led
+ option default 1
+ option name Heartbeat
+ option sysfs 'net5501:1'
+ option trigger heartbeat
+
diff --git a/target/linux/x86/net5501/base-files/etc/hotplug.d/button/50-reboot b/target/linux/x86/net5501/base-files/etc/hotplug.d/button/50-reboot
new file mode 100644
index 0000000000..bf893c15bb
--- /dev/null
+++ b/target/linux/x86/net5501/base-files/etc/hotplug.d/button/50-reboot
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+logger -t button -p daemon.info "$BUTTON/$ACTION"
+
+case "$BUTTON/$ACTION" in
+
+reset/released)
+ reboot -f
+ ;;
+
+esac
+
+exit 0
diff --git a/target/linux/x86/net5501/config-default b/target/linux/x86/net5501/config-default
index 173602794b..b581e95d61 100644
--- a/target/linux/x86/net5501/config-default
+++ b/target/linux/x86/net5501/config-default
@@ -1,42 +1,25 @@
-CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-ecx -fcall-saved-edx"
-CONFIG_CPU_SUP_AMD=y
+# CONFIG_AMD_NB is not set
+# CONFIG_ATA_PIIX is not set
CONFIG_DEBUG_BUGVERBOSE=y
+# CONFIG_FB_GEODE is not set
CONFIG_GENERIC_GPIO=y
CONFIG_GPIOLIB=y
CONFIG_GPIO_SYSFS=y
-CONFIG_HAVE_EARLY_RES=y
-CONFIG_HAVE_HW_BREAKPOINT=y
-CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y
-CONFIG_HAVE_OPTPROBES=y
-CONFIG_HAVE_PERF_EVENTS=y
-CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
-CONFIG_HAVE_USER_RETURN_NOTIFIER=y
+# CONFIG_HIGHMEM64G is not set
CONFIG_HWMON=y
# CONFIG_HWMON_DEBUG_CHIP is not set
-CONFIG_ILLEGAL_POINTER_VALUE=0
-CONFIG_INSTRUCTION_DECODER=y
-CONFIG_ISA_DMA_API=y
-CONFIG_K8_NB=y
+# CONFIG_ISDN is not set
# CONFIG_LEDS_GPIO is not set
# CONFIG_M486 is not set
+# CONFIG_MATH_EMULATION is not set
CONFIG_MGEODE_LX=y
-CONFIG_GEODE_MFGPT_TIMER=y
-# CONFIG_NEED_DMA_MAP_STATE is not set
-CONFIG_NEED_SG_DMA_LENGTH=y
-# CONFIG_PCIEPORTBUS is not set
-# CONFIG_PCSPKR_PLATFORM is not set
-CONFIG_PERF_EVENTS=y
-CONFIG_PROCESSOR_SELECT=y
-CONFIG_SCSI_MOD=y
+CONFIG_NET5501=y
+CONFIG_PATA_CS5536=y
+# CONFIG_POWER_SUPPLY is not set
# CONFIG_SCx200 is not set
# CONFIG_SERIO_I8042 is not set
# CONFIG_SERIO_LIBPS2 is not set
-# CONFIG_TINY_RCU is not set
-CONFIG_X86_CMOV=y
-CONFIG_X86_DEBUGCTLMSR=y
-# CONFIG_X86_GENERIC is not set
-CONFIG_X86_INTERNODE_CACHE_SHIFT=5
-CONFIG_X86_L1_CACHE_SHIFT=5
-CONFIG_X86_TSC=y
-CONFIG_X86_USE_3DNOW=y
-CONFIG_X86_USE_PPRO_CHECKSUM=y
+# CONFIG_SERIO_SERPORT is not set
+CONFIG_THERMAL_HWMON=y
+# CONFIG_SENSORS_K10TEMP is not set
+# CONFIG_SENSORS_VIA_CPUTEMP is not set
diff --git a/target/linux/x86/net5501/target.mk b/target/linux/x86/net5501/target.mk
index 07fdae643e..7bac4fee5c 100644
--- a/target/linux/x86/net5501/target.mk
+++ b/target/linux/x86/net5501/target.mk
@@ -1,12 +1,29 @@
+LINUX_VERSION:=3.2.1
BOARDNAME:=Soekris net5501
-FEATURES:=squashfs pci usb gpio
-DEFAULT_PACKAGES += kmod-ata-via-sata kmod-crypto-hw-geode \
- kmod-gpio-cs5535 kmod-gpio-nsc kmod-gpio-pc8736x \
- kmod-wdt-geode kmod-hwmon-core kmod-hwmon-pc87360 \
- kmod-via-rhine kmod-leds-net5501 \
+FEATURES:=squashfs jffs2 ext4 pci usb gpio
+DEFAULT_PACKAGES += kmod-crypto-hw-geode kmod-crypto-ocf \
+ kmod-gpio-cs5535-new kmod-gpio-nsc \
+ kmod-wdt-geode kmod-cs5535-clockevt kmod-cs5535-mfgpt \
+ kmod-cs5536 \
+ kmod-hwmon-core kmod-hwmon-pc87360 kmod-gpio-pc8736x \
+ kmod-via-rhine kmod-solos-pci \
kmod-i2c-core kmod-i2c-gpio \
kmod-i2c-algo-bit kmod-i2c-algo-pca kmod-i2c-algo-pcf \
- kmod-usb-core kmod-usb2 kmod-usb-uhci
+ kmod-i2c-scx200-acb \
+ kmod-usb-core kmod-usb2 kmod-usb-ohci \
+ kmod-cfg80211 kmod-mac80211 \
+ kmod-mppe kmod-pppoe kmod-pppoa kmod-pppo2ltp \
+ kmod-ath kmod-ath5k kmod-ath9k \
+ kmod-leds-gpio kmod-input-gpio-keys-polled \
+ kmod-button-hotplug \
+ kmod-ledtrig-heartbeat kmod-ledtrig-gpio \
+ kmod-ledtrig-netdev kmod-ledtrig-netfilter \
+ kmod-cpu-msr \
+ soloscli linux-atm br2684ctl bridge ppp ppp-mod-pppoa \
+ pppdump pppstats \
+ libopenssl ocf-crypto-headers zlib hwclock hostapd
+
+CS5535_MASK:=0x01000040
CFLAGS += -Os -pipe -march=k6-2 -fno-align-functions -fno-align-loops -fno-align-jumps \
-fno-align-labels
@@ -15,3 +32,6 @@ define Target/Description
Build firmware images for Soekris net5501 board
endef
+define KernelPackage/gpio-cs5535-new/install
+ sed -i -r -e 's/$$$$$$$$/ mask=$(CS5535_MASK)/' $(1)/etc/modules.d/??-gpio-cs5535-new
+endef