* About grub.cfg――Building coreboot with grub2 payload
@ 2011-05-31 7:20 Rock Cui
2011-06-01 13:30 ` About grub.cfg——Building " Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 3+ messages in thread
From: Rock Cui @ 2011-05-31 7:20 UTC (permalink / raw)
To: grub-devel
[-- Attachment #1: Type: text/plain, Size: 1415 bytes --]
I am working hard at building coreboot with grub2 payload. Now I can
build a grub2 payload as follow:
1: Download the lastest grub2 source code.
2: ./autogen.sh
./configure --with-platform=coreboot
make
3: Use grub-mkimage to generate a "payload.elf", detail:
./grub-mkimage -d . -O i386-coreboot -o ../coreboot-v4/payload.elf
--prefix='/boot/grub2'
memdisk cpio -m ../memdisk.tar
Accoding the coreboot website(http://www.coreboot.org/Talk:GRUB2),
memdisk is a virtual disk
in grub image and it is suggested that grub.cfg is contained in a
memdisk image. So I made
folders boot/grub2 in my work folder and add a new grub.cfg and some
modules(such as
memdisk.mod cpio.mod ...) into the boot/grub2, then tar boot/grub2 to
memdisk.tar(according
to the website tar can be used to build a memdisk image).
*Problems:*
1: I don't know wether grub2 can found my grub.cfg ,if I set "
--prefix='/boot/grub2' " ?
On the coreboot website,a sample is --prefix='(ata0)/boot/grub2'. I
think the ata0 is hard disk.
but I use the memdisk image, what should I do ?
2: I want my grub.cfg in memdisk to load the grub.cfg from my hard disk.
Because I have install the
ubuntu11.04 on my hard disk, a grub.cfg file should be in the
/boot/grub. So my grub.cfg just like
this:
search -f -s /boot/grub/grub.cfg
configfile /boot/grub/grub.cfg
Is this practicable?
3: I want the gurb can boot into the grub-shell, how to ?
BRs,
Rock.C
[-- Attachment #2: Type: text/html, Size: 2884 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: About grub.cfg——Building coreboot with grub2 payload
2011-05-31 7:20 About grub.cfg――Building coreboot with grub2 payload Rock Cui
@ 2011-06-01 13:30 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 0 replies; 3+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-06-01 13:30 UTC (permalink / raw)
To: grub-devel
[-- Attachment #1: Type: text/plain, Size: 2170 bytes --]
On 31.05.2011 03:20, Rock Cui wrote:
> I am working hard at building coreboot with grub2 payload.
I thought before using coreboot you had to learn bascs of computng as
e.g. not to send HTML messages.
> Now I can build a grub2 payload as follow:
> 1: Download the lastest grub2 source code.
> 2: ./autogen.sh
> ./configure --with-platform=coreboot
> make
> 3: Use grub-mkimage to generate a "payload.elf", detail:
> ./grub-mkimage -d . -O i386-coreboot -o ../coreboot-v4/payload.elf
> --prefix='/boot/grub2'
> memdisk cpio -m ../memdisk.tar
it's -d grub-core and you need "tar" module, not "cpio" and it's
--prefix=(memdisk)/boot/grub
>
> Accoding the coreboot website(http://www.coreboot.org/Talk:GRUB2),
> memdisk is a virtual disk
> in grub image and it is suggested that grub.cfg is contained in a
> memdisk image. So I made
> folders boot/grub2 in my work folder and add a new grub.cfg and
> some modules(such as
> memdisk.mod cpio.mod ...) into the boot/grub2, then tar boot/grub2
> to memdisk.tar(according
> to the website tar can be used to build a memdisk image).
>
> *Problems:*
> 1: I don't know wether grub2 can found my grub.cfg ,if I set "
> --prefix='/boot/grub2' " ?
> On the coreboot website,a sample is
> --prefix='(ata0)/boot/grub2'. I think the ata0 is hard disk.
> but I use the memdisk image, what should I do ?
>
> 2: I want my grub.cfg in memdisk to load the grub.cfg from my hard
> disk. Because I have install the
> ubuntu11.04 on my hard disk, a grub.cfg file should be in the
> /boot/grub. So my grub.cfg just like
> this:
> search -f -s /boot/grub/grub.cfg
> configfile /boot/grub/grub.cfg
>
> Is this practicable?
>
> 3: I want the gurb can boot into the grub-shell, how to ?
>
Just put no grub.cfg for this.
> BRs,
>
> Rock.C
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* About grub.cfg――Building coreboot with grub2 payload
@ 2011-05-31 7:21 Cui Lei
0 siblings, 0 replies; 3+ messages in thread
From: Cui Lei @ 2011-05-31 7:21 UTC (permalink / raw)
To: help-grub, grub-devel
[-- Attachment #1: Type: text/plain, Size: 1415 bytes --]
I am working hard at building coreboot with grub2 payload. Now I can
build a grub2 payload as follow:
1: Download the lastest grub2 source code.
2: ./autogen.sh
./configure --with-platform=coreboot
make
3: Use grub-mkimage to generate a "payload.elf", detail:
./grub-mkimage -d . -O i386-coreboot -o ../coreboot-v4/payload.elf
--prefix='/boot/grub2'
memdisk cpio -m ../memdisk.tar
Accoding the coreboot website(http://www.coreboot.org/Talk:GRUB2),
memdisk is a virtual disk
in grub image and it is suggested that grub.cfg is contained in a
memdisk image. So I made
folders boot/grub2 in my work folder and add a new grub.cfg and some
modules(such as
memdisk.mod cpio.mod ...) into the boot/grub2, then tar boot/grub2 to
memdisk.tar(according
to the website tar can be used to build a memdisk image).
*Problems:*
1: I don't know wether grub2 can found my grub.cfg ,if I set "
--prefix='/boot/grub2' " ?
On the coreboot website,a sample is --prefix='(ata0)/boot/grub2'. I
think the ata0 is hard disk.
but I use the memdisk image, what should I do ?
2: I want my grub.cfg in memdisk to load the grub.cfg from my hard disk.
Because I have install the
ubuntu11.04 on my hard disk, a grub.cfg file should be in the
/boot/grub. So my grub.cfg just like
this:
search -f -s /boot/grub/grub.cfg
configfile /boot/grub/grub.cfg
Is this practicable?
3: I want the gurb can boot into the grub-shell, how to ?
BRs,
Rock.C
[-- Attachment #2: Type: text/html, Size: 2884 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-01 13:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-31 7:20 About grub.cfg――Building coreboot with grub2 payload Rock Cui
2011-06-01 13:30 ` About grub.cfg——Building " Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-31 7:21 About grub.cfg――Building " Cui Lei
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.