Mailinglist Archive: opensuse-bugs (5243 mails)

< Previous Next >
[Bug 808582] grub2 cannot boot from pxe

https://bugzilla.novell.com/show_bug.cgi?id=808582

https://bugzilla.novell.com/show_bug.cgi?id=808582#c1


--- Comment #1 from Michael Chang <mchang@xxxxxxxx> 2013-03-11 06:53:53 UTC ---
For grub2.efi, we have to add tftp and efinet to support pxe boot. Besides, we
have too one patch from upstream [1] to fix the timeout problem when loading
larger files (for eg, larger files like kernel or normal.mod will fail to load
with timeout error).

[1] upstream patch:

=== modified file 'ChangeLog'
--- ChangeLog 2012-07-02 09:20:51 +0000
+++ ChangeLog 2012-07-02 09:22:50 +0000
@@ -1,5 +1,11 @@
2012-07-02 Vladimir Serbinenko <phcoder@xxxxxxxxx>

+ * grub-core/net/tftp.c (ack): Fix endianness problem.
+ (tftp_receive): Likewise.
+ Reported by: Michael Davidsaver.
+
+2012-07-02 Vladimir Serbinenko <phcoder@xxxxxxxxx>
+
* gentpl.py: Make mans depend on grub-mkconfig_lib.

2012-07-02 Vladimir Serbinenko <phcoder@xxxxxxxxx>

=== modified file 'grub-core/net/tftp.c'
--- grub-core/net/tftp.c 2012-06-22 20:04:16 +0000
+++ grub-core/net/tftp.c 2012-07-02 09:22:50 +0000
@@ -143,7 +143,7 @@

tftph_ack = (struct tftphdr *) nb_ack.data;
tftph_ack->opcode = grub_cpu_to_be16 (TFTP_ACK);
- tftph_ack->u.ack.block = block;
+ tftph_ack->u.ack.block = grub_cpu_to_be16 (block);

err = grub_net_send_udp_packet (data->sock, &nb_ack);
if (err)
@@ -225,7 +225,7 @@
grub_priority_queue_pop (data->pq);

if (file->device->net->packs.count < 50)
- err = ack (data, tftph->u.data.block);
+ err = ack (data, data->block + 1);
else
{
file->device->net->stall = 1;

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References