From: Wu Zhangjin <wuzhangjin@gmail.com>
To: Waldemar Brodkorb <mail@waldemar-brodkorb.de>
Cc: Ralf Baechle <ralf@linux-mips.org>,
linux-mips <linux-mips@linux-mips.org>
Subject: Re: zboot for brcm
Date: Thu, 10 Jun 2010 22:14:38 +0800 [thread overview]
Message-ID: <1276179278.21482.16.camel@localhost> (raw)
In-Reply-To: <20100609172438.GA23116@waldemar-brodkorb.de>
Hi,
On Wed, 2010-06-09 at 19:24 +0200, Waldemar Brodkorb wrote:
[...]
>
> I know this is not correct, it should just illustrate, that only if
> I use this VMLINUX_LOAD_ADDRESS, the decompressor code get executed.
> The bootloader CFE just loads every code to 0x80001000 and executes
> it.
oh, it is really bad, that's why it always boot at 0x80001000 and will
overwrite the decompressor, than it fail on booting. we need to do
something for it, can you change the source code of CFE? If yes, we need
to let the CFE load the code to the entry point of the elf file, but
anyway, it is not a good idea, we need to modify the current zboot
support to avoid touching the bootloader.
Here should be a solution:
We use VMLINUX_LOAD_ADDRESS as VMLINUZ_LOAD_ADDRESS, but decompress the
kernel to VMLINUX_LOAD_ADDRESS + VMLINUZ_SIZE, it will not depends on
the bootloader, I think this will be a good idea and will solve your
problem ;) I will finish this patch asap, maybe tomorrow.
>
> >
> > And you just need to select "SYS_SUPPORTS_ZBOOT_UART16550" for it will
> > select SYS_SUPPORTS_ZBOOT itself. and please do not remove "ifdef
> > CONFIG_DEBUG_ZBOOT" and the related "#endif" but enable
> > "CONFIG_DEBUG_ZBOOT" in the .config(via make menuconfig) instead.
>
> Okay, but CONFIG_DEBUG_ZBOOT is not defined anywhere.
>
I have added this stuff to arch/mips/Kconfig.debug, you can find it via:
$ make menuconfig ARCH=mips
>> kernel hacking
>> kernel debugging (DEBUG_KERNEL)
>> Enable compressed kernel support debugging
Regards,
Wu Zhangjin
next parent reply other threads:[~2010-06-10 14:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20100609153831.GA27461@waldemar-brodkorb.de>
[not found] ` <1276099374.4510.13.camel@localhost>
[not found] ` <20100609172438.GA23116@waldemar-brodkorb.de>
2010-06-10 14:14 ` Wu Zhangjin [this message]
2010-06-17 12:20 ` zboot for brcm wu zhangjin
2010-06-17 12:38 ` Florian Fainelli
2010-06-17 13:31 ` Wu Zhangjin
2010-09-12 17:13 ` Florian Fainelli
2010-09-15 13:28 ` Ralf Baechle
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=1276179278.21482.16.camel@localhost \
--to=wuzhangjin@gmail.com \
--cc=linux-mips@linux-mips.org \
--cc=mail@waldemar-brodkorb.de \
--cc=ralf@linux-mips.org \
/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.