Compiling BURG from Solaris 8/9 sparc/x86

Skip to first unread message


Dec 2, 2009, 3:40:35 PM12/2/09

With the latest r1783, it's all right to compile BURG from Solaris 8/9
sparc/x86. Here are some notes:

Many tools shipped with Solaris 8/9 are not adequate to compile BURG,
you need to install the software from, here is the
package list:

autoconf automake m4 bash findutils grep make gcc-3.4.6 binutils
coreutils bison ruby python gettext

After download and extract source code, use the following command to
generate makefiles:


You need to use bash explicitly as the default /bin/sh is not ok.

Then configure and build:
./configure LDFLAGS="-R /usr/local/lib" AS="/usr/local/bin/as -Av9
-64" --with-shell=/usr/local/bin/bash

LDFLAGS is used to set /usr/local/lib as rpath so that it can find
shared libraries like libintl properly.

AS instruct it to use assembler from binutils instead of
/usr/ccs/bin/as. The gcc from would use
/usr/ccs/bin/as by default, which would fail to compile assembly code
in BURG. The option "-Av9 -64" is used to build sparc64 object file,
it should be changed on x86 host.

--with-shell allows you to change the shell used in Makefiles.

With these settings, compiling should run well.

In sparc host, you can use grub-mkimage to generate netboot image:

./grub-mkimage -n -d . -o sparc.img minicmd part_sun ufs1

The image boots ok. However, there seems to be some bug in part_sun
and it doesn't recognized the partition.

In x86 host, use grub-mkrescue to generate a iso image, it boots ok in qemu.

Using grub-install/grub-setup to install to boot block is not tested,
but considering there is no special handling for solaris host, it
probably fails.

Test OS:
Solaris 8 sparc u7
Solaris 9 x86 u8


Mailing list:


Dec 12, 2009, 11:04:22 AM12/12/09


Add support for big endian ufs, which is used by Solaris sparc.
Misc fixes.

With r1788, burg should work properly in linux, you can install it to
the bs, for instance:

sudo ./grub-install /dev/sda4

You can switch between Solaris and Linux by setting different boot-device in OF:

Boot Solaris
setenv boot-device disk1:a

Boot Linux
setenv boot-device disk1:d
Reply all
Reply to author
0 new messages