<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi All,</div><div><br></div><div style="background-color: transparent;">I have been working on configuring barrelfish for PXE/TFTP booting. I am facing the following issues during the configuration of the set up. </div><div style="background-color: transparent;">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 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 rel="nofollow" target="_blank" href="http://wiki.tudos.org/Building_patched_grub" style="color: rgb(25, 106, 212); 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 </span><span style="font-size: 7pt; font-family: 'Times New Roman';"> " </span><span style="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="font-size: 12pt; background-color: transparent;"><span style="background-color: transparent; font-size: 12pt;"><br></span></div><div style="background-color:
transparent;"><span style="background-color: transparent; font-size: 12pt;">So I decided to patch the GRUB-code again to load 64 bit image (</span><a rel="nofollow" target="_blank" href="https://savannah.gnu.org/bugs/?17963" style="color: rgb(25, 106, 212); font-size: 12pt;">https://savannah.gnu.org/bugs/?17963</a><span style="background-color: transparent; font-size: 12pt;">). 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; font-size: 7pt; font-family: 'Times New Roman';"> </span><span style="background-color: transparent; font-size: 12pt;">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="font-size: 12pt; background-color: transparent;"><span
style="font-size: 12pt;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 12pt;">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? I am using broadcom ethernet card which supports gt3 driver.</span></div><div style="font-size: 12pt; background-color: transparent;"><br></div><div style="background-color: transparent;">Thanks,</div><div style="background-color: transparent;">Jiban</div></div></body></html>