Re: Macbook, Efi, Display mode

2009-10-25 Thread Stefan Bienert
 Then you should be able to add EFI display support quite easily during
 the make menuconfig step

A new improvement here!
Besite EFI display stuff, now I have also CONFIG_FB_NVIDIA enabled.
This gives me boot output on booting. but not on shuting down.

So, now I have
- graphical menu
- terminal output on booting

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-10-24 Thread Stefan Bienert
Hi again,

 Hi,
 
 I have compiled a binary version and uploaded at ubuntu forum:
 
 http://ubuntuforums.org/showthread.php?t=1248647

So, I've tried that binary: Now the menu, while it is still text based,
takes the whole screen, which is an improvement.

But I still have no output while booting. As far as I understand, this
would be the kernel side of the whole process. Hence, could it be that I
did not configure it in the right way?

greetings,

bienchen



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


Re: Macbook, Efi, Display mode

2009-10-24 Thread Bean
On Sat, Oct 24, 2009 at 6:09 PM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:
 Hi again,

 Hi,

 I have compiled a binary version and uploaded at ubuntu forum:

 http://ubuntuforums.org/showthread.php?t=1248647

 So, I've tried that binary: Now the menu, while it is still text based,
 takes the whole screen, which is an improvement.

Hi,

Is graphic mode working ok in grub ?


 But I still have no output while booting. As far as I understand, this
 would be the kernel side of the whole process. Hence, could it be that I
 did not configure it in the right way?

What's the command line option to boot kernel ? In theory, if graphic
mode is working in grub, it should be ok in linux.

-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


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


Re: Macbook, Efi, Display mode

2009-10-24 Thread Stefan Bienert
Bean wrote:
 On Sat, Oct 24, 2009 at 6:09 PM, Stefan Bienert
 bien...@zbh.uni-hamburg.de wrote:
 Hi again,

 Hi,

 I have compiled a binary version and uploaded at ubuntu forum:

 http://ubuntuforums.org/showthread.php?t=1248647
 So, I've tried that binary: Now the menu, while it is still text based,
 takes the whole screen, which is an improvement.
 
 Hi,
 
 Is graphic mode working ok in grub ?

Sorry for this probably dull question: How do I know?

 But I still have no output while booting. As far as I understand, this
 would be the kernel side of the whole process. Hence, could it be that I
 did not configure it in the right way?
 
 What's the command line option to boot kernel ?

linux /boot/kernel-2.6.27-gentoo-r8-n root=/dev/sda4 video=efifb noefi
acpi=force

 In theory, if graphic
 mode is working in grub, it should be ok in linux.

Oh, I saw on some web page, that I need soemthing like 'EFI based
framebuffer support' in the kernel.

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-10-24 Thread Bean
On Sat, Oct 24, 2009 at 6:30 PM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:
 Bean wrote:
 On Sat, Oct 24, 2009 at 6:09 PM, Stefan Bienert
 bien...@zbh.uni-hamburg.de wrote:
 Hi again,

 Hi,

 I have compiled a binary version and uploaded at ubuntu forum:

 http://ubuntuforums.org/showthread.php?t=1248647
 So, I've tried that binary: Now the menu, while it is still text based,
 takes the whole screen, which is an improvement.

 Hi,

 Is graphic mode working ok in grub ?

 Sorry for this probably dull question: How do I know?


Hi,

The easier way is to use my new menu test demo, download resource file at:

http://grub4dos.sourceforge.net/menu.zip

Unzip to the boot partition, you should see many files under /menu/ directory.

Then you just need to add this line at the end of grub.cfg:

source /menu/menu_efi.cfg

It'd boot into graphic mode by default, you can use F8 to switch
between text and graphic mode.

 But I still have no output while booting. As far as I understand, this
 would be the kernel side of the whole process. Hence, could it be that I
 did not configure it in the right way?

 What's the command line option to boot kernel ?

 linux /boot/kernel-2.6.27-gentoo-r8-n root=/dev/sda4 video=efifb noefi
 acpi=force

 In theory, if graphic
 mode is working in grub, it should be ok in linux.

 Oh, I saw on some web page, that I need soemthing like 'EFI based
 framebuffer support' in the kernel.

Yep, you need that, debian will enable it by default, I don't know
about gentoo thought.

-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


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


Re: Macbook, Efi, Display mode

2009-10-24 Thread Stefan Bienert
 Hi,
 
 The easier way is to use my new menu test demo, download resource file at:
 
 http://grub4dos.sourceforge.net/menu.zip
 
 Unzip to the boot partition, you should see many files under /menu/ directory.
 
 Then you just need to add this line at the end of grub.cfg:
 
 source /menu/menu_efi.cfg
 
 It'd boot into graphic mode by default, you can use F8 to switch
 between text and graphic mode.

