public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] u-boot crashing while searching PCI device
@ 2006-07-11  1:29 robinpv
  2006-07-11  6:38 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: robinpv @ 2006-07-11  1:29 UTC (permalink / raw)
  To: u-boot

Hi,
I have a MPC5200 based board, with PCI 2250 PCI-PCI bridge and
2 RTL8110S ethernet controller on the PCI Bridge. I have set the 
CONFIG_PCI_PNP option.
Bus  Dev VID    DID    
00    12     104C AC23   Bridge
01    02     10EC   8169   Ethernet Chip
01    03     10EC   8169   Ethernet Chip
u-boot is  able to detect the Bridge controller. But when it searching 
for the ethernet devices
before the device and function number for the ethernet chip is reached 
the u-boot is crashing.
It is crashing when it trying to read the header type [ 
pci_hose_scan_bus() in pci.c ]
of the device which is not present. Instead of getting data as 0xFF, 
u-boot is crashing.

I tried the same in linux, The bridge and the ethernet device is 
detected and mem,mmio and io
regions are allocated for the ethernet. But when i try to access 
ethernet registers, all the values
are 0xFF.
I checked the values of the PCI Bridge registers in u-boot and linux. 
All the registers are same
but the memory and io base , limit are differnet. I guess that should 
not the problem.
Can some point out why the u-boot is crashing when searching device??

Thanks in advance,
Robin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] u-boot crashing while searching PCI device
  2006-07-11  1:29 [U-Boot-Users] u-boot crashing while searching PCI device robinpv
@ 2006-07-11  6:38 ` Wolfgang Denk
  2006-07-11  6:57   ` robinpv
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2006-07-11  6:38 UTC (permalink / raw)
  To: u-boot

In message <44B2FF0F.4080507@aiware.co.jp> you wrote:
>
> u-boot is  able to detect the Bridge controller. But when it searching 
> for the ethernet devices
> before the device and function number for the ethernet chip is reached 
> the u-boot is crashing.

Which exact version of U-Boot (git commit ID?) is this?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Without facts, the decision cannot be made logically. You  must  rely
on your human intuition.
	-- Spock, "Assignment: Earth", stardate unknown

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] u-boot crashing while searching PCI device
  2006-07-11  6:38 ` Wolfgang Denk
@ 2006-07-11  6:57   ` robinpv
  2006-07-11  7:08     ` Wolfgang Denk
  2006-07-13  2:34     ` robinpv
  0 siblings, 2 replies; 5+ messages in thread
From: robinpv @ 2006-07-11  6:57 UTC (permalink / raw)
  To: u-boot


I am using the u-boot 1.1.4  from the below link.
http://prdownloads.sourceforge.net/u-boot/u-boot-1.1.4.tar.bz2
I don't have the commit ID .

Regards
Robin

Wolfgang Denk wrote:

>In message <44B2FF0F.4080507@aiware.co.jp> you wrote:
>  
>
>>u-boot is  able to detect the Bridge controller. But when it searching 
>>for the ethernet devices
>>before the device and function number for the ethernet chip is reached 
>>the u-boot is crashing.
>>    
>>
>
>Which exact version of U-Boot (git commit ID?) is this?
>
>Best regards,
>
>Wolfgang Denk
>
>  
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] u-boot crashing while searching PCI device
  2006-07-11  6:57   ` robinpv
@ 2006-07-11  7:08     ` Wolfgang Denk
  2006-07-13  2:34     ` robinpv
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2006-07-11  7:08 UTC (permalink / raw)
  To: u-boot

In message <44B34BF0.9010801@aiware.co.jp> you wrote:
> 
> I am using the u-boot 1.1.4  from the below link.
> http://prdownloads.sourceforge.net/u-boot/u-boot-1.1.4.tar.bz2

Try using the current version (top of tree in git) instead.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If I don't document something, it's usually either for a good reason,
or a bad reason.  In this case it's a good reason.  :-)
                 - Larry Wall in <1992Jan17.005405.16806@netlabs.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] u-boot crashing while searching PCI device
  2006-07-11  6:57   ` robinpv
  2006-07-11  7:08     ` Wolfgang Denk
@ 2006-07-13  2:34     ` robinpv
  1 sibling, 0 replies; 5+ messages in thread
From: robinpv @ 2006-07-13  2:34 UTC (permalink / raw)
  To: u-boot

I tried the latest version of the U-Boot 1.1.4-dirty downloaded couple 
of days back,
In this version any of the devices on the bus 0 is not detected.
In the u-boot 1.1.4 version that i was using earlier i am able to detect 
the devices and the pci bridge.

Regards,
Robin


robinpv wrote:

>
> I am using the u-boot 1.1.4  from the below link.
> http://prdownloads.sourceforge.net/u-boot/u-boot-1.1.4.tar.bz2
> I don't have the commit ID .
>
> Regards
> Robin
>
> Wolfgang Denk wrote:
>
>> In message <44B2FF0F.4080507@aiware.co.jp> you wrote:
>>  
>>
>>> u-boot is  able to detect the Bridge controller. But when it 
>>> searching for the ethernet devices
>>> before the device and function number for the ethernet chip is 
>>> reached the u-boot is crashing.
>>>   
>>
>>
>> Which exact version of U-Boot (git commit ID?) is this?
>>
>> Best regards,
>>
>> Wolfgang Denk
>>
>>  
>>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-07-13  2:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-11  1:29 [U-Boot-Users] u-boot crashing while searching PCI device robinpv
2006-07-11  6:38 ` Wolfgang Denk
2006-07-11  6:57   ` robinpv
2006-07-11  7:08     ` Wolfgang Denk
2006-07-13  2:34     ` robinpv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox