<html><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:14pt"><div><span>Hi,</span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: garamond, 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: garamond, 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Thank you very much for the help, I am trying to configure my systems according to your instructions. If I need further assistance </span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: garamond, 'new york', times, serif; background-color: transparent; font-style: normal;"><span>I will get back to you.</span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: garamond, 'new york', times, serif; background-color: transparent; font-style:
normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: garamond, 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Many Thanks,</span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: garamond, 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Jiban</span></div><div><br></div> <div style="font-family: garamond, 'new york', times, serif; font-size: 14pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Pravin <shindep@student.ethz.ch><br> <b><span style="font-weight: bold;">To:</span></b> jiban sarma <jj_sep@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "barrelfish-users@lists.inf.ethz.ch" <barrelfish-users@lists.inf.ethz.ch>; Kornilios
Kourtis <kornilios.kourtis@inf.ethz.ch> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 17 September 2013, 11:52<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Barrelfish-users] Need Help configuring PXE/TFTP boot<br> </font> </div> <div class="y_msg_container"><br>Hi,<br><br>To expand on Kornilios's answer, here are few configuration<br>details from our internal setup which might help you to use<br>as an example for your setup.<br><br>Directory structure ::<br><br> tftpboot<br> ├── menu.lst.10.110.4.51 -> shindep/menu.lst<br> ├── pxegrub-undi<br> ├── tftpboot.nos5 -> ./pxegrub-undi<br> └── shindep<br> ├── menu.lst<br> ├── skb_ramfs.cpio.gz<br> └── x86_64<br> └── sbin<br>
├── NGD_mng<br> ├── acpi<br> ├── ahci_bench<br> ├── .....<br> ├── .....<br> ├── .....<br> ├── lot of binary images<br><br>While installing the barrelfish, you can use following prefix to get files<br>in proper place ::<br><br> make install INSTALL_PREFIX=/path/to/tftpboot/shindep<br><br>What you need to note that tftp configuration will point the boot process to<br>``tftpboot.nos5`` file, which is essentially a symbolic link to ``pxegrub-undi``<br>from grub installation. Here is a sample tftp configuration which configures<br>the tftp booting for the machine ``nos5`` ::<br><br>
host nos5-boot-interface {<br> hardware ethernet 00:0f:53:07:4d:64;<br> fixed-address 10.110.4.51;<br> filename "tftpboot.nos5";<br> }<br><br><br>Also, the ``menu.lst.10.110.4.51`` is symbolic link to the ``shindep/menu.lst``<br>which is slightly modified version of ``menu.lst`` from your install directory.<br>The changes are mostly related to the paths. Following is small part of<br>``menu.lst`` to give you an idea how paths should be modified<br>according to your directory structure (note the prefix ``/shindep/``<br>in each entry) ::<br><br> title barrelfish image<br> root (nd)<br> kernel /shindep/x86_64/sbin/elver loglevel=4<br> module /shindep/x86_64/sbin/cpu loglevel=4<br> module /shindep/x86_64/sbin/init<br><br>
# Domains spawned by init<br> module /shindep/x86_64/sbin/mem_serv<br> module /shindep/x86_64/sbin/monitor<br><br> # Special boot time domains spawned by monitor<br> module /shindep/x86_64/sbin/ramfsd boot<br> module /shindep/x86_64/sbin/skb boot<br><br> modulenounzip /shindep/skb_ramfs.cpio.gz nospawn<br><br> module /shindep/x86_64/sbin/kaluga boot<br> module /shindep/x86_64/sbin/acpi boot<br> module /shindep/x86_64/sbin/spawnd boot<br> module /shindep/x86_64/sbin/startd boot<br> module /shindep/x86_64/sbin/routing_setup boot<br><br> .... and lot of other files ....<br><br><br>Essentially, DHCP will instruct the tftboot loader to download and use<br>``tftpboot.nos5`` for booting. This file is part of grub
bootloader<br>``pxegrub-undi`` and will then download and use ``menu.lst`` to figure out<br>which other modules to download. Once it has downloaded all files, it will<br>give the control to ``elver`` (it should be there after doing ``make install``<br>on Barrelfish). Then elver will do rest of the loading for Barrelfish and<br>then pass the control to cpu driver.<br><br>I hope that all this information will be helpful to you for setting up<br>the infrastructure.<br><br>Regards,<br>Pravin<br><br><br>On Thu, Sep 5, 2013 at 7:17 AM, Kornilios Kourtis<br><<a ymailto="mailto:kornilios.kourtis@inf.ethz.ch" href="mailto:kornilios.kourtis@inf.ethz.ch">kornilios.kourtis@inf.ethz.ch</a>> wrote:<br>> Hi Jiban,<br>><br>> On Thu, Sep 05, 2013 at 03:57:41AM -0700, jiban sarma wrote:<br>>> Hello All,<br>>><br>>> Today I have got a set up to install barrelfish on real hardware. I want to<br>>> boot the OS via PXE/TFTP.
I have configured the DHCP server and TFTP/PXE<br>>> configuration as well. After that I have copied all the binary files of<br>>> barrelfish using<br>>> make install INSTALL_PREFIX=/var/lib/tftpboot/barrelfish .<br>>><br>>> Now i have the following directory structure within /var/lib/tftpboot<br>>><br>>> drwxr-xr-x 3 root root 4096 Sep 5 02:08 barrelfish<br>>> -rwxr-xr-x 1 root root 353 Sep 5 02:15 mybootmenu.cfg<br>>> drwxr-xr-x 2 root root 4096 Sep 5 03:25 pxelinux.cfg<br>>><br>>> Now when i start my Pxe boot client its stuck in PXE-32 TFTP open timeout.<br>>> Is there any additional file required to boot barrelfish?<br>>><br>>> Please can someone help me how to resolve the issue.<br>><br>> In what file transfer is PXE stuck?<br>> Are you using grub?<br>><br>> I'm not sure how well your setup matches ours, but (unless I'm
mistaken) our<br>> booting process is:<br>> - pxe loads the grub image over tftp<br>> (the image is typically specified in the dhcpd configuration file)<br>> - grub fetches proper menu.lst (usually it's menu.lst.$IP) using tftp<br>> - grub reads menu.lst (see README on Barrelfish source tree for an<br>> example) and fetches the necessary files from tftp<br>> - grub starts elver that loads Barrelfish kernel<br>><br>> A good starting point would be to look at the tftp logs and see what files are<br>> requested and what files are actually transfered.<br>><br>> cheers,<br>> Kornilios.<br>><br>> --<br>> Kornilios Kourtis<br>><br>> _______________________________________________<br>> Barrelfish-users mailing list<br>> <a ymailto="mailto:Barrelfish-users@lists.inf.ethz.ch"
href="mailto:Barrelfish-users@lists.inf.ethz.ch">Barrelfish-users@lists.inf.ethz.ch</a><br>> <a href="https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users" target="_blank">https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users</a><br><br></div> </div> </div> </div></body></html>