Nope, does not work. I still have text mode.

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-10-24 Thread Stefan Bienert
 Hi,
 
 The easier way is to use my new menu test demo, download resource file at:
 
 http://grub4dos.sourceforge.net/menu.zip
 
 Unzip to the boot partition, you should see many files under /menu/ directory.
 
 Then you just need to add this line at the end of grub.cfg:
 
 source /menu/menu_efi.cfg
 
 It'd boot into graphic mode by default, you can use F8 to switch
 between text and graphic mode.
 

Hi bean,

I am such an idiot!

I just placed the menu folder in the wrong directory. Placed it in
/efi/grub on the MacOS partition. Once I've placed the folder on the
whole path from / to /efi/grub and now it's working! Looks great.

I really ope you didn't work on that problem, today.

 
 Yep, you need that, debian will enable it by default, I don't know
 about gentoo thought.
 

I have an idea what might be wrong in my gentoo kernel. I hope I find
the time for a little bit of testing, tomorrow.

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-10-24 Thread richardvo...@gmail.com
 I have an idea what might be wrong in my gentoo kernel. I hope I find
 the time for a little bit of testing, tomorrow.

Did you compile it yourself (emerge
gentoo-sources/vanilla-sources/hardened-sources then make menuconfig
then make bzImage) or did you use genkernel?


 greetings,

 Stefan


 ___
 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: Macbook, Efi, Display mode

2009-10-24 Thread Stefan Bienert
richardvo...@gmail.com wrote:
 I have an idea what might be wrong in my gentoo kernel. I hope I find
 the time for a little bit of testing, tomorrow.
 
 Did you compile it yourself (emerge
 gentoo-sources/vanilla-sources/hardened-sources then make menuconfig
 then make bzImage) or did you use genkernel?

I just used gentoo-ources without any patching by myself.

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-10-24 Thread richardvo...@gmail.com
On Sat, Oct 24, 2009 at 7:38 PM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:
 richardvo...@gmail.com wrote:
 I have an idea what might be wrong in my gentoo kernel. I hope I find
 the time for a little bit of testing, tomorrow.

 Did you compile it yourself (emerge
 gentoo-sources/vanilla-sources/hardened-sources then make menuconfig
 then make bzImage) or did you use genkernel?

 I just used gentoo-ources without any patching by myself.

Then you should be able to add EFI display support quite easily during
the make menuconfig step


 greetings,

 Stefan


 ___
 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: Macbook, Efi, Display mode

2009-10-19 Thread Stefan Bienert
Hi Michal,

sorry to contact you dircetly, but did you upload a binary somewhere? I
accidentially deleted to many emails, so I wasn't sure anymore if you
already posted a link...

kind regards,

Stefan

Michal Suchanek wrote:
 2009/10/9 Stefan Bienert bien...@zbh.uni-hamburg.de:
 Hi again,

 thanks for that hint. I will try the new beta-3 next week. More than
 busy this weekend.
 
 It's built from the Bean's repo so the version number is somewhat misleading.
 
 I can upload the build somewhere so you can try if it works for you or
 not or I can write a build script.
 
 Thanks
 
 Michal



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


Re: Macbook, Efi, Display mode

2009-10-19 Thread Bean
On Tue, Oct 20, 2009 at 4:04 AM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:
 Hi Michal,

 sorry to contact you dircetly, but did you upload a binary somewhere? I
 accidentially deleted to many emails, so I wasn't sure anymore if you
 already posted a link...

Hi,

I have compiled a binary version and uploaded at ubuntu forum:

http://ubuntuforums.org/showthread.php?t=1248647

-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


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


Re: Macbook, Efi, Display mode

2009-10-09 Thread Michal Suchanek
2009/10/4 Bean bean12...@gmail.com:
 On Mon, Oct 5, 2009 at 1:27 AM, Stefan Bienert
 bien...@zbh.uni-hamburg.de wrote:
 Bean wrote:
 On Sun, Oct 4, 2009 at 10:45 PM, Stefan Bienert
 bien...@zbh.uni-hamburg.de wrote:
 Peter Cros wrote:
 There is a grub.efi binary with the double buffering fix and menutest  
 from
 Bean here on Ubuntuforms.org apple mac subforum thread

 grub2 EFI boot loader internal/external booting post #1054

 http://ubuntuforums.org/showpost.php?p=8034856postcount=1054


 OK, I tried that, but only with little success.
 I get a very distorted screen on boot. And iThis seems not to depend on
 whether I pull in the 'menu' stuff mentiod in the ubuntuforum thread or
 not. But at least the system stays in a bootable state and I get a sort
 of graphical term ;-)

 Hi,

 What's your video card, intel or nvidia ?


 Nvidia.

 Hi,

 I found a small bug that could be the cause, please try the latest
 code from menu branch. I also upload the binary file to ubuntu forum
 in case you don't want to compile it yourself.


For me gfxterm works on an iMac with Radeon X1600 card but I am not
sure what exact version I was running.

I forgot to load a font so the terminal only displayed question marks
at about 1cps but it certainly did display something.

It says grub 1.97~beta3 but that is somewhat imprecise in this case.

Thanks

Michal


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


Re: Macbook, Efi, Display mode

2009-10-09 Thread Stefan Bienert
Hi again,

