From: Graeme Russ <graeme.russ@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/2] Add support for the 32 bit boot protocol to the x86 zboot command.
Date: Thu, 01 Dec 2011 23:47:18 +1100 [thread overview]
Message-ID: <4ED77756.3070702@gmail.com> (raw)
In-Reply-To: <CAPPXG1n_YJbQYhtVf2zrBk5hae_179YVkeoNKk-YE68DxSxz3g@mail.gmail.com>
Hi Gabe,
On 30/11/11 17:25, Gabe Black wrote:
>
>
> On Tue, Nov 29, 2011 at 7:48 PM, Graeme Russ <graeme.russ@gmail.com
> <mailto:graeme.russ@gmail.com>> wrote:
>
> Hi Gabe,
>
> On Wed, Nov 30, 2011 at 2:11 PM, Gabe Black <gabeblack@chromium.org
> <mailto:gabeblack@chromium.org>> wrote:
> > These two patches add support for the 32 bit Linux boot protocol to the
> > zboot command.
>
> Going by our previous offline correspondence, I assume this approach still
> uses the bzImage's decompression stub?
>
> Also, as I discussion offline previously, I'm going through the boot_params
> with a fine-tooth comb to get a complete picture of what the Linux kernel
> actually requires to be filled out in the boot_params structure - I expect
> this will result in a 'built_boot_params()' function which is called by
> zboot and bootm - possibly with some weak stubs to helper functions
>
> Regards,
>
> Graeme
>
>
> Yes, this supports the 32 bit protocol which includes the decompression
> stub. I don't think a build_boot_params function which actually builds the
> bootstub would work for a number of reasons. First, that's not how the boot
> protocol works. The kernel provides information there that u-boot needs to
> read, and u-boot shouldn't just make it up. An example of this is what boot
> protocol is expected. Second, you might find all the things a particular
> version of the kernel wants right now, but that could easy change at any
> time and break booting. Third, the boot_params structure isn't compressed
> (because otherwise the bootloader couldn't fill it out) and building our
> own wouldn't serve any purpose.
>
> If you mean consolidating the existing boot_params code so that both zboot
> and bootm can use it, that seems reasonable. I'd point out, though, that
> filling out the table takes a trivial amount of time, so trying to cut
> corners and not fill it out completely would not only be dangerous, it
> would very likely not be worth the effort.
I've been playing around tonight and have managed to embed a gzip'd vmlinux
and raw header (stripped from the associated bzImage) into my U-Boot image
but I end up getting the same results - No RAM :(
So proof of concept is good
Regards
Graeme
next prev parent reply other threads:[~2011-12-01 12:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-30 3:11 [U-Boot] [PATCH 0/2] Add support for the 32 bit boot protocol to the x86 zboot command Gabe Black
2011-11-30 3:11 ` [U-Boot] [PATCH 1/2] x86: Clean up the x86 zimage code in preparation to extend it Gabe Black
2011-11-30 3:11 ` [U-Boot] [PATCH 2/2] x86: Add support for booting Linux using the 32 bit boot protocol Gabe Black
2011-11-30 3:23 ` Graeme Russ
2011-11-30 3:29 ` Gabe Black
2011-11-30 3:39 ` Graeme Russ
2011-11-30 3:50 ` Gabe Black
2011-11-30 3:52 ` Graeme Russ
2011-11-30 6:27 ` Gabe Black
2011-11-30 3:48 ` [U-Boot] [PATCH 0/2] Add support for the 32 bit boot protocol to the x86 zboot command Graeme Russ
2011-11-30 6:25 ` Gabe Black
2011-11-30 22:28 ` Graeme Russ
2011-12-01 12:47 ` Graeme Russ [this message]
2011-12-01 21:26 ` Gabe Black
2011-12-01 21:37 ` Graeme Russ
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=4ED77756.3070702@gmail.com \
--to=graeme.russ@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.