[Bug 769789] New: Some ARM devices fail to boot because of dummy MBR sector written by parted.
https://bugzilla.novell.com/show_bug.cgi?id=769789 https://bugzilla.novell.com/show_bug.cgi?id=769789#c0 Summary: Some ARM devices fail to boot because of dummy MBR sector written by parted. Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: Other OS/Version: openSUSE 12.2 Status: ASSIGNED Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: puzel@suse.com ReportedBy: puzel@suse.com QAContact: qa-bugs@suse.de CC: agraf@suse.com Found By: Development Blocker: --- Description by Alexander Graf:
When running parted to create or modify an MBR label, it tries to be clever and throws a dummy x86 boot sector onto the MBR, so the disk is bootable on PCs.
While that's nice and helpful for a bunch of use cases, it doesn't exactly help when running on ARM. Some ARM devices, such as the OMAP3 series, have a buggy boot rom that simply goes into nirvana if it finds non-0 in the first 4 bytes of the SD card.
Please see libparted/labels/dos.c:1271 for the place that copies a generic x86 asm MBR into the MBR when its first byte is 0.
We need to have the first byte be 0 though. Otherwise later on the whole machine won't be bootable anymore :).
Since the dummy boot sector is useless outside x86, let's do it only there. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=769789 https://bugzilla.novell.com/show_bug.cgi?id=769789#c1 --- Comment #1 from Petr Uzel <puzel@suse.com> 2012-07-03 13:39:12 UTC --- Created an attachment (id=497265) --> (http://bugzilla.novell.com/attachment.cgi?id=497265) Use dummy boot sector on x86 only -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=769789 https://bugzilla.novell.com/show_bug.cgi?id=769789#c2 Petr Uzel <puzel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Petr Uzel <puzel@suse.com> 2012-07-03 13:41:37 UTC --- Submitted to Factory (and asked for inclusion to 12.2 as well): request id 126991 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=769789 https://bugzilla.novell.com/show_bug.cgi?id=769789#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-07-03 16:00:15 CEST --- This is an autogenerated message for OBS integration: This bug (769789) was mentioned in https://build.opensuse.org/request/show/126991 Factory / parted -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com