* How to implant in GRUB 1.96 and GRUB 2.00+ kernel command from GRUB 0.97?
@ 2013-12-02 15:38 Stojsavljevic, Zoran
[not found] ` <CAA91j0Xn356u2==d3MdazwGeanyBDMjU+Eqyx8fgn7jPhwyDmg@mail.gmail.com>
2013-12-03 10:17 ` Colin Watson
0 siblings, 2 replies; 4+ messages in thread
From: Stojsavljevic, Zoran @ 2013-12-02 15:38 UTC (permalink / raw)
To: grub-devel@gnu.org
Hello,
I have old 32bit GRUB version 0.97 installed long time ago on HDD. I am adding to it 32bit kernels for testing with the command: linux (hd0, 1)/images/bzImage_x.y.z [options] ...<cr>
I was able to add and boot standalone Bare Metal environment (around 60KB in size) using the following two lines:
kernel (hd0,1)/images/kernel<cr>
boot<cr>
This does boot my CPUs to use cases I would like them to execute.
I tried the same for GRUB version 1.96, but this does not work anymore! Did not try it for GRUB 2.00+...
The question is: what are the substitutes for commands (in GRUB 0.97): kernel (hd0,1)/images/kernel<cr> boot<cr>
[1] For GRUB 1.96?
[2] For GRUB 2.00+?
Thank you in advance,
Zoran
_______
Most of The Time you should be "intel inside" to be capable to think "out of the box".
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: How to implant in GRUB 1.96 and GRUB 2.00+ kernel command from GRUB 0.97?
[not found] ` <CAA91j0Xn356u2==d3MdazwGeanyBDMjU+Eqyx8fgn7jPhwyDmg@mail.gmail.com>
@ 2013-12-03 10:02 ` Stojsavljevic, Zoran
0 siblings, 0 replies; 4+ messages in thread
From: Stojsavljevic, Zoran @ 2013-12-03 10:02 UTC (permalink / raw)
To: Andrey Borzenkov; +Cc: Grub-devel@gnu.org
Njet, Andrey...
Command is:
mulitiboot (hd0,1)/images/kernel
Boot
I found the grub 1.98 manual, and looked into it. My guess is that multiboot does work for 1.9x+ and 2.00+. For 0.9x+ it is kernel keyword.
I'll subscribe to help-grub.
Thank you,
Zoran
_______
Most of The Time you should be "intel inside" to be capable to think "out of the box".
-----Original Message-----
From: Andrey Borzenkov [mailto:arvidjaar@gmail.com]
Sent: Monday, December 02, 2013 8:26 PM
To: Stojsavljevic, Zoran
Subject: Re: How to implant in GRUB 1.96 and GRUB 2.00+ kernel command from GRUB 0.97?
On Mon, Dec 2, 2013 at 7:38 PM, Stojsavljevic, Zoran <zoran.stojsavljevic@intel.com> wrote:
> Hello,
>
> I have old 32bit GRUB version 0.97 installed long time ago on HDD. I
> am adding to it 32bit kernels for testing with the command: linux
> (hd0, 1)/images/bzImage_x.y.z [options] ...<cr>
>
> I was able to add and boot standalone Bare Metal environment (around 60KB in size) using the following two lines:
> kernel (hd0,1)/images/kernel<cr>
> boot<cr>
>
> This does boot my CPUs to use cases I would like them to execute.
>
> I tried the same for GRUB version 1.96, but this does not work anymore! Did not try it for GRUB 2.00+...
>
> The question is: what are the substitutes for commands (in GRUB 0.97):
> kernel (hd0,1)/images/kernel<cr> boot<cr>
linux16 (hd0,2)/images/kernel
boot
Please post further questions to help-grub, they are off-topic on development list.
> [1] For GRUB 1.96?
> [2] For GRUB 2.00+?
>
> Thank you in advance,
> Zoran
> _______
> Most of The Time you should be "intel inside" to be capable to think "out of the box".
>
> Intel GmbH
> Dornacher Strasse 1
> 85622 Feldkirchen/Muenchen, Deutschland Sitz der Gesellschaft:
> Feldkirchen bei Muenchen
> Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas
> Lusk
> Registergericht: Muenchen HRB 47456
> Ust.-IdNr./VAT Registration No.: DE129385895 Citibank Frankfurt a.M.
> (BLZ 502 109 00) 600119052
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to implant in GRUB 1.96 and GRUB 2.00+ kernel command from GRUB 0.97?
2013-12-02 15:38 How to implant in GRUB 1.96 and GRUB 2.00+ kernel command from GRUB 0.97? Stojsavljevic, Zoran
[not found] ` <CAA91j0Xn356u2==d3MdazwGeanyBDMjU+Eqyx8fgn7jPhwyDmg@mail.gmail.com>
@ 2013-12-03 10:17 ` Colin Watson
1 sibling, 0 replies; 4+ messages in thread
From: Colin Watson @ 2013-12-03 10:17 UTC (permalink / raw)
To: grub-devel
On Mon, Dec 02, 2013 at 03:38:16PM +0000, Stojsavljevic, Zoran wrote:
> I have old 32bit GRUB version 0.97 installed long time ago on HDD. I
> am adding to it 32bit kernels for testing with the command: linux
> (hd0, 1)/images/bzImage_x.y.z [options] ...<cr>
>
> I was able to add and boot standalone Bare Metal environment (around
> 60KB in size) using the following two lines:
> kernel (hd0,1)/images/kernel<cr>
> boot<cr>
>
> This does boot my CPUs to use cases I would like them to execute.
>
> I tried the same for GRUB version 1.96, but this does not work
> anymore! Did not try it for GRUB 2.00+...
>
> The question is: what are the substitutes for commands (in GRUB 0.97): kernel (hd0,1)/images/kernel<cr> boot<cr>
> [1] For GRUB 1.96?
I'm pretty sure nobody cares about 1.96 any more; it was a five-year-old
version of a development branch. I'm certainly not going to try to go
back and work out what would have worked with it. Sorry. You could
always try going with the instructions for 2.00 if you're desperate, but
please just upgrade instead.
> [2] For GRUB 2.00+?
GRUB Legacy's "kernel" command was a magic thing that tried to detect
the kernel type and implement appropriate loading. In GRUB 2, there's
instead a loader command for each kernel type: "linux", "multiboot2",
"knetbsd", etc.
Given that your kernel worked with GRUB 0.97, my guesses would be that
either it's a Multiboot 1 kernel (since GRUB Legacy didn't support
Multiboot 2), in which case you want the "multiboot" command; or it was
relying on the 16-bit Linux boot protocol, in which case you want the
"linux16" command.
The other thing to bear in mind is that GRUB 2 numbers partitions
starting at 1, not 0, so (hd0,1) in GRUB Legacy typically becomes
(hd0,2) in GRUB 2.
So, putting that all together, my guess is that a menu entry declaration
for your kernel in GRUB 2 would be something like this:
menuentry "My bare-metal environment" {
multiboot (hd0,2)/images/kernel
}
... or, if you just want to type directly at the GRUB shell:
multiboot (hd0,2)/images/kernel
boot
Cheers,
--
Colin Watson [cjwatson@ubuntu.com]
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: How to implant in GRUB 1.96 and GRUB 2.00+ kernel command from GRUB 0.97?
@ 2013-12-03 11:54 Stojsavljevic, Zoran
0 siblings, 0 replies; 4+ messages in thread
From: Stojsavljevic, Zoran @ 2013-12-03 11:54 UTC (permalink / raw)
To: The development of GNU GRUB, cjwatson@ubuntu.com
Hello Colin,
Yes, I discovered it myself. I somehow found one HDD with 32bit GRUB... Version 1.96. Lazy to pull and install from grub git the latest snapshot, since I am busy with many other stuff (and I should do that, this is the proper way).
But anyway, thank you for the tip. For both versions (1.96 and 2.00+) exactly what you wrote there:
multiboot (hd0,1)/images/kernel
boot
Best Regards,
Zoran
_______
Most of The Time you should be "intel inside" to be capable to think "out of the box".
-----Original Message-----
From: grub-devel-bounces+zoran.stojsavljevic=intel.com@gnu.org [mailto:grub-devel-bounces+zoran.stojsavljevic=intel.com@gnu.org] On Behalf Of Colin Watson
Sent: Tuesday, December 03, 2013 11:18 AM
To: grub-devel@gnu.org
Subject: Re: How to implant in GRUB 1.96 and GRUB 2.00+ kernel command from GRUB 0.97?
On Mon, Dec 02, 2013 at 03:38:16PM +0000, Stojsavljevic, Zoran wrote:
> I have old 32bit GRUB version 0.97 installed long time ago on HDD. I
> am adding to it 32bit kernels for testing with the command: linux
> (hd0, 1)/images/bzImage_x.y.z [options] ...<cr>
>
> I was able to add and boot standalone Bare Metal environment (around
> 60KB in size) using the following two lines:
> kernel (hd0,1)/images/kernel<cr>
> boot<cr>
>
> This does boot my CPUs to use cases I would like them to execute.
>
> I tried the same for GRUB version 1.96, but this does not work
> anymore! Did not try it for GRUB 2.00+...
>
> The question is: what are the substitutes for commands (in GRUB 0.97):
> kernel (hd0,1)/images/kernel<cr> boot<cr> [1] For GRUB 1.96?
I'm pretty sure nobody cares about 1.96 any more; it was a five-year-old version of a development branch. I'm certainly not going to try to go back and work out what would have worked with it. Sorry. You could always try going with the instructions for 2.00 if you're desperate, but please just upgrade instead.
> [2] For GRUB 2.00+?
GRUB Legacy's "kernel" command was a magic thing that tried to detect the kernel type and implement appropriate loading. In GRUB 2, there's instead a loader command for each kernel type: "linux", "multiboot2", "knetbsd", etc.
Given that your kernel worked with GRUB 0.97, my guesses would be that either it's a Multiboot 1 kernel (since GRUB Legacy didn't support Multiboot 2), in which case you want the "multiboot" command; or it was relying on the 16-bit Linux boot protocol, in which case you want the "linux16" command.
The other thing to bear in mind is that GRUB 2 numbers partitions starting at 1, not 0, so (hd0,1) in GRUB Legacy typically becomes
(hd0,2) in GRUB 2.
So, putting that all together, my guess is that a menu entry declaration for your kernel in GRUB 2 would be something like this:
menuentry "My bare-metal environment" {
multiboot (hd0,2)/images/kernel
}
... or, if you just want to type directly at the GRUB shell:
multiboot (hd0,2)/images/kernel
boot
Cheers,
--
Colin Watson [cjwatson@ubuntu.com]
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-03 11:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-02 15:38 How to implant in GRUB 1.96 and GRUB 2.00+ kernel command from GRUB 0.97? Stojsavljevic, Zoran
[not found] ` <CAA91j0Xn356u2==d3MdazwGeanyBDMjU+Eqyx8fgn7jPhwyDmg@mail.gmail.com>
2013-12-03 10:02 ` Stojsavljevic, Zoran
2013-12-03 10:17 ` Colin Watson
-- strict thread matches above, loose matches on Subject: below --
2013-12-03 11:54 Stojsavljevic, Zoran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).