diff options
Diffstat (limited to 'target/linux/omap24xx/base-files/etc/hotplug.d/firmware/.svn')
3 files changed, 141 insertions, 0 deletions
diff --git a/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/.svn/entries b/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/.svn/entries new file mode 100644 index 0000000..dbe7fc8 --- /dev/null +++ b/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/.svn/entries @@ -0,0 +1,96 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/omap24xx/base-files/etc/hotplug.d/firmware +svn://svn.openwrt.org/openwrt + + + +2011-02-06T14:42:42.993218Z +25384 +mb + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +10-bme-pmm-image +file + + + + +2013-03-17T12:13:05.000000Z +d6e5f262431c7370eb732c1f11af2db9 +2011-02-06T14:42:42.993218Z +25384 +mb + + + + + + + + + + + + + + + + + + + + + +397 + +20-p54spi-eeprom +file + + + + +2013-03-17T12:13:05.000000Z +edd8fd4322e4b51baba21172c2a9ac83 +2011-02-06T14:42:42.993218Z +25384 +mb + + + + + + + + + + + + + + + + + + + + + +876 + diff --git a/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/.svn/text-base/10-bme-pmm-image.svn-base b/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/.svn/text-base/10-bme-pmm-image.svn-base new file mode 100644 index 0000000..d03c9de --- /dev/null +++ b/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/.svn/text-base/10-bme-pmm-image.svn-base @@ -0,0 +1,15 @@ +#!/bin/sh + +n810_cal_bme_pmm_extract() { + [ -x /usr/bin/calvaria ] && { + /usr/bin/calvaria -p -n bme -i last /dev/mtdblock1 >/lib/firmware/n810-cal-bme-pmm.fw ||\ + echo "CAL-BME extract: Failed to extract blob" + } +} + +[ "$FIRMWARE" = "n810-cal-bme-pmm.fw" ] && { + [ -z "$(grep -e 'Nokia N810' /proc/cpuinfo)" ] || { + [ -e /lib/firmware/n810-cal-bme-pmm.fw ] ||\ + n810_cal_bme_pmm_extract + } +} diff --git a/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/.svn/text-base/20-p54spi-eeprom.svn-base b/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/.svn/text-base/20-p54spi-eeprom.svn-base new file mode 100644 index 0000000..ca92f80 --- /dev/null +++ b/target/linux/omap24xx/base-files/etc/hotplug.d/firmware/.svn/text-base/20-p54spi-eeprom.svn-base @@ -0,0 +1,30 @@ +#!/bin/sh + +p54spi_eeprom_clean() { + rm -f /tmp/wlan-iq-align /tmp/wlan-tx-gen2 +} + +p54spi_eeprom_die() { + echo "$*" + p54spi_eeprom_clean + exit 1 +} + +p54spi_eeprom_extract() { + [ -x /usr/bin/calvaria -a -x /usr/bin/cal2p54 ] && { + /usr/bin/calvaria -p -n wlan-iq-align -i last /dev/mtdblock1 >/tmp/wlan-iq-align ||\ + p54spi_eeprom_die "p54spi EEPROM: Failed to extract wlan-iq-align" + /usr/bin/calvaria -p -n wlan-tx-gen2 -i last /dev/mtdblock1 >/tmp/wlan-tx-gen2 ||\ + p54spi_eeprom_die "p54spi EEPROM: Failed to extract wlan-tx-gen2" + /usr/bin/cal2p54 /tmp/wlan-tx-gen2 /tmp/wlan-iq-align >/lib/firmware/3826.eeprom ||\ + p54spi_eeprom_die "p54spi EEPROM: Failed to generate EEPROM" + p54spi_eeprom_clean + } +} + +[ "$FIRMWARE" = "3826.eeprom" ] && { + [ -z "$(grep -e 'Nokia N810' /proc/cpuinfo)" ] || { + [ -e /lib/firmware/3826.eeprom ] ||\ + p54spi_eeprom_extract + } +} |