[U-Boot-Users] EP8248 as a PCI card

Thanks, Yuli
Got the patch, u-boot 1.1.2 installed and running on my ep8248 board. In standalone mode.
When I try to use the EP8248 (with u-boot 1.1.2) as a PCI card in my PC (desktop), the PC doesn't even power up.
But when the same card, with PlanetCore bootloader (the bootloader that came with the card), is inserted in the same PCI slot, the PC powers on, Windows XP starts up and even detects the card as a "Other PCI bridge" device.
What change(s) do I have to make in the u-boot code to make it work as a PCI card in my PC?
I have already tried the following: #define CONFIG_PCI in include/configs/EP8248.h
Because of the above #define, I had to write a pci_init_board() function in board/ep8248/ep8248.c
This function simply creates a pci_controller 'hose' and calls pci_mpc8250_init(&hose);
With all this, now my PC boots up with the EP8248 + u-boot, but Windows can't detect the card.
How do I proceed? What changes should I make?
Waiting, Nishant
-----Original Message----- From: Yuli Barcohen yuli@arabellasw.com To: "Nishant Galange" nishant.subs@myrealbox.com Date: Wed, 29 Jun 2005 11:42:55 +0300 Subject: Re: where is the EP8248 patch?
Nishant Galange writes:
Nishant> Hi Yuli On 12 Dec 2004, You posted a patch for the Embedded Nishant> Planet EP8248 board. How do I download this patch?
From the GMANE archive which was mentioned many times on this list.
Nishant> Is it already included in u-boot 1.1.2?
No AFAIK. It's probably on Wolfgang's list.
Nishant> Once I have all the necessary source code (with the patch Nishant> incorporated), what command(s) do I give to compile u-boot Nishant> 1.1.2 for the EP8248 board?
Nishant> Will the following work:
Should be OK.
Nishant> $ export CROSS_COMPILE=ppc_82xx- Nishant> $ export PATH=[path_to_ELDK]:$PATH Nishant> $ make EP8248_config Nishant> $ make

Nishant Galange writes:
Nishant> Thanks, Yuli Got the patch, u-boot 1.1.2 installed and Nishant> running on my ep8248 board. In standalone mode.
It's the only mode which was tested.
Nishant> When I try to use the EP8248 (with u-boot 1.1.2) as a PCI Nishant> card in my PC (desktop), the PC doesn't even power up.
Nishant> But when the same card, with PlanetCore bootloader (the Nishant> bootloader that came with the card), is inserted in the Nishant> same PCI slot, the PC powers on, Windows XP starts up and Nishant> even detects the card as a "Other PCI bridge" device.
Nishant> What change(s) do I have to make in the u-boot code to make Nishant> it work as a PCI card in my PC?
Nishant> I have already tried the following: Nishant> #define CONFIG_PCI Nishant> in include/configs/EP8248.h
Nishant> Because of the above #define, I had to write a Nishant> pci_init_board() function in board/ep8248/ep8248.c
Nishant> This function simply creates a pci_controller 'hose' and Nishant> calls pci_mpc8250_init(&hose);
Nishant> With all this, now my PC boots up with the EP8248 + u-boot, Nishant> but Windows can't detect the card.
Nishant> How do I proceed? What changes should I make?
You have to initialise the on-chip PCI bridge to work in agent mode. I think that the function which you wrote initialises it to work as PCI host and it's not what you want. You have to read the board's manual (and the chip's manual) to find how to work in agent mode. I don't know if there is any support in U-Boot for agent mode.
participants (2)
-
Nishant Galange
-
Yuli Barcohen