All of lore.kernel.org
 help / color / mirror / Atom feed
* Grub Change HELP
@ 2008-01-29 18:46 gilberto
  2008-01-29 20:29 ` Robert Millan
  0 siblings, 1 reply; 9+ messages in thread
From: gilberto @ 2008-01-29 18:46 UTC (permalink / raw)
  To: grub-devel


Hi, People, my name is Gilberto I from Brazil, I am development of Linux
FeniX - www.sistemafenix.com.br
I need your help about grub.
I have a problem with grub source and I need your help urgently, I need
change the code of the grub I need modify the boot loader code(grub) to
check the  byte at memory location 0x000ffa17. If
this byte is 0x00, then go to the normal Windows booting, if this byte is
0x01, then
go to the Instant On booting.

But I need help to make this. Please help me. If necessary I will pay.

I am waiting the answer.

Regards to all

Gilberto
FeniX Linux





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Grub Change HELP
  2008-01-29 18:46 Grub Change HELP gilberto
@ 2008-01-29 20:29 ` Robert Millan
  2008-01-29 20:30   ` Robert Millan
                     ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Robert Millan @ 2008-01-29 20:29 UTC (permalink / raw)
  To: The development of GRUB 2

On Tue, Jan 29, 2008 at 04:46:04PM -0200, gilberto@sistemafenix.com.br wrote:
> 
> Hi, People, my name is Gilberto I from Brazil, I am development of Linux
> FeniX - www.sistemafenix.com.br
> I need your help about grub.
> I have a problem with grub source and I need your help urgently, I need
> change the code of the grub I need modify the boot loader code(grub) to
> check the  byte at memory location 0x000ffa17. If
> this byte is 0x00, then go to the normal Windows booting, if this byte is
> 0x01, then
> go to the Instant On booting.
> 
> But I need help to make this. Please help me. If necessary I will pay.

Try inserting something like this in the right place (e.g. grub_machine_init):

if (*((grub_uint8_t *) 0x000ffa17))
  grub_env_set ("default", "1");
else
  grub_env_set ("default", "0");

-- 
Robert Millan

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Grub Change HELP
  2008-01-29 20:29 ` Robert Millan
@ 2008-01-29 20:30   ` Robert Millan
  2008-01-30  0:33   ` gilberto
  2008-01-30  2:10   ` gilberto
  2 siblings, 0 replies; 9+ messages in thread
From: Robert Millan @ 2008-01-29 20:30 UTC (permalink / raw)
  To: The development of GRUB 2

On Tue, Jan 29, 2008 at 09:29:10PM +0100, Robert Millan wrote:
> > 
> > But I need help to make this. Please help me. If necessary I will pay.

You could consider donating to the FSF to protect our freedom:

  http://www.fsf.org/

-- 
Robert Millan

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Grub Change HELP
  2008-01-29 20:29 ` Robert Millan
  2008-01-29 20:30   ` Robert Millan
@ 2008-01-30  0:33   ` gilberto
  2008-01-30 13:46     ` Robert Millan
  2008-01-30  2:10   ` gilberto
  2 siblings, 1 reply; 9+ messages in thread
From: gilberto @ 2008-01-30  0:33 UTC (permalink / raw)
  To: The development of GRUB 2

Robert thank you, You are great person, because worry with problems of the
others people. The best demonstration of the spirit GNU is this.

I will try put this code, in source grub,

> if (*((grub_uint8_t *) 0x000ffa17))
>   grub_env_set ("default", "1");
> else
>   grub_env_set ("default", "0");

but the problem is where??? I thought put in stage2.c. What do you think?
other problem is I need change de file /boot/grub/menu.lst
Because my project is a especial notebook with GNU linux(hibernate), when
the user push the bottom1 the notebook will load the linux GNU e when the
user push the other bottom will load some other system.
How i can change the menu.lst insite the grub it's is possible?
I am desesperate, because I need finish this project in next 3 days.
Because this I said pay to this. If you prefere. I could make payment in
account of the  FSF. U$ 1.000,00


I am waiting to answer people of the GNU comunity.

Gilberto
FeniX Linux






> On Tue, Jan 29, 2008 at 04:46:04PM -0200, gilberto@sistemafenix.com.br
> wrote:
>>
>> Hi, People, my name is Gilberto I from Brazil, I am development of Linux
>> FeniX - www.sistemafenix.com.br
>> I need your help about grub.
>> I have a problem with grub source and I need your help urgently, I need
>> change the code of the grub I need modify the boot loader code(grub) to
>> check the  byte at memory location 0x000ffa17. If
>> this byte is 0x00, then go to the normal Windows booting, if this byte
>> is
>> 0x01, then
>> go to the Instant On booting.
>>
>> But I need help to make this. Please help me. If necessary I will pay.
>

> Try inserting something like this in the right place (e.g.
> grub_machine_init):
>
> if (*((grub_uint8_t *) 0x000ffa17))
>   grub_env_set ("default", "1");
> else
>   grub_env_set ("default", "0");
>
> --
> Robert Millan
>
> <GPLv2> I know my rights; I want my phone call!
> <DRM> 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
>





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Grub Change HELP
  2008-01-29 20:29 ` Robert Millan
  2008-01-29 20:30   ` Robert Millan
  2008-01-30  0:33   ` gilberto
@ 2008-01-30  2:10   ` gilberto
  2008-01-30 13:50     ` Robert Millan
  2 siblings, 1 reply; 9+ messages in thread
From: gilberto @ 2008-01-30  2:10 UTC (permalink / raw)
  To: The development of GRUB 2

Hi, comunity of GNU Linux, Robert please see my idea about my problem:
This file is builtins.c line 3974 more less. I add more commands.
I set variable localiza to adress 0x000ffa17 , I am not sure but I think
the function  grub_sprintf, read the menu.lst if it is true I made the
condicional expression to verify the variable localiza, depend of the
value if read menu.lst or menu2.lst this form I can load the linux gnu
system or other system. Depended of the value of the variable localiza. It
is correct???

  localiza=0x000ffa17;
  grub_printf ("Endereço de 0x000ffa17\"contem= %d\"... ", *localiza);
  if ( *localiza == 0 )
  grub_sprintf (config_filename, "%s%s", prefix, "/menu.lst");
  else
  grub_sprintf (config_filename, "%s%s", prefix, "/menuw.lst");

Regards
Gilberto
FeniX Linux

> On Tue, Jan 29, 2008 at 04:46:04PM -0200, gilberto@sistemafenix.com.br
> wrote:
>>
>> Hi, People, my name is Gilberto I from Brazil, I am development of Linux
>> FeniX - www.sistemafenix.com.br
>> I need your help about grub.
>> I have a problem with grub source and I need your help urgently, I need
>> change the code of the grub I need modify the boot loader code(grub) to
>> check the  byte at memory location 0x000ffa17. If
>> this byte is 0x00, then go to the normal Windows booting, if this byte
>> is
>> 0x01, then
>> go to the Instant On booting.
>>
>> But I need help to make this. Please help me. If necessary I will pay.
>
> Try inserting something like this in the right place (e.g.
> grub_machine_init):
>
> if (*((grub_uint8_t *) 0x000ffa17))
>   grub_env_set ("default", "1");
> else
>   grub_env_set ("default", "0");
>
> --
> Robert Millan
>
> <GPLv2> I know my rights; I want my phone call!
> <DRM> 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
>





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Grub Change HELP
  2008-01-30  0:33   ` gilberto
@ 2008-01-30 13:46     ` Robert Millan
  2008-01-30 14:03       ` gilberto
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Millan @ 2008-01-30 13:46 UTC (permalink / raw)
  To: The development of GRUB 2

On Tue, Jan 29, 2008 at 10:33:18PM -0200, gilberto@sistemafenix.com.br wrote:
> Robert thank you, You are great person, because worry with problems of the
> others people. The best demonstration of the spirit GNU is this.
> 
> I will try put this code, in source grub,
> 
> > if (*((grub_uint8_t *) 0x000ffa17))
> >   grub_env_set ("default", "1");
> > else
> >   grub_env_set ("default", "0");
> 
> but the problem is where??? I thought put in stage2.c. What do you think?

That was for GRUB 2, which is the only version in development right now.  For
GRUB Legacy it'd be a bit more complicated I think.

In init.c / grub_machine_init; you want to do that after heap has been
initialized, so that grub_env_set() will have an effect.

-- 
Robert Millan

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Grub Change HELP
  2008-01-30  2:10   ` gilberto
@ 2008-01-30 13:50     ` Robert Millan
  2008-01-31 21:30       ` What do I make the receive HELP? gilberto
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Millan @ 2008-01-30 13:50 UTC (permalink / raw)
  To: The development of GRUB 2

On Wed, Jan 30, 2008 at 12:10:44AM -0200, gilberto@sistemafenix.com.br wrote:
> Hi, comunity of GNU Linux, Robert please see my idea about my problem:
> This file is builtins.c line 3974 more less. I add more commands.
> I set variable localiza to adress 0x000ffa17 , I am not sure but I think
> the function  grub_sprintf, read the menu.lst if it is true I made the
> condicional expression to verify the variable localiza, depend of the
> value if read menu.lst or menu2.lst this form I can load the linux gnu
> system or other system. Depended of the value of the variable localiza. It
> is correct???
> 
>   localiza=0x000ffa17;
>   grub_printf ("Endereço de 0x000ffa17\"contem= %d\"... ", *localiza);
>   if ( *localiza == 0 )
>   grub_sprintf (config_filename, "%s%s", prefix, "/menu.lst");
>   else
>   grub_sprintf (config_filename, "%s%s", prefix, "/menuw.lst");

Sorry I can't tell.  I don't see any obvious mistakes in this code, but I'm
only familiar with GRUB 2.  Try switching to that.  It'll also make it easier
to debug your problem (since you can poke at variables in rescue mode, etc).

-- 
Robert Millan

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Grub Change HELP
  2008-01-30 13:46     ` Robert Millan
@ 2008-01-30 14:03       ` gilberto
  0 siblings, 0 replies; 9+ messages in thread
From: gilberto @ 2008-01-30 14:03 UTC (permalink / raw)
  To: The development of GRUB 2

Robert If I change to Grub2 Can you help me??
Where is the source recommended by you???

Gilberto
FeniX Linux


> On Tue, Jan 29, 2008 at 10:33:18PM -0200, gilberto@sistemafenix.com.br
> wrote:
>> Robert thank you, You are great person, because worry with problems of
>> the
>> others people. The best demonstration of the spirit GNU is this.
>>
>> I will try put this code, in source grub,
>>
>> > if (*((grub_uint8_t *) 0x000ffa17))
>> >   grub_env_set ("default", "1");
>> > else
>> >   grub_env_set ("default", "0");
>>
>> but the problem is where??? I thought put in stage2.c. What do you
>> think?
>
> That was for GRUB 2, which is the only version in development right now.
> For
> GRUB Legacy it'd be a bit more complicated I think.
>
> In init.c / grub_machine_init; you want to do that after heap has been
> initialized, so that grub_env_set() will have an effect.
>
> --
> Robert Millan
>
> <GPLv2> I know my rights; I want my phone call!
> <DRM> 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
>





^ permalink raw reply	[flat|nested] 9+ messages in thread

* What do I make the receive HELP?
  2008-01-30 13:50     ` Robert Millan
@ 2008-01-31 21:30       ` gilberto
  0 siblings, 0 replies; 9+ messages in thread
From: gilberto @ 2008-01-31 21:30 UTC (permalink / raw)
  To: The development of GRUB 2

If, your list email didn't know help me! Who will know?????
Again I have the problem bellow it' impossible anybody know about this.
It's very simply to you. To me is very hard make this alone.
I need only make the value of the adress in memory and verify is correct
and load menu.lst ou menu2.lst.

EIHMMMMMMMMMMM! Answer anything useful to me.

I NEED HELP!!!
I said if necessary will pay without injury to GNU.

Gilberto



> On Wed, Jan 30, 2008 at 12:10:44AM -0200, gilberto@sistemafenix.com.br
> wrote:
>> Hi, comunity of GNU Linux, Robert please see my idea about my problem:
>> This file is builtins.c line 3974 more less. I add more commands.
>> I set variable localiza to adress 0x000ffa17 , I am not sure but I think
>> the function  grub_sprintf, read the menu.lst if it is true I made the
>> condicional expression to verify the variable localiza, depend of the
>> value if read menu.lst or menu2.lst this form I can load the linux gnu
>> system or other system. Depended of the value of the variable localiza.
>> It
>> is correct???
>>
>>   localiza=0x000ffa17;
>>   grub_printf ("Endereço de 0x000ffa17\"contem= %d\"... ", *localiza);
>>   if ( *localiza == 0 )
>>   grub_sprintf (config_filename, "%s%s", prefix, "/menu.lst");
>>   else
>>   grub_sprintf (config_filename, "%s%s", prefix, "/menuw.lst");
>
> Sorry I can't tell.  I don't see any obvious mistakes in this code, but
> I'm
> only familiar with GRUB 2.  Try switching to that.  It'll also make it
> easier
> to debug your problem (since you can poke at variables in rescue mode,
> etc).
>
> --
> Robert Millan
>
> <GPLv2> I know my rights; I want my phone call!
> <DRM> 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
>





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-31 21:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-29 18:46 Grub Change HELP gilberto
2008-01-29 20:29 ` Robert Millan
2008-01-29 20:30   ` Robert Millan
2008-01-30  0:33   ` gilberto
2008-01-30 13:46     ` Robert Millan
2008-01-30 14:03       ` gilberto
2008-01-30  2:10   ` gilberto
2008-01-30 13:50     ` Robert Millan
2008-01-31 21:30       ` What do I make the receive HELP? gilberto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.