From: "Gérald Kerma" <geraker@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Debugging why my kernel won't start
Date: Mon, 16 Aug 2010 10:34:12 +0200 [thread overview]
Message-ID: <4C68F804.8030809@gmail.com> (raw)
In-Reply-To: <4C68E7C0.1040801@dawes.za.net>
Dear Rogan,
I've you set the uboot env machid to the correct value ?
setenv machid <HexValue>
just replace HexValue with the correct MACH_TYPE.
You must then see something like :
Using machid 0xa76 from environment
after kernel loaded by uboot.
Best regards,
Le 16/08/2010 09:24, Rogan Dawes a ?crit :
> Hi folks,
>
> I'm trying to get mainline u-boot working on my DNS323 (Orion5x based).
> Until I am confident in the config, I'm using a chainloaded approach,
> wrapping my featureful u-boot in an image file:
>
> $ mkimage -A arm -O u-boot -T kernel -C none -a 0x3000000 -e 0x3000000
> -n "UBoot dns323" -d u-boot.bin uImage.bin
>
> I am trying to boot the default kernel that is already flashed into the
> device first. The first problem is that the DNS323 uses an incorrect
> mach-type value of 526, while the registered value is 1542. See
> <http://wiki.dns323.info/software:kernel>). I have modified
> arch/arm/include/asm/mach-types.h to set MACH_TYPE_DNS323 to the
> "correct" Dlink value, which should match what the default kernel is
> expecting.
>
> Unfortunately, all I get is:
>
> 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.
>
> That appears to be this code from cmd_bootm:
>
> case IH_COMP_NONE:
> if (load == blob_start) {
> printf (" XIP %s ... ", type_name);
> } else {
> printf (" Loading %s ... ", type_name);
> memmove_wd ((void *)load, (void *)image_start,
> image_len, CHUNKSZ);
> }
> *load_end = load + image_len;
> puts("OK\n");
> break;
>
> So, the memmove_wd never completes, it seems.
>
> I added a debug statement at the top of memmove_wd, and got:
>
> Moving memory from ff820040 to 00008000
>
> Is that because the uImage header is 64 bytes?
>
> Also, the following suggests that there may be something wrong with the
> addresses that I am using:
>
> DNS323B1> bootm FF820000 FF9A0000
> ## 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 init Ramdisk from Legacy Image at ff9a0000 ...
> Image Name: Ramdisk
> Image Type: ARM Linux RAMDisk Image (gzip compressed)
> Data Size: 5240600 Bytes = 5 MiB
> Load Address: 00800000
> Entry Point: 00800000
> Verifying Checksum ... Bad Data CRC
> Ramdisk image is corrupt or invalid
> DNS323B1>
>
> My chainloaded u-boot is configured in an image to load at 0x3000000,
> and stay there (no relocation), if I have understood these parameters
> correctly:
>
> -a 0x3000000 -e 0x3000000
>
> Can anyone see what I am doing wrong?
>
> Many thanks!
>
> Rogan
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
--
G?rald
next prev parent reply other threads:[~2010-08-16 8:34 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 [this message]
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
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=4C68F804.8030809@gmail.com \
--to=geraker@gmail.com \
--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