bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #13649] pxegrub fail to load large image (> 95Mo)


From: Frederic Corne
Subject: [bug #13649] pxegrub fail to load large image (> 95Mo)
Date: Wed, 6 Jul 2005 08:13:32 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13649>

                 Summary: pxegrub fail to load large image (> 95Mo)
                 Project: GNU GRUB
            Submitted by: fcorne
            Submitted on: Wed 07/06/2005 at 08:13
                Category: Booting
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: fcorne
        Originator Email: address@hidden
             Open/Closed: Open
                 Release: 0.97 (and others)
         Reproducibility: Every Time
         Planned Release: 

    _______________________________________________________

Details:

When i'm trying to load a large image with pxegrub with memdisk (from P.Anvin)
as kernel , it hangs if the image is more than 95Mo. The machine has plenty of
ram (more than 384Mo).

How to reproduce :
0) configure a client and a server for use of pxegrub : dhcpd , tftp, ...
1)download memdisk from syslinux http://syslinux.zytor.com/memdisk.php
2) create a 100Mo image full of zeros:
dd if=/dev/zero of=zero.img bs=512 count=204800
3) put the two in a tftp directory /win for example:
-rwxr--r--  1 root root     19124 jui  5 22:15 memdisk*
-rw-r--r--  1 root root 104857600 jui  6 01:06 zero.img
4) add an entry in menu.lst of pxegrub:
title Test
   debug
   root (nd)
   kernel (nd)/win/memdisk
   initrd /win/zero.img
5) start the client :
It start downloading the img file. the little indicator (-) spins when
downloading the file , then rotate very very slowly, then stop .

DEBUG :
in fsys_tftp.c
set DEBUG to 1 
and at around  line 391 in tftp_read function, add the grub_printf: 
       /* Read the data.  */
grub_printf ("tftp_read %d (size %d)\n", __LINE__ , size);
       if (size > 0 && ! buf_fill (0))
        {
          errnum = ERR_READ;
          return 0;
        }
recompile pxegrub and ndgrub

redo 5) :
there is a lot of "DATA ACK" then there is a "<REXMT>"
the size decreases from 104857600 to 11027232
 (always the same : 11027232)
and then it blocks.

If I try with a 50 or 80Mo image , there is no problem. 

If I try the a 100 or 150Mo Image with pxelinux (from syslinux) there is no
problem. 






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13649>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]