Skip to contentSkip to conversation

how to add a new platform support with GRUB2

DISCUSSION derek yuan 3 participants 4 messages Apr 14, 2015 – Apr 24, 2015

lore
Share & tools
lore

derek yuan

author
#0 lore raw

Hi, all:
I want to add Loongson3A+RS780E platform to grub, what i have to do? where to begin? More information about this platform:
CPU: loongson3A (mips64el)
NorthBridge: RS780E
SourthBridge: SB710

Right now, grub supported loongson2F+cs5536 platform, loongson2F also the mips64el arch.

Thank you so much!
Best regards!

Derek

#1 lore raw

В Tue, 14 Apr 2015 17:25:15 +0800
derek yuan <[email protected]> пишет:

Quoted 7 lines

Hi, all:
I want to add Loongson3A+RS780E platform to grub, what i have to do? where to begin? More information about this platform:
CPU: loongson3A (mips64el)
NorthBridge: RS780E
SourthBridge: SB710

Quoted 8 lines

Right now, grub supported loongson2F+cs5536 platform, loongson2F also the mips64el arch.

Thank you so much!
Best regards!

Derek

There are some comments indicating at least partial Loongson 3A support. The main question is whether you can determine platform at run time or not. If yes, just extend existing platform files. If not, it probably can be implemented by building platform specific module and selecting it at grub-mkimage/grub-install time.

Looks at loongson directories first

bor@opensuse:~/src/grub> find grub-core include -name loongson grub-core/boot/mips/loongson grub-core/kern/mips/loongson grub-core/commands/mips/loongson grub-core/lib/mips/loongson include/grub/mips/loongson

as well as grub-core/Makefile.core.def (for definitions how they all are put together) as well as util/mkimage.c (that actually generates grub image).

author
#2 lore raw

Thank you so much! Your advice is very helpful to me, I will have a try.

---- On Tue, 14 Apr 2015 18:49:13 +0800 Andrei Borzenkov&lt;[email protected]&gt; wrote ----

В Tue, 14 Apr 2015 17:25:15 +0800
derek yuan &lt;[email protected]&gt; пишет:

&gt; Hi, all:
&gt; I want to add Loongson3A+RS780E platform to grub, what i have to do? where to begin? &gt; More information about this platform:
&gt; CPU: loongson3A (mips64el)
&gt; NorthBridge: RS780E
&gt; SourthBridge: SB710
&gt;
&gt; Right now, grub supported loongson2F+cs5536 platform, loongson2F also the mips64el arch. &gt;
&gt; Thank you so much!
&gt; Best regards!
&gt;
&gt; Derek
&gt;
&gt;

There are some comments indicating at least partial Loongson 3A support. The main question is whether you can determine platform at run time or not. If yes, just extend existing platform files. If not, it probably can be implemented by building platform specific module and selecting it at grub-mkimage/grub-install time.

Looks at loongson directories first

bor@opensuse:~/src/grub&gt; find grub-core include -name loongson grub-core/boot/mips/loongson grub-core/kern/mips/loongson grub-core/commands/mips/loongson grub-core/lib/mips/loongson
include/grub/mips/loongson

as well as grub-core/Makefile.core.def (for definitions how they all are put together) as well as util/mkimage.c (that actually generates grub image).

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#3 lore raw
In reply to derek yuan
Quoted 11 lines · derek yuan

Hi, all:
I want to add Loongson3A+RS780E platform to grub, what i have to do?
where to begin?
More information about this platform:
CPU: loongson3A (mips64el)
NorthBridge: RS780E
SourthBridge: SB710

Right now, grub supported loongson2F+cs5536 platform, loongson2F
also the mips64el arch.

loongson 3A partially works in my prototype. It's mainly down to squashing some critical bugs before it can be called a support.

Quoted 12 lines

Thank you so much!
Best regards!

Derek

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel