From: Michael-Luke Jones Date: Mon, 25 Sep 2006 18:46:53 +0000 (+0000) Subject: mdev: add missing file X-Git-Tag: Release-2010-05/1~9453^2~708 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41fa5a8dbe2037292318aeab9d41af4de3688414;p=openembedded.git mdev: add missing file --- diff --git a/packages/mdev/mdev-1.2.1/slugos/loadmicrocode.sh b/packages/mdev/mdev-1.2.1/slugos/loadmicrocode.sh new file mode 100644 index 0000000000..ad1a9e7a44 --- /dev/null +++ b/packages/mdev/mdev-1.2.1/slugos/loadmicrocode.sh @@ -0,0 +1,29 @@ +#!/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