grub2 on MacBook4,1

2009-01-30 Thread pistacchietto

  
Hi,
I tried grub2 rev 1962 on my 
MacBook4,1 
Boot ROM Version:MB41.00C1.B00 
SMC Version:1.31f0

I copied grub.efi mod files to grub folder in efi folder (I use refit 0.12)
When I select start from grub.efi I'm unable to get grub prompt
because it stop to starting grub.efi without any messages

Thanks 
Davide

_
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


Re: grub2 on MacBook4,1

2009-01-30 Thread peter cros
Hi,
 I have the same results on different Apple Macs - hung after the refit boot
screen Starting grub.efi . ( Stops in startup.S )
grub2 rev 1952 --with-platform=efi --target=x86_64

 MacBook Pro 4,1
 Boot ROM Version: MBP41.00C1.B03
 SMC Version: 1.28f1

 GeForce 8600M GT
 Vendor: NVIDIA (0x10de)
 Resolution: 1920 x 1200
-
 iMac8,1
 Boot ROM Version: IM81.00C1.B00
 SMC Version: 1.30f

 ATI Radeon HD 2600 Pro
 Vendor: ATI (0x1002)
 Resolution: 1920 x 1200


The same build runs on earlier 64bit EFI Macbooks.
(with other problems later booting kernel ).

Peter Cros

On Fri, Jan 30, 2009 at 10:42 PM, pistacchie...@hotmail.com wrote:


 Hi,
 I tried grub2 rev 1962 on my
 MacBook4,1
 Boot ROM Version:MB41.00C1.B00
 SMC Version:1.31f0

 I copied grub.efi mod files to grub folder in efi folder (I use refit 0.12)
 When I select start from grub.efi I'm unable to get grub prompt
 because it stop to starting grub.efi without any messages

 Thanks
 Davide

 --
 check out the rest of the Windows Live™. More than mail–Windows Live™ goes
 way beyond your inbox. More than 
 messageshttp://www.microsoft.com/windows/windowslive/

 ___
 Grub-devel mailing list
 Grub-devel@gnu.org
 http://lists.gnu.org/mailman/listinfo/grub-devel


___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


Re: [PATCH] Allow more than one line in option help text

2009-01-30 Thread Christian Franke

Christian Franke wrote:

This small patch allows '\n' in option help texts, for example:


Patch simplified  committed.

Christian



___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


[PATCH] Skip identical lines in hexdump

2009-01-30 Thread Christian Franke

This skips identical lines in hexdump output, like 'od' or 'xxd -a' also do.

Christian

PS: I would suggest to change hexdump 'buf' parameter from 'char *' to 
'const void *' to avoid unnecessary casts.



2009-01-30  Christian Franke  fra...@computer.org

* lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.


diff --git a/lib/hexdump.c b/lib/hexdump.c
index 9b79f45..7689edf 100644
--- a/lib/hexdump.c
+++ b/lib/hexdump.c
@@ -61,6 +61,22 @@ hexdump (unsigned long bse, char *buf, int len)
 
   grub_printf (%s\n, line);
 
+  /* Print only first and last line of more than 3 lines are identical.  */
+  if (len = 4 * 16
+	   ! grub_memcmp (buf, buf + 1 * 16, 16)
+	   ! grub_memcmp (buf, buf + 2 * 16, 16)
+	   ! grub_memcmp (buf, buf + 3 * 16, 16))
+	{
+	  grub_printf (*\n);
+	  do
+	{
+	  bse += 16;
+	  buf += 16;
+	  len -= 16;
+	}
+	  while (len = 3 * 16  ! grub_memcmp (buf, buf + 2 * 16, 16));
+	}
+
   bse += 16;
   buf += 16;
   len -= cnt;
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel


update-grub failing only reporting exiting with value 1 when problems with /boot/grub/device.map

2009-01-30 Thread Arthur Marsh

Hi, I had an update-grub fail only reporting exiting with value 1.

I eventually found the problem that /boot/grub/device.map was 
inaccurate, due to having to use different device names as I sometimes 
have usb drives plugged in when booting which can use the /dev/sda name 
like the SCSI disk.


My working /boot/grub/device.map is:

(hd0)   /dev/hda
(hd1)   /dev/disk/by-id/scsi-SIBM_DCAS-34330W_F3T92021

I use the /dev/disk/by-id/* path for the real SCSI disk, and 
/dev/disk/by-label/* path for any usb drives, but others might be using 
/dev/disk/by-uuid/*.


Could someone please fix the update-grub script to better report a 
failure due to problems with /boot/grub/device.map?


Arthur.



___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel