linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Debug kernel ELF using SDS single-step debugger
@ 2002-03-13 21:48 Leiying Du
  2002-03-13 22:22 ` Scott Anderson
  2002-03-13 22:23 ` Dan Malek
  0 siblings, 2 replies; 3+ messages in thread
From: Leiying Du @ 2002-03-13 21:48 UTC (permalink / raw)
  To: linuxppc-embedded


When I run the kernel ELF, I always get this error message "Couldn't find
4096 bytes at 4096 alignment". It's printed out in  __initfunc(void *
find_mem_piece(unsigned size, unsigned align)).   ( The kernel runs Ok from
the flash memory.) Does anyone know the reason? Should I initialize the MMU
with the debugger? Thanks.

Leiying


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Debug kernel ELF using SDS single-step debugger
  2002-03-13 21:48 Debug kernel ELF using SDS single-step debugger Leiying Du
@ 2002-03-13 22:22 ` Scott Anderson
  2002-03-13 22:23 ` Dan Malek
  1 sibling, 0 replies; 3+ messages in thread
From: Scott Anderson @ 2002-03-13 22:22 UTC (permalink / raw)
  To: Leiying Du; +Cc: linuxppc-embedded


Leiying Du wrote:
>
> When I run the kernel ELF, I always get this error message "Couldn't find
> 4096 bytes at 4096 alignment". It's printed out in  __initfunc(void *
> find_mem_piece(unsigned size, unsigned align)).   ( The kernel runs Ok from
> the flash memory.) Does anyone know the reason? Should I initialize the MMU
> with the debugger? Thanks.

My guess is that you haven't setup a board info struct so the
bi_memsize is uninitialized.  This can cause the system to think that
no memory is available so anything that tries to get memory fails.

    Scott Anderson
    scott_anderson@mvista.com   MontaVista Software Inc.
    (408)328-9214               1237 East Arques Ave.
    http://www.mvista.com       Sunnyvale, CA  94085

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Debug kernel ELF using SDS single-step debugger
  2002-03-13 21:48 Debug kernel ELF using SDS single-step debugger Leiying Du
  2002-03-13 22:22 ` Scott Anderson
@ 2002-03-13 22:23 ` Dan Malek
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Malek @ 2002-03-13 22:23 UTC (permalink / raw)
  To: Leiying Du; +Cc: linuxppc-embedded


Leiying Du wrote:

> When I run the kernel ELF, I always get this error message "Couldn't find
> 4096 bytes at 4096 alignment".

Well, you can't run the kernel ELF image (vmlinux) directly.  This error
is because you are not telling the kernel information it needs to know
from start up parameters.  These are provided by some form of bootloader.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-13 22:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-13 21:48 Debug kernel ELF using SDS single-step debugger Leiying Du
2002-03-13 22:22 ` Scott Anderson
2002-03-13 22:23 ` Dan Malek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).