From: Michel Thebeau <michel.thebeau@windriver.com>
To: <michel.thebeau@windriver.com>
Cc: poky@yoctoproject.org
Subject: Re: [PATCH 1/1] routerstationpro: swap KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE
Date: Thu, 28 Mar 2013 17:12:07 -0400 [thread overview]
Message-ID: <5154B227.9090707@windriver.com> (raw)
In-Reply-To: <1364499175-29014-2-git-send-email-michel.thebeau@windriver.com>
On 13-03-28 03:32 PM, michel.thebeau@windriver.com wrote:
> From: Michel Thebeau <michel.thebeau@windriver.com>
>
> The routerstationpro has a 16mb flash which the kernel image should
> fit into. The default build type for vmlinux then should be the
> stripped arch/mips/boot/vmlinux.bin.
>
> Swapping KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE for rsp causes
> vmlinux.bin to be linked in tmp/deploy/images instead of vmlinux, and
> causes vmlinux.bin to appear in the kernel rpm file.
>
> [YOCTO #3515]
>
> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
> Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
> ---
> meta-yocto-bsp/conf/machine/routerstationpro.conf | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-yocto-bsp/conf/machine/routerstationpro.conf b/meta-yocto-bsp/conf/machine/routerstationpro.conf
> index e5e4d1a..a727e2a 100644
> --- a/meta-yocto-bsp/conf/machine/routerstationpro.conf
> +++ b/meta-yocto-bsp/conf/machine/routerstationpro.conf
> @@ -6,8 +6,8 @@ require conf/machine/include/tune-mips32.inc
>
> MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 serial"
>
> -KERNEL_IMAGETYPE = "vmlinux"
> -KERNEL_ALT_IMAGETYPE = "vmlinux.bin"
> +KERNEL_ALT_IMAGETYPE = "vmlinux"
> +KERNEL_IMAGETYPE = "vmlinux.bin"
I'd noted in email that arch/mips/boot/vmlinux.bin is looks like the
stripped file we were looking for. But it doesn't load:
RedBoot> load -m tftp -h 192.168.1.6 mthebeau/vmlinux.bin
Unrecognized image type: 0x0
I was able to load the larger vmlinux and boot it.
And as previously noted by , using
tmp/sysroots/x86_64-linux/usr/bin/mips32-poky-linux/mips-poky-linux-strip would
get a bootable image as well from the vmlinux.
I'll try to figure out what the difference is between that and vmlinux.bin.
M
>
> PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
> PREFERRED_VERSION_linux-yocto ?= "3.4%"
>
prev parent reply other threads:[~2013-03-28 21:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-28 19:32 [PATCH 0/1] Routerstationpro: The size of the kernel image is too big michel.thebeau
2013-03-28 19:32 ` [PATCH 1/1] routerstationpro: swap KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE michel.thebeau
2013-03-28 21:12 ` Michel Thebeau [this message]
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=5154B227.9090707@windriver.com \
--to=michel.thebeau@windriver.com \
--cc=poky@yoctoproject.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.