public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Daniel Engström" <daniel@omicron.se>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: The i386 patch
Date: Mon, 18 Nov 2002 11:31:39 +0100	[thread overview]
Message-ID: <20021118113139.E892@jupiter.omicron.se> (raw)
In-Reply-To: <20021118001541.9C39911767@denx.denx.de>; from wd@denx.de on mån, nov 18, 2002 at 01:15:36 +0100

Wolfgang,

On 2002.11.18 01:15 Wolfgang Denk wrote:
> Comments on specific parts of the patch:
> 
> common/cmd_bootm.c:
> 
>         x86 should _not_ need any special code here. Do you think  it
>         is  possible to add support for "standard" mkimage format and
>         get rid of your new #ifdef's?
The "standard" mkimage format IS supported, this code add support for Linux
images without the mkimage header as well.
If you do not need any of the features in the image header the header it 
slef is just
an extra source of problems, for example the load address is bogus for 
i386 I would like
to have an option to ignore it completly for Linux image and always load 
at a safe place.
This is currently what happens if you boot a kernel with out the image 
header.
Or better yet not load the kernel at all if the kernel resides in flash,
just give do_bootm_linux() a pointer to where the kernel is located.

Right now do_bootm() loads the kernel from flash and do_bootm_linux() 
moves it to the correct
location.

The fisrt part, setup should be loaded at 0x90000 (size may vary between 
2.5k and 32k), the rest of the kernel should be loaded at 0x10000 if it is 
a zImage or 0x100000 if it
is a bzImage.

0xa0000-0xfffff is ROM and memory mapped I/O area, so loading the entire 
thing at
0x90000 will fail as well.

  
> 	Added with minor modifications:
> 
> 	@@ -145,10 +163,11 @@
> 			SHOW_BOOT_PROGRESS (-2);
> 			return 1;
> 		}
> 	+       hdr->ih_hcrc = htonl(checksum);
> 		SHOW_BOOT_PROGRESS (3);
> 
> 	I don't understand why this could be needed; omitted.
OK, I saw that it was referenced below in the function, but it seems to be 
when
the ramdisk-image gets loaded, so that would be another header. 
> common/cmd_ide.c:
> 	+#ifdef __PPC__
> 	Are you sure this is PPC only?
No, I thought that ide was only used by ppc before, but I se now that IDE 
is used
by the ARM as well.
Should perhaps be #ifdef __BIG_ENDIAN ?

> 
> ppcboot/examples/syscall.S:
> 
> 	Are you sure there is only a "ret" needed?
Its a place holder, syscalls are not functional yet.
I think it will be a problem that printf is defined as a
syscall because it is a variable argument list function.

How do I know how much of the stack to copy when I enter
the firmware?

   /Daniel
  

  reply	other threads:[~2002-11-18 10:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-13  8:44 [U-Boot-Users] The i386 patch Daniel Engström
2002-11-18  0:15 ` [U-Boot-Users] " Wolfgang Denk
2002-11-18 10:31   ` Daniel Engström [this message]
2002-11-19 21:19     ` Wolfgang Denk
2002-11-20 12:22       ` Robert Kaiser
2002-11-20 14:06         ` Wolfgang Denk
2002-11-20 14:18           ` Daniel Engström
2002-11-20 16:51             ` Robert Kaiser
2002-11-20 16:45           ` Robert Kaiser

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=20021118113139.E892@jupiter.omicron.se \
    --to=daniel@omicron.se \
    --cc=u-boot@lists.denx.de \
    /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