public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: Booting kernel problem !
Date: Mon, 13 Oct 2008 13:13:47 +0000	[thread overview]
Message-ID: <20081013131347.GE10579@linux-sh.org> (raw)
In-Reply-To: <loom.20081013T035846-303@post.gmane.org>

On Mon, Oct 13, 2008 at 04:18:20AM +0000, Cuong Dang Phu wrote:
> I'm having a problem when booting Linux kernel on sh7727, this is what I did:
> 
> Kernel start booting with head.s:
> [/linux-2.6.22.11/arch/sh/boot/compressed/head.s]
> ???
> 	/* Set the initial pointer. */
> 	mov.l	init_stack_addr, r0
> 	mov.l	@r0, r15
> 	/* Decompress the kernel */
> 	mov.l	decompress_kernel_addr, r0
> 	jsr	@r0
> 	nop
> ???
> 
> And jump to ???decompress_kernel???:
> [/linux-2.6.22.11/arch/sh/boot/compressed/misc.c]
> ???
> void decompress_kernel(void)
> {
> 	output_data = 0;
> 	output_ptr = P2SEGADDR((unsigned long)&_text+PAGE_SIZE);
> 	free_mem_ptr = (unsigned long)&_end;
> 	free_mem_end_ptr = free_mem_ptr + HEAP_SIZE;
> 
> 	makecrc();
> 	puts("Uncompressing Linux... ");
> 	gunzip();
> 	puts("Ok, booting the kernel.\n");
> }
> ???
> 
> And it crash when execute ???makecrc();???
> I don???t why it crash here, could you give me you ideas, 
> 
It sounds like you may have to fix up your BOOT_LINK_OFFSET or some
related settings. makecrc() itself is harmless and only does some simple
computation for preparing a table, so it is likely that your initial
stack pointer is having issues.

      reply	other threads:[~2008-10-13 13:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-13  4:18 Booting kernel problem ! Cuong Dang Phu
2008-10-13 13:13 ` Paul Mundt [this message]

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=20081013131347.GE10579@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.org \
    /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