[casper] Netbooting ROACH and ROACH2 from same server
Hi All, I would like to get a ROACH1 to netboot on the same network as our ROACH2s, but I am not sure how to specify two different directories from which to serve uImages to different machines. Is it possible? I am using the Ubuntu tftp server, whose config file (/etc/xinetd.d/tftp) specifies the boot directory as server_args = -s /srv/roach2_boot/boot but I would need to specify /srv/roach_boot/boot for the ROACH1. Thanks, Dale
Re: [casper] Netbooting ROACH and ROACH2 from same server
On 06/19/2013 05:16 PM, Gary, Dale E. wrote: I would like to get a ROACH1 to netboot on the same network as our ROACH2s, but I am not sure how to specify two different directories from which to serve uImages to different machines. Is it possible? I am using the Ubuntu tftp server, whose config file (/etc/xinetd.d/tftp) specifies the boot directory as server_args = -s /srv/roach2_boot/boot but I would need to specify /srv/roach_boot/boot for the ROACH1. On my ROACH controller I have /var/roach1_root and /var/roach2_root. Each ROACH has the host and path to its NFS directory in EPROM. The parameters were set after logging in via the ROACH serial port. Melissa Soriano set it up but I'm sure I can dig up her notes if you need more information. Tom
Re: [casper] Netbooting ROACH and ROACH2 from same server
Hi Dale, I set this up in the dnsmasq configuration given the ROACH1 and 2 have differing MAC address families. For example, in my dnsmasq.conf file I have the lines: dhcp-mac=roach2,02:*:01:*:*:* dhcp-mac=roach1,*:6D:*:*:*:* dhcp-option=tag:roach2,17,192.168.40.1:/home/nfs/roach2/current dhcp-option=tag:roach1,17,192.168.40.1:/home/nfs/roach1/current I'm attaching my dnsmasq.conf file if it's any help. In /etc/exports I have: /home/nfs/roach1 192.168.40.0/24(rw,subtree_check,no_root_squash,insecure) /home/nfs/roach2 192.168.40.0/24(rw,subtree_check,no_root_squash,insecure) It was awhile ago, but I don't think I needed to do anything else. Mark On Wed, Jun 19, 2013 at 5:21 PM, Tom Kuiper kui...@jpl.nasa.gov wrote: ** On 06/19/2013 05:16 PM, Gary, Dale E. wrote: I would like to get a ROACH1 to netboot on the same network as our ROACH2s, but I am not sure how to specify two different directories from which to serve uImages to different machines. Is it possible? I am using the Ubuntu tftp server, whose config file (/etc/xinetd.d/tftp) specifies the boot directory as server_args = -s /srv/roach2_boot/boot but I would need to specify /srv/roach_boot/boot for the ROACH1. On my ROACH controller I have /var/roach1_root and /var/roach2_root. Each ROACH has the host and path to its NFS directory in EPROM. The parameters were set after logging in via the ROACH serial port. Melissa Soriano set it up but I'm sure I can dig up her notes if you need more information. Tom dnsmasq.conf Description: Binary data
Re: [casper] Netbooting ROACH and ROACH2 from same server
Hi, Dale, Here's yet another example of using dnsmasq to boot both ROACH1s and ROACH2s. In addition to the usual dnsmasq configuration details, you'll need to add/modify the following lines to match your setup: # How to differentiate between roach1 and roach2 dhcp-mac=roach1,02:*:00:*:*:* dhcp-mac=roach2,02:*:01:*:*:* # Send different root filesystem paths for roach1 and roach2 dhcp-option=net:roach1,option:root-path,192.168.1.2:/srv/etch_root.ppc dhcp-option=net:roach2,option:root-path,192.168.1.2:/srv/squeeze_root.ppc # Send different boot image info for roach1 and roach2 dhcp-boot=net:roach1,uboot-roach1/uImage dhcp-boot=net:roach2,uboot-roach2/uImage-r2borph3 Hope this helps, Dave On Jun 19, 2013, at 5:35 PM, Mark Wagner wrote: Hi Dale, I set this up in the dnsmasq configuration given the ROACH1 and 2 have differing MAC address families. For example, in my dnsmasq.conf file I have the lines: dhcp-mac=roach2,02:*:01:*:*:* dhcp-mac=roach1,*:6D:*:*:*:* dhcp-option=tag:roach2,17,192.168.40.1:/home/nfs/roach2/current dhcp-option=tag:roach1,17,192.168.40.1:/home/nfs/roach1/current I'm attaching my dnsmasq.conf file if it's any help. In /etc/exports I have: /home/nfs/roach1192.168.40.0/24(rw,subtree_check,no_root_squash,insecure) /home/nfs/roach2192.168.40.0/24(rw,subtree_check,no_root_squash,insecure) It was awhile ago, but I don't think I needed to do anything else. Mark On Wed, Jun 19, 2013 at 5:21 PM, Tom Kuiper kui...@jpl.nasa.gov wrote: On 06/19/2013 05:16 PM, Gary, Dale E. wrote: I would like to get a ROACH1 to netboot on the same network as our ROACH2s, but I am not sure how to specify two different directories from which to serve uImages to different machines. Is it possible? I am using the Ubuntu tftp server, whose config file (/etc/xinetd.d/tftp) specifies the boot directory as server_args = -s /srv/roach2_boot/boot but I would need to specify /srv/roach_boot/boot for the ROACH1. On my ROACH controller I have /var/roach1_root and /var/roach2_root. Each ROACH has the host and path to its NFS directory in EPROM. The parameters were set after logging in via the ROACH serial port. Melissa Soriano set it up but I'm sure I can dig up her notes if you need more information. Tom dnsmasq.conf