thanks for that hint. I will try the new beta-3 next week. More than
busy this weekend.

BTW, what kernel options/ version do I need for gfxterm? Just in case
that's my problem and everybody is searching in the wrong place ;-)

greetings,

Stefan

 
 For me gfxterm works on an iMac with Radeon X1600 card but I am not
 sure what exact version I was running.
 
 I forgot to load a font so the terminal only displayed question marks
 at about 1cps but it certainly did display something.
 
 It says grub 1.97~beta3 but that is somewhat imprecise in this case.
 
 Thanks
 
 Michal
 
 
 ___
 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: Macbook, Efi, Display mode

2009-10-09 Thread Michal Suchanek
2009/10/9 Stefan Bienert bien...@zbh.uni-hamburg.de:
 Hi again,

 thanks for that hint. I will try the new beta-3 next week. More than
 busy this weekend.

It's built from the Bean's repo so the version number is somewhat misleading.

I can upload the build somewhere so you can try if it works for you or
not or I can write a build script.

Thanks

Michal


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


Re: Macbook, Efi, Display mode

2009-10-09 Thread Stefan Bienert
Michal Suchanek wrote:
 2009/10/9 Stefan Bienert bien...@zbh.uni-hamburg.de:
 Hi again,

 thanks for that hint. I will try the new beta-3 next week. More than
 busy this weekend.
 
 It's built from the Bean's repo so the version number is somewhat misleading.
 
 I can upload the build somewhere so you can try if it works for you or
 not or I can write a build script.
 
 Thanks
 
 Michal

Well, if I get hold of a binary there is a small chance that I can test
it on the weekend. Hence, an upload would be appreciated ;-)

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-10-04 Thread Stefan Bienert
Peter Cros wrote:
 There is a grub.efi binary with the double buffering fix and menutest  from
 Bean here on Ubuntuforms.org apple mac subforum thread
 
 grub2 EFI boot loader internal/external booting post #1054
 
 http://ubuntuforums.org/showpost.php?p=8034856postcount=1054
 
 

OK, I tried that, but only with little success.
I get a very distorted screen on boot. And iThis seems not to depend on
whether I pull in the 'menu' stuff mentiod in the ubuntuforum thread or
not. But at least the system stays in a bootable state and I get a sort
of graphical term ;-)

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-10-04 Thread Bean
On Sun, Oct 4, 2009 at 10:45 PM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:
 Peter Cros wrote:
 There is a grub.efi binary with the double buffering fix and menutest  from
 Bean here on Ubuntuforms.org apple mac subforum thread

 grub2 EFI boot loader internal/external booting post #1054

 http://ubuntuforums.org/showpost.php?p=8034856postcount=1054



 OK, I tried that, but only with little success.
 I get a very distorted screen on boot. And iThis seems not to depend on
 whether I pull in the 'menu' stuff mentiod in the ubuntuforum thread or
 not. But at least the system stays in a bootable state and I get a sort
 of graphical term ;-)

Hi,

What's your video card, intel or nvidia ?

-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


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


Re: Macbook, Efi, Display mode

2009-10-04 Thread Stefan Bienert
Bean wrote:
 On Sun, Oct 4, 2009 at 10:45 PM, Stefan Bienert
 bien...@zbh.uni-hamburg.de wrote:
 Peter Cros wrote:
 There is a grub.efi binary with the double buffering fix and menutest  from
 Bean here on Ubuntuforms.org apple mac subforum thread

 grub2 EFI boot loader internal/external booting post #1054

 http://ubuntuforums.org/showpost.php?p=8034856postcount=1054


 OK, I tried that, but only with little success.
 I get a very distorted screen on boot. And iThis seems not to depend on
 whether I pull in the 'menu' stuff mentiod in the ubuntuforum thread or
 not. But at least the system stays in a bootable state and I get a sort
 of graphical term ;-)
 
 Hi,
 
 What's your video card, intel or nvidia ?
 

Nvidia.

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-10-04 Thread Bean
On Mon, Oct 5, 2009 at 1:27 AM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:
 Bean wrote:
 On Sun, Oct 4, 2009 at 10:45 PM, Stefan Bienert
 bien...@zbh.uni-hamburg.de wrote:
 Peter Cros wrote:
 There is a grub.efi binary with the double buffering fix and menutest  from
 Bean here on Ubuntuforms.org apple mac subforum thread

 grub2 EFI boot loader internal/external booting post #1054

 http://ubuntuforums.org/showpost.php?p=8034856postcount=1054


 OK, I tried that, but only with little success.
 I get a very distorted screen on boot. And iThis seems not to depend on
 whether I pull in the 'menu' stuff mentiod in the ubuntuforum thread or
 not. But at least the system stays in a bootable state and I get a sort
 of graphical term ;-)

 Hi,

 What's your video card, intel or nvidia ?


 Nvidia.

Hi,

I found a small bug that could be the cause, please try the latest
code from menu branch. I also upload the binary file to ubuntu forum
in case you don't want to compile it yourself.

