From: Magnus Lilja Date: Wed, 29 Apr 2009 19:52:12 +0200 Subject: [U-Boot] U-boot -printk kernel crash dump using md on PDK In-Reply-To: <528f13590904290948g23609a6et634913c2542fabaf@mail.gmail.com> References: <528f13590904262208s66b17bdekac218fba7994d177@mail.gmail.com> <528f13590904280947j3e3fda0bm91376ec03efdc385@mail.gmail.com> <59b21cf20904281003l58ed72d5ub222e6cc13508a7c@mail.gmail.com> <528f13590904281018k7d1d7c41oef711c3d39648898@mail.gmail.com> <59b21cf20904281031y1a81448dw2e750d335473d183@mail.gmail.com> <528f13590904281102k3a90e220n865dba306ee9fb@mail.gmail.com> <59b21cf20904281325x77290c67kf701ffee717e21e3@mail.gmail.com> <528f13590904281403g330e29a0r39278a99575fe064@mail.gmail.com> <59b21cf20904282312m4b5e5442k26d67f42c3fe433d@mail.gmail.com> <528f13590904290948g23609a6et634913c2542fabaf@mail.gmail.com> Message-ID: <59b21cf20904291052p4ec69d38g3b3414a9435ea48d@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > At this point, it should be showing up the processor info. ?I am using > a custom board with a different flash part. Samsung(KR series), and i > guess it is part of nand_id table as i have used that to get my other > version (patches form internal fresclae git) up and running. But i > believe the overall flash detection ?happens automatically once you > have the id in place. Correct me if i am wrong. A custom board with different flash and to me it's very confusing which patches/version of u-boot you're and referring to in different mails. The mainline u-boot + my patches from early April does not contain any driver for the i.MX31 NAND flash controller so that can't autodetect any flash part at all. > Are there any specific files to look into from here. Follow the startup sequence in lib_arm/board.c:start_armboot and place printf at strategic locations (unless you have a debugger which you can single step in). > Another thing i > noticed ?is that the config file in my build was somehow defining > CONFIG_SKIP_LOWLEVEL_INIT and CONFIG_SKIP_RELOCATE_UBOOT which should > not be the case. I put a #warning to identify that. What could be > wrong? > > //#if defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL) > //#warning "defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)" > //#define CONFIG_SKIP_LOWLEVEL_INIT > //#define CONFIG_SKIP_RELOCATE_UBOOT > //#endif CONFIG_NAND_SPL is defined in nand_spl/board/freescale/mx31pdk/Makefile when it builds the second phase loader. /Magnus