From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 27 Dec 2012 11:24:15 +0100 Subject: [U-Boot] [PATCH] mx53loco: Call PMIC related functions from board_late_init() In-Reply-To: References: <1356537020-31114-1-git-send-email-festevam@gmail.com> <50DC1E63.1000903@denx.de> Message-ID: <50DC21CF.70409@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 On 27/12/2012 11:14, Fabio Estevam wrote: > Hi Stefano, > > On Thu, Dec 27, 2012 at 8:09 AM, Stefano Babic wrote: > >> Hi Fabio, hi Robert, >> >> the new pmic framework calls malloc(), that the reason. It is then safe >> to call the init from board_late_init(). >> >> Tested-by: Stefano Babic >> >> Applied to u-boot-imx, thanks. >> >> gcc 4.6.4, it boots always here. > > Ok, great. > > When you enter commands in the U-boot prompt, does it work fine? Yes, it is. > With > the toolchains that myself and Robert used we are seeing resets. > > I would like to try the same gcc 4.6.4 toolchain you are using. Where > do you get it from? It comes from ELDK-5.2.1 > I am playing a bit, I do not see your problem. I admit I have no idea which dialog version is on my board. The only issue I can see is with MMC - I see with "fatls" any entry twice: MX53LOCO U-Boot > fatls mmc 0:2 1 cmdline 1 cmdline 283472 u-boot.bin 283472 u-boot.bin 284496 u-boot.imx 284496 u-boot.imx 4093544 uimage 4093544 uimage 160291 uinitrd 160291 uinitrd 349 boot.txt 349 boot.txt 421 boot.scr 421 boot.scr But this is surely another issue.... Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================