-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


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


Re: Macbook, Efi, Display mode

2009-10-03 Thread Stefan Bienert
Hi again!

Do we have any news on the gfxterm problem in Grub2-EFI?

greetings,

Stefan

 OUTPUT-Start
 Rom image present.
  [Linux-bzimage, setup=0x2c00, size=0x2784a0]
  Video mode: 1280x800-32
  Frame buffer base: 0x8001
  Video line length: 8192
 OUTPUT-End

 I hope this is the requested info. Do provide other stuff, I probably
 need a detailed instruction.

 Hi,

 This looks legit for me, I don't know why it does work, perhaps it
 write to the other video card ?
 
 Ohter video card? I have a Macbook, NOT a Macbook Pro. I have only one card!
 
 BTW, I cannot switch to terminal from X after starting with Grub2.
 
 Yep, this is normal. EFI uses non zero gart address, but linux assume
 0. X would reset gart, but after it exits, the original gart address
 is restored and which would cause problem.
 
 OK, so we know that there is something broken but everything is behaving
  like one would expect in this situation? That sounds relatively optimistic.
 
 greetings,
 
 Stefan
 
 
 
 
 ___
 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: Macbook, Efi, Display mode

2009-10-03 Thread Bean
On Sun, Oct 4, 2009 at 3:10 AM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:
 Hi again!

 Do we have any news on the gfxterm problem in Grub2-EFI?

 greetings,

 Stefan

 OUTPUT-Start
 Rom image present.
  [Linux-bzimage, setup=0x2c00, size=0x2784a0]
  Video mode: 1280x800-32
  Frame buffer base: 0x8001
  Video line length: 8192
 OUTPUT-End

 I hope this is the requested info. Do provide other stuff, I probably
 need a detailed instruction.

 Hi,

 This looks legit for me, I don't know why it does work, perhaps it
 write to the other video card ?

 Ohter video card? I have a Macbook, NOT a Macbook Pro. I have only one card!

 BTW, I cannot switch to terminal from X after starting with Grub2.

 Yep, this is normal. EFI uses non zero gart address, but linux assume
 0. X would reset gart, but after it exits, the original gart address
 is restored and which would cause problem.

 OK, so we know that there is something broken but everything is behaving
  like one would expect in this situation? That sounds relatively optimistic.

Hi,

Oh, that could be the double buffer problem, perhaps you can try my
latest graphic menu test demo in the menu branch.


-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


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


Re: Macbook, Efi, Display mode

2009-10-03 Thread Stefan Bienert
Hi again,

sorry, my git-foo is not that good, can you help me getting into testing
the demo from you menu branch?

I already cloned a copy of your repo, but I do not know how to get into
a particular branch, there.

greetings,

Stefan

 Hi,
 
 Oh, that could be the double buffer problem, perhaps you can try my
 latest graphic menu test demo in the menu branch.





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


Re: Macbook, Efi, Display mode

2009-10-03 Thread Peter Cros
There is a grub.efi binary with the double buffering fix and menutest  from
Bean here on Ubuntuforms.org apple mac subforum thread

grub2 EFI boot loader internal/external booting post #1054

http://ubuntuforums.org/showpost.php?p=8034856postcount=1054


On Sun, Oct 4, 2009 at 7:55 AM, Stefan Bienert
bien...@zbh.uni-hamburg.dewrote:

 Hi again,

 sorry, my git-foo is not that good, can you help me getting into testing
 the demo from you menu branch?

 I already cloned a copy of your repo, but I do not know how to get into
 a particular branch, there.

 greetings,

 Stefan

  Hi,
 
  Oh, that could be the double buffer problem, perhaps you can try my
  latest graphic menu test demo in the menu branch.





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




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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Felix Zielcke
Am Samstag, den 26.09.2009, 22:48 +0200 schrieb Stefan Bienert:
 And another Hi,
 
 update: Using '--file' in the search did the trick! I really start
 loving Grub2: Really faster booting, seems to be easy to configure...
 
  2 days of booting with grub2 in EFI mode and still happy...
 
  Now I have several further questions:
 
  - Depending on whether an USB disk is connected, or not, the hd numbers
  change. Is there a setup to avoid changing the numbers in the entries on
  boot?

  Use UUIDs
  What is that?
  
  http://en.wikipedia.org/wiki/UUID
 
 You know, you make feeling me like a noob again.
 
   Where do I get it from? 
  
  grub-probe -t fs_uuid /
  or grub-probe -t fs_uuid -d /dev/sda1
  
  How do I incorporate this into
  grub.cg?
 
  search --set --fs-uuid abc-123...
 
 Just for the sake of completion: abc-123.../path/to/kernel?

No. If you use --fs-uuid instead of --file then you use the UUID.
I thought it would be clear, to just use the UUID value grub-probe tells
you. Without any path appended to it.

 I prefer using the search for a file, since I may switch disks without
 resetting the uuid.

If the file you use for the search command only exists once in your
system then it's fine.




