Skip to contentSkip to conversation

EP8248 as a PCI card

U-Boot-Users Nishant Galange 2 participants 2 messages Jun 30, 2005

lore
Share & tools
lore
#0 lore raw

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 <[email protected]>
To: "Nishant Galange" <[email protected]>
Date: Wed, 29 Jun 2005 11:42:55 +0300
Subject: Re: where is the EP8248 patch?

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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?

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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.

Signature · 4 lines
========================================================================
 Yuli Barcohen       | Phone +972-9-765-1788 |  Software Project Leader
 yuli at arabellasw.com | Fax   +972-9-765-7494 | Arabella Software, Israel
========================================================================