From 70bd675bb90adcf3b083ad3256d5c95840e74d06 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 8 Oct 2014 19:25:25 +0300 Subject: [PATCH] linux: enable firmware loading from /storage/.config/firmware/ from Documentation/firmware_class/README: .... 1), kernel(driver): - calls request_firmware(&fw_entry, $FIRMWARE, device) - kernel searchs the fimware image with name $FIRMWARE directly in the below search path of root filesystem: User customized search path by module parameter 'path'[1] "/lib/firmware/updates/" UTS_RELEASE, "/lib/firmware/updates", "/lib/firmware/" UTS_RELEASE, "/lib/firmware" - If found, goto 7), else goto 2) [1], the 'path' is a string parameter which length should be less than 256, user should pass 'firmware_class.path=$CUSTOMIZED_PATH' if firmware_class is built in kernel(the general situation) .... can also be done via boot parameter but I preder symlinking --- packages/linux/package.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/linux/package.mk b/packages/linux/package.mk index 96af7a2514..a4ecdf12ad 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -216,5 +216,7 @@ post_install() { mkdir -p $INSTALL/etc/modprobe.d cp $PKG_DIR/modprobe.d/*.conf $INSTALL/etc/modprobe.d + ln -sf /storage/.config/firmware/ $INSTALL/lib/firmware/updates + enable_service cpufreq-threshold.service }