linux-leviathan: permit booting directly with fastboot
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Wed, 9 Jun 2010 14:38:42 +0000 (16:38 +0200)
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Thu, 10 Jun 2010 21:33:17 +0000 (23:33 +0200)
if we don't gzip the empty ramdisk,the bootloader will refuse
to boot our kenrnel when in fastboot mode and will display this message:
  booting... FAILED (remote: reproduce boot image with on-flash ramdisk error)

recipes/linux/linux-leviathan_git.bb

index 7ee49a6..bc8a477 100644 (file)
@@ -2,7 +2,7 @@ require linux.inc
 DEPENDS += "android-image-utils-native"
 
 PV = "2.6.32+${PR}+gitr${SRCREV}"
-PR = "r17"
+PR = "r18"
 
 COMPATIBLE_MACHINE = "htcdream"
 CMDLINE = "console=tty1 root=/dev/mmcblk0p1 rootdelay=8 fbcon=rotate:1 panic=30 mem=110M"
@@ -18,8 +18,9 @@ S = "${WORKDIR}/git"
 
 do_deploy_append() {
     touch -f empty
+    gzip empty
     mkbootimg --kernel ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin \
-              --ramdisk empty \
+              --ramdisk empty.gz \
               --cmdline "${CMDLINE}" \
               --output ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.fastboot
 }