echo and hello bug
I have submitted a bug in to the bugzilla at
https://savannah.gnu.org/bugs/?26744
in which hello just hangs.
I have tried a few tests around this to see if I can get any output via hello from the command line (from menu pressing C) but I cannot. The problem also occurs if I use echo. Any suggestions on how I might try to fix this (I am happy to test it)?
The fact that both hello and echo seem to exhibit the same problem suggests it is not the input as the former is set as a string in the code.
James
Signature · 2 lines
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Quoted 6 lines · James Jarvis
I have submitted a bug in to the bugzilla at
https://savannah.gnu.org/bugs/?26744
in which hello just hangs.
Quoted 7 lines
I have tried a few tests around this to see if I can get any output via hello from the command line (from menu pressing C) but I cannot. The problem also occurs if I use echo. Any suggestions on how I might try to fix this (I am happy to test it)?
The fact that both hello and echo seem to exhibit the same problem suggests it is not the input as the former is set as a string in the code.
What is your build environment?
Quoted 16 lines
James
--
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336._______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
Quoted 13 lines · Vladimir 'phcoder' Serbinenko
Quoted 11 lines · James Jarvis
I have submitted a bug in to the bugzilla at
https://savannah.gnu.org/bugs/?26744
in which hello just hangs.
I have tried a few tests around this to see if I can get any output via hello from the command line (from menu pressing C) but I cannot. The problem also occurs if I use echo. Any suggestions on how I might try to fix this (I am happy to test it)?
Quoted 5 lines
Quoted 3 lines
The fact that both hello and echo seem to exhibit the same problem suggests it is not the input as the former is set as a string in the code.
What is your build environment?
I build on Ubuntu 9.04 SMP x86_64 on the iMac 9,1
I tend to use a fat binary using - the dev is towards a grub image to work on both 32 and 64 bit macs however I have tested just as 64 bit and it has the same error. As the bug report says I compile and build for efi platform. In OSX the efi.tar.gz is unpacked to MacOSX root (hd0,1)/ and bless the (hd0,1)/efi/grub/grub.efi there.
Menus work. Appleloader works.
I have attached the script I use to build it.
James
Quoted 20 lines
Quoted 16 lines
James
--
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336._______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
May be of interest -
This is the module subset I am using with fat grub efi rev 2202 for 64/32bit efi on
Imac81, MacBookPro41, MacBook21.
( ./fatglue.py grub2202fat.efi grub2202-32.efi grub2202-64.efi )
I dont use hello, but echo works.
appleldr boot cat cmp chain configfile crc date echo ext2 fixvideo fat fs_uuid gpt gptsync halt help hexdump hfs hfsplus iso9660 linux loopback loadbios lspci ls minicmd memrw ntfs pc pci reboot reiserfs read scsi sleep search sh video videotest xfs.
Quoted 78 lines · James Jarvis
Quoted 17 lines · Vladimir 'phcoder' Serbinenko
Quoted 13 lines · James Jarvis
I have submitted a bug in to the bugzilla at
https://savannah.gnu.org/bugs/?26744
in which hello just hangs.
I have tried a few tests around this to see if I can get any output via hello from the command line (from menu pressing C) but I cannot. The problem
also occurs if I use echo. Any suggestions on how I might try to fix this (I
am happy to test it)?Quoted 8 lines
Quoted 5 lines
The fact that both hello and echo seem to exhibit the same problem suggests
it is not the input as the former is set as a string in the code.What is your build environment?
I build on Ubuntu 9.04 SMP
x86_64on the iMac 9,1I tend to use a fat binary using - the dev is towards a grub image to work on both 32 and 64 bit macs however I have tested just as 64 bit and it has the same error. As the bug report says I compile and build for efi platform. In OSX the efi.tar.gz is unpacked to MacOSX root (hd0,1)/ and bless the (hd0,1)/efi/grub/grub.efi there.
Menus work. Appleloader works.
I have attached the script I use to build it.
James
James
Quoted 9 lines
Quoted 9 lines
--
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.Quoted 12 lines
Quoted 7 lines
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel--
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336._______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 1 line
Cros (pxw)
Quoted 7 lines · Peter Cros
May be of interest -
This is the module subset I am using with fat grub efi rev 2202 for 64/32bit efi on Imac81, MacBookPro41, MacBook21.
( ./fatglue.py grub2202fat.efi grub2202-32.efi grub2202-64.efi )
Thanks Peter. I do something similar in the script
Quoted 5 lines
I dont use hello, but echo works.
appleldr boot cat cmp chain configfile crc date echo ext2 fixvideo fat
fs_uuidgpt gptsync halt help hexdump hfs hfsplus iso9660 linux loopback loadbios lspci ls minicmd memrw ntfs pc pci reboot reiserfs read scsi sleep search sh video videotest xfs.
tried this module list in grub-mkimage on 2282 but it hung!
I had a few local mods so I am retrying. If that fails I may go back to 2202 to see if I can replicate it working as you indicate.
James
Quoted 99 lines · On Mon, Jun 8, 2009 at 11:39 PM, James Jarvis <[email protected]…
Vladimir 'phcoder' Serbinenko wrote:
On Mon, Jun 8, 2009 at 1:34 PM, James Jarvis<[email protected] <mailto:[email protected]>> wrote:
I have submitted a bug in to the bugzilla at
https://savannah.gnu.org/bugs/?26744
in which hello just hangs.
I have tried a few tests around this to see if I can get any output via
hello from the command line (from menu pressing C) but I cannot. The problem
also occurs if I use echo. Any suggestions on how I might try to fix this (I
am happy to test it)?The fact that both hello and echo seem to exhibit the same problem suggests
it is not the input as the former is set as a string in the code.What is your build environment?
I build on Ubuntu 9.04 SMP
x86_64on the iMac 9,1I tend to use a fat binary using - the dev is towards a grub image to work on both 32 and 64 bit macs however I have tested just as 64 bit and it has the same error. As the bug report says I compile and build for efi platform. In OSX the efi.tar.gz is unpacked to MacOSX root (hd0,1)/ and bless the (hd0,1)/efi/grub/grub.efi there.
Menus work. Appleloader works.
I have attached the script I use to build it.
James
James
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336._______________________________________________
Grub-devel mailing list [email protected] <mailto:[email protected]>
http://lists.gnu.org/mailman/listinfo/grub-devel--
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336._______________________________________________
Grub-devel mailing list [email protected] <mailto:[email protected]>
http://lists.gnu.org/mailman/listinfo/grub-develSignature · 9 lines
Cros (pxw) ------------------------------------------------------------------------ _______________________________________________ Grub-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Quoted 1 line
tried this module list in grub-mkimage on 2282 but it hung!
I think you have a problem with you building system. If you want ping me (phcoder) on IRC and I'll compile for you
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
Quoted 5 lines · Vladimir 'phcoder' Serbinenko
Quoted 2 lines
tried this module list in grub-mkimage on 2282 but it hung!
I think you have a problem with you building system. If you want ping me (phcoder) on IRC and I'll compile for you
Shamed me into looking deeper! I discover that by listing hello and echo first in the grub-mkimage command they both work as expected. Not sure why this occurs - is there a file detailing module dependencies one can look at?
Anyway, whilst looking through the code I did spot a semantic error, fix shown in this patch:
echo.c (working copy) renamed from echo.c (revision 2331) +0 -0
@@ -113,7 +113,7 @@
GRUB_MOD_INIT(echo)
{
cmd = grub_register_extcmd ("echo", grub_cmd_echo,GRUB_COMMAND_FLAG_BOTH,
- "echo [-e|-n] FILE", "Display a line of text.",
+ "echo [-e|-n] STRING", "Display a line of text.",
options);
}James
Signature · 2 lines
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Am Dienstag, den 16.06.2009, 15:09 +0100 schrieb James Jarvis:
Quoted 3 lines
Anyway, whilst looking through the code I did spot a semantic error, fix
shown in this patch:
Thanks, just commited it.
Signature · 1 line
Felix Zielcke
Quoted 5 lines · James Jarvis
Quoted 3 lines · Vladimir 'phcoder' Serbinenko
tried this module list in grub-mkimage on 2282 but it hung!
Quoted 2 lines
Quoted 8 lines
Quoted 4 lines
I think you have a problem with you building system. If you want ping me (phcoder) on IRC and I'll compile for you
Shamed me into looking deeper! I discover that by listing hello and echo first in the grub-mkimage command they both work as expected. Not sure why this occurs - is there a file detailing module dependencies one can look at?
You have probably hit a memory access bug in a secondary module. Post the list of modules you integrate and try removing some of these modules
Quoted 31 lines
Anyway, whilst looking through the code I did spot a semantic error, fix shown in this patch:
Index:echo.c
===================================================================echo.c (working copy) renamed from echo.c (revision 2331) +1
-1@@ -113,7 +113,7 @@ GRUB_MOD_INIT(echo) { cmd = grub_register_extcmd ("echo", grub_cmd_echo, GRUB_COMMAND_FLAG_BOTH, - "echo [-e|-n] FILE", "Display a line of text.", + "echo [-e|-n] STRING", "Display a line of text.", options);}
James
--
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336._______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
Quoted 14 lines · Vladimir 'phcoder' Serbinenko
On Tue, Jun 16, 2009 at 4:09 PM, James Jarvis <[email protected] <mailto:[email protected]>> wrote:
Vladimir 'phcoder' Serbinenko wrote:
tried this module list in grub-mkimage on 2282 but it hung!
I think you have a problem with you building system. If you want ping
me (phcoder) on IRC and I'll compile for you
Quoted 6 lines
Shamed me into looking deeper! I discover that by listing hello and echo first in the grub-mkimage command they both work as expected. Not sure why this occurs - is there a file detailing module dependencies one can look at?
You have probably hit a memory access bug in a secondary module. Post the list of modules you integrate and try removing some of these modules
It appears that if the "echo" and "hello" modules are in the efi image before the "kernel" module they work but if after they don't.
Moving "kernel" to the end means that "echo" "hello" and "ls" work correctly. I need kernel so I just need to remember to put it as the last module. Presumably I am not the first to come across this problem but it was not one that came up easily in searches. I'll add to the bug report.
James
Signature · 2 lines
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Quoted 23 lines · James Jarvis
Quoted 13 lines · Vladimir 'phcoder' Serbinenko
On Tue, Jun 16, 2009 at 4:09 PM, James Jarvis <[email protected]<mailto:
[email protected]>> wrote:Vladimir 'phcoder' Serbinenko wrote:
tried this module list in grub-mkimage on 2282 but it hung!
I think you have a problem with you building system. If you want ping
me (phcoder) on IRC and I'll compile for youQuoted 8 lines
Shamed me into looking deeper! I discover that by listing hello and echo first in the grub-mkimage command they both work as expected. Not sure why this occurs - is there a file detailing module dependencies one can look at?
You have probably hit a memory access bug in a secondary module. Post the list of modules you integrate and try removing some of these modules
Quoted 8 lines
It appears that if the "echo" and "hello" modules are in the efi image before the "kernel" module they work but if after they don't.
Moving "kernel" to the end means that "echo" "hello" and "ls" work correctly. I need kernel so I just need to remember to put it as the last module. Presumably I am not the first to come across this problem but it was not one that came up easily in searches. I'll add to the bug report.
Never specify kernel.mod explicitely. It's added automatically
Quoted 16 lines
James
--
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336._______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko