Re: Layout testing for graphical menu

2007-10-20 Thread Robert Millan
On Sat, Oct 20, 2007 at 12:49:19AM +0300, Vesa Jääskeläinen wrote:
> Hi,
> 
> I was hoping that someone else might stand-up but as there wasn't really
> interest I made a draft. This is basically using Okuji's idea of using
> CSS for specifying look. I made HTML page and example CSS filling
> information. And of course it looks ugly as I didn't spent too much on
> tuning it.
> 
> At first layout of the page would be hard-coded to grub2 graphical menu
> to make it simple, but now I would like to invite people with some
> stylish touch (and free time) to try it out and pin-point possible
> problems with the layout and possibly design some menu theme that could
> be used as a basis for official grub2 (or at least for testing it out)
> :). Please be free to use bitmaps, preferably PNG or other lossless
> format (so it can be easily converted to another if needed for testing
> purposes).
> 
> Contents of the HTML basicly is changeable, div tags are for now
> hardcoded to be as they are specified. With a good reason that can be
> changed (eg. discuss it before hand).
> 
> I haven't yet decided what kind of layout engine there would be but
> something simple most likely. There is most likely need to have scroll
> bar support for menuitems, haven't figured out yet how define it nicely.
> Possibly there needs to be some UI components, eg. way to specify what
> kind of progress bar there is, some flags for about it etc.
> 
> Final style sheet will be most likely some extension to CSS in order to
> give more flexibility, but I think the common concepts should be saved
> to make it easier to adapt to it.
> 
> All ideas are welcome and now would be good time to share them...

One thing that would be nice to have is a scheme by which GRUB could
display a popup "window" such as an informative message or a boolean
query.

-- 
Robert Millan

 I know my rights; I want my phone call!
 What use is a phone call, if you are unable to speak?
(as seen on /.)


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


Re: [PATCH] grub2 for Cygwin

2007-10-20 Thread Robert Millan
On Tue, Oct 16, 2007 at 02:03:35PM +0200, Christian Franke wrote:
> A patch vs. current CVS (cvs co -D "2007-10-16 UTC" ...) is available
> here:
> http://franke.dvrdns.org/cygwin/grub/grub2-20071016-cygwin.patch
> A proposed changelog entry is located in the patch itself
> (Changelog.cygwin).

Could you send it as an attachment?  This way it's easier to comment on
it contextualy.

> - "terminal gfxterm", "videotest" and "vbetest" do not work. Characters
> are not visible. This could also be reproduced when compiled on Linux.

Did you load a font file?  See http://grub.enbug.org/gfxterm

-- 
Robert Millan

 I know my rights; I want my phone call!
 What use is a phone call, if you are unable to speak?
(as seen on /.)


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


Re: status of VGA terminal

2007-10-20 Thread Vesa Jääskeläinen
Robert Millan wrote:
> On Sat, Oct 20, 2007 at 10:37:16AM +0300, Vesa Jääskeläinen wrote:
>> Robert Millan wrote:
>>> Hi,
>>>
>>> Anyone knows what's the status of vga.c ?  It's currently disabled in the 
>>> build
>>> system.  I reenabled and got it to build again (see attached patch), but it
>>> just displays garbage.
>>>
>>> Is it intended to be integrated with gfxterm?
>> If you want to make video driver for it then and keep it up-to-date,
>> otherwise no. Personally I have no intention to work on it. It displays
>> garbage because font system has changed... and will be changed again in
>> future once there is vector font support. For that I think font blitter
>> goes away and new bitmap blitter (or old one) is used.
>>
>> Question how to scale to different display sizes hasn't been solved
>> either... This is the main reason for vector fonts, scaling bitmap fonts
>> just gets really ugly.
> 
> Ok, when I have some time I'll try making it a video driver then.
> 
> In the meantime, should we remove it from CVS ?  It will have to be removed
> anyway since video drivers don't belong in term/.

Well it is vga terminal :). Implements terminal interface at the moment.
Just being a bit rotten... That is the reason why it is disabled. That
being said, if there would be really a vga video driver then that would
definitely need to be placed elsewhere. If you just remove it from CVS
it will most likely be forgotten and base code will be "lost".

You are of course free to do as you wish with vga terminal. I have no
objections on its removal.



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


Re: status of VGA terminal

2007-10-20 Thread Robert Millan
On Sat, Oct 20, 2007 at 10:37:16AM +0300, Vesa Jääskeläinen wrote:
> Robert Millan wrote:
> > Hi,
> > 
> > Anyone knows what's the status of vga.c ?  It's currently disabled in the 
> > build
> > system.  I reenabled and got it to build again (see attached patch), but it
> > just displays garbage.
> > 
> > Is it intended to be integrated with gfxterm?
> 
> If you want to make video driver for it then and keep it up-to-date,
> otherwise no. Personally I have no intention to work on it. It displays
> garbage because font system has changed... and will be changed again in
> future once there is vector font support. For that I think font blitter
> goes away and new bitmap blitter (or old one) is used.
> 
> Question how to scale to different display sizes hasn't been solved
> either... This is the main reason for vector fonts, scaling bitmap fonts
> just gets really ugly.

