[PATCH 1/2] scripts/setupmbr: fix documentation

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Nov 8 13:30:38 EST 2013

The documentation says setupmbr should be used with the image named
'barebox', but it should instead be done with the 'barebox.bin'
image. Attempting to use setupmbr on the ELF barebox image simply

$ ./scripts/setupmbr/setupmbr -s 32 -m ./barebox -d disk.img
No MBR signature found
barebox image seems not valid: Bad MBR signature

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
 scripts/setupmbr/setupmbr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/setupmbr/setupmbr.c b/scripts/setupmbr/setupmbr.c
index 918fbe3..0060c2e 100644
--- a/scripts/setupmbr/setupmbr.c
+++ b/scripts/setupmbr/setupmbr.c
@@ -666,10 +666,10 @@ and populating the root filesystem for example) to make it useful.
 In the next step, @a barebox gets installed to this boot media:
-[jb at host]~> scripts/setupmbr/setupmbr -s 32 -m ./barebox -d /dev/sda
+[jb at host]~> scripts/setupmbr/setupmbr -s 32 -m ./barebox.bin -d /dev/sda
-This command writes the @a barebox image file './barebox' onto the device
+This command writes the @a barebox image file './barebox.bin' onto the device
 @p /dev/sda.
 The @p -s option will keep the persistant storage sectors free and untouched

More information about the barebox mailing list