From: sywang Date: Mon, 27 Sep 2010 16:03:06 +0800 Subject: [U-Boot] How to do pci_init in flash In-Reply-To: <20100927072727.7F925153651@gemini.denx.de> Message-ID: <20100927080309.0689628093@theia.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang, Thanks for your feedback. Because the CPU-hang issue when pci_init still puzzle me, I want to check if the issue is caused by relocate_code, in spite of the very probability. Do you have any suggestions about how to identify the root cause of PCI Init configuration hang? Thanks! Shuyou -----Original Message----- From: Wolfgang Denk [mailto:wd at denx.de] Sent: 2010?9?27? 15:27 To: sywang Cc: u-boot at lists.denx.de Subject: Re: [U-Boot] How to do pci_init in flash Dear "sywang", In message <20100927020635.0547228176@theia.denx.de> you wrote: > > I want to do pci configuration in the function 'board_init_f'. How to do > this? Why would you want to do that? Why cannot you wait until U-Boot has relocateditself to RAM so you have full access to all resources? > Could I call the function "pci_init" in the function 'board_init_f' or add > the function "pci_init" into the function array " init_sequence "? This might be difficult, as you still have a very limted runtime environment only, with just a minimal stack, without writable data, without valid BSS. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The more complex the mind, the greater the need for the simplicity of play. -- Kirk, "Shore Leave", stardate 3025.8