[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#773991: flash-kernel: Fails when mtdblock kernel module isn't loaded



Hello Ian,

Uwe, any chance you could try this please:

diff --git a/functions b/functions
index d45a4e6..a7ff6de 100644
--- a/functions
+++ b/functions
@@ -41,7 +41,11 @@ error() {
  mtdblock() {
  	local mtdname="$1"

-	sed -rn "s,^mtd([^:]*).*\"$mtdname\"\$,/dev/mtdblock\\1,p" "$PROC_MTD"
+	local dev=`sed -rn "s,^mtd([^:]*).*\"$mtdname\"\$,/dev/mtdblock\\1,p" "$PROC_MTD"`
+
+	modprobe -q mtdblock && udevadm settle --exit-if-exists=$dev || :
+
+	echo $dev
I would have added the modprobe call only if the device doesn't exist, but I guess that's only cosmetic.

I just installed flash-kernel 3.30 and as expected this one works fine.

Sorry I didn't come around to test this earlier, I was AFK most of the time around Christmas/new year. Thanks for your work on this bug.

Best regards
Uwe


Reply to: