<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi &nbsp;All,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">I have been working on configuring barrelfish for PXE/TFTP booting. &nbsp;I am facing the following issues during the configuration of the set up.&nbsp;</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">I mainly faced issues building GRUB-0.97 code from source to support network booting and to load 64-bit ELF image. I am using Ubuntu 10.04 system where i tried to compile the &nbsp;GRUB-0.97 code with gcc-4.4.3 compiler. But GRUB code can be compiled with the gcc-3.x or some lower version of gcc-4.x . So, I tried
 installing gcc-3.3 but it was extremely difficult to install and build gcc from source on ubuntu-10.04, as most of the packages, dependencies required to build gcc 3.3 are not available. So to build grub-0.97 with gcc-4 compiler i got a patch (<a href="http://wiki.tudos.org/Building_patched_grub" style="font-size: 12pt;">http://wiki.tudos.org/Building_patched_grub</a><span style="background-color: transparent;">) so i patched the grub code and it got compile successfully with gcc-4.4.3 compiler. I put the pxegrub in my pxe server and it worked fine as expected. I can see the barrelfish grub menu and also can type commands from grub prompt. Boot process has started well but finally halted with this error message&nbsp;</span><span style="text-indent: -0.25in; font-size: 7pt; font-family: 'Times New Roman';">&nbsp;"&nbsp;</span><span style="text-indent: -0.25in; font-size: 12pt;">unrelocated
kernel address". I think it happens because GRUB can't load 64 bit Image. Please correct me if I am wrong.</span></div><div style="color: rgb(0, 0, 0); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent; font-size: 12pt; text-indent: -0.25in;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent; font-size: 12pt; text-indent: -0.25in;">So I decided to patch the GRUB-code again to load 64 bit image (</span><a href="https://savannah.gnu.org/bugs/?17963" style="font-size: 12pt;">https://savannah.gnu.org/bugs/?17963</a><span style="background-color: transparent; font-size: 12pt; text-indent: -0.25in;">). The patched run successfully. But when i copied the "pxegrub" in my server
 it exactly stopped with the same error message "</span><span style="background-color: transparent; text-indent: -0.25in; font-size: 7pt; font-family: 'Times New Roman';">&nbsp;</span><span style="background-color: transparent; font-size: 12pt; text-indent: -0.25in;">unrelocated kernel address". So I come to a conclusion that since i already patched the GRUB to build with gcc-4 compiler because of that the second patch to load 64 bit image might not work.</span><br></div><div style="color: rgb(0, 0, 0); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="font-size: 12pt; text-indent: -0.25in;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="font-size: 12pt; text-indent: -0.25in;">How can I build grub-0.97 from source on ubuntu
 10.04 and patch it to support both for network and to load 64 bit ELF image? Is there any "pxegrub" binary available that I can use quickly to complete my setup? &nbsp;I am using broadcom ethernet card which supports gt3 driver.</span></div><div style="color: rgb(0, 0, 0); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Thanks,</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Jiban</div><div style="color: rgb(0, 0, 0); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="font-size: 12pt; text-indent:
 -0.25in;"><br></span></div><div style="text-indent: -24px; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Is&nbsp;</div></div></body></html>