From: Rogan Dawes Date: Wed, 18 Aug 2010 11:48:10 +0200 Subject: [U-Boot] Debugging why my kernel won't start In-Reply-To: <20100818055133.53E99157D71@gemini.denx.de> References: <4C68E7C0.1040801@dawes.za.net> <4C699C6E.2010706@dawes.za.net> <4C6A600B.5020809@free.fr> <4C6A62AC.6010206@dawes.za.net> <4C6A6741.7030002@free.fr> <4C6A703C.8080205@dawes.za.net> <4C6A75A4.9080506@dawes.za.net> <4C6AACEA.9060000@free.fr> <4C6AE955.1060708@dawes.za.net> <4C6AEC70.40801@dawes.za.net> <20100817212003.700DF157D71@gemini.denx.de> <4C6B051A.5050006@dawes.za.net> <20100817220447.919E5157D71@gemini.denx.de> <4C6B08F1.9000804@dawes.za.net> <20100818055133.53E99157D71@gemini.denx.de> Message-ID: <4C6BAC5A.6060206@dawes.za.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2010/08/18 7:51 AM, Wolfgang Denk wrote: > Dear Rogan Dawes, > > In message <4C6B08F1.9000804@dawes.za.net> you wrote: >> >> The ramdisk is located at ff9a0000 (in flash). Its image header >> relocates it to 00800000: > > Try to copy the ramdisk to RAM, and pass the Linux kernl an address in > RAM. > > Try it. > > Best regards, > > Wolfgang Denk > Hi Wolfgang, Thanks for the suggestion. It did make a slight difference in the boot logs. bootcmd uses the default (in flash) location for the ramdisk, while the second one has a copy of the ramdisk image at 1600000 (including the header). Both logs are using mainline u-boot, not the vendor one. < DNS323B1> run bootcmd > DNS323B1> bootm ff820000 1600000 < ## Loading init Ramdisk from Legacy Image@ff9a0000 ... > ## Loading init Ramdisk from Legacy Image at 01600000 ... < initrd (0xff9a0040 - 0xffe9f758) extends beyond physical memory - disabling initrd > checking if image is initramfs...it isn't (no cpio magic); looks like an initrd > Freeing initrd memory: 5117K > RAMDISK: Compressed image found at block 0 > invalid compressed format (err=1) So it seems that the ramdisk is getting corrupted somehow. And yet, it is fine using the vendor u-boot. It must be something that I am doing wrong. Rogan