Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Problem on starting uClinux on LPC2292...

2006-02-26 by Bertrik Sikken

Branko Karaklajic wrote:
> Hello everyone,
> 
> this is REPOST because of wrong subject on earlier message. I didn't
> want to hijack tread... sorry
> 
> ---
> 
> I successfully booted uClinux on LPC2292 with external 4MB flash and
> 4MB RAM!
> 
> But I started kernel only when I load image and romfs with JTAG to RAM
> and then start it from that address.
> 
> Now I must wrote bootloader. I have functions for initialization of
> external memory interfaces, loading images from flash to ram, and that
> is OK, but when I want to JUMP to start address of kernel... board
> reboots... This is part for jumping to kernel...
> 
> ---CODE---
> void kernel_jump()
> {
>      void (*kernelstart)(void);
> 
>      //KERNEL_START=0x81008000;
> 
>      kernelstart = (void (*)(void))KERNEL_START;
>      (*kernelstart)();
>     
> }
> -END CODE-
> 
> Anyone have idea what is wrong, or some code sample to jump to start
> of kernel...

I think it's not needed to dereference kernelstart.
Try invoking kernelstart simply as follows:
kernelstart();

Can you follow where it is going when doing this call with the
JTAG debugger?

Regards,
Bertrik

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.