Author: pebender
Date: Fri Jan 9 19:56:47 2009
New Revision: 4203
Added:
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/lib/udev/mm_firmware_load
(contents, props changed)
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/lib/udev/rules.d/03-minimyth-firmware.rules.disabled
Modified:
trunk/gar-minimyth/html/minimyth/document-changelog.txt
Log:
- Added support for loading firmware (as long as it is present in
'/lib/firmware').
Modified: trunk/gar-minimyth/html/minimyth/document-changelog.txt
==============================================================================
--- trunk/gar-minimyth/html/minimyth/document-changelog.txt (original)
+++ trunk/gar-minimyth/html/minimyth/document-changelog.txt Fri Jan 9
19:56:47 2009
@@ -14,6 +14,8 @@
Modified init
- Added detection of i2c lirc devices.
+ - Added support for loading firmware (as long as it is present in
+ '/lib/firmware').
Fixed bugs
- Fixed a bug that caused there to be no PCI devices in
/dev/persistent.
Added:
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/lib/udev/mm_firmware_load
==============================================================================
--- (empty file)
+++
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/lib/udev/mm_firmware_load
Fri Jan 9 19:56:47 2009
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+if /usr/bin/test ! -e "/lib/firmware/$FIRMWARE" ; then
+ /usr/bin/mm_command message_output 'err', "missing firmware
/lib/firmware/$FIRMWARE."
+ exit 1
+fi
+
+if /usr/bin/test ! -e "/sys$DEVPATH/data" ||
+ /usr/bin/test ! -e "/sys$DEVPATH/loading" ; then
+ /usr/bin/mm_command message_output 'err', "missing firmware loader
sysfs interface for /sys$DEVPATH."
+ exit 1
+fi
+
+/bin/echo 1 > /sys$DEVPATH/loading
+/bin/cat "/lib/firmware/$FIRMWARE" > /sys$DEVPATH/data
+/bin/echo 0 > /sys$DEVPATH/loading
+
+exit 0
Added:
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/lib/udev/rules.d/03-minimyth-firmware.rules.disabled
==============================================================================
--- (empty file)
+++
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/lib/udev/rules.d/03-minimyth-firmware.rules.disabled
Fri Jan 9 19:56:47 2009
@@ -0,0 +1 @@
+SUBSYSTEM=="firmware", ACTION=="add", RUN+="mm_firmware_load"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"minimyth-commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/minimyth-commits?hl=en
-~----------~----~----~----~------~----~------~--~---