Request for Help : Porting linux to custom x86 (AMD SC520) board
Hello Everyone,
I have been working on a private side project (i.e. no commercial interest at all, just a hobby) to get Linux running on a custom SC520 board. It currently runs a custom (proprietary) firmware, but I have enough information regarding the board to give Linux a good go. The board itself has 128MB RAM, 64MB CFI conformant Flash (Intel StrataFlash) and 512kB Boot Flash. It also has two Realtek 8100B Ethernet interfaces and two Compact Flash slots.
To date, I have been doing a lot of work getting a functionaly stable boot loader up and running. I ended up choosing U-Boot because it appeared to be the most open of all mature boot loaders. U-Boot had a very old and incomplete x86 / sc520 port which I have put a lot of work into maturing and stabalising. Nearly all of this work to date has been fed back into the U-Boot source (you can track my progress on their mailing list). I am now at the point where I feel confident that U-Boot can launch a Linux kernel.
The problem is - I don't know how to proceed. It looks like PPC and ARM have very strong embedded followings and there is a lot of information out there for people that want to get an embedded kernel running on these platforms. x86 seems to be a very poor cousin.
So far, I have cloned the 2.6.33 linux kernel Git repository and configured and compiled the kernel.
I think my first question is about how to get hardware information (RAM layout etc) to the Kernel. It looks like the initial U-Boot implementation setup a very basic BIOS which emulated part of the traditional PC BIOS. Surely there is a better way to do this. Is the Simple Firmware Interface an option?
Any help would be greatly appreciated.
Regards,
Graeme
Dear Graeme,
Am Mittwoch, den 27.01.2010, 09:52 +1100 schrieb Graeme Russ:
[…]
Quoted 3 lines
To date, I have been doing a lot of work getting a functionaly stable boot loader up and running. I ended up choosing U-Boot because it appeared to be the most open of all mature boot loaders.
coreboot also seems to support some boards with the AMD SC520 [1].
Quoted 7 lines
U-Boot had a
very old and incomplete x86 / sc520 port which I have put a lot of work into maturing and stabalising. Nearly all of this work to date has been fed back into the U-Boot source (you can track my progress on their mailing list). I am now at the point where I feel confident that U-Boot can launch a Linux kernel.
Quoted 7 lines
The problem is - I don't know how to proceed. It looks like PPC and ARM have very strong embedded followings and there is a lot of information out there for people that want to get an embedded kernel running on these platforms. x86 seems to be a very poor cousin.
So far, I have cloned the 2.6.33 linux kernel Git repository and configured and compiled the kernel.
Where does Linux stop if you try to boot it?
Quoted 7 lines
I think my first question is about how to get hardware information (RAM layout etc) to the Kernel. It looks like the initial U-Boot implementation setup a very basic BIOS which emulated part of the traditional PC BIOS. Surely there is a better way to do this. Is the Simple Firmware Interface an option?
Any help would be greatly appreciated.
Sorry I cannot help further. Should not the guys on the U-Boot list know more about how to get U-Boot and Linux running on a x86 system?
Thanks,
Paul
Quoted 5 lines · Paul Menzel
Dear Graeme,
Am Mittwoch, den 27.01.2010, 09:52 +1100 schrieb Graeme Russ:
Quoted 7 lines
[…]
Quoted 3 lines
To date, I have been doing a lot of work getting a functionaly stable boot loader up and running. I ended up choosing U-Boot because it appeared to be the most open of all mature boot loaders.
coreboot also seems to support some boards with the AMD SC520 [1].
Thanks, I will have a look but I think Coreboot is geared more towards a BIOS replacement for mainstream PC motherboards? I am working an a real embedded (custom) board.
Quoted 13 lines
Quoted 13 lines
U-Boot had a
very old and incomplete x86 / sc520 port which I have put a lot of work into maturing and stabalising. Nearly all of this work to date has been fed back into the U-Boot source (you can track my progress on their mailing list). I am now at the point where I feel confident that U-Boot can launch a Linux kernel.The problem is - I don't know how to proceed. It looks like PPC and ARM have very strong embedded followings and there is a lot of information out there for people that want to get an embedded kernel running on these platforms. x86 seems to be a very poor cousin.
Quoted 4 lines
Quoted 2 lines
So far, I have cloned the 2.6.33 linux kernel Git repository and configured and compiled the kernel.
Where does Linux stop if you try to boot it?
I haven't actually attempted to boot the kernel yet - mostly because I don't really know how. I have confirmed in U-Boot the ability to execute a stand-alone application loaded at a given address in memory (U-Boot has a 'Hello World' example that I have managed to get running). The problem is, U-Boot runs in x86 protected mode, so I would assume U-Boot needs to drop out of protected mode before starting up the kernel in order to allow the kernel to setup the descriptor tables as required.
Quoted 11 lines
Quoted 8 lines
I think my first question is about how to get hardware information (RAM layout etc) to the Kernel. It looks like the initial U-Boot implementation setup a very basic BIOS which emulated part of the traditional PC BIOS. Surely there is a better way to do this. Is the Simple Firmware Interface an option?
Any help would be greatly appreciated.
Sorry I cannot help further. Should not the guys on the U-Boot list know more about how to get U-Boot and Linux running on a x86 system?
I have asked this same question on the U-Boot mailing list. Unfortunately, U-Boot has more traditionally been geared towards PPC and ARM. The only person I know of that ever got U-Boot to boot an x86 kernel has not been active on the U-Boot mailing list for a number of years.
Quoted 9 lines
Thanks,
Paul
Thanks,
Graeme
Am Mittwoch, den 27.01.2010, 10:47 +1100 schrieb Graeme Russ:
Quoted 10 lines
Quoted 8 lines · Paul Menzel
Am Mittwoch, den 27.01.2010, 09:52 +1100 schrieb Graeme Russ:
[…]
Quoted 3 lines
To date, I have been doing a lot of work getting a functionaly stable boot loader up and running. I ended up choosing U-Boot because it appeared to be the most open of all mature boot loaders.
Quoted 5 lines
Quoted 1 line
coreboot also seems to support some boards with the AMD SC520 [1].
Thanks, I will have a look but I think Coreboot is geared more towards a BIOS replacement for mainstream PC motherboards? I am working an a real embedded (custom) board.
As far as I know that does not matter since it has to be ported to every chipset and board nonetheless. Coreboot just initializes the hardware and then gives control to a so cold payload. That can be the Linux kernel, Filo (a bootloader based on GRUB), SeaBIOS (which implements traditional BIOS calls(?)/interrupts), Memtest86+ and so on.
Maybe you can just try to build coreboot with some payload using Kconfig (just introduced) for a board with this chipset or which is similar to yours and try to flash it using Flashrom [2] for example. (Only if you are able to recover.) Start it and see how far it goes.
If you have question just ask on the mailing list or join the IRC channel where the developers hang around.
Quoted 35 lines
Quoted 12 lines
Quoted 12 lines
U-Boot had a
very old and incomplete x86 / sc520 port which I have put a lot of work into maturing and stabalising. Nearly all of this work to date has been fed back into the U-Boot source (you can track my progress on their mailing list). I am now at the point where I feel confident that U-Boot can launch a Linux kernel.The problem is - I don't know how to proceed. It looks like PPC and ARM have very strong embedded followings and there is a lot of information out there for people that want to get an embedded kernel running on these platforms. x86 seems to be a very poor cousin.
Quoted 4 lines
Quoted 2 lines
So far, I have cloned the 2.6.33 linux kernel Git repository and configured and compiled the kernel.
Where does Linux stop if you try to boot it?
I haven't actually attempted to boot the kernel yet - mostly because I don't really know how. I have confirmed in U-Boot the ability to execute a stand-alone application loaded at a given address in memory (U-Boot has a 'Hello World' example that I have managed to get running). The problem is, U-Boot runs in x86 protected mode, so I would assume U-Boot needs to drop out of protected mode before starting up the kernel in order to allow the kernel to setup the descriptor tables as required.
Quoted 9 lines
Quoted 8 lines
I think my first question is about how to get hardware information (RAM layout etc) to the Kernel. It looks like the initial U-Boot implementation setup a very basic BIOS which emulated part of the traditional PC BIOS. Surely there is a better way to do this. Is the Simple Firmware Interface an option?
Any help would be greatly appreciated.
Quoted 7 lines
Quoted 2 lines
Sorry I cannot help further. Should not the guys on the U-Boot list know more about how to get U-Boot and Linux running on a x86 system?
I have asked this same question on the U-Boot mailing list. Unfortunately, U-Boot has more traditionally been geared towards PPC and ARM. The only person I know of that ever got U-Boot to boot an x86 kernel has not been active on the U-Boot mailing list for a number of years.
Thank you for your detailed response. Unfortunately I do not know anything about this stuff and now I know a little more.
Thanks,
Paul
Quoted 1 line
Quoted 1 line