* Re: Grub Change HELP***
@ 2008-01-31 2:04 gilberto
2008-01-31 10:08 ` Otavio Salvador
0 siblings, 1 reply; 3+ messages in thread
From: gilberto @ 2008-01-31 2:04 UTC (permalink / raw)
To: The development of GRUB 2
Robert I tried read the value of the memory in grub, but didn't work very
well.
How I can get the value of the adress 0x000ffa17 and put its on pointer.
I am sorry but I need help.
How i make this?
I tried this code, but I have some errors, I define the variable but
didn't resolve, the people of the clevo notebook make the especial BIOS to
me,and I need get this value and make the logical comparation!!! Could you
help me? Don't me alone with this problem. I already said before, If
necessary I will pay, It's very important to my company resolve this
situation. My time is over now.
> > if (*((grub_uint8_t *) 0x000ffa17))
> > grub_env_set ("default", "1");
> > else
> > grub_env_set ("default", "0");
> 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] 3+ messages in thread
* Re: Grub Change HELP***
2008-01-31 2:04 Grub Change HELP*** gilberto
@ 2008-01-31 10:08 ` Otavio Salvador
2008-01-31 16:56 ` gilberto
0 siblings, 1 reply; 3+ messages in thread
From: Otavio Salvador @ 2008-01-31 10:08 UTC (permalink / raw)
To: The development of GRUB 2
gilberto@sistemafenix.com.br writes:
> I tried this code, but I have some errors, I define the variable but
> didn't resolve, the people of the clevo notebook make the especial BIOS to
> me,and I need get this value and make the logical comparation!!! Could you
> help me? Don't me alone with this problem. I already said before, If
> necessary I will pay, It's very important to my company resolve this
> situation. My time is over now.
You want it to provide a boot on for the recover partition?
--
O T A V I O S A L V A D O R
---------------------------------------------
E-mail: otavio@debian.org UIN: 5906116
GNU/Linux User: 239058 GPG ID: 49A5F855
Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
you the whole house."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Grub Change HELP***
2008-01-31 10:08 ` Otavio Salvador
@ 2008-01-31 16:56 ` gilberto
0 siblings, 0 replies; 3+ messages in thread
From: gilberto @ 2008-01-31 16:56 UTC (permalink / raw)
To: The development of GRUB 2
Yes could be or to MBR too.
Normal grub with modification with bellow.
Gilberto
> gilberto@sistemafenix.com.br writes:
>
>> I tried this code, but I have some errors, I define the variable but
>> didn't resolve, the people of the clevo notebook make the especial BIOS
>> to
>> me,and I need get this value and make the logical comparation!!! Could
>> you
>> help me? Don't me alone with this problem. I already said before, If
>> necessary I will pay, It's very important to my company resolve this
>> situation. My time is over now.
>
> You want it to provide a boot on for the recover partition?
>
> --
> O T A V I O S A L V A D O R
> ---------------------------------------------
> E-mail: otavio@debian.org UIN: 5906116
> GNU/Linux User: 239058 GPG ID: 49A5F855
> Home Page: http://otavio.ossystems.com.br
> ---------------------------------------------
> "Microsoft sells you Windows ... Linux gives
> you the whole house."
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-31 16:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-31 2:04 Grub Change HELP*** gilberto
2008-01-31 10:08 ` Otavio Salvador
2008-01-31 16:56 ` 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.