When running raw boot mode on OMAP3, it gets confused by x86 boot code.
Unfortunately, parted automatically populated new msdos labels with x86
boot code which we need to remove first.
So let's remove any boot code there is. This gets raw booting work on
Beagleboard-xM for me.
Reported-by: Guillaume Gardet <guillaume.gardet(a)free.fr>
Signed-off-by: Alexander Graf <agraf(a)suse.de>
---
modules/KIWIBoot.pm | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/modules/KIWIBoot.pm b/modules/KIWIBoot.pm
index 8b3293e..96929bc 100644
--- a/modules/KIWIBoot.pm
+++ b/modules/KIWIBoot.pm
@@ -4573,6 +4573,20 @@ sub installBootLoader {
$this -> cleanLoop ();
return;
}
+ # OMAP3 has issues when leaving x86 boot code in
+ # the MBR, so better clear that part of the image
+ $status = qxx (
+ "dd if=/dev/zero of=$diskname bs=440 count=1 conv=notrunc 2>&1"
+ );
+ $result = $? >> 8;
+ if ($result != 0) {
+ $kiwi -> failed ();
+ $kiwi -> error ("Couldn't install MLO on $diskname: $status");
+ $kiwi -> failed ();
+ qxx ("umount /mnt 2>&1");
+ $this -> cleanLoop ();
+ return;
+ }
}
qxx ("umount /mnt 2>&1");
}
--
1.6.0.2
--
To unsubscribe, e-mail: opensuse-arm+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-arm+owner(a)opensuse.org