Dear Li¹,
welcome to coreboot. If I am not mistaken you are already active in the SeaBIOS project.
Am Donnerstag, den 25.04.2013, 11:59 +0800 schrieb li guang:
do we have plan to add loongson CPU or MIPS ARCH support?
There is no plan that I know of.
It seems no person from loongson contribute to this, and can I try to make some efforts on this topic?
I guess people contributing stuff are always welcome. Though I have no experience with loongson and MIPS, so I cannot comment how feasible this is.
Thanks,
Paul
¹ Is that your first name?
PS: You should probably subscribe to the coreboot list, so your message are not delivered with a delay.
在 2013-04-26五的 00:26 +0200,Paul Menzel写道:
Dear Li¹,
welcome to coreboot. If I am not mistaken you are already active in the SeaBIOS project.
Yes :-)
Am Donnerstag, den 25.04.2013, 11:59 +0800 schrieb li guang:
do we have plan to add loongson CPU or MIPS ARCH support?
There is no plan that I know of.
It seems no person from loongson contribute to this, and can I try to make some efforts on this topic?
I guess people contributing stuff are always welcome. Though I have no experience with loongson and MIPS, so I cannot comment how feasible this is.
OK. So, firstly, I will try to add loongson 2E support.
¹ Is that your first name?
That's my last name. :-)
PS: You should probably subscribe to the coreboot list, so your message are not delivered with a delay.
Thanks!
On Thu, Apr 25, 2013 at 5:13 PM, li guang lig.fnst@cn.fujitsu.com wrote:
Am Donnerstag, den 25.04.2013, 11:59 +0800 schrieb li guang:
do we have plan to add loongson CPU or MIPS ARCH support?
There is no plan that I know of.
It seems no person from loongson contribute to this, and can I try to make some efforts on this topic?
I guess people contributing stuff are always welcome. Though I have no experience with loongson and MIPS, so I cannot comment how feasible this is.
OK. So, firstly, I will try to add loongson 2E support.
Great! As you may be aware, we have recently added ARMv7 support which you might want to use as an example. The architecture code is in src/arch/armv7, the CPU code is in src/cpu/samsung/{exynos5250,exynos5-common}, and the first ARM motherboard target is in src/mainboard/google/snow.
The ARM stuff is still under active development, and we are still making changes to code that was imported from another codebase (u-boot). But overall it works and we are able to load a payload and boot Linux.
do we have plan to add loongson CPU or MIPS ARCH support?
Loongson platforms are very different from any x86 boards. I believe that coreboot in this case would get more in the way than help. I ported GRUB to be firmware on Yeloong 2F and Fuloong 2F. Everything coreboot does on x86 including video init holds under 1000 lines of assembly code for yeeloong. See fwstart.S in GRUB tree. What is your goal? Can we perhaps adapt GRUB to your needs?
There is no plan that I know of.
It seems no person from loongson contribute to this, and can I try to make some efforts on this topic?
I guess people contributing stuff are always welcome. Though I have no experience with loongson and MIPS, so I cannot comment how feasible this is.
Thanks,
Paul
¹ Is that your first name?
PS: You should probably subscribe to the coreboot list, so your message are not delivered with a delay.
I'll look at that code.
ron
在 2013-04-26五的 22:08 +0200,Vladimir 'φ-coder/phcoder' Serbinenko写 道:
do we have plan to add loongson CPU or MIPS ARCH support?
Loongson platforms are very different from any x86 boards. I believe that coreboot in this case would get more in the way than help. I ported GRUB to be firmware on Yeloong 2F and Fuloong 2F. Everything coreboot does on x86 including video init holds under 1000 lines of assembly code for yeeloong. See fwstart.S in GRUB tree. What is your goal? Can we perhaps adapt GRUB to your needs?
First step is to boot a platform based on loongson 2E, so I have to at least port CPU start up code, bonito and vt82c686(seems done in coreboot) init code.
I'm not so familiar with GRUB code, I'll take a look at fwstart.S to find some helpful info, Thanks!
There is no plan that I know of.
It seems no person from loongson contribute to this, and can I try to make some efforts on this topic?
I guess people contributing stuff are always welcome. Though I have no experience with loongson and MIPS, so I cannot comment how feasible this is.
Thanks,
Paul
¹ Is that your first name?
PS: You should probably subscribe to the coreboot list, so your message are not delivered with a delay.
On 29.04.2013 03:18, li guang wrote:
在 2013-04-26五的 22:08 +0200,Vladimir 'φ-coder/phcoder' Serbinenko写 道:
do we have plan to add loongson CPU or MIPS ARCH support?
Loongson platforms are very different from any x86 boards. I believe that coreboot in this case would get more in the way than help. I ported GRUB to be firmware on Yeloong 2F and Fuloong 2F. Everything coreboot does on x86 including video init holds under 1000 lines of assembly code for yeeloong. See fwstart.S in GRUB tree. What is your goal? Can we perhaps adapt GRUB to your needs?
First step is to boot a platform based on loongson 2E, so I have to at least port CPU start up code, bonito and vt82c686(seems done in coreboot) init code.
But what is the bigger picture? Don't get me wrong, coreboot is great for x86 but for loongson its init framework is somewhat overkill and initing naively is more appropriate. What do you think to use as payload? You need something as GRUB for it since the chip is too small to hold a kernel anyway. You can already load GRUB from pmon on fuloong 2E so you can get an idea. I myself don't have a 2E system so as-firmware port was never done.
not everyone wants or needs grub. So that's part of the point.
ron
在 2013-04-29一的 03:58 +0200,Vladimir 'φ-coder/phcoder' Serbinenko写 道:
On 29.04.2013 03:18, li guang wrote:
在 2013-04-26五的 22:08 +0200,Vladimir 'φ-coder/phcoder' Serbinenko写 道:
do we have plan to add loongson CPU or MIPS ARCH support?
Loongson platforms are very different from any x86 boards. I believe that coreboot in this case would get more in the way than help. I ported GRUB to be firmware on Yeloong 2F and Fuloong 2F. Everything coreboot does on x86 including video init holds under 1000 lines of assembly code for yeeloong. See fwstart.S in GRUB tree. What is your goal? Can we perhaps adapt GRUB to your needs?
First step is to boot a platform based on loongson 2E, so I have to at least port CPU start up code, bonito and vt82c686(seems done in coreboot) init code.
But what is the bigger picture?
Sorry, No picture for me, I just start to consider this few days ago.
Don't get me wrong, coreboot is great for x86 but for loongson its init framework is somewhat overkill and initing naively is more appropriate. What do you think to use as payload? You need something as GRUB for it since the chip is too small to hold a kernel anyway.
Yes, I'm querying coreboot for the similar consideration. Is payload indispensable? can we directly load kernel image?
You can already load GRUB from pmon on fuloong 2E so you can get an idea. I myself don't have a 2E system so as-firmware port was never done.
li guang wrote:
Don't get me wrong, coreboot is great for x86 but for loongson its init framework is somewhat overkill and initing naively is more appropriate. What do you think to use as payload? You need something as GRUB for it since the chip is too small to hold a kernel anyway.
Yes, I'm querying coreboot for the similar consideration.
Know that Vladimir is the GRUB maintainer, so he might have some bias.
Is payload indispensable?
You do need some kind of payload, but..
can we directly load kernel image?
..it's possible to make a kernel the payload, if the boot flash is big enough. If not, the best solution depends on what software is required to load the kernel on the given hardware platform.
//Peter
Yes, I'm querying coreboot for the similar consideration. Is payload indispensable? can we directly load kernel image?
Not in the tiny ROM available on this machine (512KiB). And 512K is absolute maximum you can put on it (parallel flash)