From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Mon, 04 Oct 2010 23:31:14 +0200 Subject: [U-Boot] ARM relocation, question to Heiko In-Reply-To: <201010041831.54272.sr@denx.de> References: <4CA49746.2050301@emk-elektronik.de> <4CA9E3C3.7080502@dawes.za.net> <4CA9F199.7010001@free.fr> <201010041831.54272.sr@denx.de> Message-ID: <4CAA47A2.501@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 04/10/2010 18:31, Stefan Roese a ?crit : > On Monday 04 October 2010 17:24:09 Albert ARIBAUD wrote: >>> Excellent work! Congratulations! >> >> Thanks, but I'd suggest to wait for congrats until ethernet works -- >> tough I've got a clue, I think; it may have to do with the core >> activating its caches and the driver doing DMA. :) > > Yes. Very likely a aching problem and not an relocation issue. With D-cache > enabled some IO drivers might have some problems. This will also be a problem > with for example USB support. ... and that is a new proof that assumption is the mother of all screw-ups. It was not a question of caching; it was a question of trashing the address of gd passed from board_init_f() through relocate_code() to board_init_r(), and all code before the marvell ethernet driver not relying on gd anought to break. Patches to follow right away as an RFC. Amicalement, -- Albert.