linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* STK5200 pci_enable_device problem
@ 2007-08-23  5:42 Mustafa Cayır
  2007-08-23  7:24 ` Oliver Rutsch
  2007-08-26 21:08 ` Wolfgang Denk
  0 siblings, 2 replies; 18+ messages in thread
From: Mustafa Cayır @ 2007-08-23  5:42 UTC (permalink / raw)
  To: linuxppc-embedded

Hi all,

I am working on TQ STK52000 development board with TQM5200-AB cpu =
module. I am trying to use PCI bus and Local Plus Bus together. SM501, =
video chip is located on local plus bus and PLX9030 based pci device is =
on pci bus.

My pci driver is able to scan pci bus and find succesfully the pci =
device. After this point, pci_enable_device function returns following =
error:

PCI:  Device 00:18.0 not available because of resource collisions

Any help is appreciated.

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: STK5200 pci_enable_device problem
@ 2007-09-14 11:38 Mustafa Cayır
  2007-09-14 12:53 ` Oliver Rutsch
  0 siblings, 1 reply; 18+ messages in thread
From: Mustafa Cayır @ 2007-09-14 11:38 UTC (permalink / raw)
  To: Oliver Rutsch; +Cc: linuxppc-embedded

Hi,

i get the latest kernel sources and u-boot sources directly=20
from the git archives from www.denx.de.

My kernel version is Linux-2.6.23-rc5-gaa8ddd08
u-boot version is U-Boot 1.2.0-ge251e00d-dirty

i use dtc compiler with following command:
dtc -O dtb -o tqm5200.dtb -b 0 tqm5200.dts

TQM5200 doesn't boot and gives following error. Any help would be =
approciated.

Thanks a lot.

=3D> run net_nfs_fdt
Using FEC ETHERNET device
TFTP from server 10.18.2.83; our IP address is 10.18.5.44
Filename 'uImage'.
Load address: 0x200000
Loading: =
#################################################################
         ###################################
done
Bytes transferred =3D 1461683 (164db3 hex)
Using FEC ETHERNET device
TFTP from server 10.18.2.83; our IP address is 10.18.5.44
Filename 'tqm5200.dtb'.
Load address: 0x400000
Loading: #
done
Bytes transferred =3D 3507 (db3 hex)
## Booting image at 00200000 ...
   Image Name:   Linux-2.6.23-rc5-gaa8ddd08
   Created:      2007-09-14   6:44:52 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1461619 Bytes =3D  1.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
   Booting using the fdt at 0x400000
WARNING: could not create /chosen FDT_ERR_NOSPACE.
ERROR: /chosen node create failed - must RESET the board to recover.
                                                                         =
          =20




-----Original Message-----
From: Oliver Rutsch [mailto:orutsch@sympatec.com]=20
Sent: Friday, August 31, 2007 12:35 PM
To: Mustafa Cay=FDr
Subject: Re: STK5200 pci_enable_device problem

Hi Mustafa,

> Hello Oliver,
>=20
> My problems continue, could you summarize your steps to bring up the =
board?
> which u-boot version is used?
> how build tqm5200.dts file?
> did you test pci bus?
>=20
> Thanks.

You should get the latest kernel sources and u-boot sources directly=20
from the git archives from www.denx.de.
Only use the native git protocol, not the HTTP git protocol.
E.g. "git-clone git://www.denx.de/git/linux-2.6-denx linux-2.6-denx"
Build u-boot with the configuration for your board. If your card is NOT=20
a 66 MHz PCI-card, then undefine CFG_PCICLK_EQUALS_IPBCLK_DIV2 in the=20
u-boot configuration to get a 33 MHz PCI bus.
Build u-boot and flash it to the module. Then install the dtc compiler=20
from the git archive (git://www.jdl.com/software/dtc.git). Do NOT use=20
the tar archive on the web, it is out of date. Compile a dtb file out of =

the tqm5200.dts file you find in the kernel sources.
Build the kernel with tqm5200_defconfig.
Boot your module and load the kernel and the dtb file in u-boot. E.g.=20
"tftp 200000 mykernel" and "tftp 400000 mydevicetree.dtb".
Don't forget to change the serial console output. On the 2.4 kernel the=20
internal mpc5200 uarts had the name ttyS0/ttyS1/ttyS2. On the 2.6 they=20
are called ttyPSC0 up to ttyPSC2. So type in u-boot
"set addcons 'setenv bootargs ${bootargs} =
console=3DttyPSC0,${baudrate}'"
"save" (don't forget the single quotes in line above!).
Boot now with "bootm 200000 - 400000".
Now it should boot fine.
I've tested a Korenix Jetcard 1404 (Oxford 16mPCI954 chip) with this=20
kernel and it runs fine. I had no luck with the 2.4 kernel as it failed=20
to give the card an interrupt.

Bye,

--=20
Dipl. Ing. Oliver Rutsch
EMail: orutsch@sympatec.com =B7 Tel.:+49 5323 717514
Sympatec GmbH =B7 Am Pulverhaus 1 =B7 D-38678 Clausthal-Zellerfeld =B7 =
Germany
Geschaeftsfuehrer: Dr.-Ing. E.h. Stephan Roethele =B7 Handelsregister:=20
Amtsgericht Braunschweig, HRB 110809

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

end of thread, other threads:[~2007-09-14 12:54 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-23  5:42 STK5200 pci_enable_device problem Mustafa Cayır
2007-08-23  7:24 ` Oliver Rutsch
2007-08-26 21:10   ` Wolfgang Denk
2007-08-27  6:25     ` Oliver Rutsch
2007-08-27 18:58       ` Wolfgang Denk
2007-08-27 11:08   ` Mustafa Cayir
2007-08-27 19:14     ` Wolfgang Denk
2007-08-28  8:51       ` Mustafa Cayir
2007-08-29  6:02         ` Oliver Rutsch
2007-08-29  7:49           ` Wolfgang Denk
2007-08-29 12:52             ` Oliver Rutsch
2007-08-29 23:31               ` Wolfgang Denk
2007-08-30  9:19                 ` Oliver Rutsch
2007-08-31  5:38                   ` Mustafa Cayir
2007-09-01 23:23                   ` Wolfgang Denk
2007-08-26 21:08 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2007-09-14 11:38 Mustafa Cayır
2007-09-14 12:53 ` Oliver Rutsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).