public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Rogan Dawes <rogan@dawes.za.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] Debugging why my kernel won't start
Date: Wed, 18 Aug 2010 16:42:00 +0200	[thread overview]
Message-ID: <4C6BF138.20107@dawes.za.net> (raw)
In-Reply-To: <20100818105459.138A8157D71@gemini.denx.de>

On 2010/08/18 12:54 PM, Wolfgang Denk wrote:
> Dear Rogan Dawes,
> 
> In message <4C6BAC5A.6060206@dawes.za.net> you wrote:
>>
>> Thanks for the suggestion. It did make a slight difference in the boot
>> logs. bootcmd uses the default (in flash) location for the ramdisk,
> 
> Actually it's a pretty significant difference, as for the first time
> you actually see the kernel trying to access the ramdisk.

Good point! :-)

>>> 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.
> 
> Try copying the raw ramdisk image (i. e. without the U-Boot header) to
> RAM, and try that one, i. e. something like
> 
> 	=> cp.b ff9a0040 01600000 ...size...
> 	...
> 	=> bootm ff820000 1600000

Unfortunately, U-boot is expecting the second parameter to point to a
uImage-wrapped ramdisk, not just raw bytes:

DNS323B1> cp.b ff9a0040 1600000 4ff718
DNS323B1> bootm ff820000 1600000
## Booting kernel from Legacy Image at ff820000 ...
   Image Name:   Linux-2.6.12.6-arm1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1490204 Bytes = 1.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid
DNS323B1>

Why does it make a difference if it is in RAM vs in flash? I have 8MB of
flash located at ff800000, so that reaches all the way to 0xffffffff.
Surely that should be Ok? Besides, U-boot is supposed to copy the data
in the image to the specified destination address, isn't it?

Rogan

  reply	other threads:[~2010-08-18 14:42 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-16  7:24 [U-Boot] Debugging why my kernel won't start Rogan Dawes
2010-08-16  8:34 ` Gérald Kerma
2010-08-16  8:38   ` Rogan Dawes
2010-08-16 20:15 ` Rogan Dawes
2010-08-16 20:29   ` Wolfgang Denk
2010-08-16 21:08     ` Rogan Dawes
2010-08-16 21:11       ` [U-Boot] [PATCH] non-working dns323 config Rogan Dawes
2010-08-18 22:23         ` Wolfgang Denk
2010-08-19  5:25           ` Rogan Dawes
2010-08-19  5:35             ` Wolfgang Denk
2010-08-19  6:37               ` Rogan Dawes
2010-08-19  6:49                 ` Wolfgang Denk
2010-08-16 22:03       ` [U-Boot] Debugging why my kernel won't start Wolfgang Denk
2010-08-17  4:30         ` Rogan Dawes
2010-08-17 10:10   ` Albert ARIBAUD
2010-08-17 10:21     ` Rogan Dawes
2010-08-17 10:41       ` Albert ARIBAUD
2010-08-17 11:19         ` Rogan Dawes
2010-08-17 11:42           ` Rogan Dawes
2010-08-17 15:38             ` Albert ARIBAUD
2010-08-17 19:56               ` Rogan Dawes
2010-08-17 20:09                 ` Rogan Dawes
2010-08-17 21:20                   ` Wolfgang Denk
2010-08-17 21:54                     ` Rogan Dawes
2010-08-17 22:04                       ` Wolfgang Denk
2010-08-17 22:10                         ` Rogan Dawes
2010-08-18  5:51                           ` Wolfgang Denk
2010-08-18  9:48                             ` Rogan Dawes
2010-08-18 10:54                               ` Wolfgang Denk
2010-08-18 14:42                                 ` Rogan Dawes [this message]
2010-08-18 15:33                                   ` Wolfgang Denk
2010-08-18 16:32                                     ` Rogan Dawes
2010-08-18 17:00                                       ` Wolfgang Denk
2010-08-17 21:18                 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C6BF138.20107@dawes.za.net \
    --to=rogan@dawes.za.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox