[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grub Change HELP

From: gilberto
Subject: Re: Grub Change HELP
Date: Wed, 30 Jan 2008 00:10:44 -0200 (BRST)
User-agent: SquirrelMail/1.4.5

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???

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

FeniX Linux

> On Tue, Jan 29, 2008 at 04:46:04PM -0200, address@hidden
> wrote:
>> Hi, People, my name is Gilberto I from Brazil, I am development of Linux
>> FeniX -
>> 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
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]