linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: Bob Beck <beck@assurtech.com>
Cc: mgroeger@sysgo.com, linuxppc-embedded@lists.linuxppc.org
Subject: Re: ADS860 - unable to load kernel- Bad magic number
Date: Fri, 27 Feb 2004 16:05:22 -0500	[thread overview]
Message-ID: <403FB112.3060101@embeddededge.com> (raw)
In-Reply-To: 1077845555.4625.15.camel@budweiser


Bob Beck wrote:

> Does this mean I should put zImage.embedded into 1 place in memory,
> vmlinux.gz into a different place in memory and jump to the start of
> zImage.embedded ?

No.  zImage.embedded contains everything.

objcopy -O binary zImage.embedded zImage.bin
load zImage.bin at a high address like 4MB or above.
Jump to the first location.

You will have to update some of the files in arch/ppc/boot/simple
to create a configuration descriptor for your board.  There are
plenty of examples to copy.

> Currently, we are not using U-Boot. We load the binaries into RAM
> using a hand rolled program and jump to 0x10000.

That's guaranteed not to work.  Something has to initialize the
environment before the Linux kernel starts running.  This is
accomplished by the boot roms (u-boot is good for this), or the
bootloader wrappers in the arch/ppc/boot directories.


	-- Dan


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

  reply	other threads:[~2004-02-27 21:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Iq959772845498.03218@webmail1.inner-21cn.com>
2004-02-26 17:24 ` ADS860 - unable to load kernel- Bad magic number Bob Beck
2004-02-27 16:32   ` Marius Groeger
2004-02-26 22:22     ` Bob Beck
2004-02-27 17:29       ` Marius Groeger
2004-02-26 22:38         ` Bob Beck
2004-02-27 19:32           ` Dan Malek
2004-02-27  1:32             ` Bob Beck
2004-02-27 21:05               ` Dan Malek [this message]
2004-03-01 22:58                 ` Booting Linux on a Custom PPC Board Bob Beck
2004-03-02 23:51                   ` Wolfgang Denk
2004-03-02 17:45                     ` Bob Beck
2004-02-27  4:34 ADS860 - unable to load kernel- Bad magic number m.venkatraj
2004-02-27  4:45 ` John Zhou
2004-02-27  8:07 ` song sam
  -- strict thread matches above, loose matches on Subject: below --
2004-02-27  8:27 Demke, Torsten
2004-02-27  9:14 m.venkatraj

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=403FB112.3060101@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=beck@assurtech.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=mgroeger@sysgo.com \
    /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;
as well as URLs for NNTP newsgroup(s).