All of lore.kernel.org
 help / color / mirror / Atom feed
* pxe failing on grub 2.00 for files larger than 50KiB
@ 2012-09-25 18:55 Daniel Kahn Gillmor
  2012-09-25 19:09 ` Seth Goldberg
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Kahn Gillmor @ 2012-09-25 18:55 UTC (permalink / raw)
  To: Grub 2 Development List

[-- Attachment #1: Type: text/plain, Size: 3523 bytes --]

hi grub folks--

i'm using grub 2.00-5 from debian experimental.

I made a pxeboot netdir with grub-mknetdir.

i'm trying to boot from it, and i get:

    error: timeout reading '/boot/grub/i386-pc/normal.mod'.

From the command prompt, i can successfully load smaller modules like
cat.mod and hello.mod, but trying to do "insmod normal" gives me the
timeout.

doing a packet capture on the tftp server, i see this:

$ tshark -n -r tftp.pcap 
  1   0.000000 192.168.13.114 -> 192.168.13.1 TFTP 98 Read Request, File: /boot/grub/i386-pc/cat.mod, Transfer type: octet, blksize\000=1024\000, tsize\000=0\000
  2   0.002586 192.168.13.1 -> 192.168.13.114 TFTP 68 Option Acknowledgement, blksize\000=1024\000, tsize\000=2232\000
  3   0.002858 192.168.13.114 -> 192.168.13.1 TFTP 60 Acknowledgement, Block: 0
  4   0.003064 192.168.13.1 -> 192.168.13.114 TFTP 1070 Data Packet, Block: 1
  5   0.003741 192.168.13.114 -> 192.168.13.1 TFTP 60 Acknowledgement, Block: 1
  6   0.003846 192.168.13.1 -> 192.168.13.114 TFTP 1070 Data Packet, Block: 2
  7   0.004523 192.168.13.114 -> 192.168.13.1 TFTP 60 Acknowledgement, Block: 2
  8   0.004618 192.168.13.1 -> 192.168.13.114 TFTP 230 Data Packet, Block: 3 (last)
  9   0.004901 192.168.13.114 -> 192.168.13.1 TFTP 60 Acknowledgement, Block: 3
 10   5.189722 192.168.13.114 -> 192.168.13.1 TFTP 101 Read Request, File: /boot/grub/i386-pc/normal.mod, Transfer type: octet, blksize\000=1024\000, tsize\000=0\000
 11   5.192318 192.168.13.1 -> 192.168.13.114 TFTP 70 Option Acknowledgement, blksize\000=1024\000, tsize\000=110364\000
 12   5.192602 192.168.13.114 -> 192.168.13.1 TFTP 60 Acknowledgement, Block: 0
 13   5.192779 192.168.13.1 -> 192.168.13.114 TFTP 1070 Data Packet, Block: 1
 14   5.193423 192.168.13.114 -> 192.168.13.1 TFTP 60 Acknowledgement, Block: 1
 15   5.193537 192.168.13.1 -> 192.168.13.114 TFTP 1070 Data Packet, Block: 2
 16   5.194219 192.168.13.114 -> 192.168.13.1 TFTP 60 Acknowledgement, Block: 2
 [...a bunch of TFTP data and acks snipped...]
109   5.229248 192.168.13.1 -> 192.168.13.114 TFTP 1070 Data Packet, Block: 49
110   5.229909 192.168.13.114 -> 192.168.13.1 TFTP 60 Acknowledgement, Block: 49
111   5.230033 192.168.13.1 -> 192.168.13.114 TFTP 1070 Data Packet, Block: 50
112   5.230699 192.168.13.114 -> 192.168.13.1 TFTP 60 Acknowledgement, Block: 50
113   5.230798 192.168.13.1 -> 192.168.13.114 TFTP 1070 Data Packet, Block: 51
114   6.234305 192.168.13.1 -> 192.168.13.114 TFTP 1070 Data Packet, Block: 51
115   8.238690 192.168.13.1 -> 192.168.13.114 TFTP 1070 Data Packet, Block: 51
116  12.243560 192.168.13.1 -> 192.168.13.114 TFTP 1070 Data Packet, Block: 51
117  14.821514 192.168.13.114 -> 192.168.13.1 TFTP 60 Error Code, Code: Not defined, Message: closed
$ 

any idea what's going on here?  i note that normal.mod is the largest
module on the system, at 110364 bytes. 

also, when i try to "cat test.txt" and test.txt is a large file, it only
prints about 32767 bytes from the file before hanging, and
then producing:

> error: timeout reading 'test.txt'

looking at the network, i see that it actually acknowledges the receipt
of 50 1024-byte chunks, even though only 32 of them are being printed.

So i'd say there's some sort of bug in this version of grub's pxe code
that makes it unable to fetch anything larger than 50KiB.

This is *not* a problem when pxebooting with grub 1.99.

can i provide any more details that would help track this down?

    --dkg

[-- Attachment #2: Type: application/pgp-signature, Size: 965 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-09-26 14:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-25 18:55 pxe failing on grub 2.00 for files larger than 50KiB Daniel Kahn Gillmor
2012-09-25 19:09 ` Seth Goldberg
2012-09-25 22:00   ` Colin Watson
2012-09-26  3:25   ` Daniel Kahn Gillmor
2012-09-26  6:30     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-09-26 12:24       ` Colin Watson
2012-09-26 14:19       ` Lennart Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.