rmll - grub2 presentation
hi,
I saw on the wiki that a presentation about grub2 is schedulled during the RMLL.
Do you have more info about that such as when and where ? From here, Dijon is on the way to hollidays so I might possibly go there, and it would be great to meet people involved in grub devel.
Thanks,
Signature · 6 lines
Vincent Guffens PhD Student UCL/CESAME tel: +32 10 47 80 30 Value your freedom, or you will lose it, teaches history. "Don't bother us with politics," respond those who don't want to learn. -- Richard M. Stallman
Vincent Guffens <[email protected]> writes:
Hi,
Quoted 6 lines
I saw on the wiki that a presentation about grub2 is schedulled during the RMLL.
Do you have more info about that such as when and where ? From here, Dijon is on the way to hollidays so I might possibly go there, and it would be great to meet people involved in grub devel.
No reply yet...
I wanted to go there to give a talk, but it was cancelled. Hopefully someone else can give a talk, I think Vincent and Okuji will be there. Too bad no one replied to this e-mail yet.
I will try to go to FOSDEM next year, but that is in February...
--
Marco
Quoted 3 lines · Marco Gerards
I wanted to go there to give a talk, but it was cancelled. Hopefully someone else can give a talk, I think Vincent and Okuji will be there. Too bad no one replied to this e-mail yet.
I won't go due to a time constraint. Dijon is too far to go in one day for me, and I cannot spend two days in this week.
Okuji
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 1 line · Yoshinori K. Okuji
I won't go
Oh no :( .
I was planning to make a surprise : I've implemented last night a "play" command in grub that plays on the standard buzzer a tune read from an on-disk file.
I grabbed some code from hurd's generic-speaker driver, and some from grub 2 itself (outb, inb, used skeleton of 'cat' command).
I have 7 tunes this far, most taken from the hurd file :) :
FSF song
Indiana Jones theme
I Feel Pretty
Summertime
Star Trek: The Next Generation
Beverly Hills Cop.
Tetris theme <- home-made from a mid file
I had the idea when I was talking with Marco who reminded me his idea about a tetris module for grub. I asked if the tetris theme would be played while gaming, and I realized that it was possible, because of the internal speaker...
To handle the note length, I use grub_get_rtc, so it would be easy to do something else while waiting for the timeout (like handling tetris blocs :) )
Now I don't know if it is pertinent to submit it as a patch... On the one hand, there is no space to loose, and making it a module would make it noticeable.
On the other hand, having the FSF song as an easter egg (and maybe others) could be fun.
Another problem would be the portability. Although the hurd code says it can be used in a wide range of architectures, I think the won't like my inb & outb...
Vincent Pelletier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCyuz9FEQoKRQyjtURAvbiAKCovyHF5rWviJhDwcSg+R2JJxN8fwCeNDgZ ZtmDemX9tQiq1aI+T0AQjRM=
=LVNE
-----END PGP SIGNATURE-----
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
Quoted 4 lines · Vincent Pelletier
Oh no :( .
I was planning to make a surprise : I've implemented last night a "play" command in grub that plays on the standard buzzer a tune read from an on-disk file.
Sorry. This sounds funny.
Quoted 5 lines
Now I don't know if it is pertinent to submit it as a patch... On the one hand, there is no space to loose, and making it a module would make it noticeable.
On the other hand, having the FSF song as an easter egg (and maybe others) could be fun.
It is not a bad thing to have this code as a module. The goodness of GRUB 2 is that it allows us to have non-critical code without losing space.
Quoted 3 lines
Another problem would be the portability. Although the hurd code says it can be used in a wide range of architectures, I think the won't like my inb & outb...
Well, it is arch-dependent. But somebody might port it to other architectures. Who knows...
Okuji
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 1 line · Yoshinori K. Okuji
Sorry. This sounds funny.
If you want to test it, you can download an i386 core.img here :
http://www.sysif.net/~vincent/grub2/core.img
(built with *.mod)
And some other related things around it :
$ l grub2/ total 92 - -rw-r--r-- 1 vincent vincent 5376 2005-07-05 12:35 common.h - -rw-r--r-- 1 vincent vincent 63372 2005-07-05 12:33 core.img - -rw-r--r-- 1 vincent vincent 9103 2005-07-05 12:35 main.c drwxr-xr-x 2 vincent vincent 4096 2005-07-05 12:35 songs
common.h & main.c are used to convert the songs (hard-coded in main.c) into files readable by the play command.
$ l grub2/songs/ total 28 - -rw-r--r-- 1 vincent vincent 216 2005-07-05 12:35 Beverly Hills Cop. - -rw-r--r-- 1 vincent vincent 188 2005-07-05 12:35 FSF_Song - -rw-r--r-- 1 vincent vincent 144 2005-07-05 12:35 I_Feel_Pretty - -rw-r--r-- 1 vincent vincent 228 2005-07-05 12:35 Indiana_Jones_Theme - -rw-r--r-- 1 vincent vincent 152 2005-07-05 12:35 Star Trek: The Next Generation - -rw-r--r-- 1 vincent vincent 224 2005-07-05 12:35 Summertime - -rw-r--r-- 1 vincent vincent 736 2005-07-05 12:35 Tetris_Theme
The songs have to be grub2-readable : on a floppy, on a partition...
Would it enter the grub 2 cvs if I send a patch ?
Or maybe another project or cvs branch could be started, containing less-interesting modules like this one.
Quoted 1 line
somebody might port it to other architectures
About porting (not especially "play" command), Marco introduced me to Jeff Bailey, and we will start porting grub 2 to usparc (aka sparc 64, aka sparc v9) architecture. I discussed with some #hurdfr people at the LSM and they were interested in such port (Manuel Menal told me l4 works on usparc :) ).
As a reminder of the current port status :
- - argument-less commands (like "exit") work
- - others lead to Fast Data Access MMU Miss
Vincent Pelletier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCzonUFEQoKRQyjtURAt5tAJ0X+7Z6cQ827q7n/x0DUb2WiF6m8ACeJIvH p2Ox7SQJmRprLuW4PUr43Hs=
=p2A2
-----END PGP SIGNATURE-----
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
Quoted 3 lines · Vincent Pelletier
Would it enter the grub 2 cvs if I send a patch ?
Or maybe another project or cvs branch could be started, containing less-interesting modules like this one.
Don't send a patch. Just put it directly into the CVS. You should have write permission.
Possibly it is better to create a new directory, for instance, "fun" or "contrib".
Quoted 5 lines
About porting (not especially "play" command), Marco introduced me to Jeff Bailey, and we will start porting grub 2 to usparc (aka sparc 64, aka sparc v9) architecture. I discussed with some #hurdfr people at the LSM and they were interested in such port (Manuel Menal told me l4 works on usparc :) ).
Good news. Is Jeff active now? I haven't seen him hacking these days...
Okuji
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 1 line · Yoshinori K. Okuji
Good news. Is Jeff active now? I haven't seen him hacking these days...
He was moving the last days, so he hasn't much time.
And a good news marco already knows : I finally made the OpenBoot calls work \o/ !
The problem was in the struct used to send args & receive return values. It must contain fields of the same size, which is 32 bits on ppc and 64 on usparc. So now it works with long long as field type.
So, I'm glad to announce the very first time some grub 2 related work booted on an usparc :
ok load net
Boot device: /pci@1f,0/pci@1,1/network@1,1 File and args:
5800
ok init-program
testType 'go' to resume
ok go
Program terminated
I call the following functions:_start :
grub_ofconsole_init() :
grub_ieee1275_finddevice ("/chosen", &chosen) grub_ieee1275_get_property (chosen, "stdout", data, sizeof data,
&actual)
grub_ieee1275_get_property (chosen, "stdin", data, sizeof data,
&actual)
ieee1275_write(stdout_ihandle,"test",4,&wrote); ieee1275_enter(); //hence the "Type 'go' to resume" ieee1275_exit(); //hence the "Program terminated"
So I think I can say OB calls work, have they argument(s) and or return value(s) or not !
Time to go (for the last day) to the LSM now :).
Vincent Pelletier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCz2p+FEQoKRQyjtURArPuAKCwOLP8ZSyHNK7nxnwS5bvKuYUlZQCfaFd8 UTof30pCDuP9ZrHhrwFwRdk=
=k0TW
-----END PGP SIGNATURE-----
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
Quoted 2 lines · Yoshinori K. Okuji
Possibly it is better to create a new directory, for instance, "fun" or "contrib".
Right, I would like this too. :)
Quoted 7 lines
Quoted 5 lines
About porting (not especially "play" command), Marco introduced me to Jeff Bailey, and we will start porting grub 2 to usparc (aka sparc 64, aka sparc v9) architecture. I discussed with some #hurdfr people at the LSM and they were interested in such port (Manuel Menal told me l4 works on usparc :) ).
Good news. Is Jeff active now? I haven't seen him hacking these days...
He is working for ubuntu.
--
Marco