Hum... Some packets seems duplicated when captured from the server, but not when captured from the mirror port. So let's assume that's ok. I can't find anything in the capture of the non-modified version that would look suspicious. Anyway, syslinux.efi is supposed to be downloaded by the UEFI firmware itself. It succeed but keep restarting for no apparent reason. Maybe an early termination? I don't know. However your modified version is interesting... Try modifying the *other* txdata->GatewayAddress as well. :) It seems like you modified sendto but not send. The TFTP request is sent using "sendto" while the acknowledgement are sent using "send". Thus you need to patch both. I think you can open a bug report on the bugzilla<http://bugzilla.syslinux.org/> for that exact problem and send your patch when you get it working. :) 2013/11/7, Jason Matthews <jason.david.matthews at gmail.com>:> Here are the pcaps: > > http://ge.tt/64G4yxx/v/0 > > syslinux6.02tftpserver.pcap is from the tftpserver with syslinux.efi and > ldlinux.e64 from syslinux-6.02.zip > syslinux6.02frommirrorport.pcap is from the mirrored port with syslinux.efi > and ldlinux.e64 from syslinux-6.02.zip > > syslinux6.02-modified-tftpserver.pcap is from tftpserver with syslinux.efi > and ldlinux.e64 after modifying efi/udp.c > syslinux6.02-modified-frommirrorport.pcap is from mirrored port with > syslinux.efi and ldlinux.e64 after modifying efi/udp.c > > > On Thu, Nov 7, 2013 at 1:16 AM, Geert Stappers <stappers at stappers.nl> > wrote: > >> Op 2013-11-07 om 02:23 schreef Celelibi: >> > 2013/11/6, Jason Matthews <jason.david.matthews at gmail.com>: >> > > I'm using tftp-hpa. I had disabled the blocksize option (-r >> > > blocksize) >> for >> > > some reason that I can't remember now. Re-enabling it and setting to >> 1468 >> > > gives the same results. Considering I'm using http to transfer the >> kernels, >> > > initrd and images, I don't think the slowness will be an problem. >> Thanks >> > > for the suggestions though. >> > >> > Could you please upload a pcap file somewhere? >> > I would be more clear if we could filter out the capture ourselves or >> > check the content of some packets, disable the "stringification" of >> > the ports number. >> >> To create such file use the option `-w `. >> >> > Moreover, your paste is not complete, the last line is cut. >> >> Another benefit of providing a file in libpcap format. >> >> >> Cheers >> Geert Stappers >> _______________________________________________ >> Syslinux mailing list >> Submissions to Syslinux at zytor.com >> Unsubscribe or set options at: >> http://www.zytor.com/mailman/listinfo/syslinux >> Please do not send private replies to mailing list traffic. >> >> > _______________________________________________ > Syslinux mailing list > Submissions to Syslinux at zytor.com > Unsubscribe or set options at: > http://www.zytor.com/mailman/listinfo/syslinux > Please do not send private replies to mailing list traffic. > >
Geert Stappers
2013-Nov-08 10:27 UTC
[syslinux] syslinux.efi pxeboot across multiple subnets
Op 2013-11-08 om 01:31 schreef Celelibi:> 2013/11/7, Jason Matthews <jason.david.matthews at gmail.com>: > > Here are the pcaps: > > > > http://ge.tt/64G4yxx/v/0use wget -O pcaps.zip wget http://ge.tt/api/1/files/64G4yxx/0/blob?download to just fetch it> > > > syslinux6.02tftpserver.pcap is from the tftpserver with syslinux.efi and > > ldlinux.e64 from syslinux-6.02.zip > > syslinux6.02frommirrorport.pcap is from the mirrored port with syslinux.efi > > and ldlinux.e64 from syslinux-6.02.zip > > > > syslinux6.02-modified-tftpserver.pcap is from tftpserver with syslinux.efi > > and ldlinux.e64 after modifying efi/udp.c > > syslinux6.02-modified-frommirrorport.pcap is from mirrored port with > > syslinux.efi and ldlinux.e64 after modifying efi/udp.c > > > > Hum... > Some packets seems duplicated when captured from the server, but not > when captured from the mirror port. So let's assume that's ok. > I can't find anything in the capture of the non-modified version that > would look suspicious.I only looked at syslinux6.02-modified-frommirrorport.pcap> Anyway, syslinux.efi is supposed to be downloaded by the UEFI firmware > itself. It succeed but keep restarting for no apparent reason. Maybe > an early termination? I don't know. > > However your modified version is interesting... > Try modifying the *other* txdata->GatewayAddress as well. :) > It seems like you modified sendto but not send. The TFTP request is > sent using "sendto" while the acknowledgement are sent using "send". > Thus you need to patch both.That makes sense. My observation is also that the transmit works, but the recieve fails. At packet 90 starts TFTP of file sles113/syslinux.efi, which is succesfull. At packet 327 is the file sles113/syslinux.efi a second time transmitted. For reason unclear to me. At packet 564 starts 10.16.233.20 asking for sles113/ldlinux.e64. 10.168.195.178 answers, but client re-acts as if it didn't get that answer.> I think you can open a bug report on the > bugzilla<http://bugzilla.syslinux.org/> for that exact problem and > send your patch when you get it working. :)Yep, patches welcome. Groeten Geert Stappers Who only has netbooting with TFTP server and TFTP client on the same subnet. So not across a router. But yes, it should work. -- Leven en laten leven
Jason Matthews
2013-Nov-08 15:52 UTC
[syslinux] syslinux.efi pxeboot across multiple subnets
I did change both instances of txdata->GatewayAddress, but I think something may be wrong in my toolchain. If I extract syslinux.zip and attempt to make from there (without modifying any files), the cached DHCP packet isn't read on the same subnet. I receive "Succeed to download NBP file." twice before anything from syslinux is loaded, so I believe the duplicate request for syslinux.efi can be put down to the UEFI or network adapter firmware. On Fri, Nov 8, 2013 at 5:27 AM, Geert Stappers <stappers at stappers.nl> wrote:> Op 2013-11-08 om 01:31 schreef Celelibi: > > 2013/11/7, Jason Matthews <jason.david.matthews at gmail.com>: > > > Here are the pcaps: > > > > > > http://ge.tt/64G4yxx/v/0 > > use > > wget -O pcaps.zip wget http://ge.tt/api/1/files/64G4yxx/0/blob?download > > to just fetch it > > > > > > > syslinux6.02tftpserver.pcap is from the tftpserver with syslinux.efi > and > > > ldlinux.e64 from syslinux-6.02.zip > > > syslinux6.02frommirrorport.pcap is from the mirrored port with > syslinux.efi > > > and ldlinux.e64 from syslinux-6.02.zip > > > > > > syslinux6.02-modified-tftpserver.pcap is from tftpserver with > syslinux.efi > > > and ldlinux.e64 after modifying efi/udp.c > > > syslinux6.02-modified-frommirrorport.pcap is from mirrored port with > > > syslinux.efi and ldlinux.e64 after modifying efi/udp.c > > > > > > > Hum... > > Some packets seems duplicated when captured from the server, but not > > when captured from the mirror port. So let's assume that's ok. > > I can't find anything in the capture of the non-modified version that > > would look suspicious. > > I only looked at syslinux6.02-modified-frommirrorport.pcap > > > > Anyway, syslinux.efi is supposed to be downloaded by the UEFI firmware > > itself. It succeed but keep restarting for no apparent reason. Maybe > > an early termination? I don't know. > > > > However your modified version is interesting... > > Try modifying the *other* txdata->GatewayAddress as well. :) > > It seems like you modified sendto but not send. The TFTP request is > > sent using "sendto" while the acknowledgement are sent using "send". > > Thus you need to patch both. > > That makes sense. > My observation is also that the transmit works, but the recieve fails. > > At packet 90 starts TFTP of file sles113/syslinux.efi, which is succesfull. > > At packet 327 is the file sles113/syslinux.efi a second time transmitted. > For reason unclear to me. > > At packet 564 starts 10.16.233.20 asking for sles113/ldlinux.e64. > 10.168.195.178 answers, but client re-acts as if it didn't get that answer. > > > I think you can open a bug report on the > > bugzilla<http://bugzilla.syslinux.org/> for that exact problem and > > send your patch when you get it working. :) > > Yep, patches welcome. > > > Groeten > Geert Stappers > Who only has netbooting with TFTP server and TFTP client on the same > subnet. > So not across a router. But yes, it should work. > -- > Leven en laten leven > _______________________________________________ > Syslinux mailing list > Submissions to Syslinux at zytor.com > Unsubscribe or set options at: > http://www.zytor.com/mailman/listinfo/syslinux > Please do not send private replies to mailing list traffic. > >