Skip to contentSkip to conversation

Booting kernel problem !

DISCUSSION Cuong Dang Phu 2 participants 2 messages Oct 13, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

Hi,

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,

Best regards

#1 lore raw
Quoted 29 lines · Cuong Dang Phu

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");
}
Quoted 5 lines

???

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.