STK5200 pci_enable_device problem

Mustafa Cayır mustafa.cayir at bte.mam.gov.tr
Fri Sep 14 21:38:16 EST 2007


Hi,

i get the latest kernel sources and u-boot sources directly 
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.

=> 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 = 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 = 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 =  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.
                                                                                    




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

Hi Mustafa,

> Hello Oliver,
> 
> 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?
> 
> Thanks.

You should get the latest kernel sources and u-boot sources directly 
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 
a 66 MHz PCI-card, then undefine CFG_PCICLK_EQUALS_IPBCLK_DIV2 in the 
u-boot configuration to get a 33 MHz PCI bus.
Build u-boot and flash it to the module. Then install the dtc compiler 
from the git archive (git://www.jdl.com/software/dtc.git). Do NOT use 
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. 
"tftp 200000 mykernel" and "tftp 400000 mydevicetree.dtb".
Don't forget to change the serial console output. On the 2.4 kernel the 
internal mpc5200 uarts had the name ttyS0/ttyS1/ttyS2. On the 2.6 they 
are called ttyPSC0 up to ttyPSC2. So type in u-boot
"set addcons 'setenv bootargs ${bootargs} console=ttyPSC0,${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 
kernel and it runs fine. I had no luck with the 2.4 kernel as it failed 
to give the card an interrupt.

Bye,

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


More information about the Linuxppc-embedded mailing list