h2200-bootloader: ensure mtdblock is available and loaded
authorPaul Eggleton <bluelightning@bluelightning.org>
Thu, 24 Jul 2008 19:47:24 +0000 (19:47 +0000)
committerPaul Eggleton <bluelightning@bluelightning.org>
Thu, 24 Jul 2008 19:47:24 +0000 (19:47 +0000)
* Add kernel-module-mtdblock to RRECOMMENDS
* modprobe mtdblock before accessing mtdblock device

packages/h2200-bootloader/h2200-bootloader.bb

index dc7c227..ea58d34 100644 (file)
@@ -1,6 +1,7 @@
 DESCRIPTION = "Bootloader firmware extractor for the h2200 iPAQ"
+RRECOMMENDS = "kernel-module-mtdblock"
 ALLOW_EMPTY = "1"
-PR="r2"
+PR = "r3"
 
 COMPATIBLE_MACHINE = "h2200"
 #it is a shell script, but lets protect the innocent some more
@@ -9,5 +10,6 @@ PACKAGE_ARCH = "h2200"
 pkg_postinst() {
 #!/bin/sh
 mkdir -p /lib/firmware
+modprobe mtdblock
 dd if=/dev/mtdblock0 of=/lib/firmware/h2200_bootloader.bin 2>/dev/null
 }