-- 
Felix Zielcke
Proud Debian Maintainer



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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Stefan Bienert
  Where do I get it from? 
 grub-probe -t fs_uuid /
 or grub-probe -t fs_uuid -d /dev/sda1

 How do I incorporate this into
 grub.cg?
 search --set --fs-uuid abc-123...
 Just for the sake of completion: abc-123.../path/to/kernel?

 No. If you use --fs-uuid instead of --file then you use the UUID.
 I thought it would be clear, to just use the UUID value grub-probe tells
 you. Without any path appended to it.

OK, after search-setting the UUID I just load the kernel as usual?

 I prefer using the search for a file, since I may switch disks without
 resetting the uuid.

 If the file you use for the search command only exists once in your
 system then it's fine.

This was obvious to me ;-)

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Felix Zielcke
Am Sonntag, den 27.09.2009, 13:11 +0200 schrieb Stefan Bienert:
   Where do I get it from? 
  grub-probe -t fs_uuid /
  or grub-probe -t fs_uuid -d /dev/sda1
 
  How do I incorporate this into
  grub.cg?
  search --set --fs-uuid abc-123...
  Just for the sake of completion: abc-123.../path/to/kernel?
 
  No. If you use --fs-uuid instead of --file then you use the UUID.
  I thought it would be clear, to just use the UUID value grub-probe tells
  you. Without any path appended to it.
 
 OK, after search-setting the UUID I just load the kernel as usual?

Yes.


-- 
Felix Zielcke
Proud Debian Maintainer



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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Michal Suchanek
2009/9/27 Stefan Bienert bien...@zbh.uni-hamburg.de:
 - The menu is rather small, is it possible to expand the display to
 1280x800?

 - Since I own a Macbook, I want my boot manager nice and shiny. How do I
 set the looks? E.g. Background image? Couldn't find helpful info in the
 manual-draft.

 If you use my repo, you can enable graphic mode for EFI, it even
 allows you to set a background image. Add these lines in grub.cfg:

 set gfxmode=0x0
 loadfont /unifont.pf2
 terminal_output.gfxterm
 background_image /splash.png

 So, my grub.cfg now contains:

 set gfxmode=0x0
 search --set --file /boot/unifont.pf2
 loadfont /boot/unifont.pf2
 terminal_output.gfxterm
 search --set --file /boot/splash.jpg
 background_image /boot/splash.jpg

 But this does not work. I also tried loading gfxterm in the
 grub2-console. Even with insmod video, insmod efi_fb before.
 If I cast terminal_output.gfxterm to the console, grub2 seems to hang.


Guess it might be broken.

Who has actually tested efi graphics, and on what hardware?

Does it clear/reset graphics before it hangs? If not we could perhaps
add some debug prints to find out what it is doing before the hang.

I could perhaps try the efi graphics driver on some iMacs later
this/next week (depending on the location where you are reading this).

Thanks

Michal


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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Stefan Bienert
Michal Suchanek wrote:
 2009/9/27 Stefan Bienert bien...@zbh.uni-hamburg.de:
 - The menu is rather small, is it possible to expand the display to
 1280x800?

 - Since I own a Macbook, I want my boot manager nice and shiny. How do I
 set the looks? E.g. Background image? Couldn't find helpful info in the
 manual-draft.
 If you use my repo, you can enable graphic mode for EFI, it even
 allows you to set a background image. Add these lines in grub.cfg:
 set gfxmode=0x0
 loadfont /unifont.pf2
 terminal_output.gfxterm
 background_image /splash.png
 So, my grub.cfg now contains:

 set gfxmode=0x0
 search --set --file /boot/unifont.pf2
 loadfont /boot/unifont.pf2
 terminal_output.gfxterm
 search --set --file /boot/splash.jpg
 background_image /boot/splash.jpg

 But this does not work. I also tried loading gfxterm in the
 grub2-console. Even with insmod video, insmod efi_fb before.
 If I cast terminal_output.gfxterm to the console, grub2 seems to hang.

 
 Guess it might be broken.
 
 Who has actually tested efi graphics, and on what hardware?
 
 Does it clear/reset graphics before it hangs? If not we could perhaps
 add some debug prints to find out what it is doing before the hang.

For me, the screen freezes, so graphics seem not to be cleared.

 I could perhaps try the efi graphics driver on some iMacs later
 this/next week (depending on the location where you are reading this).

That would be nice. I use Bean's repository.

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Bean
On Sun, Sep 27, 2009 at 9:00 PM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:
 For me, the screen freezes, so graphics seem not to be cleared.

 I could perhaps try the efi graphics driver on some iMacs later
 this/next week (depending on the location where you are reading this).

 That would be nice. I use Bean's repository.

Hi,

Most likely it doesn't get the frame buffer address right, so screen
is written to somewhere else, this also consist with the fact you
don't see any console output until x starts.

BTW, when you use the linux command, it should show some line about
detected video card info, can you paste it here.

-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Stefan Bienert
Bean wrote:
 On Sun, Sep 27, 2009 at 9:00 PM, Stefan Bienert
 bien...@zbh.uni-hamburg.de wrote:
 For me, the screen freezes, so graphics seem not to be cleared.

 I could perhaps try the efi graphics driver on some iMacs later
 this/next week (depending on the location where you are reading this).
 That would be nice. I use Bean's repository.
 
 Hi,
 
 Most likely it doesn't get the frame buffer address right, so screen
 is written to somewhere else, this also consist with the fact you
 don't see any console output until x starts.
 
 BTW, when you use the linux command, it should show some line about
 detected video card info, can you paste it here.
 

Ok, here is what I get after choosing the linux menu entry. Everything
before the menu shows up, is to quick to read.

OUTPUT-Start
Rom image present.
  [Linux-bzimage, setup=0x2c00, size=0x2784a0]
  Video mode: 1280x800-32
  Frame buffer base: 0x8001
  Video line length: 8192
OUTPUT-End

I hope this is the requested info. Do provide other stuff, I probably
need a detailed instruction.

BTW, I cannot switch to terminal from X after starting with Grub2.

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Michal Suchanek
2009/9/27 Stefan Bienert bien...@zbh.uni-hamburg.de:
 Bean wrote:
 On Sun, Sep 27, 2009 at 9:00 PM, Stefan Bienert
 bien...@zbh.uni-hamburg.de wrote:
 For me, the screen freezes, so graphics seem not to be cleared.

 I could perhaps try the efi graphics driver on some iMacs later
 this/next week (depending on the location where you are reading this).
 That would be nice. I use Bean's repository.

 Hi,

 Most likely it doesn't get the frame buffer address right, so screen
 is written to somewhere else, this also consist with the fact you
 don't see any console output until x starts.

 BTW, when you use the linux command, it should show some line about
 detected video card info, can you paste it here.


 Ok, here is what I get after choosing the linux menu entry. Everything
 before the menu shows up, is to quick to read.

 OUTPUT-Start
 Rom image present.
  [Linux-bzimage, setup=0x2c00, size=0x2784a0]
  Video mode: 1280x800-32
  Frame buffer base: 0x8001
  Video line length: 8192
 OUTPUT-End

 I hope this is the requested info. Do provide other stuff, I probably
 need a detailed instruction.

 BTW, I cannot switch to terminal from X after starting with Grub2.

Meaning that the keyboard combo does nothing or that switching to the
console does nothing?

It should not do anything visible if the console is drawn in a wrong
place as  suggested.

Thanks

Michal


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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Stefan Bienert
Michal Suchanek wrote:
 2009/9/27 Stefan Bienert bien...@zbh.uni-hamburg.de:
 Bean wrote:
 On Sun, Sep 27, 2009 at 9:00 PM, Stefan Bienert
 bien...@zbh.uni-hamburg.de wrote:
 For me, the screen freezes, so graphics seem not to be cleared.

 I could perhaps try the efi graphics driver on some iMacs later
 this/next week (depending on the location where you are reading this).
 That would be nice. I use Bean's repository.
 Hi,

 Most likely it doesn't get the frame buffer address right, so screen
 is written to somewhere else, this also consist with the fact you
 don't see any console output until x starts.

 BTW, when you use the linux command, it should show some line about
 detected video card info, can you paste it here.

 Ok, here is what I get after choosing the linux menu entry. Everything
 before the menu shows up, is to quick to read.

 OUTPUT-Start
 Rom image present.
  [Linux-bzimage, setup=0x2c00, size=0x2784a0]
  Video mode: 1280x800-32
  Frame buffer base: 0x8001
  Video line length: 8192
 OUTPUT-End

 I hope this is the requested info. Do provide other stuff, I probably
 need a detailed instruction.

 BTW, I cannot switch to terminal from X after starting with Grub2.
 
 Meaning that the keyboard combo does nothing or that switching to the
 console does nothing?
 
 It should not do anything visible if the console is drawn in a wrong
 place as  suggested.

Screen switches to nothing. So X switches to the console and then the
screen stays black.

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Bean
On Sun, Sep 27, 2009 at 11:44 PM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:
 Bean wrote:
 On Sun, Sep 27, 2009 at 9:00 PM, Stefan Bienert
 bien...@zbh.uni-hamburg.de wrote:
 For me, the screen freezes, so graphics seem not to be cleared.

 I could perhaps try the efi graphics driver on some iMacs later
 this/next week (depending on the location where you are reading this).
 That would be nice. I use Bean's repository.

 Hi,

 Most likely it doesn't get the frame buffer address right, so screen
 is written to somewhere else, this also consist with the fact you
 don't see any console output until x starts.

 BTW, when you use the linux command, it should show some line about
 detected video card info, can you paste it here.


 Ok, here is what I get after choosing the linux menu entry. Everything
 before the menu shows up, is to quick to read.

 OUTPUT-Start
 Rom image present.
  [Linux-bzimage, setup=0x2c00, size=0x2784a0]
  Video mode: 1280x800-32
  Frame buffer base: 0x8001
  Video line length: 8192
 OUTPUT-End

 I hope this is the requested info. Do provide other stuff, I probably
 need a detailed instruction.


Hi,

This looks legit for me, I don't know why it does work, perhaps it
write to the other video card ?

 BTW, I cannot switch to terminal from X after starting with Grub2.

Yep, this is normal. EFI uses non zero gart address, but linux assume
0. X would reset gart, but after it exits, the original gart address
is restored and which would cause problem.

-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


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


Re: Macbook, Efi, Display mode

2009-09-27 Thread Stefan Bienert
 OUTPUT-Start
 Rom image present.
  [Linux-bzimage, setup=0x2c00, size=0x2784a0]
  Video mode: 1280x800-32
  Frame buffer base: 0x8001
  Video line length: 8192
 OUTPUT-End

 I hope this is the requested info. Do provide other stuff, I probably
 need a detailed instruction.

 
 Hi,
 
 This looks legit for me, I don't know why it does work, perhaps it
 write to the other video card ?

Ohter video card? I have a Macbook, NOT a Macbook Pro. I have only one card!

 BTW, I cannot switch to terminal from X after starting with Grub2.

 Yep, this is normal. EFI uses non zero gart address, but linux assume
 0. X would reset gart, but after it exits, the original gart address
 is restored and which would cause problem.

OK, so we know that there is something broken but everything is behaving
 like one would expect in this situation? That sounds relatively optimistic.

greetings,

Stefan




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


Re: Macbook, Efi, Display mode

2009-09-26 Thread Bean
On Sat, Sep 26, 2009 at 8:34 PM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:
 Hi again,

 2 days of booting with grub2 in EFI mode and still happy...

 Now I have several further questions:

 - Depending on whether an USB disk is connected, or not, the hd numbers
 change. Is there a setup to avoid changing the numbers in the entries on
 boot?

Hi,

You can use search command to locate the root device. Something like this:

search --set /vmlinuz
linux /vmlinuz ...
initrd /initrd.img


 - The menu is rather small, is it possible to expand the display to
 1280x800?

 - Since I own a Macbook, I want my boot manager nice and shiny. How do I
 set the looks? E.g. Background image? Couldn't find helpful info in the
 manual-draft.

If you use my repo, you can enable graphic mode for EFI, it even
allows you to set a background image. Add these lines in grub.cfg:

set gfxmode=0x0
loadfont /unifont.pf2
terminal_output.gfxterm
background_image /splash.png

You need to include these modules when generating grub.efi: video
efi_fb gfxterm font png jpeg

unifont.pf2 is the font file, you can generate it using grub-mkfont,
or just download it here:

http://grub4dos.sourceforge.net/unifont.pf2

-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


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


Re: Macbook, Efi, Display mode

2009-09-26 Thread Vladimir 'phcoder' Serbinenko
Stefan Bienert wrote:
 Hi again,

 2 days of booting with grub2 in EFI mode and still happy...

 Now I have several further questions:

 - Depending on whether an USB disk is connected, or not, the hd numbers
 change. Is there a setup to avoid changing the numbers in the entries on
 boot?
   
Use UUIDs
 - The menu is rather small, is it possible to expand the display to
 1280x800?

 - Since I own a Macbook, I want my boot manager nice and shiny. How do I
 set the looks? E.g. Background image? Couldn't find helpful info in the
 manual-draft.

   
Use Bean's repo
 greetings,

 Stefan


 ___
 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: Macbook, Efi, Display mode

2009-09-26 Thread Seth Goldberg

Hi,

  I think we need better hinting for efi disks.  Since efi supports  
finding a disk based on its pci information and port connection, why  
not pass that information as a hint to reduce the amount of time  
required or to eliminate it completely?


  --S

On Sep 26, 2009, at 6:13 AM, Bean bean12...@gmail.com wrote:


On Sat, Sep 26, 2009 at 8:34 PM, Stefan Bienert
bien...@zbh.uni-hamburg.de wrote:

Hi again,

2 days of booting with grub2 in EFI mode and still happy...

Now I have several further questions:

- Depending on whether an USB disk is connected, or not, the hd  
numbers
change. Is there a setup to avoid changing the numbers in the  
entries on

boot?


Hi,

You can use search command to locate the root device. Something like  
this:


search --set /vmlinuz
linux /vmlinuz ...
initrd /initrd.img



- The menu is rather small, is it possible to expand the display to
1280x800?

- Since I own a Macbook, I want my boot manager nice and shiny. How  
do I
set the looks? E.g. Background image? Couldn't find helpful info in  
the

manual-draft.


If you use my repo, you can enable graphic mode for EFI, it even
allows you to set a background image. Add these lines in grub.cfg:

set gfxmode=0x0
loadfont /unifont.pf2
terminal_output.gfxterm
background_image /splash.png

You need to include these modules when generating grub.efi: video
efi_fb gfxterm font png jpeg

unifont.pf2 is the font file, you can generate it using grub-mkfont,
or just download it here:

http://grub4dos.sourceforge.net/unifont.pf2

--
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


