From: Rogan Dawes <rogan@dawes.za.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] Debugging why my kernel won't start
Date: Mon, 16 Aug 2010 23:08:42 +0200 [thread overview]
Message-ID: <4C69A8DA.8020201@dawes.za.net> (raw)
In-Reply-To: <20100816202902.1A4D81606A5@gemini.denx.de>
On 2010/08/16 10:29 PM, Wolfgang Denk wrote:
> Dear Rogan Dawes,
>
> In message<4C699C6E.2010706@dawes.za.net> you wrote:
>>
>>> DNS323B1> bootm FF820000
>>> ## 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
>>> Loading Kernel Image ...
>>>
>>> and it hangs there.
>
> Are you absolutely sure that you have RAM in your system at 0x8000?
> I doubt that your Load Address/Entry Point settings are correct.
Hi Wolfgang,
This is the default kernel that was shipped with the device, and so
those are the settings that worked with the original u-boot.
>>> Verifying Checksum ... Bad Data CRC
>>> Ramdisk image is corrupt or invalid
>
> Is there RAM at 0x00800000 ?
Again, this is from the default vendor ramdisk that ships with the device.
>> So, I checked what was at that address:
>
> Hm... instead of trying random things I recommend to apply common
> sense. Have a look at the memory map for your system - which memory
> types and register banks etc. are mapped to which address ragens?
> Where is your RAM and how big is it? I seriously doubt that you have
> RAM at these low addresses.
I looked at the CPU datasheet, which shows that:
DDR SDRAM CS0 is by default 256 MB at 0000.0000?0FFF.FFFF
There doesn't appear to be any code in the orion5x setup that sets this
to anything else:
$ git grep ORION5X_ATTR_DRAM_CS0
arch/arm/include/asm/arch-orion5x/cpu.h: ORION5X_ATTR_DRAM_CS0 =
0x0e,
$
The device has 64MB RAM in two banks.
>> The first 1kB was not particularly interesting (to me). But the next
>> chunk showed something interesting at 000df6e0:
>>
>> 000df6e0: ff ff ff ff 6d 64 2e 62 00 30 30 30 64 66 30 30
>> ....md.b.000df00
>> 000df6f0: 30 00 34 30 30 00 ff ff ff ff ff ff ff ff ff ff
>> 0.400...........
>>
>> i.e. the command I had just executed.
>>
>> So, it seems that for some reason, even though I tried to place my chain
>> loaded u-boot out of harms way at 0x3000000, for some reason, it was
>> still allocating memory at a lower address, precisely where the kernel
>> is supposed to be copied to for execution.
>>
>> Can anyone explain why this happens? Or what I can do to fix it?
>
> We don;t yuour hardware, we don't know your board configuration, we
> don't know your code...
Patch to follow this mail.
Thanks for your help!
Rogan
next prev parent reply other threads:[~2010-08-16 21:08 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 [this message]
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
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=4C69A8DA.8020201@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