Ok, when I have some time I'll try making it a video driver then.

In the meantime, should we remove it from CVS ?  It will have to be removed
anyway since video drivers don't belong in term/.

-- 
Robert Millan

 I know my rights; I want my phone call!
 What use is a phone call, if you are unable to speak?
(as seen on /.)


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


Re: [PATCH] ASM_FILE

2007-10-20 Thread Robert Millan

Committed.

On Fri, Oct 19, 2007 at 10:11:48PM +0200, Robert Millan wrote:
> 
> This fixes a build problem when standalone assembly files are used in
> modules rather than in kernel.
> 
> I'll commit if there are no objections.
> 
> -- 
> Robert Millan
> 
>  I know my rights; I want my phone call!
>  What use is a phone call, if you are unable to speak?
> (as seen on /.)

> 2007-10-19  Robert Millan  <[EMAIL PROTECTED]>
> 
>   * genmk.rb (Image): Copy `extra_flags' from here ...
>   (PModule): ... to here.  Use it in `#{obj}: #{src}' rule.
> 
> diff -ur -x '*.mk' grub2/genmk.rb grub2.biosdisk/genmk.rb
> --- grub2/genmk.rb2007-09-03 00:50:43.0 +0200
> +++ grub2.biosdisk/genmk.rb   2007-10-19 21:35:10.0 +0200
> @@ -143,10 +143,11 @@
>fs = 'fs-' + obj.suffix('lst')
>dep = deps[i]
>flag = if /\.c$/ =~ src then 'CFLAGS' else 'ASFLAGS' end
> +  extra_flags = if /\.S$/ =~ src then '-DASM_FILE=1' else '' end
>dir = File.dirname(src)
>  
>"#{obj}: #{src}
> - $(TARGET_CC) -I#{dir} -I$(srcdir)/#{dir} $(TARGET_CPPFLAGS) 
> $(TARGET_#{flag}) $(#{prefix}_#{flag}) -MD -c -o $@ $<
> + $(TARGET_CC) -I#{dir} -I$(srcdir)/#{dir} $(TARGET_CPPFLAGS) 
> #{extra_flags} $(TARGET_#{flag}) $(#{prefix}_#{flag}) -MD -c -o $@ $<
>  -include #{dep}
>  
>  CLEANFILES += #{command} #{fs}

> 2007-10-19  Robert Millan  <[EMAIL PROTECTED]>
> 
>   * genmk.rb (Image): Copy `extra_flags' from here ...
>   (PModule): ... to here.  Use it in `#{obj}: #{src}' rule.
> 
> diff -ur -x '*.mk' grub2/genmk.rb grub2.biosdisk/genmk.rb
> --- grub2/genmk.rb2007-09-03 00:50:43.0 +0200
> +++ grub2.biosdisk/genmk.rb   2007-10-19 21:35:10.0 +0200
> @@ -143,10 +143,11 @@
>fs = 'fs-' + obj.suffix('lst')
>dep = deps[i]
>flag = if /\.c$/ =~ src then 'CFLAGS' else 'ASFLAGS' end
> +  extra_flags = if /\.S$/ =~ src then '-DASM_FILE=1' else '' end
>dir = File.dirname(src)
>  
>"#{obj}: #{src}
> - $(TARGET_CC) -I#{dir} -I$(srcdir)/#{dir} $(TARGET_CPPFLAGS) 
> $(TARGET_#{flag}) $(#{prefix}_#{flag}) -MD -c -o $@ $<
> + $(TARGET_CC) -I#{dir} -I$(srcdir)/#{dir} $(TARGET_CPPFLAGS) 
> #{extra_flags} $(TARGET_#{flag}) $(#{prefix}_#{flag}) -MD -c -o $@ $<
>  -include #{dep}
>  
>  CLEANFILES += #{command} #{fs}

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


-- 
Robert Millan

 I know my rights; I want my phone call!
 What use is a phone call, if you are unable to speak?
(as seen on /.)


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


Re: grub2 i386

2007-10-20 Thread Robert Millan

update-grub isn't intended to generate a grub.cfg that you can use on a
standalone rescue floppy.  For that you can write it manually or just use
grub-mkrescue.

On Sat, Oct 20, 2007 at 02:20:55AM +0200, willem wrote:
> hello,
> 
> the next script solved my problem partially.
> 
> #!/bin/bash
> #This will create a GRUB2 boot floppy that supports GPT system.
> #Make sure you have updated /boot/grub completely to ensure proper 
> floppy creation
> #last updated for grub2 1.95
> 
> grub-mkimage -d /boot/grub -v -o /boot/grub/core.img ls ext2 gpt pc 
> linux _linux boot chain configfile fshelp help
> mke2fs /dev/fd0
> mount -o loop -t ext2 /dev/fd0 /mnt/
> mkdir -p /mnt/boot/grub
> cp /boot/grub/boot.img /boot/grub/core.img /boot/grub/*.mod /mnt/boot/grub
> cp -f /boot/grub/grub.cfg /mnt/boot/grub
> grub-mkdevicemap -m /boot/grub/device.map
> grub-setup -d /mnt/boot/grub -v -r '(fd0)' -m /boot/grub/device.map '(fd0)'
> umount /mnt/
> 
> If I then boot from the floppy then the system hangs.
> 
> I have the following grub.cfg :
> 
> #
> # DO NOT EDIT THIS FILE
> #
> # It is automaticaly generated by ././update-grub using templates
> # from /usr/local/etc/grub.d and settings from /usr/local/etc/default/grub
> #
> 
> ### BEGIN /usr/local/etc/grub.d/00_header ###
> set default=0
> set timeout=5
> set root=(hd0,1)
> terminal console
> ### END /usr/local/etc/grub.d/00_header ###
> 
> ### BEGIN /usr/local/etc/grub.d/10_hurd ###
> ### END /usr/local/etc/grub.d/10_hurd ###
> 
> ### BEGIN /usr/local/etc/grub.d/10_linux ###
> menuentry " GNU/Linux, linux 2.6.22-14-generic" {
>linux(hd0,1)/boot/vmlinuz-2.6.22-14-generic root=/dev/sda1 ro
>initrd(hd0,1)/boot/initrd.img-2.6.22-14-generic
> }
> menuentry " GNU/Linux, linux 2.6.22-14-generic (single-user mode)" {
>linux(hd0,1)/boot/vmlinuz-2.6.22-14-generic root=/dev/sda1 ro 
> single
>initrd(hd0,1)/boot/initrd.img-2.6.22-14-generic
> }
> menuentry " GNU/Linux, linux 2.6.22-13-generic" {
>linux(hd0,1)/boot/vmlinuz-2.6.22-13-generic root=/dev/sda1 ro
>initrd(hd0,1)/boot/initrd.img-2.6.22-13-generic
> }
> menuentry " GNU/Linux, linux 2.6.22-13-generic (single-user mode)" {
>linux(hd0,1)/boot/vmlinuz-2.6.22-13-generic root=/dev/sda1 ro 
> single
>initrd(hd0,1)/boot/initrd.img-2.6.22-13-generic
> }
> menuentry " GNU/Linux, linux 2.6.22-12-generic" {
>linux(hd0,1)/boot/vmlinuz-2.6.22-12-generic root=/dev/sda1 ro
>initrd(hd0,1)/boot/initrd.img-2.6.22-12-generic
> }
> menuentry " GNU/Linux, linux 2.6.22-12-generic (single-user mode)" {
>linux(hd0,1)/boot/vmlinuz-2.6.22-12-generic root=/dev/sda1 ro 
> single
>initrd(hd0,1)/boot/initrd.img-2.6.22-12-generic
> }
> ### END /usr/local/etc/grub.d/10_linux ###
> 
> If I remove grub.cfg and I enter the commands manual then I can boot.
> 
> 
> The Problem is in line 12 of grub.cfg which is automatically generated.
> The commands terminal console seem not to be implemented yet.
> 
> or does my script is missing a required module ?
> 
> regards
> 
> 
> 
> ___
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
> 

-- 
Robert Millan

 I know my rights; I want my phone call!
 What use is a phone call, if you are unable to speak?
(as seen on /.)


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


grub2 i386

2007-10-20 Thread willem

hello,

With an editor I did remove the entry console from grub.cfg on my floppy.
Now I can boot grub2 from the floppy.

So in the grub2 templates the entry console must be removed.

regards.


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


grup2 i386

2007-10-20 Thread willem

hello,

i did run my scripts again after adding the terminal and console modules.
but the console module is not in cvs.
i see there is a video module.
so something must be changed in the template files of grub2.

vesa i did see your proposef html and css files.
looks very nice.
over what kind of engine are you thinking of ?


regards



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


Re: grub2 i386

2007-10-20 Thread Vesa Jääskeläinen
willem wrote:
> grub-mkimage -d /boot/grub -v -o /boot/grub/core.img ls ext2 gpt pc

> The Problem is in line 12 of grub.cfg which is automatically generated.
> The commands terminal console seem not to be implemented yet.
> 
> or does my script is missing a required module ?

There happens to be terminal module. Just add it to you core.img. You
might need console module too. Sorry don't have time to dig out my
script. Alternatively you can add 'insmod terminal'...


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


Re: status of VGA terminal

2007-10-20 Thread Vesa Jääskeläinen
Robert Millan wrote:
> Hi,
> 
> Anyone knows what's the status of vga.c ?  It's currently disabled in the 
> build
> system.  I reenabled and got it to build again (see attached patch), but it
> just displays garbage.
> 
> Is it intended to be integrated with gfxterm?

If you want to make video driver for it then and keep it up-to-date,
otherwise no. Personally I have no intention to work on it. It displays
garbage because font system has changed... and will be changed again in
future once there is vector font support. For that I think font blitter
goes away and new bitmap blitter (or old one) is used.

Question how to scale to different display sizes hasn't been solved
either... This is the main reason for vector fonts, scaling bitmap fonts
just gets really ugly.


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