summaryrefslogtreecommitdiff
path: root/packages/mdev/mdev-1.2.1/slugos
diff options
context:
space:
mode:
authorMichael-Luke Jones <mlj28@cam.ac.uk>2006-09-26 19:30:49 +0000
committerMichael-Luke Jones <mlj28@cam.ac.uk>2006-09-26 19:30:49 +0000
commit95fea465c9286297ec719febbb1231909854cf51 (patch)
treebb940b62148e7a500d59a163bde8fff7db32e1ef /packages/mdev/mdev-1.2.1/slugos
parentc31179aa7e8ae910b86ca7bd08f795bdf249a289 (diff)
mdev: Add proper firmware loading support to mdev
* Patch contributed by Christian Hohnstaedt * mdev.conf updated to reflect change in firmware loading
Diffstat (limited to 'packages/mdev/mdev-1.2.1/slugos')
-rw-r--r--packages/mdev/mdev-1.2.1/slugos/loadmicrocode.sh29
-rw-r--r--packages/mdev/mdev-1.2.1/slugos/mdev.conf2
2 files changed, 1 insertions, 30 deletions
diff --git a/packages/mdev/mdev-1.2.1/slugos/loadmicrocode.sh b/packages/mdev/mdev-1.2.1/slugos/loadmicrocode.sh
deleted file mode 100644
index ad1a9e7a44..0000000000
--- a/packages/mdev/mdev-1.2.1/slugos/loadmicrocode.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-# Manual firmware loading with firmware_class
-# Reason: Because I can (or because mdev doesn't support firmware loading)
-# Trigger: Creation of the /dev/ixp4xx_ucode device (this is hacky too, unfortunately)
-
-sleep 1
-
-# Cancel NPE-A microcode upload
-echo -1 > /sys/class/firmware/ixp4xx_npe.0/loading
-
-sleep 1
-
-# Test for NPE-B presence
-
-if test -f /lib/firmware/NPE-B; then
- # Upload NPE-B microcode
- echo 1 > /sys/class/firmware/ixp4xx_npe.1/loading
- cat /lib/firmware/NPE-B > /sys/class/firmware/ixp4xx_npe.1/data
- echo 0 > /sys/class/firmware/ixp4xx_npe.1/loading
-else
- # Cancel NPE-B microcode upload
- echo -1 > /sys/class/firmware/ixp4xx_npe.1/loading
-fi
-
-sleep 1
-
-# Cancel NPE-C microcode upload
-echo -1 > /sys/class/firmware/ixp4xx_npe.2/loading
diff --git a/packages/mdev/mdev-1.2.1/slugos/mdev.conf b/packages/mdev/mdev-1.2.1/slugos/mdev.conf
index eaf77e64d7..751663e53e 100644
--- a/packages/mdev/mdev-1.2.1/slugos/mdev.conf
+++ b/packages/mdev/mdev-1.2.1/slugos/mdev.conf
@@ -9,4 +9,4 @@ ptmx 0:5 666
tty 0:5 0660
ttyS* 0:20 640
event0 0:0 660 @ln -sf /dev/event0 /dev/buzzer
-ixp4xx_ucode root:root 600 @/lib/mdev/loadmicrocode.sh \ No newline at end of file
+ixp4xx_ucode root:root 600