___
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: Macbook, Efi, Display mode

2009-09-26 Thread Stefan Bienert
Hi again,

 Hi,
 
 You can use search command to locate the root device. Something like this:
 
 search --set /vmlinuz
 linux /vmlinuz ...
 initrd /initrd.img

Well, this does not work. I get a message about wrong search term or
something similar.

 If you use my repo, you can enable graphic mode for EFI, it even
 allows you to set a background image. Add these lines in grub.cfg:

 set gfxmode=0x0
 loadfont /unifont.pf2
 terminal_output.gfxterm
 background_image /splash.png

Does this go on one line? Where does the image go? Root of the partition
where the grub.efi is?
I tried the lines above each on their own line, picture is on the linux
partition.


 You need to include these modules when generating grub.efi: video
 efi_fb gfxterm font png jpeg

Did that.

 unifont.pf2 is the font file, you can generate it using grub-mkfont,
 or just download it here:
 
 http://grub4dos.sourceforge.net/unifont.pf2
 

I left the font out for the first try. Does this hurt?

greetins,

Stefan


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


Re: Macbook, Efi, Display mode

2009-09-26 Thread Stefan Bienert
Vladimir 'phcoder' Serbinenko wrote:
 Stefan Bienert wrote:
 Hi again,

 2 days of booting with grub2 in EFI mode and still happy...

 Now I have several further questions:

 - Depending on whether an USB disk is connected, or not, the hd numbers
 change. Is there a setup to avoid changing the numbers in the entries on
 boot?
   
 Use UUIDs

What is that? Where do I get it from? How do I incorporate this into
grub.cg?

greetings,

Stefan


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


Re: Macbook, Efi, Display mode

2009-09-26 Thread Felix Zielcke
Am Samstag, den 26.09.2009, 21:54 +0200 schrieb Stefan Bienert:
 Hi again,
 
  Hi,
  
  You can use search command to locate the root device. Something like this:
  
  search --set /vmlinuz
  linux /vmlinuz ...
  initrd /initrd.img
 
 Well, this does not work. I get a message about wrong search term or
 something similar.

Because you have to use search --set --file /vmlinuz
By the way search --help would tell you

  If you use my repo, you can enable graphic mode for EFI, it even
  allows you to set a background image. Add these lines in grub.cfg:
 
  set gfxmode=0x0
  loadfont /unifont.pf2
  terminal_output.gfxterm
  background_image /splash.png
 
 Does this go on one line?
If you want to have it on one line you have so seperate them with ; just
like in bash

  Where does the image go? Root of the partition
 where the grub.efi is?
 I tried the lines above each on their own line, picture is on the linux
 partition.

Either use set root= or search --set --file like above.
Just as with GRUB Legacy root specifies where it looks for the file

 
  unifont.pf2 is the font file, you can generate it using grub-mkfont,
  or just download it here:
  
  http://grub4dos.sourceforge.net/unifont.pf2
  
 
 I left the font out for the first try. Does this hurt?

Without a font you only get ? in gfxterm

-- 
Felix Zielcke
Proud Debian Maintainer



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


Re: Macbook, Efi, Display mode

2009-09-26 Thread Felix Zielcke
Am Samstag, den 26.09.2009, 21:55 +0200 schrieb Stefan Bienert:
 Vladimir 'phcoder' Serbinenko wrote:
  Stefan Bienert wrote:
  Hi again,
 
  2 days of booting with grub2 in EFI mode and still happy...
 
  Now I have several further questions:
 
  - Depending on whether an USB disk is connected, or not, the hd numbers
  change. Is there a setup to avoid changing the numbers in the entries on
  boot?

  Use UUIDs
 
 What is that?

http://en.wikipedia.org/wiki/UUID

  Where do I get it from? 

grub-probe -t fs_uuid /
or grub-probe -t fs_uuid -d /dev/sda1

 How do I incorporate this into
 grub.cg?

search --set --fs-uuid abc-123...


-- 
Felix Zielcke
Proud Debian Maintainer



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


Re: Macbook, Efi, Display mode

2009-09-26 Thread Stefan Bienert
And another Hi,

update: Using '--file' in the search did the trick! I really start
loving Grub2: Really faster booting, seems to be easy to configure...

 2 days of booting with grub2 in EFI mode and still happy...

 Now I have several further questions:

 - Depending on whether an USB disk is connected, or not, the hd numbers
 change. Is there a setup to avoid changing the numbers in the entries on
 boot?
   
 Use UUIDs
 What is that?
 
 http://en.wikipedia.org/wiki/UUID

You know, you make feeling me like a noob again.

  Where do I get it from? 
 
 grub-probe -t fs_uuid /
 or grub-probe -t fs_uuid -d /dev/sda1
 
 How do I incorporate this into
 grub.cg?

 search --set --fs-uuid abc-123...

Just for the sake of completion: abc-123.../path/to/kernel?

I prefer using the search for a file, since I may switch disks without
resetting the uuid.

Now for the eye-candy...

greetings and many, many thanks,

Stefan


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